@zeniai/web-cockpit-ui 1.14.87-prod → 1.14.88-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 (216) hide show
  1. package/dist/assets/{ACHDetailsPage-D19fvbL2-P2q6FGT4.js → ACHDetailsPage-BBq7KpbY-BSBF4D7W.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DW0vgs3w-BejzgQZU.js → AIPerformancePage-Djq6mgKa-CZUK5BgA.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-B0HnACVZ-Cz1_iHrG.js → AccountInfoPage-CxWBk_t_-Pp-e12id.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B9DHX_ra-sovd-CkN.js → AccountInfoPageContent-DO6aVqBW-BatvazJB.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CM1F6VNU-CvMSSTKQ.js → AccountLockedInfoModal-DVvzKHJQ-cZarXjlh.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BbtaXRQT-BP5u27Vy.js → AccountReconDetailsDrawerPage-DEKzSPCP-AOZz4hLI.js} +1 -1
  7. package/dist/assets/{AccountRow-DqB8rPL2-bpq_QRP-.js → AccountRow-Ck53DDbT-DysWPQsT.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-G9g_ND9B-WzWOs6lG.js → AccountsPromoCardStack-BYjuB-4I-Bx06dRgS.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-UCJdFwxu-fE70sZ3Z.js → AddAddressForCardDrawer-e8qbO2Y5-DPhsVh8j.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B-mvkRWQ-CD1fieSw.js → AddToWalletPage-DA6AmuaY-BtvjAMkZ.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-dKUkHiCt-4-ZjYjut.js → AgingReportsPage-B_Hhl_Is-DD-vhrRT.js} +1 -1
  12. package/dist/assets/{AllUserItems-CQki1qcr-BPc9cdvK.js → AllUserItems-BV22Ibpn-k5WAGMIM.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-nMjsbSmM-Dj2hX6D_.js → ApAgingDetailPage-DqV1vOVH-BdaVu7h7.js} +1 -1
  14. package/dist/assets/{AppBasePage-BYj0h9gw-CNp8N5XL.js → AppBasePage-LrgCcvIv-CSjlBbz_.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-C21qZewJ-Bl5rkSOE.js → AppDrawerContent-aZG5Qc_X-BBJ620IT.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-B84m25GW-Bhx1D4Jb.js → ApprovalRulesSettingsPage-DQQw30S5-Ezj2032b.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CLxB28eR-Dva9-Ind.js → ArAgingChart-Am7LTkqG-DPWOzQ4G.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-C5yzbIB3-PGF8g6TG.js → ArAgingDetailPage-BEKsyA9Q-8CXV_-o4.js} +1 -1
  19. package/dist/assets/{AttachmentView-_qAuq3Am-DsdoTOQq.js → AttachmentView-Bujbmx1d-C5yMiAGh.js} +1 -1
  20. package/dist/assets/{BankAccountSection-B0pfiSf6-BkAvTd92.js → BankAccountSection-C5rYUW3V-C94OLznc.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Xo-Jy-73-CuHaGRwj.js → BankAccountWarningSection-DakysSbk-CbbTSVAs.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-o5oe0ctd-pbFGC7Lu.js → BankConnectionsSettingsPage-BjZDNgZG-YfsktWmR.js} +1 -1
  23. package/dist/assets/BillDetailPage-DYc_nZRU-CDVGo8PW.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BQjmqKng-B6KP83hX.js → BillPayApprovalRuleDetailPage-ppU1Epmy-BKvAcAoy.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BxCNEom7-BNHvGX5V.js → BillPayApprovalRulesPage-UblNi2mR-C7_kOGqL.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BElTLopb-UTnQRXQU.js → BillPayPromoPage-BK2J56U5-BoML2sjr.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BG8feTVd-CWj9njOH.js → BillPaySetUpPage-Jic5E25q-DpQqZitt.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-07P7VjDH-3liFrykV.js → BillingSettingsPage-CKZVChEm-DD2k5Yit.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D7EPuth4-9wLvCL-p.js → BillsBulkReviewDrawerPage-C4Ra5e82-CIUXbSFo.js} +1 -1
  30. package/dist/assets/{BoxItem-CzX5kr9f-D3symr5f.js → BoxItem-8PfNfaHq-B-GLMzdK.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-WSJeMnHc-CMSqosvu.js → BusinessVerificationPage-JGge-Iiw-BPBLeiY2.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-D76dl24E-oGcGHXW6.js → CardNumberSubText-W81SQ4GF-WvEd7hoq.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-CNxA7NQY-DpzkaSVy.js → CashbackDetailPage-DnOcmx2i-GyPOwLbn.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-K4gUpiwZ-B9xJfiWO.js → ChargeCardDetailPage-DNVMsxzE-DJwlKf4B.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CyTEY_8V-C2FdeBam.js → ChargeCardListPage-Dgj-WWWI-DUEfSWkj.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BFyvNTeY-58ZhHOUl.js → ChargeCardListTable-uJZKWoh7-ChKxwXNK.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-C9z3yHL2-ztK8hKM6.js → ChargeCardPromoPage-uqT96W3_-D7PKDOS5.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-DO8JYrZP-BzsQ44ig.js → ChargeCardSetupPage-BDbJU-vm-n7XKTVxz.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-BOikTcKC-DKRwTLUu.js → ChargeCardStatementsPage-DImRqpH1-BLn2Zrht.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-DH3MI8HN-CZXHiSeQ.js → CheckDepositDrawerPage-BVtOOPoa-BsyE3ijL.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-B2M1S7L1-dFGPuCPO.js → CollapsableReportTable-Crihcv_z-B2uLpmZL.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-BqY-k8Ic-BuPT0K3k.js → CompanyOfficerDetailsSection-CNxtAkKM-DIFNT_MT.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-BR60dER0-D6thO8AN.js → CompanyPassportCard-DMRQkRPb-D5WStHlm.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-Bmd04hik-saPKEiV2.js → CompanyPassportPage-D3XvbSF_-CEssY07i.js} +1 -1
  45. package/dist/assets/{CompleteProfile-UULN8u-c-BsLx_lN5.js → CompleteProfile-BqjXO5ze-DzvIvybO.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-CozTW5Rn-CUOgN-G0.js → ConfettiBurst-DtwLo4WZ-rIdOch9Z.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-D78xf5_Y-cBVFDl2u.js → CreateOrEditVendorPage-FrGRJxMy-D4Yfp3bV.js} +5 -5
  48. package/dist/assets/{CreditCardPaymentDrawerPage-CuqD_nKw-DDkV3I_H.js → CreditCardPaymentDrawerPage-BvifQpD3-DweBxpjG.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-DWAO-FaV-BKc6yQTn.js → CurrencySelectField-ClOg6nnS-mv1_7cFa.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-Cib3Mx_T-BJyZzKqJ.js → CustomerOnboardingActivationPage-Du-zzeL2-B0e3T3Mf.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-DZwfJm2T.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-XJtMtsSn-MI1EO6Tk.js → CustomerOnboardingDetailPageSkeleton-BgY95XeU-lrHBjHff.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-B_0Hrx2F-B7U0poxS.js → CustomerOnboardingNoStepsPage-BsKoqUta-CA8kKRAS.js} +1 -1
  54. package/dist/assets/CustomerOnboardingPage-DUMQKVfM-Dsr4EUaG.js +107 -0
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-BpF-YMGr-Aqt2M6lY.js → CustomerOnboardingProductSuitePage-DGVV8Tkk-D0glSq9a.js} +1 -1
  56. package/dist/assets/{Dashboard-PoZO9l3--fF3U2oM2.js → Dashboard-CdYlvep--2zt71GwH.js} +1 -1
  57. package/dist/assets/{DashboardReportPage--m1KiT3x-BnpR_0Xy.js → DashboardReportPage-c6q027Qp-DQOYKDaS.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-bBmcRJEU-CE4sdFs-.js → DashboardSidebarBackgroundAnimation-BdDVYK19-CImgfHLa.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-tRzKuflq-CQY11AkG.js → DepositAccTransactionItem-D8kL8enp-C-wlu71S.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-AwxQHNLD-COf6mnO6.js → DepositAccTransactionListPage-BS-OReem-BsY7nh5D.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-CuE-QHLh-B77fVqgK.js → DomesticWireDetailsPage-CjM1DXnn-jBFOWKEq.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-ebdpHSki-BlfSniyS.js → DownloadOverlay-Dr4uLNpZ-CCGEpjyu.js} +1 -1
  63. package/dist/assets/{DrawerPage-DHT0UTT4-BjMWwqqE.js → DrawerPage-CbKBsc7w-C7cU3_--.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-Ds7odnkL-Bbdp4sjD.js → EditPeoplePage-BgsR09q8-DdqILiC-.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-B6EHHEhj-BZjY_xsS.js → EditReimbursementDetailPage-BTrwOX_s-D-rZyGs5.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-sR_MHnxH-DGQEfdBP.js → EntityDetailPage-Cvd4MG0F-DPl-NT31.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BLwfMK6_-BQIFPmVu.js → EntitySummarySection-BIV9aAq2-DPBmI88A.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-BqFR2yic-BiVw1PpY.js → ExpenseAutomationOverviewPage-B5MtjO2p-CYiyOvTu.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-C7IKGki--CAll2t4v.js → ExpenseAutomationPage-DW6Pxoah-DDuDc1zW.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-C6UtAiIN--7tNZclz.js → ExpressPayPage-DnpQuDmt-Bd1bzHIM.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-C_b5hdtk-CWFxhifz.js → FeaturePreviewPage-BmwBZ7ZP-B5Fb6YFa.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-dgWK-_PA-SA2pt13b.js → FollowStepsSection-B2I9SddL-DOkk1O_M.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-Bs7BRxg_-BgWK7m_n.js → GlobalReviewListPage-D3GCP5Xd-hoz6yIFU.js} +1 -1
  74. package/dist/assets/{InformationCardStack-Def3TczI-CZ8bpX0k.js → InformationCardStack-mEhasBqu-uwoqfXbE.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-CDejyDrL-N2llUGta.js → InsightsCardStack-Mj7QcQnH-CEDxXAnc.js} +1 -1
  76. package/dist/assets/{InsightsSection-DeLBGRXz-Cma3xdOD.js → InsightsSection-B3xD0SZ9-44_JQBOt.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-Vd7CM5dW-DRY0dQek.js → IntegrationsSettingsPage-CsI_agJB-C-WDxKHm.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-CPIzRzqS-Cy-9uMv9.js → InternationalWireSwiftDetailsPage-Dszmi69h-CXShEjfi.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-Cc3OKrpr-Bc-Y5D0d.js → InternationalWireVerificationPage-DG9Enrpo-B4OJYSEA.js} +1 -1
  80. package/dist/assets/{InviteFormPage-hXbvSboB-CwnSoGM7.js → InviteFormPage-DK6X9Zwi-DxTEXqbU.js} +1 -1
  81. package/dist/assets/{InvitePageListView-xv6f7OYE-DFlxd_5d.js → InvitePageListView-CwKbcKlM-BZHkRpBj.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-Bns8mbbj-D8Y_3mot.js → InvitePeoplePage-BqzJOjVI-C5eGKSth.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-wKWbAAeR-DkRR-zXS.js → InvoiceUploadSection-CokNNkKu-DQm7Q76q.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-BbCULpNx-BN075ISe.js → IssueChargeCardPage-CRtJDmrZ-SjsaHHpw.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-CYPuDjMF-pk_rAh_C.js → LabeledAddressValue-BhwrrtZX-vn2WZMwa.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-C4ft1l-K-NlUGran6.js → LabeledAddressValueField-DzmwP7hP-K6Pp0Tsb.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-DHrJB0QL-CxsfZCBN.js → LabeledControlledCheckBoxField-B6ndrF2e-C6dGs2IG.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-BeelRB2Y-CiaZXnFg.js → LabeledCreatableSingleSelectField-CfzLlkho-D-9BqrF0.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-CgMzc8wC-DE1-QI-X.js → LabeledDocumentField-p3pI5qLu-BDt_q3n9.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DcO2nEfi-BB3TZW6Y.js → LabeledDropDownFormattedTextField-oQX33Fim-DScWTxuG.js} +1 -1
  91. package/dist/assets/{LabeledText-BNDM-899-Uk4bcBs-.js → LabeledText-Db46hFZY-DtE2280z.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-DckwjwhW.js → LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-CdCb1YaR.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-C5I9rtgW-CA8BuWQL.js → LabeledZeniRolesDropDownField-Docjgj8Y-Ak8tWgXw.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-BWrpuWUo-B47ZOhyZ.js → LinkJETransactionPage-BZSRaZqY-Ys5o0SC5.js} +1 -1
  95. package/dist/assets/{LockCardPage-Ddf8_2ti-r_iAtmUf.js → LockCardPage-KTyESoXL-RLL-NNgZ.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BMSJwe7h-ttZquSvN.js → LowBalancePopup-B0BDCEui-BDJRdwYk.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-CRYqb_qO-CYR1e33B.js → MagicLinkACHDetailsPage-DwFvuGwG-Bx8_G4pi.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CE12GLds-7apDismG.js → MagicLinkDomesticWireDetailsPage-CDB2igue-C6BkcHMt.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DO4DIUrG-fkWKne1r.js → MagicLinkInternationalWireDetailsPage-C2kxncrD-lKhup0wi.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-fsnKXDBD-BzpIbX4V.js → MagicLinkSuccessPage-DNVe2qMu-D4SMdh6r.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-DQw4cqq_-CI2hDe5j.js → MagicLinkTitleSection-CWw516D8-BNsvo93d.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-CAV69_Sr-DOptWsu4.js → MailingDetailsSection-CugAM90r-DoeFFuYK.js} +1 -1
  103. package/dist/assets/{Menu-B_DpiT_k-DPKs2lRP.js → Menu-CGN2qO6T-CiWOHnEv.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CM2Faxmi-DQHj5AUS.js → MyBankConnectionsSettingsPage-CQUfVa0r-Bh6xkh_P.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-BV2N6fOb-MGKzHxQz.js → MyPendingActivationChargeCardListPage-TOQWRGjp-Cz3Fu-Qj.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BjGB1P4t-gB6EUFJO.js → MyProfileSettingsPage-lCG03Uoh-Cp5z_COM.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-CrDC7aPk-BuIkhxzF.js → NavBarWithPicker-DLLvivn4-CwXjwd5E.js} +1 -1
  108. package/dist/assets/{NavigationArrow-AIYiZbYj-BDxpddJr.js → NavigationArrow-B4j2t8Qu-DFN_pfjG.js} +1 -1
  109. package/dist/assets/{NavigationDots-CVjs5Sdt-B_sdIayy.js → NavigationDots-DyMqwpgy-BnOxKvTS.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Bx1M-Dpk-nxy7htoe.js → NewGlobalMerchantPage-Bx7iBsCP-De3Zrk_w.js} +1 -1
  111. package/dist/assets/{NoDataChart-B_yk9del-7CJyIfwz.js → NoDataChart-Ce1_TZ5w-mzgyK4W0.js} +1 -1
  112. package/dist/assets/{NoDataTable-DRJW6ofl-CO3LWhoz.js → NoDataTable-l2T5Hw3t-DiA6_LOZ.js} +1 -1
  113. package/dist/assets/{NotFoundPage-C6X8pmKB-Dwa0of4U.js → NotFoundPage-msdN-Eu6-bUOgmvTT.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-CsaIk9hI-BxWRJFeY.js → NotificationSettingsPage-_ovcjr8E-oBg2AzvY.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-B8ldcs-T-CubYNy0r.js → NotificationsListConfig-BJm7A9Mz-Dpzdlo_O.js} +1 -1
  116. package/dist/assets/{NotificationsPage-Cv2LlPX0-CJ1W8FBS.js → NotificationsPage-Ddxb5kE0-sv2MHoTB.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-cVCb-lRK-BpX56puL.js → OpExByVendorPage-BLAHey0l-Bvnbxr3W.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-CrZuT2Jj-BCsMQOfG.js → OverlayContainerPage-CrZuT2Jj-PfCCV6vr.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-CG5AGAFM-BtEemVMr.js → PandLWithForecastPage-B7Z73Sq--D-gg1JRT.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DFeVoMTQ-DKvzQ7gH.js → PaymentAccountSetupBillingAddressSection-pL7omrJk-CMauXbLg.js} +1 -1
  121. package/dist/assets/{PeoplePage-vwcbvzlP-CWawCIiG.js → PeoplePage-BHRFiM0D-BFjjgTA4.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-C2h9pwDb-BJCEkWeQ.js → ProductsCarousel-D2bf_6Gb-3YkaSAEs.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-nxua6geT-Dgfnru9g.js → PromoBaseCards-CI7UOpeY-DrRHtF3C.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-BRU6xjQi-DIGQDjmD.js → QBOConnectionDialog-D7MeKn1t-BAS1asBL.js} +1 -1
  125. package/dist/assets/{QBOSetupSection-CvWw_-bE-DnKRbGzA.js → QBOSetupSection-DWhfA4Xv-BucVH3Ow.js} +1 -1
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CDAPt76T-Gto4Q15K.js → ReimbursementApprovalRuleDetailPage-C_dTOk5P-D-NWcf6N.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-CT8KUn9L-B1nKwZkx.js → ReimbursementApprovalRulesPage-B5lca4qx-Be4jwh8K.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-BlWqdoKk-COEV8562.js → ReimbursementDetailPage-COIRwy7i-D_z8JZWj.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-C12vL_aT-CrLVH96j.js → ReimbursementPromoPage-Bjm0UHcm-BFGYvNxR.js} +1 -1
  130. package/dist/assets/{ReimbursementSetUpPage-aeXyHOzw-2EOtV87v.js → ReimbursementSetUpPage-CMYR8CcH-o7EiVYlw.js} +1 -1
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZn17ZAb-BDyW7OtN.js → ReimbursementsBulkReviewDrawerPage-BDdhVfaz-B4-3Ac_F.js} +1 -1
  132. package/dist/assets/{ReloadCard-BVcEjrcM-CSV-mhh9.js → ReloadCard-B2sJR97f-B7xYAAAP.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-DlD_ISoP-lPYeKXOJ.js → ReportTableViewSelector-_IO343vS-CCUTRa_q.js} +1 -1
  134. package/dist/assets/{ReportsPage-CqXr-QZi-DO-mgoNY.js → ReportsPage-C-aQ1bdd-BrHTUapj.js} +1 -1
  135. package/dist/assets/{RevenueChart-B1KEseXB-Utn3Pprg.js → RevenueChart-Bgq6My4J-DZMBvJfW.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-CYhNq-J0-DDl_jMfZ.js → ReviewDetailsPage-COx9R71r-zWGCkJ71.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-DkL6mTyl-CMzGZHnc.js → ReviewOverlay-CPU7RPiJ-D223TMrq.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-DRSravXg-DSYiU3d0.js → RoleWithToolTip-DSSGBzvw-DNIC4KJA.js} +1 -1
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BsigTjZM-mW5LJrqp.js → ScheduleDetailsFixedAssetsPage-DKGBfhAM-hAiatKQJ.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsPage-C-lGzBL_-D_p8GIL_.js → ScheduleDetailsPage-B-fKJ7Ct-Bh8hZts0.js} +1 -1
  141. package/dist/assets/{ScheduleSequenceTable-BCmdqAXy-D3CAjBUE.js → ScheduleSequenceTable-Dh_aT47H-Dsg8nn4Q.js} +1 -1
  142. package/dist/assets/{ScreenRoutes-xWnrEHxn.js → ScreenRoutes-C6EpxT2f.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-BKOCyUH3-5E3X8B1z.js → SetUpAccountSection-DrMCC1IY-ByWeTp_x.js} +1 -1
  144. package/dist/assets/{SignIn-CS-J3pfV-Cc6EpAm9.js → SignIn-Ij6tlYI5-Dst5bSP1.js} +1 -1
  145. package/dist/assets/{SignInScreen-BFczXBxP.js → SignInScreen-u1nQ3ozJ.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-Df2_A3Ff-CJNf0Pa6.js → SpendManagementListViewPage-AI676Urw-B-7dzfuE.js} +3 -3
  147. package/dist/assets/{SpendManagementPerTabPage-CMowSBFq-C-0tfiZj.js → SpendManagementPerTabPage-D79c3Xqh-oKXtBl-N.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-CMV7noyB-FfrwatXV.js → SpendManagementSection-BqWbsmBW-B_cU7_8m.js} +1 -1
  149. package/dist/assets/{StatementItem-DJ39tw7i-BGzzO418.js → StatementItem-Aal79YaO-CFHdsNsW.js} +1 -1
  150. package/dist/assets/{StatementsPage-bQ7Ni723-CiqZapla.js → StatementsPage-BG_pNQzc-CtKK_NWp.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-dxck0-_D-BYkNtfpv.js → StatusSwitcher-DYRXaLvx-Dg0gJadN.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-iw3pF9RG-laE6085D.js → SubTabSwitcher-C75XU1EG-jiPBvvgH.js} +1 -1
  153. package/dist/assets/{SummaryCard-BhSCeFtW-m22XLFXr.js → SummaryCard-DEnzgi31-BrjfYktb.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-g-ZeUacD-CnbOCq-T.js → TaskManagementPage-BacWm0wS-BOmzE8pj.js} +1 -1
  155. package/dist/assets/{TimeRangeSwitcher-DV7Vkxir-BY8yCKry.js → TimeRangeSwitcher-BOzR-0O6-DW6Hfe2T.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-n-e2hXsK-AWoPnllv.js → TimeframeSwitcher-BVgI_VZw-CmYJCdij.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-DLiPwXnZ-BZzhBiFp.js → TimeframeSwitcherWithToggle-CPVSAvFa-D1niAH0D.js} +1 -1
  158. package/dist/assets/{TopExCard-CUCtGWMG-CYbxdoUt.js → TopExCard-ImUx-vXr-DT0VBuYA.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-Du_E_YKe-DD0051Gv.js → TopExDetailPage-Dg_8DQk8-4B9miDBg.js} +1 -1
  160. package/dist/assets/{TransactionDetailPage-CgT445to-B8zBtONa.js → TransactionDetailPage-BzaDB50S-GSmaAynz.js} +1 -1
  161. package/dist/assets/{TransactionList-we_zUYsL-F4m4jrvC.js → TransactionList-DMd3dgoK-CAAZ5LJ9.js} +1 -1
  162. package/dist/assets/{TransactionListBig-nH1Qjoil-D85zvaJ4.js → TransactionListBig-BxHqh8u6-jUnMWfqS.js} +1 -1
  163. package/dist/assets/{TransactionListPage-38GpLjpf-CgCSKGHJ.js → TransactionListPage-CN9fZznd-XHmW_JO6.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-D9Xiyh8f-t1f2-j4h.js → TransactionVendorDetailPage-CykcquSh-DC5tWATQ.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-lmX46zkj-5wxCOoj6.js → TransferDrawerPage-oV7ickRP-DfNv0z7w.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-C4AZO1qa-gQEAhVQ2.js → TreasuryOverviewPage-CECDKjNn-DnTfDq_E.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-D2UpPIMJ-BRm54FV0.js → TreasuryPromoPage-Bgt7uGAE-wBv090sg.js} +1 -1
  168. package/dist/assets/{TreasuryStatementsPage-DJZjPYxF-DSxdS7xK.js → TreasuryStatementsPage-QyWxshsI-MJ6226DX.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-CRhVrCVC-DffT0PYd.js → TreasuryTaxLetterPage-BLmfU0VD-tlc_Qnp7.js} +1 -1
  170. package/dist/assets/{TrendChart-C6eEpBKz-DP7UG1vk.js → TrendChart-C_6ob-SX-C0qSDIOK.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-CesVaJPk-qTKm-Cs8.js → TrendWithTransactions-lMD2sZ-C-DAKlvwC8.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-wFi1shv1-CX2dL9UQ.js → UncategorizedAccountsMappingPage-DEgz17_R-JAtAn-dZ.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-Dc1U07vV-et-7y4N1.js → UnitIntegrationPage-D9Pzxqju-MqruWQEm.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-E73Idplv-B9SoXigY.js → UploadAdditionalDocumentOverlay-CJYvOjh0-Bd6YUBSJ.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-BvdRkNkS-C0Q1KQP8.js → Vendor2FAPopup-D-r0NVE--C7hhZzTV.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-DSwUAV1v-D0owgu9b.js → VendorACHDetailsPage-Dv6bTD6Y-DvJTQLef.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-DNoyNRTj-DjrX189_.js → VendorDetailPage-BhfawsBd-S64BbJSz.js} +1 -1
  178. package/dist/assets/{VendorDomesticWireDetailsPage-Bc8qjWTX-CPnlG4VY.js → VendorDomesticWireDetailsPage-BjmlrfTQ-rHR0r6A6.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-B1B5iG9x-ClLMRlWp.js → VendorFiling1099EditablePage-glvi0GTU-BdKcShj3.js} +1 -1
  180. package/dist/assets/{VendorFirstReviewPage-B4yTlldy-S4-wXPIK.js → VendorFirstReviewPage-DUuUM8ZT-B1bWCBT-.js} +1 -1
  181. package/dist/assets/{VendorInternationalWireDetailsPage-CJFUOmlk-BhB1eNdF.js → VendorInternationalWireDetailsPage--Lb-TviQ-C-zdKbhE.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CegBbxXf-CDYUIsxF.js → VendorInternationalWireSwiftDetailsPage-C6KviV2Z-BDqGzihc.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-WAKW9Ve9-Bf8gWcEH.js → VendorsAccountsSection-EmHO3wQ0-Ds60jCdB.js} +1 -1
  184. package/dist/assets/{VerifyDevice-CcZqv2Lp-CmkUhsZ_.js → VerifyDevice-DE3UbLEe-Bosmp51G.js} +1 -1
  185. package/dist/assets/{VideoPlayer-UPe1R-1g-Dkj-tB_R.js → VideoPlayer-Gw_PLr8F-B5il9249.js} +1 -1
  186. package/dist/assets/{VideoPopup-CUd3F8wz-B5iD7iDk.js → VideoPopup-DPZYhLgy-CxQM8ZsJ.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CDKJe82X-Cdj7rHFo.js → WarningsDrawerPage-CZvToguS-BxbFQVxO.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-Bm-Zan6l-BbucBUTZ.js → ZeniAccountDetailPage-CQhqngBz-CCNvCBi9.js} +1 -1
  189. package/dist/assets/{ZeniAccountListViewPage-CCB38vGw-Ck89mfmC.js → ZeniAccountListViewPage-CpX8vqYa-CIQ7ee6i.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-Cxtt22Vg-DjUxgyta.js → ZeniAccountNavBarPieces-DsUwG15z-Dwp3Id4e.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-CPLBUFop-Y9rvvMnL.js → ZeniAccountPromoPage-DA611IgH-C5-V5OIC.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-jOZVnJMr-rS9KIz2k.js → ZeniAccountSetupPage-CJv2Fk1i-DxNYIjfe.js} +1 -1
  193. package/dist/assets/{ZeniCopyright-BX77ah4B-DHXVVTkE.js → ZeniCopyright-FFqiWypL-CqMesSm0.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-DwZiry1v-QvHT4aAH.js → ZeniTransferAmountSlider-DSrBZUbA-BhvMyB40.js} +1 -1
  195. package/dist/assets/{analyticsHelper-tTHd6Unu-DbecO1Pw.js → analyticsHelper-CczQLvkM-ChZB75ZC.js} +1 -1
  196. package/dist/assets/{analyticsHelper-BHnZzWCz.js → analyticsHelper-SHKorczp.js} +1 -1
  197. package/dist/assets/{chartTypes-BFYRQ3Cv-BOyiJoGI.js → chartTypes-CwQl8aoN-CqcuqCka.js} +1 -1
  198. package/dist/assets/{commonDimensions-C2kzP_me-DCSlMn19.js → commonDimensions-B1u_MhON-DyL3Hxj-.js} +1 -1
  199. package/dist/assets/{detailCommon-BAtNx7ca-CSfEfj_v.js → detailCommon-nYxvvV_i-CtgtxyJz.js} +1 -1
  200. package/dist/assets/{downloadPdf-Sdq-1kVQ-xx1woTmh.js → downloadPdf-yGlKpV2--CC5ysEvm.js} +1 -1
  201. package/dist/assets/{index-BfG2mP-a.js → index-Dp0ze4-l.js} +4 -4
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-8AkwjRg3-DJZjiw1l.js → mapLoadingInProgressToTreeNode-DIAuL28N-CHz89P0H.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-8gZ8jpFf.js → mapSectionWithAcOnlyToTreeNode-DRSmQ56_-D-Dpwz3L.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-CfM4s6Ab-Cvjm8i2M.js → mapSpacerToTreeNode-DOEVwUIo-C0LPrLsm.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-B0gWnt3S-Bw2PN-4T.js → mapTimeframeBalancesToTreeNode-DbnAvW1M-DBLXBEjh.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-Ckh-PZp0-C6H0N8ys.js → mapTimeframeBalancesToTreeNode-DkrEWOxt-DcsakCNq.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--CEbqQqfo.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-6GTMK9C_.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-CHuRV6Cy-DQTbM0bQ.js → toCOABalancesWithID-rZFEkHuM-CMW_H07o.js} +1 -1
  209. package/dist/assets/{toChartData-DjeEqlPj-BghAWt_k.js → toChartData-C-dHC-Oz-Cn-Bmv6B.js} +1 -1
  210. package/dist/assets/{uploadAttachment-l_PHn7FL-DzKQG9sJ.js → uploadAttachment-D3clfqPu-BS_riD5o.js} +1 -1
  211. package/dist/assets/{uploadReceipts-Bkf_PaOH-BwmlI0mV.js → uploadReceipts-Bkf_PaOH-B514mmcL.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +2 -2
  214. package/dist/assets/BillDetailPage-CtThP7Y9-CQBaOnbu.js +0 -266
  215. package/dist/assets/CustomerOnboardingContainerPage-J1gLDhpW-BA7DOvKN.js +0 -1
  216. package/dist/assets/CustomerOnboardingPage-aBkvsh1l-DEQ4bN4G.js +0 -107
@@ -1,4 +1,4 @@
1
- import{d as He,Q as v,F as x,aA as _,cD as _e,V as t,bz as Qe,aK as y,A as Je,cm as ie,cn as se,co as le,c$ as Ke,aO as Xe,y as Q,b$ as qe,o,d0 as Ge,bQ as D,cf as ce,u as w,b5 as de,ag as pe,ak as K,br as Ze,cY as me,d1 as et,p as z,d2 as ue,cV as he}from"./index-BfG2mP-a.js";import{a as g}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const tt=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:n,accountTypeLabel:s,accountType:l,bankName:m,routingNumberOrSwiftCode:p,accountName:f,routingNumberOrSwiftCodeLabel:j,onDeleteClick:u})=>{const $=v(),h=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,C=t.jsxs(ot,{children:[t.jsxs(N,{children:[t.jsx(I,{children:j}),t.jsx(T,{children:p})]}),t.jsxs(N,{children:[t.jsx(I,{children:h.achDetails.bankName}),t.jsx(T,{children:m})]}),t.jsxs(N,{children:[t.jsx(I,{children:n}),t.jsx(T,{children:e})]}),t.jsxs(N,{children:[t.jsx(I,{children:s}),t.jsx(T,{children:l!==""?et(l.toLowerCase()):l})]})]});return t.jsxs(it,{size:$,children:[t.jsxs(nt,{children:[t.jsxs(K,{children:[`${m} ${h.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(D,{title:C,placement:"top",children:t.jsx(lt,{children:t.jsx(ct,{})})})]}),t.jsx(rt,{children:f??h.emptyPlaceholderString})]}),t.jsx(at,{children:t.jsx(D,{enterDelay:600,display:"flex",title:h.deleteAccountTooltip,placement:"top",children:t.jsx(st,{onClick:k=>{k.stopPropagation(),u()},"data-testid":y("delete-vendor-account-section",f),children:t.jsx(dt,{})})})})]})},ot=r.div`
1
+ import{d as He,Q as v,F as x,aA as _,cD as _e,V as t,bz as Qe,aK as y,A as Je,cm as ie,cn as se,co as le,c$ as Ke,aO as Xe,y as Q,b$ as qe,o,d0 as Ge,bQ as D,cf as ce,u as w,b5 as de,ag as pe,ak as K,br as Ze,cY as me,d1 as et,p as z,d2 as ue,cV as he}from"./index-Dp0ze4-l.js";import{a as g}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const tt=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:n,accountTypeLabel:l,accountType:s,bankName:m,routingNumberOrSwiftCode:p,accountName:f,routingNumberOrSwiftCodeLabel:j,onDeleteClick:u})=>{const $=v(),h=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,C=t.jsxs(ot,{children:[t.jsxs(N,{children:[t.jsx(I,{children:j}),t.jsx(T,{children:p})]}),t.jsxs(N,{children:[t.jsx(I,{children:h.achDetails.bankName}),t.jsx(T,{children:m})]}),t.jsxs(N,{children:[t.jsx(I,{children:n}),t.jsx(T,{children:e})]}),t.jsxs(N,{children:[t.jsx(I,{children:l}),t.jsx(T,{children:typeof s=="string"&&s!==""?et(s.toLowerCase()):s??""})]})]});return t.jsxs(it,{size:$,children:[t.jsxs(nt,{children:[t.jsxs(K,{children:[`${m} ${h.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(D,{title:C,placement:"top",children:t.jsx(lt,{children:t.jsx(ct,{})})})]}),t.jsx(rt,{children:f??h.emptyPlaceholderString})]}),t.jsx(at,{children:t.jsx(D,{enterDelay:600,display:"flex",title:h.deleteAccountTooltip,placement:"top",children:t.jsx(st,{onClick:k=>{k.stopPropagation(),u()},"data-testid":y("delete-vendor-account-section",f),children:t.jsx(dt,{})})})})]})},ot=r.div`
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
4
  gap: ${o.sp1};
@@ -70,7 +70,7 @@ import{d as He,Q as v,F as x,aA as _,cD as _e,V as t,bz as Qe,aK as y,A as Je,cm
70
70
  &:hover {
71
71
  color: ${z.important};
72
72
  }
73
- `,pt=({paymentInstrument:e,onDeleteClick:n})=>{const s=v(),l=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,m=t.jsx(mt,{children:e.piLabels.map(p=>t.jsxs(ut,{children:[t.jsxs(ht,{children:[p.name,l.colon]}),t.jsx(xt,{children:p.value})]},p.name))});return t.jsxs(bt,{size:s,children:[t.jsx(gt,{children:t.jsxs(K,{children:[e.displayText,t.jsx(D,{title:m,placement:"top",children:t.jsx(ft,{children:t.jsx(wt,{})})})]})}),t.jsx($t,{children:t.jsx(D,{enterDelay:600,display:"flex",title:l.deleteAccountTooltip,placement:"top",children:t.jsx(yt,{onClick:p=>{p.stopPropagation(),n()},"data-testid":y("delete-vendor-international-account-section",e.paymentInstrumentId),children:t.jsx(vt,{})})})})]})},mt=r.div`
73
+ `,pt=({paymentInstrument:e,onDeleteClick:n})=>{const l=v(),s=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,m=t.jsx(mt,{children:e.piLabels.map(p=>t.jsxs(ut,{children:[t.jsxs(ht,{children:[p.name,s.colon]}),t.jsx(xt,{children:p.value})]},p.name))});return t.jsxs(bt,{size:l,children:[t.jsx(gt,{children:t.jsxs(K,{children:[e.displayText,t.jsx(D,{title:m,placement:"top",children:t.jsx(ft,{children:t.jsx(wt,{})})})]})}),t.jsx($t,{children:t.jsx(D,{enterDelay:600,display:"flex",title:s.deleteAccountTooltip,placement:"top",children:t.jsx(yt,{onClick:p=>{p.stopPropagation(),n()},"data-testid":y("delete-vendor-international-account-section",e.paymentInstrumentId),children:t.jsx(vt,{})})})})]})},mt=r.div`
74
74
  display: flex;
75
75
  flex-wrap: wrap;
76
76
  gap: ${o.sp1};
@@ -140,7 +140,7 @@ import{d as He,Q as v,F as x,aA as _,cD as _e,V as t,bz as Qe,aK as y,A as Je,cm
140
140
  &:hover {
141
141
  color: ${z.important};
142
142
  }
143
- `,xe=(e,n)=>{const s=x.getLocalizedStrings().spendManagement.billPay.vendorCreation;switch(e){case"ach":return s.achDetails.ach;case"wire":switch(n){case"us-domestic":return s.wireDetails.domestic.domestic;case"international":return s.wireDetails.international.international;default:return""}default:return""}},J=({type:e,subType:n,vendorAccountDetails:s,vendorAccountDetailsInternational:l,onRemoveBankAccount:m,onAddNewAccountDetailClick:p})=>{const f=v(),[j,u]=g.useState(!1),[$,h]=g.useState(""),[C,k]=g.useState(!1),d=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,A=i=>{h(i),u(!0)},B={onOkClick:()=>{u(!1),m($,C)},onCancelClick:()=>{u(!1),h("")}},V=i=>e==="ach"||e==="wire"&&n==="us-domestic"?i.bankAccountNumber:e==="wire"&&n==="international"?i.bankAccountIban??"":"",F=i=>e==="ach"?i.bankRoutingNumberAch:e==="wire"&&n==="us-domestic"?i.bankRoutingNumberWireTransfer:e==="wire"&&n==="international"?i.bankSwiftCode??"":"",O=()=>e==="ach"?d.achDetails.bankRoutingNumber:e==="wire"&&n==="us-domestic"?d.wireDetails.bankRoutingNumber:e==="wire"&&n==="international"?d.wireDetails.international.swiftCode:"",R=()=>e==="ach"?d.achDetails.bankAccountNumber:e==="wire"&&n==="us-domestic"?d.wireDetails.accountNumber:e==="wire"&&n==="international"?d.wireDetails.international.iban:"",E=()=>e==="ach"||e==="wire"&&n==="us-domestic"?d.achDetails.accountTypeLabel:"";return t.jsxs(Dt,{children:[j===!0?t.jsx(ie,{titleComponent:t.jsx(le,{children:d.areYOuSure}),descriptionComponent:t.jsx(se,{children:d.ifYouSubmit}),primaryButtonText:d.delete,secondaryButtonText:d.cancel,action:B,isEditPopup:!0,proceedButtonVariant:"danger"}):null,t.jsx(St,{windowSize:f,children:`${xe(e,n)} ${d.accountsLabel}`}),s?.map(i=>t.jsx(oe,{children:t.jsx(tt,{bankName:i.bankName,accountType:i.bankAccountType??"",bankAccountNumberOrIban:V(i),routingNumberOrSwiftCode:F(i),routingNumberOrSwiftCodeLabel:O(),accountNumberOrIbanLabel:R(),accountTypeLabel:E(),accountName:i.bankAccountName,onDeleteClick:()=>A(i.bankAccountId)})},i.bankAccountId)),l?.map(i=>t.jsx(oe,{children:t.jsx(pt,{paymentInstrument:i,onDeleteClick:()=>{k(!0),A(i.paymentInstrumentId)}})},i.paymentInstrumentId)),t.jsx(jt,{onAddAccountDetailsSection:p,type:e,subType:n})]})},jt=({onAddAccountDetailsSection:e,type:n,subType:s})=>{const l=v(),m=x.getLocalizedStrings().spendManagement.billPay;return t.jsx(t.Fragment,{children:t.jsxs(kt,{windowSize:l,onClick:e,"data-testid":y("add-vendor-account",n),children:[t.jsx(Ct,{}),t.jsx(ce,{children:`${m.vendorCreation.addPrefix} ${xe(n,s)}`})]})})},Ct=r(me)`
143
+ `,xe=(e,n)=>{const l=x.getLocalizedStrings().spendManagement.billPay.vendorCreation;switch(e){case"ach":return l.achDetails.ach;case"wire":switch(n){case"us-domestic":return l.wireDetails.domestic.domestic;case"international":return l.wireDetails.international.international;default:return""}default:return""}},J=({type:e,subType:n,vendorAccountDetails:l,vendorAccountDetailsInternational:s,onRemoveBankAccount:m,onAddNewAccountDetailClick:p})=>{const f=v(),[j,u]=g.useState(!1),[$,h]=g.useState(""),[C,k]=g.useState(!1),d=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,A=i=>{h(i),u(!0)},B={onOkClick:()=>{u(!1),m($,C)},onCancelClick:()=>{u(!1),h("")}},V=i=>e==="ach"||e==="wire"&&n==="us-domestic"?i.bankAccountNumber:e==="wire"&&n==="international"?i.bankAccountIban??"":"",F=i=>e==="ach"?i.bankRoutingNumberAch:e==="wire"&&n==="us-domestic"?i.bankRoutingNumberWireTransfer:e==="wire"&&n==="international"?i.bankSwiftCode??"":"",O=()=>e==="ach"?d.achDetails.bankRoutingNumber:e==="wire"&&n==="us-domestic"?d.wireDetails.bankRoutingNumber:e==="wire"&&n==="international"?d.wireDetails.international.swiftCode:"",R=()=>e==="ach"?d.achDetails.bankAccountNumber:e==="wire"&&n==="us-domestic"?d.wireDetails.accountNumber:e==="wire"&&n==="international"?d.wireDetails.international.iban:"",E=()=>e==="ach"||e==="wire"&&n==="us-domestic"?d.achDetails.accountTypeLabel:"";return t.jsxs(Dt,{children:[j===!0?t.jsx(ie,{titleComponent:t.jsx(le,{children:d.areYOuSure}),descriptionComponent:t.jsx(se,{children:d.ifYouSubmit}),primaryButtonText:d.delete,secondaryButtonText:d.cancel,action:B,isEditPopup:!0,proceedButtonVariant:"danger"}):null,t.jsx(St,{windowSize:f,children:`${xe(e,n)} ${d.accountsLabel}`}),l?.map(i=>t.jsx(oe,{children:t.jsx(tt,{bankName:i.bankName,accountType:i.bankAccountType??"",bankAccountNumberOrIban:V(i),routingNumberOrSwiftCode:F(i),routingNumberOrSwiftCodeLabel:O(),accountNumberOrIbanLabel:R(),accountTypeLabel:E(),accountName:i.bankAccountName,onDeleteClick:()=>A(i.bankAccountId)})},i.bankAccountId)),s?.map(i=>t.jsx(oe,{children:t.jsx(pt,{paymentInstrument:i,onDeleteClick:()=>{k(!0),A(i.paymentInstrumentId)}})},i.paymentInstrumentId)),t.jsx(jt,{onAddAccountDetailsSection:p,type:e,subType:n})]})},jt=({onAddAccountDetailsSection:e,type:n,subType:l})=>{const s=v(),m=x.getLocalizedStrings().spendManagement.billPay;return t.jsx(t.Fragment,{children:t.jsxs(kt,{windowSize:s,onClick:e,"data-testid":y("add-vendor-account",n),children:[t.jsx(Ct,{}),t.jsx(ce,{children:`${m.vendorCreation.addPrefix} ${xe(n,l)}`})]})})},Ct=r(me)`
144
144
  margin-right: ${o.sp2};
145
145
  width: ${o.sp3};
146
146
  height: ${o.sp3};
@@ -170,7 +170,7 @@ import{d as He,Q as v,F as x,aA as _,cD as _e,V as t,bz as Qe,aK as y,A as Je,cm
170
170
  padding-bottom: ${o.sp2};
171
171
  margin-top: ${o.sp3};
172
172
  margin-bottom: ${o.sp3};
173
- `,At=({addressState:e,onUpdateMailingAddress:n})=>{const s=v(),l=x.getLocalizedStrings().spendManagement.billPay.vendorCreation;return t.jsxs(Ft,{children:[t.jsxs(Vt,{windowSize:s,children:[`${l.mailingAddressLabel}`,t.jsx(Bt,{children:`${l.mailingAddressPlaceholder}`})]}),e!=null?t.jsxs(zt,{children:[Lt(e),t.jsx(D,{enterDelay:600,display:"flex",title:l.editMailingAddressTooltip,placement:"top",children:t.jsx(Nt,{"data-testid":y("edit-vendor-mailing-address"),onClick:()=>n("vendor_address"),children:t.jsx(It,{})})})]}):t.jsx(t.Fragment,{children:t.jsxs(Pt,{windowSize:s,"data-testid":y("add-vendor-mailing-address"),onClick:()=>n("vendor_address"),children:[t.jsx(Tt,{}),t.jsx(ce,{children:l.addMailingAddress})]})})]})},Lt=e=>[e.street[2],e.street[0],e.street[1],e.city,`${e.state} ${e.postalCode}`.trim(),e.countryCode??e.country].filter(Boolean).join(", "),Nt=r.div`
173
+ `,At=({addressState:e,onUpdateMailingAddress:n})=>{const l=v(),s=x.getLocalizedStrings().spendManagement.billPay.vendorCreation;return t.jsxs(Ft,{children:[t.jsxs(Vt,{windowSize:l,children:[`${s.mailingAddressLabel}`,t.jsx(Bt,{children:`${s.mailingAddressPlaceholder}`})]}),e!=null?t.jsxs(zt,{children:[Lt(e),t.jsx(D,{enterDelay:600,display:"flex",title:s.editMailingAddressTooltip,placement:"top",children:t.jsx(Nt,{"data-testid":y("edit-vendor-mailing-address"),onClick:()=>n("vendor_address"),children:t.jsx(It,{})})})]}):t.jsx(t.Fragment,{children:t.jsxs(Pt,{windowSize:l,"data-testid":y("add-vendor-mailing-address"),onClick:()=>n("vendor_address"),children:[t.jsx(Tt,{}),t.jsx(ce,{children:s.addMailingAddress})]})})]})},Lt=e=>[e.street[2],e.street[0],e.street[1],e.city,`${e.state} ${e.postalCode}`.trim(),e.countryCode??e.country].filter(Boolean).join(", "),Nt=r.div`
174
174
  width: ${o.sp3};
175
175
  svg {
176
176
  display: none;
@@ -278,4 +278,4 @@ import{d as He,Q as v,F as x,aA as _,cD as _e,V as t,bz as Qe,aK as y,A as Je,cm
278
278
  display: flex;
279
279
  flex-direction: column;
280
280
  padding-top: ${o.sp11};
281
- `,b=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,Yt=x.getLocalizedStrings().common.footer,ae=x.getLocalizedStrings().common.currency,oo=({vendorViewDetails:e,vendorId:n,screenType:s,analytics:l,filesEndPoint:m,authParams:p,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:j,isLocalCurrencyEnabled:u,onBackClick:$,onVendorSelected:h,navigateToBankDetailPage:C,updateSelectedVendorForCreate:k,onRemoveBankAccount:d,updateSaveFetchState:A,onSaveVendor:B,navigateToMailingAddressPage:V,saveVendorDetailLocalData:F,resetVendorDetailLocalData:O,saveContactsInVendorDetailLocalData:R,updateFilesEntity:E,onEditFileName:i,onFetchAndUpdateVendorRecommendations:ge})=>{const{accountList:{accounts:$e},classList:{classes:be},vendorTypeList:ye,ownerList:fe,editVendorState:X,newVendorState:q,fetchState:we,hasWireTransfer:G,hasInternationalWireTransfer:M,deleteFileStatusById:ve,updateFileStatusById:je,accountsHierarchyList:Ce,classHierarchyList:ke}=e,L=n!=null?X?.vendorDetailLocalData:q?.vendorDetailLocalData,c=Object.assign({},X??q),Se=He(),S=v(),[De,U]=g.useState(!1),[Ae,W]=g.useState(!1),Z=s==="create"?b.newVendorTitle:b.editVendor,Le=(c.bankAccountsUpdated??[]).map(a=>a.bankAccountId).sort(),Ne=(c.vendorBasic?.bankAccounts??[]).map(a=>a.bankAccountId).sort(),Ie=!_(Le,Ne),Te=(c.paymentInstrumentsUpdated??[]).map(a=>a.paymentInstrumentId).sort(),Pe=(c.vendorBasic?.paymentInstruments??[]).map(a=>a.paymentInstrumentId).sort(),ze=!_(Te,Pe),Be=(L?.contacts??[]).filter(a=>a.email!==""||a.fullName!==""||a.phone!=="").map(a=>_e(a,"contactInfoType")),Ve=c.vendorBasic?.contacts??[],Fe=!_(Be,Ve),Oe=c.bankAccountsUpdated.filter(a=>!!a.bankRoutingNumberAch),Re=c.bankAccountsUpdated.filter(a=>!!a.bankRoutingNumberWireTransfer),Ee=c.paymentInstrumentsUpdated.filter(a=>!!a.piNumber),ee=()=>{W(!0)},Me=a=>{U(a)},Ue={onOkClick:()=>{W(!1),U(!1),O?.(),$()},onCancelClick:()=>{W(!1),U(!1)}},Y=g.useRef(null),We=a=>{Y.current?.syncFormData(),V(a)},H=(a,Ye)=>{Y.current?.syncFormData(),C(a,Ye)};g.useEffect(()=>{c?.saveStatus?.fetchState==="Completed"&&(A(),$())},[c]);const te=g.useRef(null);return t.jsxs(Ot,{windowSize:S,children:[t.jsx(Qe,{"data-testid":y("vendor-detail-container-nav-bar"),title:Z,backgroundColor:Se.colors.grey4,leftSideComponent:t.jsx(Ut,{onClick:ee,"data-testid":y("create-edit-vendor-nav-bar-back")}),enableTitleOnScroll:!0,scrollableContent:te,source:"CreateOrEditVendorPage"}),t.jsxs(Rt,{windowSize:S,ref:te,children:[we==="In-Progress"?t.jsx(Et,{children:t.jsx(Je,{size:"ExtraLarge",start:!0})}):t.jsxs(t.Fragment,{children:[De===!0?t.jsx(ie,{titleComponent:t.jsx(le,{children:b.discardTitle}),descriptionComponent:t.jsx(se,{children:b.discardDescription}),primaryButtonText:b.discard,secondaryButtonText:b.cancel,action:Ue}):null,S!=="small"?t.jsx(Mt,{children:Z}):null,t.jsx(Ke,{ref:Y,id:ne(re),allAccounts:$e,allClasses:be,accountsHierarchyList:Ce,classHierarchyList:ke,vendorTypeList:ye,allOwners:fe,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:j,onVendorSelected:h,screenType:s,hasInternationalWireTransfer:M,selectedVendor:c,formLocalData:L,isBankAccountChanged:Ie,isContactListChanged:Fe,isPaymentInstrumentChanged:ze,analytics:l,pageBackBtnClicked:Ae,onBackClick:$,onSaveVendor:B,saveContactsInVendorDetailLocalData:R,updateSelectedVendorForCreate:k,saveVendorDetailLocalData:F,updateFilesEntity:E,toggleConfirmationPopup:Me,filesEndPoint:m,authParams:p,onEditFileName:i,deleteFileStatusById:ve,updateFileStatusById:je,onFetchAndUpdateVendorRecommendations:ge,isLocalCurrencyEnabled:u}),G||M?t.jsx(At,{addressState:c.vendorNewAddressStatus?.addressToCreate,onUpdateMailingAddress:We}):null,c.vendorDetailLocalData?.currencyCode==null||c.vendorDetailLocalData?.currencyCode===ae.currencyCode?t.jsx(J,{type:"ach",vendorAccountDetails:Oe,onAddNewAccountDetailClick:()=>H("ach","standard"),onRemoveBankAccount:d}):null,G&&(c.vendorDetailLocalData?.currencyCode==null||c.vendorDetailLocalData?.currencyCode===ae.currencyCode)?t.jsx(J,{type:"wire",subType:"us-domestic",vendorAccountDetails:Re,onAddNewAccountDetailClick:()=>H("wire","us-domestic"),onRemoveBankAccount:d}):null,M&&(L?.countryCode!=null&&L.countryCode!=="US"||u)?t.jsx(J,{type:"wire",subType:"international",vendorAccountDetailsInternational:Ee,isLocalCurrencyEnabled:u,onAddNewAccountDetailClick:()=>H("wire","international"),onRemoveBankAccount:d}):null]}),t.jsx(Wt,{})]}),t.jsx(Xe,{formId:ne(re),primaryBtn:{label:b.saveDetails,isLoading:c.saveStatus?.fetchState==="In-Progress",style:{width:P.buttonWidth.value(S)},isDisabled:!1},cancelBtn:{label:Yt.cancel,style:{width:P.buttonWidth.value(S)},shouldResetOnCancel:!1,onClick:ee}})]})};export{oo as default,ne as formUniqueName};
281
+ `,b=x.getLocalizedStrings().spendManagement.billPay.vendorCreation,Yt=x.getLocalizedStrings().common.footer,ae=x.getLocalizedStrings().common.currency,oo=({vendorViewDetails:e,vendorId:n,screenType:l,analytics:s,filesEndPoint:m,authParams:p,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:j,isLocalCurrencyEnabled:u,onBackClick:$,onVendorSelected:h,navigateToBankDetailPage:C,updateSelectedVendorForCreate:k,onRemoveBankAccount:d,updateSaveFetchState:A,onSaveVendor:B,navigateToMailingAddressPage:V,saveVendorDetailLocalData:F,resetVendorDetailLocalData:O,saveContactsInVendorDetailLocalData:R,updateFilesEntity:E,onEditFileName:i,onFetchAndUpdateVendorRecommendations:ge})=>{const{accountList:{accounts:$e},classList:{classes:be},vendorTypeList:ye,ownerList:fe,editVendorState:X,newVendorState:q,fetchState:we,hasWireTransfer:G,hasInternationalWireTransfer:M,deleteFileStatusById:ve,updateFileStatusById:je,accountsHierarchyList:Ce,classHierarchyList:ke}=e,L=n!=null?X?.vendorDetailLocalData:q?.vendorDetailLocalData,c=Object.assign({},X??q),Se=He(),S=v(),[De,U]=g.useState(!1),[Ae,W]=g.useState(!1),Z=l==="create"?b.newVendorTitle:b.editVendor,Le=(c.bankAccountsUpdated??[]).map(a=>a.bankAccountId).sort(),Ne=(c.vendorBasic?.bankAccounts??[]).map(a=>a.bankAccountId).sort(),Ie=!_(Le,Ne),Te=(c.paymentInstrumentsUpdated??[]).map(a=>a.paymentInstrumentId).sort(),Pe=(c.vendorBasic?.paymentInstruments??[]).map(a=>a.paymentInstrumentId).sort(),ze=!_(Te,Pe),Be=(L?.contacts??[]).filter(a=>a.email!==""||a.fullName!==""||a.phone!=="").map(a=>_e(a,"contactInfoType")),Ve=c.vendorBasic?.contacts??[],Fe=!_(Be,Ve),Oe=c.bankAccountsUpdated.filter(a=>!!a.bankRoutingNumberAch),Re=c.bankAccountsUpdated.filter(a=>!!a.bankRoutingNumberWireTransfer),Ee=c.paymentInstrumentsUpdated.filter(a=>!!a.piNumber),ee=()=>{W(!0)},Me=a=>{U(a)},Ue={onOkClick:()=>{W(!1),U(!1),O?.(),$()},onCancelClick:()=>{W(!1),U(!1)}},Y=g.useRef(null),We=a=>{Y.current?.syncFormData(),V(a)},H=(a,Ye)=>{Y.current?.syncFormData(),C(a,Ye)};g.useEffect(()=>{c?.saveStatus?.fetchState==="Completed"&&(A(),$())},[c]);const te=g.useRef(null);return t.jsxs(Ot,{windowSize:S,children:[t.jsx(Qe,{"data-testid":y("vendor-detail-container-nav-bar"),title:Z,backgroundColor:Se.colors.grey4,leftSideComponent:t.jsx(Ut,{onClick:ee,"data-testid":y("create-edit-vendor-nav-bar-back")}),enableTitleOnScroll:!0,scrollableContent:te,source:"CreateOrEditVendorPage"}),t.jsxs(Rt,{windowSize:S,ref:te,children:[we==="In-Progress"?t.jsx(Et,{children:t.jsx(Je,{size:"ExtraLarge",start:!0})}):t.jsxs(t.Fragment,{children:[De===!0?t.jsx(ie,{titleComponent:t.jsx(le,{children:b.discardTitle}),descriptionComponent:t.jsx(se,{children:b.discardDescription}),primaryButtonText:b.discard,secondaryButtonText:b.cancel,action:Ue}):null,S!=="small"?t.jsx(Mt,{children:Z}):null,t.jsx(Ke,{ref:Y,id:ne(re),allAccounts:$e,allClasses:be,accountsHierarchyList:Ce,classHierarchyList:ke,vendorTypeList:ye,allOwners:fe,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:j,onVendorSelected:h,screenType:l,hasInternationalWireTransfer:M,selectedVendor:c,formLocalData:L,isBankAccountChanged:Ie,isContactListChanged:Fe,isPaymentInstrumentChanged:ze,analytics:s,pageBackBtnClicked:Ae,onBackClick:$,onSaveVendor:B,saveContactsInVendorDetailLocalData:R,updateSelectedVendorForCreate:k,saveVendorDetailLocalData:F,updateFilesEntity:E,toggleConfirmationPopup:Me,filesEndPoint:m,authParams:p,onEditFileName:i,deleteFileStatusById:ve,updateFileStatusById:je,onFetchAndUpdateVendorRecommendations:ge,isLocalCurrencyEnabled:u}),G||M?t.jsx(At,{addressState:c.vendorNewAddressStatus?.addressToCreate,onUpdateMailingAddress:We}):null,c.vendorDetailLocalData?.currencyCode==null||c.vendorDetailLocalData?.currencyCode===ae.currencyCode?t.jsx(J,{type:"ach",vendorAccountDetails:Oe,onAddNewAccountDetailClick:()=>H("ach","standard"),onRemoveBankAccount:d}):null,G&&(c.vendorDetailLocalData?.currencyCode==null||c.vendorDetailLocalData?.currencyCode===ae.currencyCode)?t.jsx(J,{type:"wire",subType:"us-domestic",vendorAccountDetails:Re,onAddNewAccountDetailClick:()=>H("wire","us-domestic"),onRemoveBankAccount:d}):null,M&&(L?.countryCode!=null&&L.countryCode!=="US"||u)?t.jsx(J,{type:"wire",subType:"international",vendorAccountDetailsInternational:Ee,isLocalCurrencyEnabled:u,onAddNewAccountDetailClick:()=>H("wire","international"),onRemoveBankAccount:d}):null]}),t.jsx(Wt,{})]}),t.jsx(Xe,{formId:ne(re),primaryBtn:{label:b.saveDetails,isLoading:c.saveStatus?.fetchState==="In-Progress",style:{width:P.buttonWidth.value(S)},isDisabled:!1},cancelBtn:{label:Yt.cancel,style:{width:P.buttonWidth.value(S)},shouldResetOnCancel:!1,onClick:ee}})]})};export{oo as default,ne as formUniqueName};
@@ -1,4 +1,4 @@
1
- import{V as a,Q as me,a7 as pe,aK as ee,hl as Je,F as Y,aL as Pe,n as et,A as tt,aO as je,o as t,y as d,_ as ze,c as at,af as nt,d as Ee,bQ as ot,fc as Be,B as V,p as W,gk as Ce,b as it,ap as Me,E as rt,aN as be,a8 as lt,fv as ct,cB as st,ab as dt,d6 as mt,fz as pt,cG as ut,hy as xe,hz as ht,g7 as gt,u as r,b$ as yt,bZ as Oe,fk as ft,cf as Ct,ak as _e,hm as bt,fL as xt,aR as St,hA as wt,cY as Dt,ho as $t,fH as kt}from"./index-BfG2mP-a.js";import{n as o}from"./mui-bYXq4XMS.js";import{a as p}from"./core-3dlyNYRL.js";import{bO as se,bS as At,bj as Lt,bM as vt,bN as Se,bL as It}from"./zeni-epic-state-xFtF3OLs.js";import{x as Ft}from"./LabeledControlledCheckBoxField-DHrJB0QL-CxsfZCBN.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const te={largeLabelWidth:new d(120,120,160),navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(r[3],r[6],r[8]),containerPaddingRight:new d(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new d(r[5],r[8])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:Tt}},common:{edit:Rt,labels:we,currency:De,navBar:{back:Pt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:jt}},chargeCard:{payEarly:J}}}=Y.getLocalizedStrings(),zt=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:L,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=me(),R=Ee(),P=pe().analytics,[E,v]=p.useState(!1);p.useEffect(()=>{e.error!=null?v(!0):v(!1)},[e.error]);const k=te.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(Wt,{windowSize:m,children:[a.jsx(Jt,{windowSize:m,children:a.jsx(ot,{title:Pt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Ht,{"data-testid":ee("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)}})})}),a.jsx(ea,{windowSize:m,children:jt.reviewAndConfirm}),a.jsx(Bt,{children:a.jsx(Be,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),E?a.jsx(Yt,{children:a.jsxs(_t,{children:[a.jsxs(Kt,{children:[a.jsx(Gt,{}),a.jsxs(Nt,{children:[a.jsx(Ut,{children:e.error?.title}),a.jsx(Vt,{children:e.error?.message})]})]}),a.jsx(Xt,{children:a.jsx(Qt,{"data-testid":ee("close-error-credit-card-payment-review"),onClick:()=>{v(!1)},style:{width:t.sp3,height:t.sp3,color:W.heroLight}})})]})}):null,a.jsx(qt,{windowSize:m,children:a.jsxs(Ot,{children:[a.jsx(Ce,{label:{label:we.transferFrom,width:k},text:a.jsxs($e,{windowSize:m,children:[Ne(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Mt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Zt,{}),a.jsx(Ce,{label:{label:we.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?J.creditLimitReset:J.creditLimitUpdate} ${se(At(Lt().toDate(),[0,6],3).toDateString()).format(Tt)} ${J.business23Days}`,additionalInfoLabelStyles:{color:R.colors.hero,...it.smallRegular.cssObject},text:a.jsx($e,{windowSize:m,children:Pe("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:De.currencyCode,currencySymbol:De.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(je,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:J.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:Rt,onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:J.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},Ne=(e,i,h)=>{if(i==="")return a.jsx(ra,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(oa,{isOptionSelected:h,children:a.jsx(ia,{color:bt(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(ta,{src:Et(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(aa,{isOptionSelected:h,children:a.jsx(na,{})})}return null},Et=e=>e.base64!==void 0?`${xt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Bt=o(Oe)`
1
+ import{V as a,Q as me,a7 as pe,aK as ee,hl as Je,F as Y,aL as Pe,n as et,A as tt,aO as je,o as t,y as d,_ as ze,c as at,af as nt,d as Ee,bQ as ot,fc as Be,B as V,p as W,gk as Ce,b as it,ap as Me,E as rt,aN as be,a8 as lt,fv as ct,cB as st,ab as dt,d6 as mt,fz as pt,cG as ut,hy as xe,hz as ht,g7 as gt,u as r,b$ as yt,bZ as Oe,fk as ft,cf as Ct,ak as _e,hm as bt,fL as xt,aR as St,hA as wt,cY as Dt,ho as $t,fH as kt}from"./index-Dp0ze4-l.js";import{n as o}from"./mui-bYXq4XMS.js";import{a as p}from"./core-3dlyNYRL.js";import{bO as se,bS as At,bj as Lt,bM as vt,bN as Se,bL as It}from"./zeni-epic-state-xFtF3OLs.js";import{x as Ft}from"./LabeledControlledCheckBoxField-B6ndrF2e-C6dGs2IG.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const te={largeLabelWidth:new d(120,120,160),navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(r[3],r[6],r[8]),containerPaddingRight:new d(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new d(r[5],r[8])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:Tt}},common:{edit:Rt,labels:we,currency:De,navBar:{back:Pt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:jt}},chargeCard:{payEarly:J}}}=Y.getLocalizedStrings(),zt=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:L,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=me(),R=Ee(),P=pe().analytics,[E,v]=p.useState(!1);p.useEffect(()=>{e.error!=null?v(!0):v(!1)},[e.error]);const k=te.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(Wt,{windowSize:m,children:[a.jsx(Jt,{windowSize:m,children:a.jsx(ot,{title:Pt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Ht,{"data-testid":ee("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)}})})}),a.jsx(ea,{windowSize:m,children:jt.reviewAndConfirm}),a.jsx(Bt,{children:a.jsx(Be,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),E?a.jsx(Yt,{children:a.jsxs(_t,{children:[a.jsxs(Kt,{children:[a.jsx(Gt,{}),a.jsxs(Nt,{children:[a.jsx(Ut,{children:e.error?.title}),a.jsx(Vt,{children:e.error?.message})]})]}),a.jsx(Xt,{children:a.jsx(Qt,{"data-testid":ee("close-error-credit-card-payment-review"),onClick:()=>{v(!1)},style:{width:t.sp3,height:t.sp3,color:W.heroLight}})})]})}):null,a.jsx(qt,{windowSize:m,children:a.jsxs(Ot,{children:[a.jsx(Ce,{label:{label:we.transferFrom,width:k},text:a.jsxs($e,{windowSize:m,children:[Ne(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Mt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Zt,{}),a.jsx(Ce,{label:{label:we.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?J.creditLimitReset:J.creditLimitUpdate} ${se(At(Lt().toDate(),[0,6],3).toDateString()).format(Tt)} ${J.business23Days}`,additionalInfoLabelStyles:{color:R.colors.hero,...it.smallRegular.cssObject},text:a.jsx($e,{windowSize:m,children:Pe("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:De.currencyCode,currencySymbol:De.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(je,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:J.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:Rt,onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:J.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},Ne=(e,i,h)=>{if(i==="")return a.jsx(ra,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(oa,{isOptionSelected:h,children:a.jsx(ia,{color:bt(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(ta,{src:Et(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(aa,{isOptionSelected:h,children:a.jsx(na,{})})}return null},Et=e=>e.base64!==void 0?`${xt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Bt=o(Oe)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  padding-top: ${t.sp3};
4
4
  `,Mt=o.div`
@@ -1,4 +1,4 @@
1
- import{cO as M,d as N,cW as P,F as _,V as l,cX as H,aK as x,bF as L,o,dm as z,cq as B,bG as g,ak as X,b as S,eY as G,eZ as W,e_ as Y,ag as Z,bE as q,_ as K,p as m}from"./index-BfG2mP-a.js";import{a as w}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";const $e=({name:e,registerOptions:t,defaultValue:r,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=M(),b=N(),[j,k]=w.useState(!1),C=P(f,e??""),D=_.getLocalizedStrings().common.currency,V=s=>{if(!(s==null||!s))return{value:s,label:r.allOptions.find(h=>h.value===s)?.label??s,countryCode:r.allOptions.find(h=>h.value===s)?.countryCode??D.countryCode}},I={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:C,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(H,{name:e,control:y,defaultValue:r,rules:t,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const v=R;return w.createElement(L,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:V(v.selectedOption),options:r.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.selectedOption===$.value?s({selectedOption:void 0,allOptions:r.allOptions}):s({selectedOption:$?.value,allOptions:r.allOptions})},onMenuClose:()=>k(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:Q,Option:U,Input:T,SingleValue:ee,ValueContainer:J,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:A},hideSelectedOptions:!1,styles:I,isDisabled:a!=null})}})},Q=e=>{const{menuIsOpen:t,isFocused:r,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(re,{controlStyle:u,menuIsOpen:t,isFocused:r,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},U=e=>{const{data:t,isSelected:r,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=t.countryCode,p=typeof t.label=="string"?t.label:t.value;return l.jsx(te,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:r,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:r,children:l.jsx(ne,{isSelected:r,isDisabled:a,children:t.label})}),r?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},A=e=>{const{options:t,children:r,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=t.indexOf(u)*i;return l.jsx(B,{height:r.length>7?a:r.length*i,width:"100%",itemCount:r.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:r[y]})})},J=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),T=e=>{const{selectProps:t}=e,{placeholder:r,value:a}=t;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?r:void 0,children:e.children})})},ee=e=>{const{data:t}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:t.label})})},O=n(X)`
1
+ import{cO as M,d as N,cW as P,F as _,V as l,cX as H,aK as x,bF as L,o,dm as z,cq as B,bG as g,ak as X,b as S,eY as G,eZ as W,e_ as Y,ag as Z,bE as q,_ as K,p as m}from"./index-Dp0ze4-l.js";import{a as w}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";const $e=({name:e,registerOptions:t,defaultValue:r,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=M(),b=N(),[j,k]=w.useState(!1),C=P(f,e??""),D=_.getLocalizedStrings().common.currency,V=s=>{if(!(s==null||!s))return{value:s,label:r.allOptions.find(h=>h.value===s)?.label??s,countryCode:r.allOptions.find(h=>h.value===s)?.countryCode??D.countryCode}},I={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:C,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(H,{name:e,control:y,defaultValue:r,rules:t,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const v=R;return w.createElement(L,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:V(v.selectedOption),options:r.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.selectedOption===$.value?s({selectedOption:void 0,allOptions:r.allOptions}):s({selectedOption:$?.value,allOptions:r.allOptions})},onMenuClose:()=>k(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:Q,Option:U,Input:T,SingleValue:ee,ValueContainer:J,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:A},hideSelectedOptions:!1,styles:I,isDisabled:a!=null})}})},Q=e=>{const{menuIsOpen:t,isFocused:r,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(re,{controlStyle:u,menuIsOpen:t,isFocused:r,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},U=e=>{const{data:t,isSelected:r,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=t.countryCode,p=typeof t.label=="string"?t.label:t.value;return l.jsx(te,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:r,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:r,children:l.jsx(ne,{isSelected:r,isDisabled:a,children:t.label})}),r?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},A=e=>{const{options:t,children:r,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=t.indexOf(u)*i;return l.jsx(B,{height:r.length>7?a:r.length*i,width:"100%",itemCount:r.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:r[y]})})},J=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),T=e=>{const{selectProps:t}=e,{placeholder:r,value:a}=t;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?r:void 0,children:e.children})})},ee=e=>{const{data:t}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:t.label})})},O=n(X)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  `,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&G(e)===!1)return l.jsx(l.Fragment,{});{const t=W[`${Y(e??"")}`];return l.jsx(ie,{children:l.jsx(t,{width:o.sp4,height:o.sp3})})}},re=n.span`
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{V as t,Q as b,F as d,aN as l,aK as p,A as x,o as i,ae as g,E as h,c as m}from"./index-BfG2mP-a.js";import{a as u}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const f=o.div`
1
+ import{V as t,Q as b,F as d,aN as l,aK as p,A as x,o as i,ae as g,E as h,c as m}from"./index-Dp0ze4-l.js";import{a as u}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const f=o.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -0,0 +1 @@
1
+ import{V as t}from"./index-Dp0ze4-l.js";import o from"./CustomerOnboardingNoStepsPage-BsKoqUta-CA8kKRAS.js";import i from"./CustomerOnboardingPage-DUMQKVfM-Dsr4EUaG.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./PaymentAccountSetupBillingAddressSection-pL7omrJk-CMauXbLg.js";import"./SetUpAccountSection-DrMCC1IY-ByWeTp_x.js";import"./CustomerOnboardingDetailPageSkeleton-BgY95XeU-lrHBjHff.js";import"./CompanyOfficerDetailsSection-CNxtAkKM-DIFNT_MT.js";import"./LabeledAddressValueField-DzmwP7hP-K6Pp0Tsb.js";import"./LabeledCreatableSingleSelectField-CfzLlkho-D-9BqrF0.js";import"./LabeledDocumentField-p3pI5qLu-BDt_q3n9.js";import"./QBOSetupSection-DWhfA4Xv-BucVH3Ow.js";import"./QBOConnectionDialog-D7MeKn1t-BAS1asBL.js";const k=r=>r.currentTenant?.productSettings.isOtherProductsEnabled===!0?t.jsx(o,{...r}):t.jsx(i,{...r});export{k as default};
@@ -1,4 +1,4 @@
1
- import{V as s,aK as y,bl as E,d as f,Q as T,bM as x,o as t,u as R,y as $,ae as I,F as N,p as u,U,hG as P,fK as L,as as W,al as F,hH as O}from"./index-BfG2mP-a.js";import{n as r}from"./mui-bYXq4XMS.js";import{w as S}from"./core-3dlyNYRL.js";const V=r(O)`
1
+ import{V as s,aK as y,bl as E,d as f,Q as T,bM as x,o as t,u as R,y as $,ae as I,F as N,p as u,U,hG as P,fK as L,as as W,al as F,hH as O}from"./index-Dp0ze4-l.js";import{n as r}from"./mui-bYXq4XMS.js";import{w as S}from"./core-3dlyNYRL.js";const V=r(O)`
2
2
  /* Size is controlled by styles.root prop */
3
3
  `,K=r.div`
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{a7 as se,V as o,fs as Ce,Q as Pe,d as be,a8 as we,hE as xe,F as ke,aN as Ie,cB as Ae,bz as $e,o as i,aK as Oe,ab as Ve,aO as ve,bl as je,d3 as Te,d4 as oe,ae as ze,y as Q,ak as Le,u as A}from"./index-BfG2mP-a.js";import{n as c}from"./mui-bYXq4XMS.js";import{a as $}from"./core-3dlyNYRL.js";import{s as Ue,o as Be}from"./PaymentAccountSetupBillingAddressSection-DFeVoMTQ-DKvzQ7gH.js";import{f as Ee}from"./CustomerOnboardingDetailPageSkeleton-XJtMtsSn-MI1EO6Tk.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./SetUpAccountSection-BKOCyUH3-5E3X8B1z.js";const X="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",J={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`,Fe=ke.getLocalizedStrings(),De=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:V,googleAPIKey:v,signedInUser:P,currentTenant:j,onUpdateStep:T,handleCreateCardSetupIntent:z,handleConfirmCardSetupIntent:L,updateCardPaymentModalState:b,handleAddCardPaymentSource:U,resetCardPaymentViewState:B,handleResetCardPaymentErrorStatuses:E,redirectToProductSuitePage:w,onUpdateCustomerView:_,...F})=>{const u=Pe(),D=se(),{analytics:h}=D,{onFetchLinkTokenClick:K,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:N,onEstablishConnectionClick:S,onEstablishConnectionSuccess:R,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=F,Z=be(),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:q,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=Fe,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=Ie(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const s=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=Te(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};$.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ae(()=>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(q).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(X);t&&a&&(ye(),T("link_payment_account"),_(me,!1,!0))};$.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(O(e),{keepDirtyValues:!1}),w())},[r,e,I,p.fetchState,Y,w]);const[ae,fe]=$.useState(!1);return o.jsxs(Ke,{children:[o.jsxs(Me,{windowSize:u,children:[o.jsx($e,{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":Oe("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx(Ve,{...r,children:o.jsx(Re,{id:_e(ie),children:o.jsxs(Ne,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(Ue,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:q,subscriptionBillingAddressSectionId:n,sectionId:X,analytics:h,isValid:ne(),onFetchLinkTokenClick:K,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:N,onEstablishConnectionSuccess:R,updateCardPaymentModalState:b,cardPaymentView:y,resetCardPaymentViewState:B,cardSetupInProgress:ae,googleAPIKey:v,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(ve,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:j,onLogOutClick:G})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Be,{handleConfirmCardSetupIntent:L,updateCardPaymentModalState:b,handleCreateCardSetupIntent:z,handleAddCardPaymentSource:U,cardPaymentView:y,stripeKey:V,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:E,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},Ke=c.div`
1
+ import{a7 as se,V as o,fs as Ce,Q as Pe,d as be,a8 as we,hE as xe,F as ke,aN as Ie,cB as Ae,bz as $e,o as i,aK as Oe,ab as Ve,aO as ve,bl as je,d3 as Te,d4 as oe,ae as ze,y as Q,ak as Le,u as A}from"./index-Dp0ze4-l.js";import{n as c}from"./mui-bYXq4XMS.js";import{a as $}from"./core-3dlyNYRL.js";import{s as Ue,o as Be}from"./PaymentAccountSetupBillingAddressSection-pL7omrJk-CMauXbLg.js";import{f as Ee}from"./CustomerOnboardingDetailPageSkeleton-BgY95XeU-lrHBjHff.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./SetUpAccountSection-DrMCC1IY-ByWeTp_x.js";const X="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",J={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`,Fe=ke.getLocalizedStrings(),De=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:V,googleAPIKey:v,signedInUser:P,currentTenant:j,onUpdateStep:T,handleCreateCardSetupIntent:z,handleConfirmCardSetupIntent:L,updateCardPaymentModalState:b,handleAddCardPaymentSource:U,resetCardPaymentViewState:B,handleResetCardPaymentErrorStatuses:E,redirectToProductSuitePage:w,onUpdateCustomerView:_,...F})=>{const u=Pe(),D=se(),{analytics:h}=D,{onFetchLinkTokenClick:K,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:N,onEstablishConnectionClick:S,onEstablishConnectionSuccess:R,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=F,Z=be(),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:q,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=Fe,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=Ie(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const s=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=Te(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};$.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ae(()=>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(q).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(X);t&&a&&(ye(),T("link_payment_account"),_(me,!1,!0))};$.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(O(e),{keepDirtyValues:!1}),w())},[r,e,I,p.fetchState,Y,w]);const[ae,fe]=$.useState(!1);return o.jsxs(Ke,{children:[o.jsxs(Me,{windowSize:u,children:[o.jsx($e,{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":Oe("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx(Ve,{...r,children:o.jsx(Re,{id:_e(ie),children:o.jsxs(Ne,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(Ue,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:q,subscriptionBillingAddressSectionId:n,sectionId:X,analytics:h,isValid:ne(),onFetchLinkTokenClick:K,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:N,onEstablishConnectionSuccess:R,updateCardPaymentModalState:b,cardPaymentView:y,resetCardPaymentViewState:B,cardSetupInProgress:ae,googleAPIKey:v,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(ve,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:j,onLogOutClick:G})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Be,{handleConfirmCardSetupIntent:L,updateCardPaymentModalState:b,handleCreateCardSetupIntent:z,handleAddCardPaymentSource:U,cardPaymentView:y,stripeKey:V,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:E,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},Ke=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -0,0 +1,107 @@
1
+ import{V as r,fs as Zt,Q as Ke,d as en,a8 as tn,cB as me,F as We,aN as Qe,x as mt,aA as He,bz as nn,o as re,ab as an,u as K,aO as on,hE as sn,g6 as rn,ft,d3 as Ot,d4 as yt,y as fe,g9 as ye,cO as cn,ak as ln,hF as gt,ac as ht,cM as dn,g8 as pn}from"./index-Dp0ze4-l.js";import{a as p}from"./core-3dlyNYRL.js";import{n as P,k as xt}from"./mui-bYXq4XMS.js";import{bi as M}from"./zeni-epic-state-xFtF3OLs.js";import{s as St,o as un}from"./PaymentAccountSetupBillingAddressSection-pL7omrJk-CMauXbLg.js";import{b as Ct,f as mn,a as bt}from"./CustomerOnboardingDetailPageSkeleton-BgY95XeU-lrHBjHff.js";import{s as fn,S as yn}from"./CompanyOfficerDetailsSection-CNxtAkKM-DIFNT_MT.js";import{t as gn}from"./QBOSetupSection-DWhfA4Xv-BucVH3Ow.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./SetUpAccountSection-DrMCC1IY-ByWeTp_x.js";import"./LabeledAddressValueField-DzmwP7hP-K6Pp0Tsb.js";import"./LabeledCreatableSingleSelectField-CfzLlkho-D-9BqrF0.js";import"./LabeledDocumentField-p3pI5qLu-BDt_q3n9.js";import"./QBOConnectionDialog-D7MeKn1t-BAS1asBL.js";const hn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:v,verifiedPhoneNumber:O,onPhoneVerified:y,...x})=>{const m=Ke(),A=t?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:D}=l,T=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(Sn,{children:r.jsx(yn,{companyOfficerData:w,allOfficers:A??[],allNationalityCountries:c,sectionHeader:D,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:T,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:O,onPhoneVerified:y,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...x})})},Sn=P.div`
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ `,Cn=({fileProps:t,companyDetails:w,companyIndustries:c,sectionId:f,isCompleted:v,isDisabled:O,style:y,onCompanyAddressClick:x,onRegisteredAddressClick:m})=>{const A=Ke(),{company_details:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:D}=l;return r.jsx(bn,{children:r.jsx(fn,{fileProps:t,companyDetails:w,sectionId:f,isDisabled:O,style:y,sectionHeader:D,productType:"onboarding",showInfoTooltip:A!=="small",showCompletedIcon:A==="small",isCompleted:v,allIndustries:c,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:x,onRegisteredAddressClick:m})})},bn=P.div`
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ `,Pn=P.div`
10
+ display: flex;
11
+ `,On=P.input`
12
+ display: none;
13
+ `,xn=({isValid:t,sectionId:w="onboardingQboConnection",...c})=>{const{register:f}=cn();return r.jsxs(Pn,{children:[r.jsx(On,{type:"hidden",...f(`${w}.connected`,{validate:v=>v==="true"}),value:t?"true":"false"}),r.jsx(gn,{isValid:t,...c})]})},j="companyDetails",C="companyOfficer",Z="onboardingPaymentAccountSetupSection",Pt="customerOnboardingDetailPage",u="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(K[5],K[9],112),subTitlePaddingTop:new fe(K[3],K[3]),subTitlePaddingBottom:new fe(K[3],K[3])},In=t=>`${t}_form`,ce=We.getLocalizedStrings(),kn=({fileProps:t,isRefreshingViewInBackground:w,isAdmin:c,onboardingCustomerView:f,companyTitles:v,connectedAccountProvider:O,analytics:y,cardPaymentView:x,stripeKey:m,googleAPIKey:A,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:D,updateCardPaymentModalState:T,handleAddCardPaymentSource:b,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:we,redirectToProductSuitePage:Se,onFormErrorsChange:$,...ve})=>{const L=Ke(),Ve=p.useRef(null),Ae=p.useRef(null),W=p.useRef(null),De=p.useRef(null),[Ce,B]=p.useState(!1),[R,z]=p.useState("next"),[F,be]=p.useState(!1),[le,Pe]=p.useState(!1),[te,Y]=p.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:Oe,onCompanyOfficerUpdated:N,onFetchLinkTokenClick:xe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:V,onEditFileName:Ye,updateFilesEntity:Ge,onGetOtp:It,onSkipSetupClick:Ne,onUpdateCustomerView:$e,updateStepHandler:U,onVerifyOtp:kt,onResendOtp:wt,handleOnConnectClick:vt,updateQBOPopupState:Vt,onUpdateStep:Te,onAddressEditHandler:At}=ve,Dt=en(),i=tn({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Me(f,f.allNationalityCountries),values:Me(f,f.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),q=p.useCallback(()=>{const e=[];return(i.getFieldState(Z).error!=null||i.getFieldState(u).error!=null)&&e.push("link_payment_account"),i.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[i]);p.useEffect(()=>{const e=q();$?.(e)},[q,$]),p.useEffect(()=>{const e=i.watch((n,{name:o,type:s})=>{o!=null&&(s==="change"||s==="blur")&&me(()=>{const d=q();$?.(d)})});return()=>e.unsubscribe()},[i,q,$]);const Xe=e=>{Je(e)},Ie=p.useRef(""),Nt=e=>{Ie.current=e;const n=Object.values(f.companyOfficerLocalData).findIndex(s=>s?.isSelectedForVerification===!0)??0,o=n<0?0:n;i.clearErrors(`${C}.${o}.phone`)},Je=e=>{e!=null&&!ye(e)?i.trigger(`${C}.${X}.phone`):It(e)},{companyView:ie,companyDetailsLocalData:g,companyOfficerLocalData:Q,currentStep:a,completedSteps:Ze,saveStatus:I,allSteps:h,allRequiredStepsCompleted:Fe,paymentAccount:H,paymentAccountStatus:et,externalConnections:_e,plaidConnectionDetails:Ee,uiState:je,allNationalityCountries:Le,pendingSaveDetails:{companyDetails:$t,officer:Tt},subscriptionBillingAddress:G}=f,X=Object.values(Q).findIndex(e=>e?.isSelectedForVerification===!0)??0,_=`Officer_${X<0?1:X+1}`,Ft=ie?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Be=Q[_]?.userId!=null?Ft?.find(e=>e.user.userId===Q[_]?.userId)?.address:null,tt=Q[_]?.addressStatus?.addressToCreate,ke=ie?.companyAddress,nt=g?.addressStatus?.addressToCreate,Re=ie?.registeredAddress,at=g?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:_t,common:S}=ce,{footer:Et,steps:jt}=_t,{buttons:ot}=Et,it=jt[a],ze=h.length,se=Qe(I.fetchState),E=Qe(a);function Lt(){return _e?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Ee).some(d=>d.fetchStatus.fetchState==="Completed"),n=H?.providerVerificationStatus?.code?.includes("verified")??!1,o=x.cardsList.length>0,s=x.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&n||!n&&!H&&o||!o&&!H&&s};function st(){if(i.getFieldState(u).error)return!1;const e=i.getValues(u),n=G?.street.join("").trim(),o=G?.city,s=G?.state,d=G?.country,k=G?.postalCode!=null&&G.postalCode||e.postalCode||S.strings.empty;return!!n&&!!o&&!!s&&!!d&&!!k}const rt=Qe(H?.providerVerificationStatus?.code);p.useEffect(()=>{rt==="pending_manual_verification"&&H?.providerVerificationStatus?.code==="manually_verified"&&y.trackOnboardingBankAccountVerified("manual")},[y,H?.providerVerificationStatus?.code,rt]);const Bt=async(e,n)=>{if(e.includes(j))Oe?.(n[j]);else if(e.includes(C))N?.(n[C]);else if(e.includes(u)&&n[u]!=null){const o=i.getValues(`${u}`).country;let s=n[u];if(e.includes(`${u}.street`)&&n[u].street!=null){const{addressValue:d}=n[u].street,k=Ot(d?.country);s={street:n[u].street??S.strings.empty,city:d?.locality??S.strings.empty,state:d?.administrativeAreaLevel1??S.strings.empty,country:k,countryCode:d?.countryCode??S.strings.empty,postalCode:d?.postalCode??S.strings.empty,secondaryInfo:n[u].secondaryInfo,suite:n[u].suite},o.selectedOption!==k.selectedOption&&(s={...s,country:k})}else e===`${u}.country`&&o.selectedOption!=null?s={...s,countryCode:yt(o.selectedOption)}:o.selectedOption!=null&&e.includes(`${u}.street`)===!1&&(s={...s,countryCode:yt(o.selectedOption)});At(s)}};p.useEffect(()=>{const e=i.watch((n,{name:o})=>{o!=null&&n!=null&&me(()=>Bt(o,n))});return()=>{e.unsubscribe()}}),p.useEffect(()=>{se==="In-Progress"&&I.fetchState==="Completed"&&(i.reset(Me(f,Le),{keepDirtyValues:!1}),E==="company_details"&&a==="link_payment_account"&&!h.includes("qbo_connection")&&!f.qboConnected&&Se())},[i,f,se,I.fetchState,Le,E,a,h,Se]),p.useEffect(()=>{Ce&&se==="In-Progress"&&I.fetchState==="Completed"&&(Ne(),y.track(mt.Event.onboardingSkipAndSave))},[se,Ce,I.fetchState,Ne]),p.useEffect(()=>{te?.shouldNavigate===!0&&se==="In-Progress"&&I.fetchState==="Completed"&&(U(te.fromStep,te.stepDirection,!0),Y(null))},[te,se,I.fetchState,U]),p.useLayoutEffect(()=>{E!=null&&E!==a&&(h.indexOf(E)===h.indexOf(a)-1||h.indexOf(E)===ze-1&&h.indexOf(a)===0?R!=="next"&&z("next"):(h.indexOf(E)-1===h.indexOf(a)||h.indexOf(E)===0&&h.indexOf(a)===ze-1)&&R!=="previous"&&z("previous"))},[h,a,E,R,ze]);const ct=()=>{const e=Q[_];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},Rt=!He(tt!=null?M(tt):null,Be!=null?M(Be):null),zt=!He(nt!=null?M(nt):null,ke!=null?M(ke):null),Ut=!He(at!=null?M(at):null,Re!=null?M(Re):null),qt=i.getFieldState(j).isDirty||zt||Ut||$t,Ue=i.getFieldState(C).isDirty&&ct()||Rt||Tt,lt=i.getFieldState(`${u}`).isDirty,Qt=g?.primaryContactLocalData,Ht=()=>{U(a,"previous",!0)},Mt=()=>{const e=i.getValues(u),n={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??S.strings.empty,secondaryInfo:e.secondaryInfo};y.trackOnboardingBillingAddressSave(n)},Kt=()=>{switch(Pe(!1),a){case"link_payment_account":lt?setTimeout(()=>{const e=q();$?.(e),st()&&lt?(Mt(),$e(_,!1,!0),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):U(a,"next",!0)},200):U(a,"next",!0);break;case"qbo_connection":U(a,"next",!0);break;case"company_officer":if(Ue){const e=dt();if(me(()=>{const n=q();$?.(n)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const n=i.formState.errors[C]?.[X<0?0:X],o=n?.phone,s=n!=null&&Object.keys(n).some(d=>d!=="phone"&&n[d]!=null);if(o!=null&&!s){Xe(e.phoneNumber);return}}e.isValid&&($e(_,!1,!1),y.trackOnboardingCompanyOfficerSave(pt(),{legalName:g?.companyLegalName}),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"}))}else U(a,"next",!0);break;case"company_details":Pe(!0);{const e=!(st()&&ue()),n=!Lt()&&h.includes("qbo_connection");if(e||n){e&&(i.trigger(`${Z}`),i.trigger(`${u}`)),n&&i.trigger(ge),me(()=>{const o=q();$?.(o)}),e?Te("link_payment_account"):n&&Te("qbo_connection");return}}if(qt||Ue||!Qt?.email){const e=Yt(),n=Ue?dt():{isValid:!0};me(()=>{const o=q();$?.(o)}),e&&n.isValid?(Fe&&(B(!0),Gt()),$e(_,!Fe,!1),Y({fromStep:a,shouldNavigate:!0,stepDirection:"next"})):n.isValid||Te("company_officer")}else Fe?Wt():U(a,"next",!0);break}},Wt=()=>{I.fetchState!=="In-Progress"&&(Ne(),y.track(mt.Event.onboardingSkipAndSave))},dt=()=>{const e=Q[_],n=e?.email??S.strings.empty,o=e?.phone??S.strings.empty,s=e?.ssn??S.strings.empty,d=e?.ownershipInCompany,k=X<0?0:X,Jt=!!e?.firstName&&!!e?.lastName;let J=!0,ut=!1;return n&&!Jt&&(i.trigger([`${C}.${k}.name.firstName`,`${C}.${k}.name.lastName`],{shouldFocus:a==="company_officer"}),J=!1),(!n&&ct()||ht.test(n)===!1)&&(i.trigger(`${C}.${k}.email`,{shouldFocus:a==="company_officer"}),J=!1),o&&ye(o)===!1&&(i.trigger(`${C}.${k}.phone`,{shouldFocus:a==="company_officer"}),J=!1),o&&ye(o)===!0&&O==="unit"&&(Ie.current!==""&&o===Ie.current||(ut=!0,i.setError(`${C}.${k}.phone`,{type:"custom",message:ce.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:a==="company_officer"}),J=!1)),d!=null&&d>100&&(i.trigger(`${C}.${k}.ownership`,{shouldFocus:a==="company_officer"}),J=!1),s&&pn.test(s)===!1&&(i.trigger(`${C}.${k}.ssn`,{shouldFocus:a==="company_officer"}),J=!1),{isValid:J,needsOtp:ut,phoneNumber:o}},Yt=()=>{const e=g?.website?.toString()??S.strings.empty,n=g?.phone??S.strings.empty,o=g?.taxIdOrEIN??S.strings.empty,s=g?.primaryContactLocalData?.email??S.strings.empty;let d=!0;return e&&gt.test(e)===!1&&(i.trigger(`${j}.companyWebsite`,{shouldFocus:a==="company_details"}),d=!1),gt.lastIndex=0,n&&ye(n)===!1&&(i.trigger(`${j}.companyPhone`,{shouldFocus:a==="company_details"}),d=!1),(!s||ht.test(s)===!1)&&(i.trigger(`${j}.primaryContactEmail`,{shouldFocus:a==="company_details"}),d=!1),o&&dn.test(o)===!1&&(i.trigger(`${j}.companyTaxId`,{shouldFocus:a==="company_details"}),d=!1),d},pt=()=>{const e=Q[_];return{email:e?.email??S.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?M(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Gt=()=>{const e=g?.primaryContactLocalData;y.trackBusinessVerificationSave(pt(),{companyDescription:g?.companyDescription,legalName:g?.companyLegalName,phone:g?.phone,website:g?.website?.toString(),industry:g?.companyIndustry??S.strings.empty,formattedAddress:g?.addressStatus?.addressToCreate!=null?M(g?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[qe,Xt]=p.useState(!1);return r.jsxs(Vn,{children:[r.jsxs(An,{windowSize:L,children:[h.indexOf(a)>=0?r.jsx(nn,{title:it.sectionTitle,showBackButton:!1,backgroundColor:Dt.colors.grey4,style:{zIndex:4},showLeftSection:L!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):r.jsx(Dn,{windowSize:L,children:r.jsx($n,{windowSize:L,children:r.jsx(Nn,{})})}),r.jsx(an,{...i,children:r.jsx(Fn,{id:In(Pt),children:h.map(e=>{let n;n=r.jsx(St,{connectedAccountProvider:O,paymentAccount:H,accountStatus:et,plaidConnectionDetails:Ee,sectionId:Z,hasError:i.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:xe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:x,resetCardPaymentViewState:ee,updateCardPaymentModalState:T,cardSetupInProgress:qe,subscriptionBillingAddressSectionId:u});let o=Ve;switch(e){case"link_payment_account":n=r.jsx(St,{connectedAccountProvider:O,paymentAccount:H,accountStatus:et,plaidConnectionDetails:Ee,subscriptionBillingAddressSectionId:u,sectionId:Z,hasError:i.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:y,onFetchLinkTokenClick:xe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:T,cardPaymentView:x,resetCardPaymentViewState:ee,cardSetupInProgress:qe,googleAPIKey:A,subscriptionBillingAddress:G});break;case"qbo_connection":n=r.jsx(xn,{sectionId:ge,hasError:i.getFieldState(ge).error!=null,isAdmin:c,isValid:_e?.accounting[0]?.isValid??!1,companyName:ie?.company.company.companyInfo.companyLegalName,saveConnectionState:_e?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:vt,updateQBOPopupState:Vt}),o=Ae;break;case"company_officer":n=r.jsx(hn,{companyOfficerLocalData:Q,allNationalityCountries:Le,isCompleted:Ze.includes("company_officer"),companyView:ie,sectionId:C,filesEndPoint:t.filesEndPoint,authParams:t.authParams,isRefreshingViewInBackground:w,companyTitles:v,isVerificationPopupOpen:F,setIsVerificationPopupOpen:be,onGetOtp:Xe,onVerifyOtp:kt,onResendOtp:wt,onOfficerAddressClick:s=>ne(s,Be?.addressId),updateFilesEntity:Ge,onEditFileName:Ye,onDeleteFile:V,verifiedPhoneNumber:Ie.current,onPhoneVerified:Nt,isDisabled:I.fetchState==="In-Progress"?"readonly":void 0,triggerError:Je}),o=De;break;case"company_details":n=r.jsx(Cn,{fileProps:{...t,onEditFileName:Ye,onDeleteFile:V,updateFilesEntity:Ge},sectionId:j,companyIndustries:f.companyIndustries,companyDetails:g,isDisabled:I.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ze.includes("company_details"),onCompanyAddressClick:s=>{const d=ie?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;ke?.addressId==null&&d!=null?ne(s,d):ne(s,ke?.addressId)},onRegisteredAddressClick:s=>ne(s,Re?.addressId)}),o=W;break}return r.jsxs(Tn,{ref:o,isVisible:a===e,includeAnimation:a==="link_payment_account"||a==="qbo_connection"?!je.isQBOPopupOpen:a==="company_officer"?!F:!0,paddingBottom:e==="company_details"||e==="company_officer"?K[6]:K[0],stepAnimationDirection:R,children:[h.indexOf(a)>=0?r.jsx(_n,{windowSize:L,children:it.sectionSubTitle}):null,n]},e)})})}),r.jsx(on,{formId:`${Pt}`,style:{width:L==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Kt,label:a==="company_details"?S.footer.submit:ot.next,isLoading:I.fetchState==="In-Progress",isDisabled:I.fetchState==="In-Progress"},cancelBtn:{onClick:Ht,label:ot.back,isDisabled:I.fetchState==="In-Progress"||h.indexOf(a)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),r.jsx(un,{handleConfirmCardSetupIntent:D,updateCardPaymentModalState:T,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:b,cardPaymentView:x,stripeKey:m,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:we,cardSetupInProgress:qe,setCardSetupInProgress:Xt})]})},wn=xt`
14
+ from {
15
+ transform: translateY(100%);
16
+ opacity: 0;
17
+ }
18
+ to {
19
+ transform: translateY(0);
20
+ opacity: 1;
21
+ }
22
+ `,vn=xt`
23
+ from {
24
+ transform: translateY(-100%);
25
+ opacity: 0;
26
+ }
27
+ to {
28
+ transform: translateY(0);
29
+ opacity: 1;
30
+ }
31
+ `,Vn=P.div`
32
+ display: flex;
33
+ flex-direction: column;
34
+ align-items: center;
35
+ min-width: calc(100% - ${bt}px);
36
+ padding-left: ${bt}px;
37
+ flex: 1;
38
+
39
+ ${t=>t.theme.breakpoints.down("md")} {
40
+ width: 100%;
41
+ padding-left: ${re.sp0};
42
+ }
43
+ `,An=P.div`
44
+ display: flex;
45
+ flex-direction: column;
46
+ align-items: center;
47
+ flex: 1;
48
+ width: 100%;
49
+ min-height: 100vh;
50
+ background-image: ${t=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/signin-background-${t.windowSize==="small"?"m":"w"}-${t.theme.mode==="dark"?"d":"l"}.svg)`};
51
+ background-color: ${t=>t.theme.colors.grey4};
52
+ background-size: inherit;
53
+ background-attachment: fixed;
54
+ background-position: ${t=>t.windowSize==="small"?"center center":"right center"};
55
+ background-repeat: no-repeat;
56
+
57
+ ${t=>t.theme.breakpoints.down("lg")} {
58
+ background-size: cover;
59
+ }
60
+ `,Dn=P.div`
61
+ display: flex;
62
+ flex-direction: column;
63
+ align-items: center;
64
+ text-align: center;
65
+ width: ${t=>`calc(100% - ${he.topNavBarLeftRightSpace.valuePx(t.windowSize)})`};
66
+ `,Nn=P.div``,$n=P.div`
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: space-between;
70
+ width: 100%;
71
+ min-height: ${t=>he.topNavBarHeight.valuePx(t.windowSize)};
72
+ `,Tn=P.div`
73
+ min-height: 100%;
74
+ display: ${t=>t.isVisible?"flex":"none"};
75
+ flex-direction: column;
76
+ padding-bottom: ${t=>t.paddingBottom+"px"};
77
+ animation-name: ${t=>t.stepAnimationDirection==="next"?wn:vn};
78
+ ${t=>t.includeAnimation?`
79
+ animation-duration: 0.6s;
80
+ animation-delay: 0s;
81
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
82
+ animation-fill-mode: both;
83
+ `:null}
84
+ `,Fn=P.form`
85
+ padding-top: ${re.sp0};
86
+ flex: 1;
87
+ `,_n=P(ln)`
88
+ color: ${t=>t.theme.colors.hero};
89
+ display: flex;
90
+ justify-content: center;
91
+ width: ${t=>he.titleWidth.valuePx(t.windowSize)};
92
+ padding-top: ${t=>he.subTitlePaddingTop.valuePx(t.windowSize)};
93
+ padding-bottom: ${t=>he.subTitlePaddingBottom.valuePx(t.windowSize)};
94
+ text-align: ${t=>t.windowSize==="small"?"initial":"center"};
95
+ width: 100%;
96
+ white-space: pre-line;
97
+ `,Me=(t,w)=>{const{companyDetailsLocalData:c,companyOfficerLocalData:f,companyView:v}=t,O=ce.commonSetUp.businessVerification,y=ce.companyPassport,x=v?.companyOfficers!=null&&v?.companyOfficers.length>0;return{[j]:{companyDescription:c?.companyDescription??ce.common.strings.empty,ein:c?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:c?.companyId,syncToken:c?.syncToken,companyLegalName:c?.companyLegalName,companyWebsite:c?.website?.toString()??ce.common.strings.empty,companyAddress:c?.addressStatus?.addressToCreate,registeredAddress:c?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:c?.companyIndustry,allOptions:t.companyIndustries.map(m=>m.code)},companyPhone:c?.phone,companyTaxId:c?.taxIdOrEIN,primaryContactName:{firstName:c?.primaryContactLocalData?.firstName,lastName:c?.primaryContactLocalData?.lastName},primaryContactEmail:c?.primaryContactLocalData?.email,primaryContactUserId:c?.primaryContactLocalData?.userId,primaryContactSyncToken:c?.primaryContactLocalData?.syncToken,fileIds:c?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:c?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:c?.incDate?.toDate(),typeOfIncorporation:{selectedOption:c?.typeOfIncorporation,allOptions:y.companyIncInfo.allTypesOfIncorporation}},[C]:Object.values(f).map((m,A)=>{const l=m,D=rn(l?.documentTypeSelectedForVerification);return{userId:l?.userId,officerType:l?.officerType??`Officer_${A+1}`,name:{firstName:l?.firstName,lastName:l?.lastName},email:l?.email,fileIds:l?.fileIds??[],dob:l?.birthday?.toDate(),nationalityCountryCode:Ot(l?.nationalityCountryCode,w.map(T=>T.countryCode)),ssn:l?.ssn,role:{selectedOption:l?.titleAtCompany,allOptions:O.allTypesOfRoles},phone:l?.phone,ownership:l?.ownershipInCompany,officerAddress:l?.addressStatus?.addressToCreate,selectDocument:{front:ft(!0,l?.userFiles??[],D),back:ft(!1,l?.userFiles??[],D),selectDocumentType:D},isSelectedForVerification:!x&&A===0?!0:l?.isSelectedForVerification??!1,userVerificationStatus:l?.userVerificationStatus,syncToken:l?.syncToken,isPhoneVerified:l?.isPhoneVerified,otpChallenge:l?.otpChallenge}}),[Z]:{account:{allOptions:[],selectedOption:void 0}},[u]:sn(u,t?.subscriptionBillingAddress)[u],[ge]:{connected:t.externalConnections?.accounting[0]?.isValid??!1}}},oa=t=>{const{onboardingCustomerView:w,cardPaymentView:c,signedInUser:f,currentTenant:v,isOnAddressPage:O,stripeKey:y,googleAPIKey:x,onUpdateStep:m,onZeniLogoClick:A,handleLogOutClick:l,handleCockpitClick:D,meetingUrl:T,analytics:b,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:we,handleFetchPaymentSources:Se,updateCardPaymentModalState:$,resetCardPaymentViewState:ve,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:Ve,...Ae}=t,{allSteps:W,completedSteps:De,halfCompletedSteps:Ce,currentStep:B,fetchStatus:R}=w,z=p.useRef(B),F=p.useRef(W),[be,le]=p.useState(!1),[Pe,te]=p.useState([]),Y={allSteps:W,isOnAddressPage:O,completedSteps:De,halfCompletedSteps:Ce,errorSteps:Pe,currentStep:B,fetchStatus:R,signedInUser:f,currentTenant:v,onUpdateStep:N=>{m(N)},onZeniLogoClick:A,handleLogOutClick:l,handleCockpitClick:D,setIsStepClicked:le};p.useEffect(()=>{if(z.current!==B){const N=z.current;be===!0&&(b?.trackOnboardingCurrentStep(B,N),le(!1)),z.current=B}},[B,be,b]),p.useEffect(()=>{W.length!==F.current.length&&(F.current=W)},[W]);const ne=(N,xe,de)=>{const ae=F.current.length,pe=F.current.indexOf(N);switch(xe){case"next":{const oe=(pe+1)%ae,V=F.current[oe];z.current=V,m(V),de===!0?b.trackOnboardingNext(N,V):b.trackOnboardingCurrentStep(V,N);break}case"previous":{const oe=(pe+ae-1)%ae,V=F.current[oe];z.current=V,m(V),de===!0?b.trackOnboardingBack(N,V):b.trackOnboardingCurrentStep(V,N);break}}},Oe=R.fetchState==="In-Progress"||R.fetchState==="Not-Started";return r.jsx(En,{isOnAddressPage:O,children:O?r.jsx(Ct,{...Y}):r.jsxs(jn,{children:[r.jsx(Ct,{...Y}),Oe?r.jsx(mn,{isNoStepsPage:!1}):r.jsx(kn,{onboardingCustomerView:w,analytics:b,updateStepHandler:ne,onUpdateStep:m,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:we,updateCardPaymentModalState:$,handleFetchPaymentSources:Se,cardPaymentView:c,resetCardPaymentViewState:ve,stripeKey:y,googleAPIKey:x,handleResetCardPaymentErrorStatuses:L,redirectToProductSuitePage:Ve,onFormErrorsChange:te,...Ae}),Oe?null:r.jsx(Zt,{isFooterRendered:!0,meetingUrl:T,analytics:b,productType:"onboarding"})]})})},En=P.div`
98
+ display: flex;
99
+ flex-direction: column;
100
+ width: ${t=>t.isOnAddressPage?"fit-content":"100%"};
101
+ height: 100vh;
102
+ `,jn=P.div`
103
+ display: flex;
104
+ flex-direction: column;
105
+ width: 100%;
106
+ height: 100vh;
107
+ `;export{oa as default};
@@ -1,4 +1,4 @@
1
- import{Q as D,a7 as M,av as U,d as W,F as V,V as e,bz as A,o as t,aK as k,bl as H,fs as I,ak as _,ae as N,p as l,b as y,ah as R,c as Z,E as J,ap as K,aZ as Q}from"./index-BfG2mP-a.js";import{a as n}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{fT as X}from"./zeni-epic-state-xFtF3OLs.js";import q from"./ConfettiBurst-CozTW5Rn-CUOgN-G0.js";import{T as G}from"./ProductsCarousel-C2h9pwDb-BJCEkWeQ.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const Y=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=V.getLocalizedStrings(),Ue=({hasVerifiedBankAccount:o,meetingUrl:b,showUpdatePaymentDetailButton:u=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...L})=>{const d=D(),x=M().analytics,f=U(),S=f.loggedInUser,a=f.currentTenant,[w,z]=n.useState(!1),{handleLogOutClick:P,onZeniLogoClick:T,handleCockpitClick:E}=L,O=W(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:B}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:m}=B;return h&&g&&m?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&m?[r.taxAndPayroll]:g&&m?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},F=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,X(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(A,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ke,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:u?e.jsxs(Ce,{"data-testid":k("update-to-payment-address-details"),onClick:()=>F(a),children:[e.jsx(ye,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(be,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(G,{scale:1,showUpdatePaymentDetailButton:u,stopCarousel:w})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(me,{className:"discover-class"})]})]}),e.jsx(ue,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(H,{signedInUser:S,currentTenant:a,onLogOutClick:P,onCockpitClick:E})}),e.jsx(I,{isFooterRendered:!1,meetingUrl:b,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:z})]})})]})}),e.jsx(q,{showConfetti:$})]})},te=i.div`
1
+ import{Q as D,a7 as M,av as U,d as W,F as V,V as e,bz as A,o as t,aK as k,bl as H,fs as I,ak as _,ae as N,p as l,b as y,ah as R,c as Z,E as J,ap as K,aZ as Q}from"./index-Dp0ze4-l.js";import{a as n}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{fT as X}from"./zeni-epic-state-xFtF3OLs.js";import q from"./ConfettiBurst-DtwLo4WZ-rIdOch9Z.js";import{T as G}from"./ProductsCarousel-D2bf_6Gb-3YkaSAEs.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const Y=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=V.getLocalizedStrings(),Ue=({hasVerifiedBankAccount:o,meetingUrl:b,showUpdatePaymentDetailButton:u=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...L})=>{const d=D(),x=M().analytics,f=U(),S=f.loggedInUser,a=f.currentTenant,[w,z]=n.useState(!1),{handleLogOutClick:P,onZeniLogoClick:T,handleCockpitClick:E}=L,O=W(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:B}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:m}=B;return h&&g&&m?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&m?[r.taxAndPayroll]:g&&m?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},F=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,X(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(A,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ke,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:u?e.jsxs(Ce,{"data-testid":k("update-to-payment-address-details"),onClick:()=>F(a),children:[e.jsx(ye,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(be,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(G,{scale:1,showUpdatePaymentDetailButton:u,stopCarousel:w})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(me,{className:"discover-class"})]})]}),e.jsx(ue,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(H,{signedInUser:S,currentTenant:a,onLogOutClick:P,onCockpitClick:E})}),e.jsx(I,{isFooterRendered:!1,meetingUrl:b,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:z})]})})]})}),e.jsx(q,{showConfetti:$})]})},te=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{av as ge,V as e,aw as Pt,ax as Ut,ay as Ot,o as a,az as Tt,x as MA,aA as Ht,aB as se,aC as Yt,aD as Kt,aE as Nt,aF as Gt,aG as zt,aH as Wt,aI as P,F as I,Q as $,aJ as Y,aK as y,aL as H,aM as q,u as S,a8 as qt,aN as Te,_ as He,ab as Xt,aO as Vt,y as Z,aP as K,aQ as _,al as AA,aR as Ye,aS as J,aT as U,aU as HA,p as f,an as Zt,d as iA,aV as $t,aW as YA,aX as _t,aY as Ar,aZ as er,ag as F,a_ as SA,ap as KA,ak as RA,a$ as Ke,b0 as Ne,b1 as Ge,b2 as tr,b3 as NA,B as rr,M as or,b4 as ar,b5 as ze,b6 as ir,b7 as gr,b8 as GA,b9 as Cr,ba as nr,bb as sr,bc as Er,A as We,b as dr,bd as Br,s as Qr,be as qe,bf as Xe,am as lr,bg as Ir,ah as cr,as as Ve}from"./index-BfG2mP-a.js";import{a as t,w as k,c as hr}from"./core-3dlyNYRL.js";import{n as g,d as pr,b as pA,k as R}from"./mui-bYXq4XMS.js";import{bh as mr,bj as Ze,eI as $e}from"./zeni-epic-state-xFtF3OLs.js";import{v as ur}from"./DashboardSidebarBackgroundAnimation-bBmcRJEU-CE4sdFs-.js";import{L as xr,k as fr}from"./ArAgingChart-CLxB28eR-Dva9-Ind.js";import{E as wr,T as Ce,I as _e}from"./ReloadCard-BVcEjrcM-CSV-mhh9.js";import{L as kr,O as LA,c as dA}from"./TopExCard-CUCtGWMG-CYbxdoUt.js";import{Y as Dr,X as yr,H as jr,G as vr,P as br}from"./RevenueChart-B1KEseXB-Utn3Pprg.js";import Mr from"./InsightsCardStack-CDejyDrL-N2llUGta.js";import{a as Sr}from"./AccountsPromoCardStack-G9g_ND9B-WzWOs6lG.js";import{c as X}from"./SummaryCard-BhSCeFtW-m22XLFXr.js";import{t as Rr,o as Lr}from"./arrow-south-east-round-PEovUgvH-7DsZUZDF.js";import{N as aA}from"./NavigationArrow-AIYiZbYj-BDxpddJr.js";import{k as zA}from"./NavigationDots-CVjs5Sdt-B_sdIayy.js";import Fr from"./CompanyPassportCard-BR60dER0-D6thO8AN.js";import{C as Jr}from"./gift-box-Cmt9OgIZ-CvUdutGd.js";import Pr from"./InformationCardStack-Def3TczI-CZ8bpX0k.js";import{p as At}from"./chartTypes-BFYRQ3Cv-BOyiJoGI.js";import{h as Ur}from"./toCOABalancesWithID-CHuRV6Cy-DQTbM0bQ.js";import{V as Or}from"./toChartData-DjeEqlPj-BghAWt_k.js";import{r as Tr,i as Hr}from"./graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js";import{N as Yr,J as Kr}from"./PromoBaseCards-nxua6geT-Dgfnru9g.js";import{N as Nr,I as Gr}from"./VideoPlayer-UPe1R-1g-Dkj-tB_R.js";import zr from"./ConfettiBurst-CozTW5Rn-CUOgN-G0.js";import{A as Wr,a as qr,Y as Xr,X as Vr,R as Zr}from"./recharts-CXSQ4XPK.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./lexical-DPEnH3HH.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const $r=g(_)`
1
+ import{av as ge,V as e,aw as Pt,ax as Ut,ay as Ot,o as a,az as Tt,x as MA,aA as Ht,aB as se,aC as Yt,aD as Kt,aE as Nt,aF as Gt,aG as zt,aH as Wt,aI as P,F as I,Q as $,aJ as Y,aK as y,aL as H,aM as q,u as S,a8 as qt,aN as Te,_ as He,ab as Xt,aO as Vt,y as Z,aP as K,aQ as _,al as AA,aR as Ye,aS as J,aT as U,aU as HA,p as f,an as Zt,d as iA,aV as $t,aW as YA,aX as _t,aY as Ar,aZ as er,ag as F,a_ as SA,ap as KA,ak as RA,a$ as Ke,b0 as Ne,b1 as Ge,b2 as tr,b3 as NA,B as rr,M as or,b4 as ar,b5 as ze,b6 as ir,b7 as gr,b8 as GA,b9 as Cr,ba as nr,bb as sr,bc as Er,A as We,b as dr,bd as Br,s as Qr,be as qe,bf as Xe,am as lr,bg as Ir,ah as cr,as as Ve}from"./index-Dp0ze4-l.js";import{a as t,w as k,c as hr}from"./core-3dlyNYRL.js";import{n as g,d as pr,b as pA,k as R}from"./mui-bYXq4XMS.js";import{bh as mr,bj as Ze,eI as $e}from"./zeni-epic-state-xFtF3OLs.js";import{v as ur}from"./DashboardSidebarBackgroundAnimation-BdDVYK19-CImgfHLa.js";import{L as xr,k as fr}from"./ArAgingChart-Am7LTkqG-DPWOzQ4G.js";import{E as wr,T as Ce,I as _e}from"./ReloadCard-B2sJR97f-B7xYAAAP.js";import{L as kr,O as LA,c as dA}from"./TopExCard-ImUx-vXr-DT0VBuYA.js";import{Y as Dr,X as yr,H as jr,G as vr,P as br}from"./RevenueChart-Bgq6My4J-DZMBvJfW.js";import Mr from"./InsightsCardStack-Mj7QcQnH-CEDxXAnc.js";import{a as Sr}from"./AccountsPromoCardStack-BYjuB-4I-Bx06dRgS.js";import{c as X}from"./SummaryCard-DEnzgi31-BrjfYktb.js";import{t as Rr,o as Lr}from"./arrow-south-east-round-PEovUgvH-7DsZUZDF.js";import{N as aA}from"./NavigationArrow-B4j2t8Qu-DFN_pfjG.js";import{k as zA}from"./NavigationDots-DyMqwpgy-BnOxKvTS.js";import Fr from"./CompanyPassportCard-DMRQkRPb-D5WStHlm.js";import{C as Jr}from"./gift-box-Cmt9OgIZ-CvUdutGd.js";import Pr from"./InformationCardStack-mEhasBqu-uwoqfXbE.js";import{p as At}from"./chartTypes-CwQl8aoN-CqcuqCka.js";import{h as Ur}from"./toCOABalancesWithID-rZFEkHuM-CMW_H07o.js";import{V as Or}from"./toChartData-C-dHC-Oz-Cn-Bmv6B.js";import{r as Tr,i as Hr}from"./graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js";import{N as Yr,J as Kr}from"./PromoBaseCards-CI7UOpeY-DrRHtF3C.js";import{N as Nr,I as Gr}from"./VideoPlayer-Gw_PLr8F-B5il9249.js";import zr from"./ConfettiBurst-DtwLo4WZ-rIdOch9Z.js";import{A as Wr,a as qr,Y as Xr,X as Vr,R as Zr}from"./recharts-CXSQ4XPK.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./lexical-DPEnH3HH.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const $r=g(_)`
2
2
  color: ${A=>A.theme.colors.champion};
3
3
  `,Ee=g.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{Q as B,d as Z,F as _,av as ke,V as s,bz as qe,A as Xe,x as Qe,bA as Ke,o as d,y as L,aA as K,bB as Je,bC as et,ag as oe,u as j,b1 as tt,aS as st,bD as ot,_ as Oe,n as Be,p as D,ap as Pe,aR as at,b8 as nt,am as it,bE as rt,at as ct,bF as lt,bG as ne,bH as dt,as as pt,al as ut,bI as gt}from"./index-BfG2mP-a.js";import{a as y,w as J}from"./core-3dlyNYRL.js";import{n as u,k as Ne}from"./mui-bYXq4XMS.js";import{bh as mt,eK as ht,dE as ft,eL as bt,eM as xt,eN as _t,eO as wt,eP as St,eQ as yt,eR as vt,eS as Ct}from"./zeni-epic-state-xFtF3OLs.js";import{m as Y,l as se}from"./analyticsHelper-tTHd6Unu-DbecO1Pw.js";import{h as $t,u as jt}from"./ReportTableViewSelector-DlD_ISoP-lPYeKXOJ.js";import{q as kt}from"./InsightsSection-DeLBGRXz-Cma3xdOD.js";import{k as xe,q as Ot,G as Bt,H as ee,N as pe}from"./detailCommon-BAtNx7ca-CSfEfj_v.js";import{P as Pt,G as Nt,Y as _e,X as we,H as Se}from"./RevenueChart-B1KEseXB-Utn3Pprg.js";import{C as Lt}from"./NoDataChart-B_yk9del-7CJyIfwz.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as It}from"./TimeRangeSwitcher-DV7Vkxir-BY8yCKry.js";import{b as Le}from"./TimeframeSwitcher-n-e2hXsK-AWoPnllv.js";import{I as Rt,R as E,x as Dt,l as ue,D as zt}from"./CollapsableReportTable-B2M1S7L1-dFGPuCPO.js";import{S as Tt,M as At,g as Mt,C as te,L as Ie,D as Re,T as De}from"./mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-8gZ8jpFf.js";import{d as Ft}from"./NoDataTable-DRJW6ofl-CO3LWhoz.js";import{d as ge,l as me}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--CEbqQqfo.js";import{d as he}from"./mapLoadingInProgressToTreeNode-8AkwjRg3-DJZjiw1l.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./NavigationDots-CVjs5Sdt-B_sdIayy.js";import"./chartTypes-BFYRQ3Cv-BOyiJoGI.js";import"./toCOABalancesWithID-CHuRV6Cy-DQTbM0bQ.js";import"./toChartData-DjeEqlPj-BghAWt_k.js";import"./AccountRow-DqB8rPL2-bpq_QRP-.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const Et=e=>y.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),y.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),y.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Vt=u.div`
1
+ import{Q as B,d as Z,F as _,av as ke,V as s,bz as qe,A as Xe,x as Qe,bA as Ke,o as d,y as L,aA as K,bB as Je,bC as et,ag as oe,u as j,b1 as tt,aS as st,bD as ot,_ as Oe,n as Be,p as D,ap as Pe,aR as at,b8 as nt,am as it,bE as rt,at as ct,bF as lt,bG as ne,bH as dt,as as pt,al as ut,bI as gt}from"./index-Dp0ze4-l.js";import{a as y,w as J}from"./core-3dlyNYRL.js";import{n as u,k as Ne}from"./mui-bYXq4XMS.js";import{bh as mt,eK as ht,dE as ft,eL as bt,eM as xt,eN as _t,eO as wt,eP as St,eQ as yt,eR as vt,eS as Ct}from"./zeni-epic-state-xFtF3OLs.js";import{m as Y,l as se}from"./analyticsHelper-CczQLvkM-ChZB75ZC.js";import{h as $t,u as jt}from"./ReportTableViewSelector-_IO343vS-CCUTRa_q.js";import{q as kt}from"./InsightsSection-B3xD0SZ9-44_JQBOt.js";import{k as xe,q as Ot,G as Bt,H as ee,N as pe}from"./detailCommon-nYxvvV_i-CtgtxyJz.js";import{P as Pt,G as Nt,Y as _e,X as we,H as Se}from"./RevenueChart-Bgq6My4J-DZMBvJfW.js";import{C as Lt}from"./NoDataChart-Ce1_TZ5w-mzgyK4W0.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as It}from"./TimeRangeSwitcher-BOzR-0O6-DW6Hfe2T.js";import{b as Le}from"./TimeframeSwitcher-BVgI_VZw-CmYJCdij.js";import{I as Rt,R as E,x as Dt,l as ue,D as zt}from"./CollapsableReportTable-Crihcv_z-B2uLpmZL.js";import{S as Tt,M as At,g as Mt,C as te,L as Ie,D as Re,T as De}from"./mapSectionWithAcOnlyToTreeNode-DRSmQ56_-D-Dpwz3L.js";import{d as Ft}from"./NoDataTable-l2T5Hw3t-DiA6_LOZ.js";import{d as ge,l as me}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-6GTMK9C_.js";import{d as he}from"./mapLoadingInProgressToTreeNode-DIAuL28N-CHz89P0H.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./NavigationDots-DyMqwpgy-BnOxKvTS.js";import"./chartTypes-CwQl8aoN-CqcuqCka.js";import"./toCOABalancesWithID-rZFEkHuM-CMW_H07o.js";import"./toChartData-C-dHC-Oz-Cn-Bmv6B.js";import"./AccountRow-Ck53DDbT-DysWPQsT.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const Et=e=>y.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),y.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),y.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Vt=u.div`
2
2
  justify-content: center;
3
3
  align-items: center;
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{aW as m,V as a,b3 as p,o as u}from"./index-BfG2mP-a.js";import{a as o}from"./core-3dlyNYRL.js";import{d as x,n as b}from"./mui-bYXq4XMS.js";const v=o.memo(function({christmasAnimationEnabled:e=!1,newYearAnimationEnabled:i=!1}){const s=x(),r=e||i,l=i?"DashboardNewYearShow":"DashboardChristmasSnow",[t,d]=m(l,r),[n,c]=o.useState(null);t!=null&&n==null&&!d&&c(t);const h=e&&s.mode==="light"?.7:.2;return(e||i)&&n!=null?a.jsx(f,{contextWiseOpacity:h,newYearAnimationEnabled:i,children:a.jsx(p,{style:{width:"inherit",height:"inherit",display:"block"},animationData:n,play:!0,loop:i?5:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),f=b.div`
1
+ import{aW as m,V as a,b3 as p,o as u}from"./index-Dp0ze4-l.js";import{a as o}from"./core-3dlyNYRL.js";import{d as x,n as b}from"./mui-bYXq4XMS.js";const v=o.memo(function({christmasAnimationEnabled:e=!1,newYearAnimationEnabled:i=!1}){const s=x(),r=e||i,l=i?"DashboardNewYearShow":"DashboardChristmasSnow",[t,d]=m(l,r),[n,c]=o.useState(null);t!=null&&n==null&&!d&&c(t);const h=e&&s.mode==="light"?.7:.2;return(e||i)&&n!=null?a.jsx(f,{contextWiseOpacity:h,newYearAnimationEnabled:i,children:a.jsx(p,{style:{width:"inherit",height:"inherit",display:"block"},animationData:n,play:!0,loop:i?5:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),f=b.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{aL as $,ht as u,Q as y,V as l,o as i,ak as d,al as c}from"./index-BfG2mP-a.js";import{n as t}from"./mui-bYXq4XMS.js";import{g as k}from"./BoxItem-CzX5kr9f-D3symr5f.js";import{o as v}from"./commonDimensions-C2kzP_me-DCSlMn19.js";function J({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:f}=e,g=r.length>0?r:m,a=$("0,0.00",x),n=u(f),o=y(),h=l.jsxs(N,{children:[l.jsx(C,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(P,{windowSize:o,children:[l.jsx(D,{children:g}),n!=null?l.jsxs(V,{windowSize:o,children:[l.jsx(A,{windowSize:o}),l.jsx(W,{color:n?.color,children:n?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[s!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:s})}):null,l.jsx(B,{windowSize:o,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const j=t.div`
1
+ import{aL as $,ht as u,Q as y,V as l,o as i,ak as d,al as c}from"./index-Dp0ze4-l.js";import{n as t}from"./mui-bYXq4XMS.js";import{g as k}from"./BoxItem-8PfNfaHq-B-GLMzdK.js";import{o as v}from"./commonDimensions-B1u_MhON-DyL3Hxj-.js";function J({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:f}=e,g=r.length>0?r:m,a=$("0,0.00",x),n=u(f),o=y(),h=l.jsxs(N,{children:[l.jsx(C,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(P,{windowSize:o,children:[l.jsx(D,{children:g}),n!=null?l.jsxs(V,{windowSize:o,children:[l.jsx(A,{windowSize:o}),l.jsx(W,{color:n?.color,children:n?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[s!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:s})}):null,l.jsx(B,{windowSize:o,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const j=t.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
4
4
  align-items: ${e=>e.windowSize==="small"?"flex-end":"center"};
@@ -1,4 +1,4 @@
1
- import{d as S,Q as z,hC as C,V as e,bz as D,F,b1 as Y,o as r,p as f,cq as E,dh as L,di as B,dc as I,dj as R,y as V,ag as A,ak as N,u as g}from"./index-BfG2mP-a.js";import{a as b}from"./core-3dlyNYRL.js";import{n as a}from"./mui-bYXq4XMS.js";import{bj as P}from"./zeni-epic-state-xFtF3OLs.js";import{$ as Q}from"./BoxItem-CzX5kr9f-D3symr5f.js";import{o as T}from"./commonDimensions-C2kzP_me-DCSlMn19.js";import{H as q}from"./DepositAccTransactionItem-tRzKuflq-CQY11AkG.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const n=F.getLocalizedStrings(),H={listItemMargin:new V(g[3],g[8])};function X(t){const d=L(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),h=B(d,o=>o.length>0);return I(h,o=>({date:o[0].transactionDate,transactions:R(o,m=>m.transactionDate,"desc")}))}const _=C(X),pt=({transactionListView:t,onBackClick:d})=>{const h=S(),o=z(),m=b.createRef(),p=b.useRef(null),l=_(t.transactions),k=t.depositAccountName,x=l.length===0,j=i=>x===!1?l[i].transactions.length*T.transactionItemHeightResponsive.value(o)+45:24,v=({index:i,style:c})=>{if(x===!1){const s=l[i];return e.jsx(w,{style:{...c},children:e.jsx($,{windowSize:o,children:e.jsxs(y,{children:[e.jsx(O,{children:P().year()===s.date.year()?s.date.format(n.dateFormat.visual.MMMDFormat):s.date.format(n.dateFormat.visual.MMMDCommaYYYYformat)}),e.jsx(U,{children:s.transactions.map((M,u)=>e.jsx(q,{data:M,boxType:Q(u,s.transactions.length)},u))})]})})})}else return e.jsx(w,{style:{...c},children:e.jsx(G,{children:e.jsx($,{windowSize:o,children:e.jsx(K,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(J,{children:[e.jsx(D,{title:`${k} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:h.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(Y,{children:({height:i,width:c})=>e.jsx(Z,{ref:m,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},w=a.div``,$=a.div`
1
+ import{d as S,Q as z,hC as C,V as e,bz as D,F,b1 as Y,o as r,p as f,cq as E,dh as L,di as B,dc as I,dj as R,y as V,ag as A,ak as N,u as g}from"./index-Dp0ze4-l.js";import{a as b}from"./core-3dlyNYRL.js";import{n as a}from"./mui-bYXq4XMS.js";import{bj as P}from"./zeni-epic-state-xFtF3OLs.js";import{$ as Q}from"./BoxItem-8PfNfaHq-B-GLMzdK.js";import{o as T}from"./commonDimensions-B1u_MhON-DyL3Hxj-.js";import{H as q}from"./DepositAccTransactionItem-D8kL8enp-C-wlu71S.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const n=F.getLocalizedStrings(),H={listItemMargin:new V(g[3],g[8])};function X(t){const d=L(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),h=B(d,o=>o.length>0);return I(h,o=>({date:o[0].transactionDate,transactions:R(o,m=>m.transactionDate,"desc")}))}const _=C(X),pt=({transactionListView:t,onBackClick:d})=>{const h=S(),o=z(),m=b.createRef(),p=b.useRef(null),l=_(t.transactions),k=t.depositAccountName,x=l.length===0,j=i=>x===!1?l[i].transactions.length*T.transactionItemHeightResponsive.value(o)+45:24,v=({index:i,style:c})=>{if(x===!1){const s=l[i];return e.jsx(w,{style:{...c},children:e.jsx($,{windowSize:o,children:e.jsxs(y,{children:[e.jsx(O,{children:P().year()===s.date.year()?s.date.format(n.dateFormat.visual.MMMDFormat):s.date.format(n.dateFormat.visual.MMMDCommaYYYYformat)}),e.jsx(U,{children:s.transactions.map((M,u)=>e.jsx(q,{data:M,boxType:Q(u,s.transactions.length)},u))})]})})})}else return e.jsx(w,{style:{...c},children:e.jsx(G,{children:e.jsx($,{windowSize:o,children:e.jsx(K,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(J,{children:[e.jsx(D,{title:`${k} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:h.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(Y,{children:({height:i,width:c})=>e.jsx(Z,{ref:m,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},w=a.div``,$=a.div`
2
2
  margin: ${t=>`${r.sp0} ${H.listItemMargin.valuePx(t.windowSize)}`};
3
3
  `,G=a.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{Q as Y,a8 as U,F as B,cB as H,aA as Q,V as n,cm as _,cn as q,co as G,ab as J,aO as K,y as u,eV as X,o as Z,b7 as ee,u as a}from"./index-BfG2mP-a.js";import{a as N}from"./core-3dlyNYRL.js";import{n as h}from"./mui-bYXq4XMS.js";import{bi as T}from"./zeni-epic-state-xFtF3OLs.js";import{e as ne}from"./BankAccountSection-B0pfiSf6-BkAvTd92.js";import{j as te}from"./MagicLinkTitleSection-DQw4cqq_-CI2hDe5j.js";import{W as ae,A as oe}from"./BankAccountWarningSection-Xo-Jy-73-CuHaGRwj.js";import{T as ie}from"./MailingDetailsSection-CAV69_Sr-DOptWsu4.js";const i={paddingTopBottom:new u(a[3],a[3]),paddingRight:new u(a[3],a[8]),paddingLeft:new u(a[3],a[6]),buttonWidth:new u(140,140),marginLeft:new u(a[4],a[6])},w="domesticWireDetailsPage",k="bankAccountSection",$="mailingAddressSection",j=e=>`${e}_form`,Ae=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:A,isDisabled:y,companyName:v,isMagicLink:g,currencySymbol:D,amount:z,onSaveHandler:L,onWireDetailsUpdated:P,onFetchBankName:R,onAddressClick:W,onBackClick:C}=e,l=Y(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:N.useMemo(()=>se(s,r),[s,r])}),[E,p]=N.useState(!1),t=B.getLocalizedStrings().spendManagement.billPay.vendorCreation,I=B.getLocalizedStrings().common.footer,M=t.wireDetails.domestic,F={onOkClick:()=>{p(!1),c.reset(),C?.()},onCancelClick:()=>{p(!1)}},V=async(f,m)=>{const d=m[k].bankRoutingNumber;P(m),f===`${k}.bankRoutingNumber`&&d?.length===9&&X.test(d)===!0&&R?.(d)};N.useEffect(()=>{const f=c.watch((m,{name:d})=>{d!=null&&m!=null&&H(()=>V(d,m))});return()=>{f.unsubscribe()}});const O=c.handleSubmit(f=>{b.fetchState!=="In-Progress"&&L("wire")}),S=!Q(A!=null?T(A):A,r!=null?T(r):r)||re(s)||c.formState.isDirty;return n.jsxs(me,{children:[n.jsxs(le,{size:l,children:[E===!0?n.jsx(_,{titleComponent:n.jsx(G,{children:t.discardTitle}),descriptionComponent:n.jsx(q,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:F}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:D??"",amount:z??0}):M.addWireDetails,isMagicLink:g,isDirty:S,onBackClick:C,setShowConfirmationPopup:p}),o?.fetchState==="Error"&&o.error?.code===409?n.jsx(oe,{warningText:t.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:l,children:t.bankAccountCommon.accountDetailsTitle}),n.jsx(J,{...c,children:n.jsxs("form",{id:j(w),onSubmit:O,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:k,isDisabled:y})}),n.jsx(ie,{sectionId:$,isDisabled:y,addressType:x,addressToEdit:r,onAddressClick:W})]})})]}),n.jsx(K,{formId:j(w),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:y!=null},showCancel:!g,cancelBtn:{label:I.cancel,style:{width:i.buttonWidth.value(l)},shouldResetOnCancel:!1,onClick:()=>{S?p(!0):(c.reset(),C?.())}}})]})},se=(e,o)=>({[k]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[$]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
1
+ import{Q as Y,a8 as U,F as B,cB as H,aA as Q,V as n,cm as _,cn as q,co as G,ab as J,aO as K,y as u,eV as X,o as Z,b7 as ee,u as a}from"./index-Dp0ze4-l.js";import{a as N}from"./core-3dlyNYRL.js";import{n as h}from"./mui-bYXq4XMS.js";import{bi as T}from"./zeni-epic-state-xFtF3OLs.js";import{e as ne}from"./BankAccountSection-C5rYUW3V-C94OLznc.js";import{j as te}from"./MagicLinkTitleSection-CWw516D8-BNsvo93d.js";import{W as ae,A as oe}from"./BankAccountWarningSection-DakysSbk-CbbTSVAs.js";import{T as ie}from"./MailingDetailsSection-CugAM90r-DoeFFuYK.js";const i={paddingTopBottom:new u(a[3],a[3]),paddingRight:new u(a[3],a[8]),paddingLeft:new u(a[3],a[6]),buttonWidth:new u(140,140),marginLeft:new u(a[4],a[6])},w="domesticWireDetailsPage",k="bankAccountSection",$="mailingAddressSection",j=e=>`${e}_form`,Ae=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:A,isDisabled:y,companyName:v,isMagicLink:g,currencySymbol:D,amount:z,onSaveHandler:L,onWireDetailsUpdated:P,onFetchBankName:R,onAddressClick:W,onBackClick:C}=e,l=Y(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:N.useMemo(()=>se(s,r),[s,r])}),[E,p]=N.useState(!1),t=B.getLocalizedStrings().spendManagement.billPay.vendorCreation,I=B.getLocalizedStrings().common.footer,M=t.wireDetails.domestic,F={onOkClick:()=>{p(!1),c.reset(),C?.()},onCancelClick:()=>{p(!1)}},V=async(f,m)=>{const d=m[k].bankRoutingNumber;P(m),f===`${k}.bankRoutingNumber`&&d?.length===9&&X.test(d)===!0&&R?.(d)};N.useEffect(()=>{const f=c.watch((m,{name:d})=>{d!=null&&m!=null&&H(()=>V(d,m))});return()=>{f.unsubscribe()}});const O=c.handleSubmit(f=>{b.fetchState!=="In-Progress"&&L("wire")}),S=!Q(A!=null?T(A):A,r!=null?T(r):r)||re(s)||c.formState.isDirty;return n.jsxs(me,{children:[n.jsxs(le,{size:l,children:[E===!0?n.jsx(_,{titleComponent:n.jsx(G,{children:t.discardTitle}),descriptionComponent:n.jsx(q,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:F}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:D??"",amount:z??0}):M.addWireDetails,isMagicLink:g,isDirty:S,onBackClick:C,setShowConfirmationPopup:p}),o?.fetchState==="Error"&&o.error?.code===409?n.jsx(oe,{warningText:t.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:l,children:t.bankAccountCommon.accountDetailsTitle}),n.jsx(J,{...c,children:n.jsxs("form",{id:j(w),onSubmit:O,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:k,isDisabled:y})}),n.jsx(ie,{sectionId:$,isDisabled:y,addressType:x,addressToEdit:r,onAddressClick:W})]})})]}),n.jsx(K,{formId:j(w),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:y!=null},showCancel:!g,cancelBtn:{label:I.cancel,style:{width:i.buttonWidth.value(l)},shouldResetOnCancel:!1,onClick:()=>{S?p(!0):(c.reset(),C?.())}}})]})},se=(e,o)=>({[k]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[$]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
2
2
  padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
3
3
  padding-right: ${e=>i.paddingRight.valuePx(e.size)};
4
4
  padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
@@ -1,4 +1,4 @@
1
- import{V as t,c0 as it,o as s,Q as he,c1 as lt,am as He,p as ue,y as q,_ as nt,F,c2 as dt,bL as Ue,u as B,b7 as We,ak as L,bO as _e,b as te,al as be,n as ae,d as qe,bQ as ct,c3 as xe,c4 as ge,A as Ge,c5 as Ze,an as ye,c6 as Z,bJ as pt,b8 as mt,c7 as ft,c8 as ht,bI as ut,bP as bt,ap as xt,c9 as gt,bY as yt,at as $t}from"./index-BfG2mP-a.js";import{a as h,w as $e}from"./core-3dlyNYRL.js";import{n as l,k as Je}from"./mui-bYXq4XMS.js";import{f1 as me,f2 as C,f3 as J,bO as P,f4 as K,f5 as we,bj as wt,f6 as U,f7 as _,f8 as Ft,f9 as jt,fa as vt,fb as Ot,fc as Yt}from"./zeni-epic-state-xFtF3OLs.js";import{m as kt}from"./analyticsHelper-tTHd6Unu-DbecO1Pw.js";import{h as Dt,u as _t}from"./ReportTableViewSelector-DlD_ISoP-lPYeKXOJ.js";import{t as Ct}from"./page-detail-CWX5S47F-Bc8Xpsuq.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./CollapsableReportTable-B2M1S7L1-dFGPuCPO.js";import"./AccountRow-DqB8rPL2-bpq_QRP-.js";const Pt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function ie(e,o,r,a){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:n}=C(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=C(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(n,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:n}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(n,"month",!0))/12);break}}return a!=null?Math.min(i,a):i}function oe(e,o,r,a=1){if(a>1){const i=J(r,e,a-1,o),{startOfTimeframeFY:n}=C(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:n,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ce{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,a,i,n,p=a.endDate){if(a.endDate.isBefore(a.startDate))throw Error(`Invalid data available period ${JSON.stringify(a)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=a,this._numberOfPeriods=i,this._maxNumberOfPeriods=n,this._endDate=p}get value(){return oe(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=me(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=C(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:a}=C(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=C(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(a,i,null,"[]")&&r.isBetween(a,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let a=ie(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(a>this.maxNumberOfPeriods){a=this._numberOfPeriods;const{endOfTimeframeFY:i}=C(me(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){a=1;const{endOfTimeframeFY:i}=C(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=a,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ne=["1","2","3","4"],de=wt().localeData().monthsShort(),A={pdf:12,excel:100,csv:100},Q=(e,o,r)=>{const a=F.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:n,endDate:p}=r;let m=n;for(;m.isSameOrBefore(p,"year");)i.push(m.format(a)),m=me(m,e,1,"year")}else{const{startOfTimeframeFY:n}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");let{fyYear:m}=_(n,e);const{fyYear:u}=_(p,e);for(;m<=u;)i.push(`${m}`),m++}return i},St=l.div`
1
+ import{V as t,c0 as it,o as s,Q as he,c1 as lt,am as He,p as ue,y as q,_ as nt,F,c2 as dt,bL as Ue,u as B,b7 as We,ak as L,bO as _e,b as te,al as be,n as ae,d as qe,bQ as ct,c3 as xe,c4 as ge,A as Ge,c5 as Ze,an as ye,c6 as Z,bJ as pt,b8 as mt,c7 as ft,c8 as ht,bI as ut,bP as bt,ap as xt,c9 as gt,bY as yt,at as $t}from"./index-Dp0ze4-l.js";import{a as h,w as $e}from"./core-3dlyNYRL.js";import{n as l,k as Je}from"./mui-bYXq4XMS.js";import{f1 as me,f2 as C,f3 as J,bO as P,f4 as K,f5 as we,bj as wt,f6 as U,f7 as _,f8 as Ft,f9 as jt,fa as vt,fb as Ot,fc as Yt}from"./zeni-epic-state-xFtF3OLs.js";import{m as kt}from"./analyticsHelper-CczQLvkM-ChZB75ZC.js";import{h as Dt,u as _t}from"./ReportTableViewSelector-_IO343vS-CCUTRa_q.js";import{t as Ct}from"./page-detail-CWX5S47F-Bc8Xpsuq.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./CollapsableReportTable-Crihcv_z-B2uLpmZL.js";import"./AccountRow-Ck53DDbT-DysWPQsT.js";const Pt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function ie(e,o,r,a){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:n}=C(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=C(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(n,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:n}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(n,"month",!0))/12);break}}return a!=null?Math.min(i,a):i}function oe(e,o,r,a=1){if(a>1){const i=J(r,e,a-1,o),{startOfTimeframeFY:n}=C(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:n,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ce{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,a,i,n,p=a.endDate){if(a.endDate.isBefore(a.startDate))throw Error(`Invalid data available period ${JSON.stringify(a)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=a,this._numberOfPeriods=i,this._maxNumberOfPeriods=n,this._endDate=p}get value(){return oe(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=me(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=C(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:a}=C(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=C(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(a,i,null,"[]")&&r.isBetween(a,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let a=ie(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(a>this.maxNumberOfPeriods){a=this._numberOfPeriods;const{endOfTimeframeFY:i}=C(me(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){a=1;const{endOfTimeframeFY:i}=C(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=a,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ne=["1","2","3","4"],de=wt().localeData().monthsShort(),A={pdf:12,excel:100,csv:100},Q=(e,o,r)=>{const a=F.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:n,endDate:p}=r;let m=n;for(;m.isSameOrBefore(p,"year");)i.push(m.format(a)),m=me(m,e,1,"year")}else{const{startOfTimeframeFY:n}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");let{fyYear:m}=_(n,e);const{fyYear:u}=_(p,e);for(;m<=u;)i.push(`${m}`),m++}return i},St=l.div`
2
2
  padding: ${s.sp3};
3
3
  border: 1px solid ${e=>e.borderColor.default};
4
4
  border-radius: ${s.sp1};
@@ -1,4 +1,4 @@
1
- import{Q as a,V as i,bQ as P,o,F as h,y as s,b$ as y,B as c,M as g,_ as b,u as t,aL as L,jS as k,jT as C,jU as R}from"./index-BfG2mP-a.js";import{n}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},v={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,_=({rewardsPlan:e})=>{const r=[D(),M(),B({rewardsPlan:e})],d=a();return i.jsx(A,{children:r.map((f,j)=>i.jsxs(X,{children:[i.jsx(H,{children:f}),j<r.length-1?i.jsx(F,{windowSize:d}):null]},`step_${j}`))})},D=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(S,{windowSize:e,icon:"link",children:i.jsx(I,{windowSize:e})}),i.jsx(z,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},M=()=>{const e=a(),r=x.item2;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(S,{windowSize:e,icon:"user",children:i.jsx(N,{windowSize:e})}),i.jsx(z,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},B=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx(S,{windowSize:r,icon:"money",children:i.jsx(Q,{windowSize:r})}),i.jsx(z,{windowSize:r,children:d.title[e.planName]})]}),i.jsx($,{windowSize:r,children:i.jsx(u,{windowSize:r,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},p=n.div`
1
+ import{Q as a,V as i,bQ as P,o,F as h,y as s,b$ as y,B as c,M as g,_ as b,u as t,aL as L,jS as k,jT as C,jU as R}from"./index-Dp0ze4-l.js";import{n}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},v={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,_=({rewardsPlan:e})=>{const r=[D(),M(),B({rewardsPlan:e})],d=a();return i.jsx(A,{children:r.map((f,j)=>i.jsxs(X,{children:[i.jsx(H,{children:f}),j<r.length-1?i.jsx(F,{windowSize:d}):null]},`step_${j}`))})},D=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(S,{windowSize:e,icon:"link",children:i.jsx(I,{windowSize:e})}),i.jsx(z,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},M=()=>{const e=a(),r=x.item2;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(S,{windowSize:e,icon:"user",children:i.jsx(N,{windowSize:e})}),i.jsx(z,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},B=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx(S,{windowSize:r,icon:"money",children:i.jsx(Q,{windowSize:r})}),i.jsx(z,{windowSize:r,children:d.title[e.planName]})]}),i.jsx($,{windowSize:r,children:i.jsx(u,{windowSize:r,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},p=n.div`
2
2
  border: 1px solid ${e=>e.theme.colors.grey3};
3
3
  border-radius: ${o.sp2};
4
4
  box-shadow: ${e=>`${o.sp0} 1px 2px ${o.sp0} ${e.theme.colors.dropShadowNormal}`};