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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/assets/{ACHDetailsPage-StkGXn1c-DnerZ6yw.js → ACHDetailsPage-StkGXn1c-QVuWqUed.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js → AIPerformancePage-cGtd6TYJ-QRKa4AxL.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-BnHC_Y3E-ByMcEeMx.js → AccountInfoPage-BnHC_Y3E-B72E7e0X.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-9hQV-QKt-DIbr8exN.js → AccountInfoPageContent-9hQV-QKt-R-xf6NE9.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js → AccountLockedInfoModal-BS5pz9ze-vd3nemno.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js → AccountReconDetailsDrawerPage-D_348I-1-BgIx6Bmu.js} +1 -1
  7. package/dist/assets/{AccountRow-DbyUdPZG-D3G-oWRQ.js → AccountRow-DbyUdPZG-kPApYWvO.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js → AccountsPromoCardStack-CeGcTU8h-nrGLKwQX.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-D5EnX225-LqDDXshB.js → AddAddressForCardDrawer-D5EnX225-DlgrCRko.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-D45TGyNS-FyEeS4ax.js → AddToWalletPage-D45TGyNS-DpxcbTMf.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Cxe-3oBx-BYtw6E86.js → AgingReportsPage-Cxe-3oBx-BdtauDu4.js} +1 -1
  12. package/dist/assets/{AllUserItems-Cc_-o3gE-BoV9oLkk.js → AllUserItems-Cc_-o3gE-Dj-vsTnw.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-DoaKW48m-OHK-ezBl.js → ApAgingDetailPage-DoaKW48m-B9QImbCC.js} +1 -1
  14. package/dist/assets/{AppBasePage-BUE60uZt-eqCd5DKr.js → AppBasePage-BUE60uZt-C6OIIfvZ.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-P20acbi4-B9KrqH0V.js → AppDrawerContent-P20acbi4-DSZQpDPf.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js → ApprovalRulesSettingsPage-C5KUTjie-BG0_ZC6k.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DIABTV5P-DnLiVsos.js → ArAgingChart-DIABTV5P-D3hRykT_.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js → ArAgingDetailPage-CA4JP8HZ-DzwzorRb.js} +1 -1
  19. package/dist/assets/{Area-Sl30rGq6-WMXLxt2t.js → Area-Sl30rGq6-CogxmVvt.js} +1 -1
  20. package/dist/assets/{AreaChart-2AgE74bB-juQGB2-h.js → AreaChart-2AgE74bB-DgDnH-B0.js} +1 -1
  21. package/dist/assets/{AttachmentView-DRBK6aiE-DxR-B_-8.js → AttachmentView-DRBK6aiE-C1Ruc-VW.js} +1 -1
  22. package/dist/assets/{BankAccountSection-CwPIXA5w-DE6FMEHD.js → BankAccountSection-CwPIXA5w-DDDsPYwm.js} +1 -1
  23. package/dist/assets/{BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js → BankAccountWarningSection-DGSw5Uvq-DbOA1NjS.js} +1 -1
  24. package/dist/assets/{BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js → BankConnectionsSettingsPage-bk8eOcuj-DxzeQDqg.js} +1 -1
  25. package/dist/assets/{BillDetailPage-CQ8iqo9y-D1hvEdQD.js → BillDetailPage-CQ8iqo9y-Tp3WmchS.js} +1 -1
  26. package/dist/assets/{BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js → BillPayApprovalRuleDetailPage-B8LMww_O-CRWeyw0Q.js} +1 -1
  27. package/dist/assets/{BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js → BillPayApprovalRulesPage-BCoXLnmv-DCVONktr.js} +1 -1
  28. package/dist/assets/{BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js → BillPayPromoPage-CIUhDNjJ-Cwqxzge6.js} +1 -1
  29. package/dist/assets/{BillPaySetUpPage-CrfwREgO-oxkPqY3f.js → BillPaySetUpPage-CrfwREgO-CJ9_P2PZ.js} +1 -1
  30. package/dist/assets/{BillingSettingsPage-CitBvGaR-nwEc2ngU.js → BillingSettingsPage-CitBvGaR-DZa8FJ6b.js} +1 -1
  31. package/dist/assets/{BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js → BillsBulkReviewDrawerPage-Cal9oN8I-D6VU0QwP.js} +1 -1
  32. package/dist/assets/{BoxItem-B6Qj2tSj-aLWYhGMW.js → BoxItem-B6Qj2tSj-J1Dptt9x.js} +1 -1
  33. package/dist/assets/{BusinessVerificationPage-aj1YPi-U-D08S06Tj.js → BusinessVerificationPage-aj1YPi-U-D4YVlN1d.js} +1 -1
  34. package/dist/assets/{CardNumberSubText-COZ0PEHK-CGMTIPNh.js → CardNumberSubText-COZ0PEHK-DfX-_Vv0.js} +1 -1
  35. package/dist/assets/{CashbackDetailPage-BloaeO12-DkRvSRPk.js → CashbackDetailPage-BloaeO12-CKXrQ4pr.js} +1 -1
  36. package/dist/assets/{ChargeCardDetailPage-CjW48x_w-DZEJnmps.js → ChargeCardDetailPage-CjW48x_w-CYCiZNdX.js} +1 -1
  37. package/dist/assets/{ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js → ChargeCardListPage-CiUoFBZq-fokUM1Ml.js} +1 -1
  38. package/dist/assets/{ChargeCardListTable-BGdEyXLV-BJk1B__-.js → ChargeCardListTable-BGdEyXLV-i14Xe5Xy.js} +1 -1
  39. package/dist/assets/{ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js → ChargeCardPromoPage-BYgvGdtQ-BP8Ml7dN.js} +1 -1
  40. package/dist/assets/{ChargeCardSetupPage-B0L57e-5-DfN8lydv.js → ChargeCardSetupPage-B0L57e-5-g-QFSpA6.js} +1 -1
  41. package/dist/assets/{ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js → ChargeCardStatementsPage-CB76MDoV-DzuODTlT.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js → CheckDepositDrawerPage-Cr_oz-BZ-COLf_Spm.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-B3_in9eE-D8gjZt8q.js → CollapsableReportTable-B3_in9eE-DAO-TPrY.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js → CompanyOfficerDetailsSection-K0bu4TF7-A5XuxES5.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-Bn50f4y5-D-A9Krsj.js → CompanyPassportCard-Bn50f4y5-DOiZtliu.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-CamFfvAV-lyA9J8un.js → CompanyPassportPage-CamFfvAV-Dh23xkTd.js} +1 -1
  47. package/dist/assets/{CompleteProfile-2jFR92oO-DA0X1epS.js → CompleteProfile-2jFR92oO-Dv25uofO.js} +1 -1
  48. package/dist/assets/{ComposedChart-Cot0K7Et-DQrzoGG2.js → ComposedChart-Cot0K7Et-Cs0IcUoo.js} +1 -1
  49. package/dist/assets/{ConfettiBurst-D34cviSS-Z_WPGmrN.js → ConfettiBurst-D34cviSS---m1oxyT.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js → CreateOrEditVendorPage-Abz0ijRD-Wxr0ruoD.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js → CreditCardPaymentDrawerPage-BRcbxJYU-BrdaibUh.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-DR8cDrIS-TTiuldkA.js → CurrencySelectField-DR8cDrIS-BWQqgMWL.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js → CustomerOnboardingActivationPage-DPghXiES-BYZrYsLp.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BfS6D7SD.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js → CustomerOnboardingDetailPageSkeleton-DImhzWZN-Cc3W2piF.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js → CustomerOnboardingNoStepsPage-B0y5uw1X-CpWrxFy5.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js → CustomerOnboardingPage-BheJqVUY-gSyXgh3g.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js → CustomerOnboardingProductSuitePage-BaYYKqZ9-Cjiy9Y20.js} +1 -1
  59. package/dist/assets/{Dashboard-DJs11vgV-CqS9vdTt.js → Dashboard-DJs11vgV-KI7JNzAI.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-CL0RrJ4A-FEfXS09v.js → DashboardReportPage-CL0RrJ4A-CMyxRLdL.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js → DashboardSidebarBackgroundAnimation-DHlKExbg-2TSvr-F-.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-C36JnddA-CD1u3HOE.js → DepositAccTransactionItem-C36JnddA-BuRFl8Tj.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js → DepositAccTransactionListPage-Db5EpWjl-fYOiHNFH.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js → DomesticWireDetailsPage-C_flRkmQ-D2Y9zL_T.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-CLWNXGnb-DS0DZTJ1.js → DownloadOverlay-CLWNXGnb-CzOVbqqI.js} +1 -1
  66. package/dist/assets/{DrawerPage-BdYS_9Mt-BL0llqyf.js → DrawerPage-BdYS_9Mt-Bc1McCUH.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-B7bjXrqC-Bm6qgPK0.js → EditPeoplePage-B7bjXrqC-OL09v3a6.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js → EditReimbursementDetailPage-BRYd6JMC-F9QPl0Ac.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-B1aKw_1J-DOXQOxN6.js → EntityDetailPage-B1aKw_1J-CWSa9OE7.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-Cp-CFb9j-NVB6pHEa.js → EntitySummarySection-Cp-CFb9j-DWbzDu3x.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js → ExpenseAutomationOverviewPage-C7tY6mua-CIo35h3r.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js → ExpenseAutomationPage-CeP8I1tB-DHQpDifW.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-DYUtczg7-BDKERlx3.js → ExpressPayPage-DYUtczg7-Cb7gdmam.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-Brau5064-B_mFzC9F.js → FeaturePreviewPage-Brau5064-B6gubfR5.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-Dhf67oqf-CptFWIJS.js → FollowStepsSection-Dhf67oqf-C9-DQpEq.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js → GlobalReviewListPage-C89Tsajc-C8QIbpaJ.js} +1 -1
  77. package/dist/assets/{InformationCardStack-BLD4XmMT-Dp1BbBqU.js → InformationCardStack-BLD4XmMT-CaIFPHpb.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-CAwTWreO-DWsXatY7.js → InsightsCardStack-CAwTWreO-DMHtrXvo.js} +1 -1
  79. package/dist/assets/{InsightsSection-DJrMi3DN-DUYhJ5vl.js → InsightsSection-DJrMi3DN-BZzGhpNe.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js → IntegrationsSettingsPage-LAjqcDLQ-CwsnsoHn.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js → InternationalWireSwiftDetailsPage-_4BMP68N-D2TibYHD.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js → InternationalWireVerificationPage-BiDh0ost-DRFXu-Md.js} +1 -1
  83. package/dist/assets/{InviteFormPage-DN2uvROT-Dfc30Liy.js → InviteFormPage-DN2uvROT-D-pHqBtv.js} +1 -1
  84. package/dist/assets/{InvitePageListView-DDi1bLaG-BIsQyZAc.js → InvitePageListView-DDi1bLaG-CWBEJEz9.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-D4bsu9K1-CnzfbNDf.js → InvitePeoplePage-D4bsu9K1-K8YB3huJ.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-BducuHAy-CwGoLvBS.js → InvoiceUploadSection-BducuHAy-DP3yW3zT.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js → IssueChargeCardPage-C2I9mUTD-Dk0ZH0_P.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-mLMacnQu-BhboedQp.js → LabeledAddressValue-mLMacnQu-Bs8h4KYU.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js → LabeledAddressValueField-C74ZzWQ3-CvAM7L7i.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js → LabeledControlledCheckBoxField-D7yxgfu0-DgJw74_b.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js → LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js → LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js → LabeledDropDownFormattedTextField-B4_WiAaD-C8oOx3AR.js} +1 -1
  94. package/dist/assets/{LabeledText-iHeu8MCf-BqC7UtSs.js → LabeledText-iHeu8MCf-GFbIBet5.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js → LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-90UTcRc3.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js → LabeledZeniRolesDropDownField-DoF6cXd_-DT1LbBkc.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-C1FL0hR6-BhDC9P29.js → LinkJETransactionPage-C1FL0hR6-Bp0Um_Sm.js} +1 -1
  98. package/dist/assets/{LockCardPage-Do7WCHaW-DegBv6L_.js → LockCardPage-Do7WCHaW-ZupVtZLk.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-CEiTKqxT-F00svkBR.js → LowBalancePopup-CEiTKqxT-DJVUP8TV.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js → MagicLinkACHDetailsPage-C7xvzxN5-pg2IguPb.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js → MagicLinkDomesticWireDetailsPage-D8iNxVu6-Boex5dqe.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js → MagicLinkInternationalWireDetailsPage-DNmvv77I-C23EkFxR.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js → MagicLinkSuccessPage-BO-k4XK1-QkgOmsPy.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js → MagicLinkTitleSection-CzGvBYzB-B3pEwVq_.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-C_TtoLpj-DODfBmzp.js → MailingDetailsSection-C_TtoLpj-DxhbJD-R.js} +1 -1
  106. package/dist/assets/{Menu-pyYbFxsT-C1MdlXRT.js → Menu-pyYbFxsT-BjDDhfv4.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js → MyBankConnectionsSettingsPage-BP6RBO_Y-BFwv-Z-d.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js → MyPendingActivationChargeCardListPage-CBwy21Ec-CDRbSeBl.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js → MyProfileSettingsPage-yHoOgEgo-daGXrnbi.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-FYZ2a05o-CmU_pgV6.js → NavBarWithPicker-FYZ2a05o-B8iO0ddX.js} +1 -1
  111. package/dist/assets/{NavigationArrow-DlO0Lww9-Ct543iDt.js → NavigationArrow-DlO0Lww9-C_GP4JM3.js} +1 -1
  112. package/dist/assets/{NavigationDots-DO5y6mdV-DGnlFBBn.js → NavigationDots-DO5y6mdV-CX8opgkb.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js → NewGlobalMerchantPage-FW6_Vbee-GgZoUq7l.js} +1 -1
  114. package/dist/assets/{NoDataChart-C0lCeeVH-BiooJKO2.js → NoDataChart-C0lCeeVH-DA9wYEab.js} +1 -1
  115. package/dist/assets/{NoDataTable-Mkdamra1-CCnSaZtC.js → NoDataTable-Mkdamra1-C4lxq944.js} +1 -1
  116. package/dist/assets/{NotFoundPage-DGkjOhKP-kjD5UcP7.js → NotFoundPage-DGkjOhKP-_tY2chCo.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js → NotificationSettingsPage-BhlKl9Ll-DUhiPe-6.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-DsgxTfdY-t5wE01Ro.js → NotificationsListConfig-DsgxTfdY-Bf7tXkyY.js} +1 -1
  119. package/dist/assets/{NotificationsPage-ZeNj-N6e-Bg1RwKL7.js → NotificationsPage-ZeNj-N6e-BTrejAUV.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BFHzD656-CkhDsmtK.js → OpExByVendorPage-BFHzD656-CtmebRpb.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-C0a1XRUE-Coei_22L.js → OverlayContainerPage-C0a1XRUE-V98nAOZV.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js → PandLWithForecastPage-Ccd2Dj3E-CdBcqIm3.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js → PaymentAccountSetupBillingAddressSection-NPYLXD6--CVxMCQA5.js} +1 -1
  124. package/dist/assets/{PeoplePage-Dzl5Uh33-C_9NQRDZ.js → PeoplePage-Dzl5Uh33-BdlH9bSI.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-B7wcRg4N-MgqN7eQE.js → ProductsCarousel-B7wcRg4N-CnpQ0WOo.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-38oPeuBR-DNrev2WE.js → PromoBaseCards-38oPeuBR-B0H8TJQa.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js → QBOConnectionDialog-Bn425Vnl-BbJL04ac.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js → QBOSetupSection-BqbiJ_dk-32r8g9xi.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js → ReimbursementApprovalRuleDetailPage-DmhPPX4d-D9mrhM9N.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js → ReimbursementApprovalRulesPage-DwaZeT8t-Dv8_jFtg.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js → ReimbursementDetailPage-D2tg-yOT-BzN7qc1_.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js → ReimbursementPromoPage-kn4Die2q-CKqS3hXc.js} +1 -1
  133. package/dist/assets/{ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js → ReimbursementSetUpPage-D4FP9co3-CEmWCDyN.js} +1 -1
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js → ReimbursementsBulkReviewDrawerPage-hhvxZzxC-DWqEVSUF.js} +1 -1
  135. package/dist/assets/{ReloadCard-CreyuBvN-CLMqgpFk.js → ReloadCard-CreyuBvN-DjNwhyuW.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js → ReportTableViewSelector-BeCqfOU9-Dl1-rF4w.js} +1 -1
  137. package/dist/assets/{ReportsPage-CZpFSu1Y-DlpOcAya.js → ReportsPage-CZpFSu1Y-CZ0qiQOk.js} +1 -1
  138. package/dist/assets/{RevenueChart-CI7LXu5--DgnFQndd.js → RevenueChart-CI7LXu5--C_eMlqa_.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-DaTETUBT-PWso5Dab.js → ReviewDetailsPage-DaTETUBT-BNZWzAUG.js} +1 -1
  140. package/dist/assets/{ReviewOverlay-De5_nrll-D6fwtyEd.js → ReviewOverlay-De5_nrll-UZnD0Wrb.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-CWH-iJqI-DmzPBpda.js → RoleWithToolTip-CWH-iJqI-1DRRWE9G.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js → ScheduleDetailsFixedAssetsPage-Bq9TnStX-BBlEeAEF.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-CkpwjK55-BLiF70NF.js → ScheduleDetailsPage-CkpwjK55-CdEJvs9J.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js → ScheduleSequenceTable-3IZuZOPj-CpD5-K5M.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-B29orzq3.js → ScreenRoutes-OiTPRoV-.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-DQMufunh-D76vpY_K.js → SetUpAccountSection-DQMufunh-CK9nyz6l.js} +1 -1
  147. package/dist/assets/{SignIn-xXGNpo08-CUzVPK00.js → SignIn-xXGNpo08-BfJajWh7.js} +1 -1
  148. package/dist/assets/{SignInScreen-CDr9y3Na.js → SignInScreen-C1mSw17d.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js → SpendManagementListViewPage-BnfCoW19-KBHNQHIP.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js → SpendManagementPerTabPage-CqbhJrUj-kkilMuTU.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-ajHIu1O8-Cq9RGBsG.js → SpendManagementSection-ajHIu1O8-DADkbXE-.js} +1 -1
  152. package/dist/assets/{StatementItem-GE_8ctAq-DDQXsDRX.js → StatementItem-GE_8ctAq-DrycMqry.js} +1 -1
  153. package/dist/assets/{StatementsPage-C3NFPx6M-jgAzPQMr.js → StatementsPage-C3NFPx6M-DxRvU8jY.js} +1 -1
  154. package/dist/assets/{StatusSwitcher-BFs1Anoq-B4RP8Uzy.js → StatusSwitcher-BFs1Anoq-DpyTt46Q.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-D66ATBlk-cmQvyV1w.js → SubTabSwitcher-D66ATBlk-DOhgjMp3.js} +1 -1
  156. package/dist/assets/{SummaryCard-Bm1IRZgD-Bll-orHR.js → SummaryCard-Bm1IRZgD-91ZI-22I.js} +1 -1
  157. package/dist/assets/{Switch-0GHq7mOt-Dq45hGqf.js → Switch-0GHq7mOt-DbAV4YYH.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-BGrBiImq-E6_WY2ZU.js → TaskManagementPage-BGrBiImq-BfzNLv5E.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js → TimeRangeSwitcher-BLZFMJtQ-DGm3ShK1.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js → TimeframeSwitcher-BsjH-yMO-BPnsY2-U.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js → TimeframeSwitcherWithToggle-Cu3G5WXl-DA09Uj2K.js} +1 -1
  162. package/dist/assets/{TopExCard-ZSEsgTG--BNm-M2ne.js → TopExCard-ZSEsgTG--CATJC-Xk.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-0MGEdNiZ-CVCWUWVh.js → TopExDetailPage-0MGEdNiZ-zdtgEwyG.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-C7wPASNo-BTqu7QgN.js → TransactionDetailPage-C7wPASNo-DbosApC9.js} +1 -1
  165. package/dist/assets/{TransactionList-Brm_EWed-DwQzznTi.js → TransactionList-Brm_EWed-Cq3RVCVg.js} +1 -1
  166. package/dist/assets/{TransactionListBig-Br5XrVkF-BW7DnMvS.js → TransactionListBig-Br5XrVkF-CTCHs4ax.js} +1 -1
  167. package/dist/assets/{TransactionListPage-BE_E_82V-SHPPjUOF.js → TransactionListPage-BE_E_82V-nYGMiY-b.js} +1 -1
  168. package/dist/assets/{TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js → TransactionVendorDetailPage-CtVIgF01-wm39V-7s.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-CCKQSH2d-21ckGGxB.js → TransferDrawerPage-CCKQSH2d-C1fxF28H.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js → TreasuryOverviewPage-D7OhHT_I-CJSivn-m.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-ssGWinby-BKoFmxRZ.js → TreasuryPromoPage-ssGWinby-7M6uQ6F0.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js → TreasuryStatementsPage-CB4g45eo-FvCbZGLY.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js → TreasuryTaxLetterPage-CixtQrG2-CdrNDE0k.js} +1 -1
  174. package/dist/assets/{TrendChart-ZXja3Lv--B4yGBgeP.js → TrendChart-ZXja3Lv--DjXJyQYi.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-Bacaqvbc-CDzpSeHr.js → TrendWithTransactions-Bacaqvbc-CuLqX3Nb.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js → UncategorizedAccountsMappingPage-DgSFpzWV-DQ46RXxs.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js → UnitIntegrationPage-B2KxkPGT-UD1zrCcb.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js → UploadAdditionalDocumentOverlay-DCq4eMPQ-DgDGrP6S.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-DyQl5kF8-BPyop29n.js → Vendor2FAPopup-DyQl5kF8-DEaADgAn.js} +1 -1
  180. package/dist/assets/{VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js → VendorACHDetailsPage-NEsVAzoZ-Bc_YmJ7L.js} +1 -1
  181. package/dist/assets/{VendorDetailPage-gDnCoaGz-Bq_C256n.js → VendorDetailPage-gDnCoaGz-DnPFm_s9.js} +1 -1
  182. package/dist/assets/{VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js → VendorDomesticWireDetailsPage-BeqPYONY-DWVhQVkv.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js → VendorFiling1099EditablePage-UIV2Tn2v-IWBkVx3W.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js → VendorFirstReviewPage-DiNHrTKs-dMUj2lfg.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js → VendorInternationalWireDetailsPage-X2xViJmq-1IEQyhex.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js → VendorInternationalWireSwiftDetailsPage-DUjY1sSV-7mNdGNdo.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-tcJAh1A7-COfHef35.js → VendorsAccountsSection-tcJAh1A7-Dj7jjfw5.js} +1 -1
  188. package/dist/assets/{VerifyDevice-BpRkPdzL-DdjhGhQl.js → VerifyDevice-BpRkPdzL-B5ybgDmP.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DVIeTdLq-CMw9Re6n.js → VideoPlayer-DVIeTdLq-C7AoMVy0.js} +1 -1
  190. package/dist/assets/{VideoPopup-CPW65Ljn-Mlf95YHy.js → VideoPopup-CPW65Ljn-DMNmv8U3.js} +1 -1
  191. package/dist/assets/{WarningsDrawerPage-DmT71mwN-DESwOtN_.js → WarningsDrawerPage-DmT71mwN-Di-UIPop.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js → ZeniAccountDetailPage-BDnKHtXx-_4OD2XSq.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js → ZeniAccountListViewPage-D1I68D9x-Bvus0P_k.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js → ZeniAccountNavBarPieces-2a3O6Mrv-Bn4VbLw2.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js → ZeniAccountPromoPage-C0xo5aaW-D7P5Lhzj.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js → ZeniAccountSetupPage-BfUwEF_n-Bwo0JfQm.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-DPuPyAW5-BSJS_xPn.js → ZeniCopyright-DPuPyAW5-Bnt6ioyH.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js → ZeniTransferAmountSlider-CPHnjZJx-BGffL5pM.js} +1 -1
  199. package/dist/assets/{_baseUnset-WRwI4F7w-C17FI5GR.js → _baseUnset-WRwI4F7w-SKv6CaOr.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DQrzJx-G.js → analyticsHelper-C19sEVMv.js} +1 -1
  201. package/dist/assets/{analyticsHelper-QM8g-I4_-BsSO6wHs.js → analyticsHelper-QM8g-I4_-D8fsuugi.js} +1 -1
  202. package/dist/assets/{chartTypes-BADtYh4F-X-tWlUJq.js → chartTypes-BADtYh4F-B1Z_E0y8.js} +1 -1
  203. package/dist/assets/{commonDimensions-B2oTTz3C-DxkHqcKn.js → commonDimensions-B2oTTz3C-BcwGbjhJ.js} +1 -1
  204. package/dist/assets/{detailCommon-B2986coM-C1gDOjW1.js → detailCommon-B2986coM-NlrX1KrH.js} +1 -1
  205. package/dist/assets/{downloadPdf-C0_jxUh_-bREzf3Cq.js → downloadPdf-C0_jxUh_-xl909S0g.js} +1 -1
  206. package/dist/assets/{flatten-CIVR5K8J-DvOZeE7b.js → flatten-CIVR5K8J-D-QSFstn.js} +1 -1
  207. package/dist/assets/{groupBy-LtwzERV9-C02NtlDV.js → groupBy-LtwzERV9-DfsHYWjt.js} +1 -1
  208. package/dist/assets/{index-2CdI-B2B.js → index-OJbFNHch.js} +4 -4
  209. package/dist/assets/map-CnboTxlt-iF8o7Kja.js +1 -0
  210. package/dist/assets/{mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js → mapLoadingInProgressToTreeNode-wIyHFu9f-BUan4l0E.js} +1 -1
  211. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js → mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-BBvkWVpb.js} +1 -1
  212. package/dist/assets/{mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js → mapSpacerToTreeNode-D35gt6vK-Dg4nN-DB.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js → mapTimeframeBalancesToTreeNode-CreSrgeo-DJ7qRU6g.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js → mapTimeframeBalancesToTreeNode-Cv8OFsQz-BQTTe1de.js} +1 -1
  215. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-B-rBOsE2.js} +1 -1
  216. package/dist/assets/{omit-5LZGrM3q-cCGLyNB9.js → omit-5LZGrM3q-Dkas3Ge8.js} +1 -1
  217. package/dist/assets/{orderBy-D3W4CDe6-BoPe-dQB.js → orderBy-D3W4CDe6-C2Pj0hxa.js} +1 -1
  218. package/dist/assets/{remove-ADLCpWJf-CcDvT7jc.js → remove-ADLCpWJf-C_kUyMnr.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-C_Swao_b-2UkzUVnC.js → toCOABalancesWithID-C_Swao_b-UbAQtm0o.js} +1 -1
  220. package/dist/assets/{toChartData-DfujfQ7D-nillWsTs.js → toChartData-DfujfQ7D-DwlIUYBD.js} +1 -1
  221. package/dist/assets/{uploadAttachment-Wnp0PZFn-CVVetHUv.js → uploadAttachment-Wnp0PZFn-BWKvLRtm.js} +1 -1
  222. package/dist/assets/{uploadReceipts-BkHrFC8j-DevoCqHx.js → uploadReceipts-BkHrFC8j-BKjYP7lf.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +1 -1
  225. package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +0 -1
  226. package/dist/assets/map-CnboTxlt-CZn0FfBt.js +0 -1
@@ -1,4 +1,4 @@
1
- import{dF as M,i as N,dN as P,a as H,j as l,dO as L,bm as $,co as B,b as o,eB as z,dj as _,cp as g,ah as T,t as S,gm as A,gn as q,go as G,af as J,cn as K,f as Q,C as m}from"./index-2CdI-B2B.js";import{a as w}from"./core-tlHkQPPu.js";import{n}from"./mui-kiGMfX4-.js";const xe=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:f,formState:{errors:y}}=M(),b=N(),[j,C]=w.useState(!1),k=P(y,e??""),D=H.getLocalizedStrings().common.currency,I=s=>{if(s!=null&&s)return{value:s,label:t.allOptions.find(h=>h.value===s)?.label??s,countryCode:t.allOptions.find(h=>h.value===s)?.countryCode??D.countryCode}},R={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"})},V={hasError:k,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(L,{name:e,control:f,defaultValue:t,rules:r,"data-testid":$("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:F,ref:E}})=>{const v=F;return w.createElement(B,{...V,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:I(v.selectedOption),options:t.allOptions,"data-testid":$("currency-select",e),onChange:x=>{i&&x?.value!=null&&v?.selectedOption===x.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:x?.value,allOptions:t.allOptions})},onMenuClose:()=>C(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:U,Option:W,Input:Z,SingleValue:ee,ValueContainer:Y,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:X},hideSelectedOptions:!1,styles:R,isDisabled:a!=null})}})},U=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(te,{controlStyle:u,menuIsOpen:r,isFocused:t,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},W=e=>{const{data:r,isSelected:t,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=r.countryCode,p=typeof r.label=="string"?r.label:r.value;return l.jsx(re,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:t,isDisabled:a,"data-testid":$("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:t,children:l.jsx(ne,{isSelected:t,isDisabled:a,children:r.label})}),t?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},X=e=>{const{options:r,children:t,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=r.indexOf(u)*i;return l.jsx(_,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:f,style:y})=>l.jsx(ce,{style:y,children:t[f]})})},Y=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),Z=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:r.label})})},O=n(T)`
1
+ import{dF as M,i as N,dN as P,a as H,j as l,dO as L,bm as $,co as B,b as o,eB as z,dj as _,cp as g,ah as T,t as S,gm as A,gn as q,go as G,af as J,cn as K,f as Q,C as m}from"./index-OJbFNHch.js";import{a as w}from"./core-tlHkQPPu.js";import{n}from"./mui-kiGMfX4-.js";const xe=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:f,formState:{errors:y}}=M(),b=N(),[j,C]=w.useState(!1),k=P(y,e??""),D=H.getLocalizedStrings().common.currency,I=s=>{if(s!=null&&s)return{value:s,label:t.allOptions.find(h=>h.value===s)?.label??s,countryCode:t.allOptions.find(h=>h.value===s)?.countryCode??D.countryCode}},R={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"})},V={hasError:k,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(L,{name:e,control:f,defaultValue:t,rules:r,"data-testid":$("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:F,ref:E}})=>{const v=F;return w.createElement(B,{...V,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:I(v.selectedOption),options:t.allOptions,"data-testid":$("currency-select",e),onChange:x=>{i&&x?.value!=null&&v?.selectedOption===x.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:x?.value,allOptions:t.allOptions})},onMenuClose:()=>C(!1),key:z(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:U,Option:W,Input:Z,SingleValue:ee,ValueContainer:Y,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:X},hideSelectedOptions:!1,styles:R,isDisabled:a!=null})}})},U=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(te,{controlStyle:u,menuIsOpen:r,isFocused:t,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},W=e=>{const{data:r,isSelected:t,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=r.countryCode,p=typeof r.label=="string"?r.label:r.value;return l.jsx(re,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:t,isDisabled:a,"data-testid":$("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:t,children:l.jsx(ne,{isSelected:t,isDisabled:a,children:r.label})}),t?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},X=e=>{const{options:r,children:t,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=r.indexOf(u)*i;return l.jsx(_,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:f,style:y})=>l.jsx(ce,{style:y,children:t[f]})})},Y=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),Z=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:r.label})})},O=n(T)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  `,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&A(e)===!1)return l.jsx(l.Fragment,{});{const r=q[`${G(e??"")}`];return l.jsx(ie,{children:l.jsx(r,{width:o.sp4,height:o.sp3})})}},te=n.span`
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{j as t,u as b,a as d,bB as l,bm as p,A as g,b as i,ad as x,H as h,L as m}from"./index-2CdI-B2B.js";import{a as u}from"./core-tlHkQPPu.js";import{n as o}from"./mui-kiGMfX4-.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const f=o.div`
1
+ import{j as t,u as b,a as d,bB as l,bm as p,A as g,b as i,ad as x,H as h,L as m}from"./index-OJbFNHch.js";import{a as u}from"./core-tlHkQPPu.js";import{n as o}from"./mui-kiGMfX4-.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const f=o.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -0,0 +1 @@
1
+ import{j as r}from"./index-OJbFNHch.js";import o from"./CustomerOnboardingNoStepsPage-B0y5uw1X-CpWrxFy5.js";import m from"./CustomerOnboardingPage-BheJqVUY-gSyXgh3g.js";import"./mui-kiGMfX4-.js";import"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./PaymentAccountSetupBillingAddressSection-NPYLXD6--CVxMCQA5.js";import"./SetUpAccountSection-DQMufunh-CK9nyz6l.js";import"./CustomerOnboardingDetailPageSkeleton-DImhzWZN-Cc3W2piF.js";import"./CompanyOfficerDetailsSection-K0bu4TF7-A5XuxES5.js";import"./LabeledAddressValueField-C74ZzWQ3-CvAM7L7i.js";import"./LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js";import"./LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js";import"./QBOSetupSection-BqbiJ_dk-32r8g9xi.js";import"./QBOConnectionDialog-Bn425Vnl-BbJL04ac.js";const P=t=>t.currentTenant?.productSettings.isOtherProductsEnabled===!0?r.jsx(o,{...t}):r.jsx(m,{...t});export{P as default};
@@ -1,4 +1,4 @@
1
- import{j as s,bm as v,c0 as H,i as b,u as D,cA as x,b as t,s as R,R as f,ad as E,a as T,C as u,S as I,j8 as L,h9 as N,av as P,ai as U,j9 as W}from"./index-2CdI-B2B.js";import{n as r}from"./mui-kiGMfX4-.js";import{o as S}from"./core-tlHkQPPu.js";const F=r(W)`
1
+ import{j as s,bm as v,c0 as H,i as b,u as D,cA as x,b as t,s as R,R as f,ad as E,a as T,C as u,S as I,j8 as L,h9 as N,av as P,ai as U,j9 as W}from"./index-OJbFNHch.js";import{n as r}from"./mui-kiGMfX4-.js";import{o as S}from"./core-tlHkQPPu.js";const F=r(W)`
2
2
  /* Size is controlled by styles.root prop */
3
3
  `,O=r.div`
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{a7 as le,j as n,gS as fe,u as Ce,i as Pe,a8 as we,j5 as be,a as xe,bB as ke,dt as Ae,gi as Ie,gj as ve,cf as $e,b as a,bm as Oe,aa as je,bC as Ve,c0 as Te,ad as Be,R as Q,ah as Le,s as $}from"./index-2CdI-B2B.js";import{n as c}from"./mui-kiGMfX4-.js";import{a as O}from"./core-tlHkQPPu.js";import{D as ze,A as Ee}from"./PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js";import{X as Ue}from"./CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./SetUpAccountSection-DQMufunh-D76vpY_K.js";const ee="onboardingPaymentAccountSetupSection",de="customerOnboardingNoStepsDetailPage",t="onboardingSubscriptionBillingAddress",Y={titleWidth:new Q(343,580,726,826),subTitlePaddingTop:new Q($[3],$[3]),subTitlePaddingBottom:new Q($[3],$[3])},De=xe.getLocalizedStrings(),Fe=({onboardingCustomerView:e,connectedAccountProvider:w,cardPaymentView:S,stripeKey:V,googleAPIKey:T,signedInUser:b,currentTenant:B,onUpdateStep:L,handleCreateCardSetupIntent:z,handleConfirmCardSetupIntent:E,updateCardPaymentModalState:x,handleAddCardPaymentSource:U,resetCardPaymentViewState:D,handleResetCardPaymentErrorStatuses:F,redirectToProductSuitePage:k,onUpdateCustomerView:_,...R})=>{const p=Ce(),K=le(),{analytics:f}=K,{onFetchLinkTokenClick:M,onUpdatePaymentAccountStatus:N,onUpdatePaymentAccountLoginStatus:G,onEstablishConnectionClick:C,onEstablishConnectionSuccess:W,handleLogOutClick:Z,onZeniLogoClick:H,onAddressEditHandler:A}=R,X=Pe(),s=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:j(e),values:j(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:ce,saveStatus:m,paymentAccount:I,paymentAccountStatus:ue,plaidConnectionDetails:te,uiState:pe,allNationalityCountries:ne,subscriptionBillingAddress:g}=e,{customerOnboardingPage:me,common:y}=De,{footer:ge,steps:ye}=me,{buttons:q}=ge,ae=ye.link_payment_account,v=ke(m.fetchState),oe=Object.values(ce).findIndex(d=>d?.isSelectedForVerification===!0)??0,Se=`Officer_${oe<0?1:oe+1}`;O.useEffect(()=>{const d=s.watch((l,{name:o})=>{o!=null&&l!=null&&Ae(()=>(async(r,i)=>{if(r.includes(t)&&i[t]!=null){const u=s.getValues(`${t}`).country;let h=i[t];if(r.includes(`${t}.street`)&&i[t].street!=null){const{addressValue:P}=i[t].street,J=Ie(P?.country);h={street:i[t].street??y.strings.empty,city:P?.locality??y.strings.empty,state:P?.administrativeAreaLevel1??y.strings.empty,country:J,countryCode:P?.countryCode??y.strings.empty,postalCode:P?.postalCode??y.strings.empty,secondaryInfo:i[t].secondaryInfo,suite:i[t].suite},u.selectedOption!==J.selectedOption&&(h={...h,country:J})}else(r===`${t}.country`&&u.selectedOption!=null||u.selectedOption!=null&&r.includes(`${t}.street`)===!1)&&(h={...h,countryCode:ve(u.selectedOption)});A(h)}})(o,l))});return()=>{d.unsubscribe()}}),O.useEffect(()=>{v==="In-Progress"&&m.fetchState==="Completed"&&s.reset(j(e),{keepDirtyValues:!1})},[s,e,v,m.fetchState,ne]);const se=()=>{const d=Object.values(te).some(u=>u.fetchStatus.fetchState==="Completed"),l=I?.providerVerificationStatus?.code?.includes("verified")??!1,o=S.cardsList.length>0,r=S.bankAccountsList[0],i=r?.providerVerificationStatus?.code?.includes("verified")??!1;return d&&l||!l&&!I&&o||!o&&!I&&i};O.useEffect(()=>{v==="In-Progress"&&m.fetchState==="Completed"&&(s.reset(j(e),{keepDirtyValues:!1}),k())},[s,e,v,m.fetchState,ne,k]);const[ie,he]=O.useState(!1);return n.jsxs(_e,{children:[n.jsxs(Re,{windowSize:p,children:[n.jsx($e,{title:ae.sectionTitle,showBackButton:!1,backgroundColor:X.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:p!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:a.sp0,paddingBottom:a.sp0},leftSideComponent:n.jsx(Ge,{children:n.jsx(We,{"data-testid":Oe("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:H})})}),n.jsx(je,{...s,children:n.jsx(Me,{id:(re=de,`${re}_form`),children:n.jsxs(Ke,{children:[n.jsx(Ze,{windowSize:p,children:ae.sectionSubTitle}),n.jsx(ze,{connectedAccountProvider:w,paymentAccount:I,accountStatus:ue,plaidConnectionDetails:te,subscriptionBillingAddressSectionId:t,sectionId:ee,analytics:f,isValid:se(),onFetchLinkTokenClick:M,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:N,onUpdatePaymentAccountLoginStatus:G,onEstablishConnectionSuccess:W,updateCardPaymentModalState:x,cardPaymentView:S,resetCardPaymentViewState:D,cardSetupInProgress:ie,googleAPIKey:T,subscriptionBillingAddress:g})]},"link_payment_account")})}),n.jsx(Ve,{formId:`${de}`,leftSideComponent:n.jsx(Ne,{windowSize:p,children:n.jsx(Te,{signedInUser:b,currentTenant:B,onLogOutClick:Z})}),style:{width:p==="small"?"auto":"100%",padding:a.sp0,rowGap:a.sp1},helperContainerStyle:{width:"100%",rowGap:a.sp1,marginTop:"12px",marginBottom:a.sp2},primaryBtn:{onClick:async()=>{const d=await s.trigger(t),l=await s.trigger(ee);d&&l&&((()=>{const o=s.getValues(t),r={street:o.street.addressString,suite:o.suite,city:o.city,state:o.state,postalCode:o.postalCode,country:o.country.selectedOption??y.strings.empty,secondaryInfo:o.secondaryInfo};f.trackOnboardingBillingAddressSave(r)})(),L("link_payment_account"),_(Se,!1,!0))},label:q.submit,isLoading:m.fetchState==="In-Progress",isDisabled:m.fetchState==="In-Progress"||!(function(){if(s.getFieldState(t).error)return!1;const d=s.getValues(t),l=g?.street.join("").trim(),o=g?.city,r=g?.state,i=g?.country,u=g?.postalCode!=null&&g.postalCode||d.postalCode||y.strings.empty;return!!l&&!!o&&!!r&&!!i&&!!u}()&&se())},containerStyle:{width:"auto",justifyContent:"center"},helperText:q.submitText.replace("__action__",q.submit),helperStyle:{width:"auto",padding:a.sp0,rowGap:a.sp0,textAlign:"center"}})]}),n.jsx(Ee,{handleConfirmCardSetupIntent:E,updateCardPaymentModalState:x,handleCreateCardSetupIntent:z,handleAddCardPaymentSource:U,cardPaymentView:S,stripeKey:V,isCardPaymentOpen:pe.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:F,cardSetupInProgress:ie,setCardSetupInProgress:he})]});var re},_e=c.div`
1
+ import{a7 as le,j as n,gS as fe,u as Ce,i as Pe,a8 as we,j5 as be,a as xe,bB as ke,dt as Ae,gi as Ie,gj as ve,cf as $e,b as a,bm as Oe,aa as je,bC as Ve,c0 as Te,ad as Be,R as Q,ah as Le,s as $}from"./index-OJbFNHch.js";import{n as c}from"./mui-kiGMfX4-.js";import{a as O}from"./core-tlHkQPPu.js";import{D as ze,A as Ee}from"./PaymentAccountSetupBillingAddressSection-NPYLXD6--CVxMCQA5.js";import{X as Ue}from"./CustomerOnboardingDetailPageSkeleton-DImhzWZN-Cc3W2piF.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./SetUpAccountSection-DQMufunh-CK9nyz6l.js";const ee="onboardingPaymentAccountSetupSection",de="customerOnboardingNoStepsDetailPage",t="onboardingSubscriptionBillingAddress",Y={titleWidth:new Q(343,580,726,826),subTitlePaddingTop:new Q($[3],$[3]),subTitlePaddingBottom:new Q($[3],$[3])},De=xe.getLocalizedStrings(),Fe=({onboardingCustomerView:e,connectedAccountProvider:w,cardPaymentView:S,stripeKey:V,googleAPIKey:T,signedInUser:b,currentTenant:B,onUpdateStep:L,handleCreateCardSetupIntent:z,handleConfirmCardSetupIntent:E,updateCardPaymentModalState:x,handleAddCardPaymentSource:U,resetCardPaymentViewState:D,handleResetCardPaymentErrorStatuses:F,redirectToProductSuitePage:k,onUpdateCustomerView:_,...R})=>{const p=Ce(),K=le(),{analytics:f}=K,{onFetchLinkTokenClick:M,onUpdatePaymentAccountStatus:N,onUpdatePaymentAccountLoginStatus:G,onEstablishConnectionClick:C,onEstablishConnectionSuccess:W,handleLogOutClick:Z,onZeniLogoClick:H,onAddressEditHandler:A}=R,X=Pe(),s=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:j(e),values:j(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:ce,saveStatus:m,paymentAccount:I,paymentAccountStatus:ue,plaidConnectionDetails:te,uiState:pe,allNationalityCountries:ne,subscriptionBillingAddress:g}=e,{customerOnboardingPage:me,common:y}=De,{footer:ge,steps:ye}=me,{buttons:q}=ge,ae=ye.link_payment_account,v=ke(m.fetchState),oe=Object.values(ce).findIndex(d=>d?.isSelectedForVerification===!0)??0,Se=`Officer_${oe<0?1:oe+1}`;O.useEffect(()=>{const d=s.watch((l,{name:o})=>{o!=null&&l!=null&&Ae(()=>(async(r,i)=>{if(r.includes(t)&&i[t]!=null){const u=s.getValues(`${t}`).country;let h=i[t];if(r.includes(`${t}.street`)&&i[t].street!=null){const{addressValue:P}=i[t].street,J=Ie(P?.country);h={street:i[t].street??y.strings.empty,city:P?.locality??y.strings.empty,state:P?.administrativeAreaLevel1??y.strings.empty,country:J,countryCode:P?.countryCode??y.strings.empty,postalCode:P?.postalCode??y.strings.empty,secondaryInfo:i[t].secondaryInfo,suite:i[t].suite},u.selectedOption!==J.selectedOption&&(h={...h,country:J})}else(r===`${t}.country`&&u.selectedOption!=null||u.selectedOption!=null&&r.includes(`${t}.street`)===!1)&&(h={...h,countryCode:ve(u.selectedOption)});A(h)}})(o,l))});return()=>{d.unsubscribe()}}),O.useEffect(()=>{v==="In-Progress"&&m.fetchState==="Completed"&&s.reset(j(e),{keepDirtyValues:!1})},[s,e,v,m.fetchState,ne]);const se=()=>{const d=Object.values(te).some(u=>u.fetchStatus.fetchState==="Completed"),l=I?.providerVerificationStatus?.code?.includes("verified")??!1,o=S.cardsList.length>0,r=S.bankAccountsList[0],i=r?.providerVerificationStatus?.code?.includes("verified")??!1;return d&&l||!l&&!I&&o||!o&&!I&&i};O.useEffect(()=>{v==="In-Progress"&&m.fetchState==="Completed"&&(s.reset(j(e),{keepDirtyValues:!1}),k())},[s,e,v,m.fetchState,ne,k]);const[ie,he]=O.useState(!1);return n.jsxs(_e,{children:[n.jsxs(Re,{windowSize:p,children:[n.jsx($e,{title:ae.sectionTitle,showBackButton:!1,backgroundColor:X.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:p!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:a.sp0,paddingBottom:a.sp0},leftSideComponent:n.jsx(Ge,{children:n.jsx(We,{"data-testid":Oe("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:H})})}),n.jsx(je,{...s,children:n.jsx(Me,{id:(re=de,`${re}_form`),children:n.jsxs(Ke,{children:[n.jsx(Ze,{windowSize:p,children:ae.sectionSubTitle}),n.jsx(ze,{connectedAccountProvider:w,paymentAccount:I,accountStatus:ue,plaidConnectionDetails:te,subscriptionBillingAddressSectionId:t,sectionId:ee,analytics:f,isValid:se(),onFetchLinkTokenClick:M,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:N,onUpdatePaymentAccountLoginStatus:G,onEstablishConnectionSuccess:W,updateCardPaymentModalState:x,cardPaymentView:S,resetCardPaymentViewState:D,cardSetupInProgress:ie,googleAPIKey:T,subscriptionBillingAddress:g})]},"link_payment_account")})}),n.jsx(Ve,{formId:`${de}`,leftSideComponent:n.jsx(Ne,{windowSize:p,children:n.jsx(Te,{signedInUser:b,currentTenant:B,onLogOutClick:Z})}),style:{width:p==="small"?"auto":"100%",padding:a.sp0,rowGap:a.sp1},helperContainerStyle:{width:"100%",rowGap:a.sp1,marginTop:"12px",marginBottom:a.sp2},primaryBtn:{onClick:async()=>{const d=await s.trigger(t),l=await s.trigger(ee);d&&l&&((()=>{const o=s.getValues(t),r={street:o.street.addressString,suite:o.suite,city:o.city,state:o.state,postalCode:o.postalCode,country:o.country.selectedOption??y.strings.empty,secondaryInfo:o.secondaryInfo};f.trackOnboardingBillingAddressSave(r)})(),L("link_payment_account"),_(Se,!1,!0))},label:q.submit,isLoading:m.fetchState==="In-Progress",isDisabled:m.fetchState==="In-Progress"||!(function(){if(s.getFieldState(t).error)return!1;const d=s.getValues(t),l=g?.street.join("").trim(),o=g?.city,r=g?.state,i=g?.country,u=g?.postalCode!=null&&g.postalCode||d.postalCode||y.strings.empty;return!!l&&!!o&&!!r&&!!i&&!!u}()&&se())},containerStyle:{width:"auto",justifyContent:"center"},helperText:q.submitText.replace("__action__",q.submit),helperStyle:{width:"auto",padding:a.sp0,rowGap:a.sp0,textAlign:"center"}})]}),n.jsx(Ee,{handleConfirmCardSetupIntent:E,updateCardPaymentModalState:x,handleCreateCardSetupIntent:z,handleAddCardPaymentSource:U,cardPaymentView:S,stripeKey:V,isCardPaymentOpen:pe.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:F,cardSetupInProgress:ie,setCardSetupInProgress:he})]});var re},_e=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{j as s,gS as Yt,u as Ye,i as Gt,a8 as Xt,dt as ge,a as Ge,bB as He,gi as xt,gj as Zt,G as yt,b3 as Qe,cf as Mt,b as le,aa as Jt,s as X,bC as en,j5 as tn,hw as nn,gT as gt,R as he,hz as Se,dF as an,ah as on,j6 as ht,ab as St,dD as sn,hy as rn}from"./index-2CdI-B2B.js";import{a as p}from"./core-tlHkQPPu.js";import{n as P,k as Ot}from"./mui-kiGMfX4-.js";import{bi as G}from"./zeni-epic-state-Bo1aGezX.js";import{D as Ct,A as cn}from"./PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js";import{q as bt,X as ln,F as Pt}from"./CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js";import{E as dn,y as pn}from"./CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js";import{y as un}from"./QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./SetUpAccountSection-DQMufunh-D76vpY_K.js";import"./LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js";import"./LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js";import"./LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js";import"./QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js";const mn=({companyView:t,companyOfficerLocalData:k,allNationalityCountries:r,isVerificationPopupOpen:y,setIsVerificationPopupOpen:v,verifiedPhoneNumber:I,onPhoneVerified:g,...x})=>{const f=Ye(),T=t?.companyOfficers.slice(0,10).sort((L,pe)=>L.user.createTime?.isAfter(pe.user.createTime)===!0?1:-1),c=T?.map(L=>L.user),{company_officer:N}=Ge.getLocalizedStrings().customerOnboardingPage.sections,{title:$}=N,A=t?.company.company.featuresActivationInfo.connectedAccountProvider;return s.jsx(fn,{children:s.jsx(pn,{companyOfficerData:k,allOfficers:c??[],allNationalityCountries:r,sectionHeader:$,isPopupOpen:y,productType:"onboarding",connectedAccountProvider:A,showInfoTooltip:f!=="small",showCompletedIcon:f==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:I,onPhoneVerified:g,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...x})})},fn=P.div`
1
+ import{j as s,gS as Yt,u as Ye,i as Gt,a8 as Xt,dt as ge,a as Ge,bB as He,gi as xt,gj as Zt,G as yt,b3 as Qe,cf as Mt,b as le,aa as Jt,s as X,bC as en,j5 as tn,hw as nn,gT as gt,R as he,hz as Se,dF as an,ah as on,j6 as ht,ab as St,dD as sn,hy as rn}from"./index-OJbFNHch.js";import{a as p}from"./core-tlHkQPPu.js";import{n as P,k as Ot}from"./mui-kiGMfX4-.js";import{bi as G}from"./zeni-epic-state-Bo1aGezX.js";import{D as Ct,A as cn}from"./PaymentAccountSetupBillingAddressSection-NPYLXD6--CVxMCQA5.js";import{q as bt,X as ln,F as Pt}from"./CustomerOnboardingDetailPageSkeleton-DImhzWZN-Cc3W2piF.js";import{E as dn,y as pn}from"./CompanyOfficerDetailsSection-K0bu4TF7-A5XuxES5.js";import{y as un}from"./QBOSetupSection-BqbiJ_dk-32r8g9xi.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./SetUpAccountSection-DQMufunh-CK9nyz6l.js";import"./LabeledAddressValueField-C74ZzWQ3-CvAM7L7i.js";import"./LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js";import"./LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js";import"./QBOConnectionDialog-Bn425Vnl-BbJL04ac.js";const mn=({companyView:t,companyOfficerLocalData:k,allNationalityCountries:r,isVerificationPopupOpen:y,setIsVerificationPopupOpen:v,verifiedPhoneNumber:I,onPhoneVerified:g,...x})=>{const f=Ye(),T=t?.companyOfficers.slice(0,10).sort((L,pe)=>L.user.createTime?.isAfter(pe.user.createTime)===!0?1:-1),c=T?.map(L=>L.user),{company_officer:N}=Ge.getLocalizedStrings().customerOnboardingPage.sections,{title:$}=N,A=t?.company.company.featuresActivationInfo.connectedAccountProvider;return s.jsx(fn,{children:s.jsx(pn,{companyOfficerData:k,allOfficers:c??[],allNationalityCountries:r,sectionHeader:$,isPopupOpen:y,productType:"onboarding",connectedAccountProvider:A,showInfoTooltip:f!=="small",showCompletedIcon:f==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:I,onPhoneVerified:g,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...x})})},fn=P.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{u as F,a7 as R,a$ as H,i as U,a as W,j as e,cf as D,b as t,bm as y,c0 as M,gS as A,ah as I,ad as J,C as l,t as C,ag as N,L as V,H as _,as as Z,bz as G}from"./index-2CdI-B2B.js";import{a as n}from"./core-tlHkQPPu.js";import{n as i}from"./mui-kiGMfX4-.js";import{fT as q}from"./zeni-epic-state-Bo1aGezX.js";import K from"./ConfettiBurst-D34cviSS-Z_WPGmrN.js";import{J as Q}from"./ProductsCarousel-B7wcRg4N-MgqN7eQE.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const X=W.getLocalizedStrings(),Be=({hasVerifiedBankAccount:o,meetingUrl:$,showUpdatePaymentDetailButton:m=!1,isVisitingFirstTime:b=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=F(),x=R().analytics,f=H(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,B=U(),{customerOnboardingPage:c}=X,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:O}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:u}=O;return h&&g&&u?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&u?[r.taxAndPayroll]:g&&u?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:u?[r.onlyTax]:[r.default]};return e.jsxs(e.Fragment,{children:[e.jsx(Y,{children:e.jsxs(ee,{windowSize:d,children:[e.jsx(te,{windowSize:d,children:e.jsx(D,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:B.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(xe,{children:e.jsx(fe,{"data-testid":y("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:m?e.jsxs(ye,{"data-testid":y("update-to-payment-address-details"),onClick:()=>(s=>{if(v(),!s)return;let r="";r=o?"bank_account":"credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,q(s.productSettings))})(a),children:[e.jsx(we,{}),e.jsx(Ce,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(ke,{})})}),e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{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(re,{children:[e.jsxs(k,{children:[e.jsx(ne,{children:e.jsx(se,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(k,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(ae,{children:e.jsx(le,{children:c.productSuite.sectionTitle})}),e.jsx(de,{children:e.jsx(Q,{scale:1,showUpdatePaymentDetailButton:m,stopCarousel:w})}),e.jsxs(ce,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(pe,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(he,{className:"discover-class"})]})]}),e.jsx(ge,{children:e.jsxs(ue,{children:[e.jsx(me,{windowSize:d,children:e.jsx(M,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(A,{isFooterRendered:!1,meetingUrl:$,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(K,{showConfetti:b})]})},Y=i.div`
1
+ import{u as F,a7 as R,a$ as H,i as U,a as W,j as e,cf as D,b as t,bm as y,c0 as M,gS as A,ah as I,ad as J,C as l,t as C,ag as N,L as V,H as _,as as Z,bz as G}from"./index-OJbFNHch.js";import{a as n}from"./core-tlHkQPPu.js";import{n as i}from"./mui-kiGMfX4-.js";import{fT as q}from"./zeni-epic-state-Bo1aGezX.js";import K from"./ConfettiBurst-D34cviSS---m1oxyT.js";import{J as Q}from"./ProductsCarousel-B7wcRg4N-CnpQ0WOo.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const X=W.getLocalizedStrings(),Be=({hasVerifiedBankAccount:o,meetingUrl:$,showUpdatePaymentDetailButton:m=!1,isVisitingFirstTime:b=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=F(),x=R().analytics,f=H(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,B=U(),{customerOnboardingPage:c}=X,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:O}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:u}=O;return h&&g&&u?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&u?[r.taxAndPayroll]:g&&u?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:u?[r.onlyTax]:[r.default]};return e.jsxs(e.Fragment,{children:[e.jsx(Y,{children:e.jsxs(ee,{windowSize:d,children:[e.jsx(te,{windowSize:d,children:e.jsx(D,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:B.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(xe,{children:e.jsx(fe,{"data-testid":y("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:m?e.jsxs(ye,{"data-testid":y("update-to-payment-address-details"),onClick:()=>(s=>{if(v(),!s)return;let r="";r=o?"bank_account":"credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,q(s.productSettings))})(a),children:[e.jsx(we,{}),e.jsx(Ce,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(ke,{})})}),e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{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(re,{children:[e.jsxs(k,{children:[e.jsx(ne,{children:e.jsx(se,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(k,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(ae,{children:e.jsx(le,{children:c.productSuite.sectionTitle})}),e.jsx(de,{children:e.jsx(Q,{scale:1,showUpdatePaymentDetailButton:m,stopCarousel:w})}),e.jsxs(ce,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(pe,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(he,{className:"discover-class"})]})]}),e.jsx(ge,{children:e.jsxs(ue,{children:[e.jsx(me,{windowSize:d,children:e.jsx(M,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(A,{isFooterRendered:!1,meetingUrl:$,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(K,{showConfetti:b})]})},Y=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{a_ as Xt,a$ as ee,j as e,b0 as Vt,G as bA,b as o,b1 as Zt,b2 as UA,b3 as $t,b4 as _t,b5 as Ar,b6 as er,b7 as tr,b8 as rr,b9 as Ze,ba as or,bb as ar,bc as ir,bd as gr,be as nr,bf as Cr,bg as sr,bh as Er,bi as dr,s as S,bj as Br,u as tA,a as h,bk as O,bl as W,bm as k,bn as G,bo as $,bp as X,bq as rA,ai as oA,br as $e,bs as U,bt as Y,bu as OA,C as f,ak as lr,f as _e,R as eA,i as CA,bv as Qr,bw as TA,bx as cr,by as Ir,bz as hr,af as J,bA as jA,a8 as mr,bB as At,aa as pr,bC as ur,bD as xr,bE as HA,d as fr,e as wr,bF as et,bG as tt,bH as rt,bI as kr,bJ as Dr,as as YA,ah as MA,bK as ot,bL as yr,bM as KA,bN as vr,bO as br,bP as jr,bQ as Mr,bR as Sr,bS as Rr,bT as Lr,A as at,t as Fr,bU as Jr,g as Pr,bV as it,bW as gt,aj as Ur,bX as Or,ag as Tr,av as nt}from"./index-2CdI-B2B.js";import{a as t,o as w,d as Hr}from"./core-tlHkQPPu.js";import{n as g,b as Yr,k as R,c as pA}from"./mui-kiGMfX4-.js";import{F as Kr,b as zr,d as Nr}from"./ArAgingChart-DIABTV5P-DnLiVsos.js";import{E as oe,Z as Gr}from"./AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js";import{bh as qr,eI as Ct,bj as st}from"./zeni-epic-state-Bo1aGezX.js";import{l as Wr}from"./DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js";import{j as Xr,b as te,f as Et}from"./ReloadCard-CreyuBvN-CLMqgpFk.js";import{i as Vr,q as SA,M as QA}from"./TopExCard-ZSEsgTG--BNm-M2ne.js";import{t as Zr,u as $r,A as _r,Y as Ao,m as eo}from"./RevenueChart-CI7LXu5--DgnFQndd.js";import to from"./InsightsCardStack-CAwTWreO-DWsXatY7.js";import{e as _}from"./SummaryCard-Bm1IRZgD-Bll-orHR.js";import{t as ro,r as oo}from"./arrow-south-east-round-D5pI7KCC-DyTRFc-f.js";import{h as nA}from"./NavigationArrow-DlO0Lww9-Ct543iDt.js";import{n as zA}from"./NavigationDots-DO5y6mdV-DGnlFBBn.js";import ao from"./CompanyPassportCard-Bn50f4y5-D-A9Krsj.js";import{t as io}from"./gift-box-DZx81G9E-DbnUGiwi.js";import go from"./InformationCardStack-BLD4XmMT-Dp1BbBqU.js";import{c as dt}from"./chartTypes-BADtYh4F-X-tWlUJq.js";import{e as no}from"./toCOABalancesWithID-C_Swao_b-2UkzUVnC.js";import{t as Co}from"./toChartData-DfujfQ7D-nillWsTs.js";import{o as so}from"./AreaChart-2AgE74bB-juQGB2-h.js";import{_ as Eo}from"./Area-Sl30rGq6-WMXLxt2t.js";import{r as Bo,e as lo}from"./graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js";import{m as Qo,u as co}from"./PromoBaseCards-38oPeuBR-DNrev2WE.js";import{T as Io,G as ho}from"./VideoPlayer-DVIeTdLq-CMw9Re6n.js";import mo from"./ConfettiBurst-D34cviSS-Z_WPGmrN.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./map-CnboTxlt-CZn0FfBt.js";import"./ComposedChart-Cot0K7Et-DQrzoGG2.js";import"./graphic-no-data-l-CfhD7tYw-SmhQgAdh.js";var ae,ie;const po=UA(function(){if(ie)return ae;ie=1;var A=_t(),a=Ar(),r=er(),i=Math.ceil,n=Math.max;return ae=function(C,E,s){E=(s?a(C,E,s):E===void 0)?1:n(r(E),0);var d=C==null?0:C.length;if(!d||E<1)return[];for(var Q=0,l=0,B=Array(i(d/E));Q<d;)B[l++]=A(C,Q,Q+=E);return B}}());var ge,ne;const uo=UA(ne?ge:(ne=1,ge=function(A){for(var a=-1,r=A==null?0:A.length,i=0,n=[];++a<r;){var C=A[a];C&&(n[i++]=C)}return n}));var Ce,se,Ee,de;const xo=UA(de?Ee:(de=1,Ee=function(){if(se)return Ce;se=1;var A=or(),a=ar(),r=Kr(),i=ir();return Ce=function(n,C){return(i(n)?A:a)(n,r(C))}}()));var Be,le,Qe,ce,Ie,he,me,pe;function fo(){if(ce)return Qe;ce=1;var A=nr(),a=Ze(),r=Cr(),i=sr(),n=function(){if(le)return Be;le=1;var E=Er(),s=dr();return Be=function(d){return s(d)&&E(d)}}(),C=Math.max;return Qe=function(E){if(!E||!E.length)return[];var s=0;return E=A(E,function(d){if(n(d))return s=C(d.length,s),!0}),i(s,function(d){return a(E,r(d))})}}const wo=UA(function(){if(pe)return me;pe=1;var A=tr(),a=function(){if(he)return Ie;he=1;var i=rr(),n=Ze(),C=fo();return Ie=function(E,s){if(!E||!E.length)return[];var d=C(E);return s==null?d:n(d,function(Q){return i(s,void 0,Q)})}}(),r=A(function(i){var n=i.length,C=n>1?i[n-1]:void 0;return C=typeof C=="function"?(i.pop(),C):void 0,a(i,C)});return me=r}());var ue=function(A,a,r){return A[a]?A[a][0]?A[a][0][r]:A[a][r]:a==="contentBoxSize"?A.contentRect[r==="inlineSize"?"width":"height"]:void 0};function ko(A){A===void 0&&(A={});var a=A.onResize,r=t.useRef(void 0);r.current=a;var i=A.round||Math.round,n=t.useRef(),C=t.useState({width:void 0,height:void 0}),E=C[0],s=C[1],d=t.useRef(!1);t.useEffect(function(){return function(){d.current=!0}},[]);var Q,l,B,x,m,I,p=t.useRef({width:void 0,height:void 0}),c=(Q=t.useCallback(function(u){return n.current&&n.current.box===A.box&&n.current.round===i||(n.current={box:A.box,round:i,instance:new ResizeObserver(function(D){var y=D[0],v=A.box==="border-box"?"borderBoxSize":A.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",T=ue(y,v,"inlineSize"),K=ue(y,v,"blockSize"),z=T?i(T):void 0,q=K?i(K):void 0;if(p.current.width!==z||p.current.height!==q){var b={width:z,height:q};p.current.width=z,p.current.height=q,r.current?r.current(b):d.current||s(b)}})}),n.current.instance.observe(u,{box:A.box}),function(){n.current&&n.current.instance.unobserve(u)}},[A.box,i]),l=A.ref,B=t.useRef(null),x=t.useRef(null),m=t.useRef(),I=t.useCallback(function(){var u=null;B.current?u=B.current:l&&(u=l instanceof HTMLElement?l:l.current),x.current&&x.current.element===u&&x.current.reporter===I||(m.current&&(m.current(),m.current=null),x.current={reporter:I,element:u},u&&(m.current=Q(u)))},[l,Q]),t.useEffect(function(){I()},[I]),t.useCallback(function(u){B.current=u,I()},[I]));return t.useMemo(function(){return{ref:c,width:E.width,height:E.height}},[c,E?E.width:null,E?E.height:null])}const Do=g(rA)`
1
+ import{a_ as Xt,a$ as ee,j as e,b0 as Vt,G as bA,b as o,b1 as Zt,b2 as UA,b3 as $t,b4 as _t,b5 as Ar,b6 as er,b7 as tr,b8 as rr,b9 as Ze,ba as or,bb as ar,bc as ir,bd as gr,be as nr,bf as Cr,bg as sr,bh as Er,bi as dr,s as S,bj as Br,u as tA,a as h,bk as O,bl as W,bm as k,bn as G,bo as $,bp as X,bq as rA,ai as oA,br as $e,bs as U,bt as Y,bu as OA,C as f,ak as lr,f as _e,R as eA,i as CA,bv as Qr,bw as TA,bx as cr,by as Ir,bz as hr,af as J,bA as jA,a8 as mr,bB as At,aa as pr,bC as ur,bD as xr,bE as HA,d as fr,e as wr,bF as et,bG as tt,bH as rt,bI as kr,bJ as Dr,as as YA,ah as MA,bK as ot,bL as yr,bM as KA,bN as vr,bO as br,bP as jr,bQ as Mr,bR as Sr,bS as Rr,bT as Lr,A as at,t as Fr,bU as Jr,g as Pr,bV as it,bW as gt,aj as Ur,bX as Or,ag as Tr,av as nt}from"./index-OJbFNHch.js";import{a as t,o as w,d as Hr}from"./core-tlHkQPPu.js";import{n as g,b as Yr,k as R,c as pA}from"./mui-kiGMfX4-.js";import{F as Kr,b as zr,d as Nr}from"./ArAgingChart-DIABTV5P-D3hRykT_.js";import{E as oe,Z as Gr}from"./AccountsPromoCardStack-CeGcTU8h-nrGLKwQX.js";import{bh as qr,eI as Ct,bj as st}from"./zeni-epic-state-Bo1aGezX.js";import{l as Wr}from"./DashboardSidebarBackgroundAnimation-DHlKExbg-2TSvr-F-.js";import{j as Xr,b as te,f as Et}from"./ReloadCard-CreyuBvN-DjNwhyuW.js";import{i as Vr,q as SA,M as QA}from"./TopExCard-ZSEsgTG--CATJC-Xk.js";import{t as Zr,u as $r,A as _r,Y as Ao,m as eo}from"./RevenueChart-CI7LXu5--C_eMlqa_.js";import to from"./InsightsCardStack-CAwTWreO-DMHtrXvo.js";import{e as _}from"./SummaryCard-Bm1IRZgD-91ZI-22I.js";import{t as ro,r as oo}from"./arrow-south-east-round-D5pI7KCC-DyTRFc-f.js";import{h as nA}from"./NavigationArrow-DlO0Lww9-C_GP4JM3.js";import{n as zA}from"./NavigationDots-DO5y6mdV-CX8opgkb.js";import ao from"./CompanyPassportCard-Bn50f4y5-DOiZtliu.js";import{t as io}from"./gift-box-DZx81G9E-DbnUGiwi.js";import go from"./InformationCardStack-BLD4XmMT-CaIFPHpb.js";import{c as dt}from"./chartTypes-BADtYh4F-B1Z_E0y8.js";import{e as no}from"./toCOABalancesWithID-C_Swao_b-UbAQtm0o.js";import{t as Co}from"./toChartData-DfujfQ7D-DwlIUYBD.js";import{o as so}from"./AreaChart-2AgE74bB-DgDnH-B0.js";import{_ as Eo}from"./Area-Sl30rGq6-CogxmVvt.js";import{r as Bo,e as lo}from"./graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js";import{m as Qo,u as co}from"./PromoBaseCards-38oPeuBR-B0H8TJQa.js";import{T as Io,G as ho}from"./VideoPlayer-DVIeTdLq-C7AoMVy0.js";import mo from"./ConfettiBurst-D34cviSS---m1oxyT.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./map-CnboTxlt-iF8o7Kja.js";import"./ComposedChart-Cot0K7Et-Cs0IcUoo.js";import"./graphic-no-data-l-CfhD7tYw-SmhQgAdh.js";var ae,ie;const po=UA(function(){if(ie)return ae;ie=1;var A=_t(),a=Ar(),r=er(),i=Math.ceil,n=Math.max;return ae=function(C,E,s){E=(s?a(C,E,s):E===void 0)?1:n(r(E),0);var d=C==null?0:C.length;if(!d||E<1)return[];for(var Q=0,l=0,B=Array(i(d/E));Q<d;)B[l++]=A(C,Q,Q+=E);return B}}());var ge,ne;const uo=UA(ne?ge:(ne=1,ge=function(A){for(var a=-1,r=A==null?0:A.length,i=0,n=[];++a<r;){var C=A[a];C&&(n[i++]=C)}return n}));var Ce,se,Ee,de;const xo=UA(de?Ee:(de=1,Ee=function(){if(se)return Ce;se=1;var A=or(),a=ar(),r=Kr(),i=ir();return Ce=function(n,C){return(i(n)?A:a)(n,r(C))}}()));var Be,le,Qe,ce,Ie,he,me,pe;function fo(){if(ce)return Qe;ce=1;var A=nr(),a=Ze(),r=Cr(),i=sr(),n=function(){if(le)return Be;le=1;var E=Er(),s=dr();return Be=function(d){return s(d)&&E(d)}}(),C=Math.max;return Qe=function(E){if(!E||!E.length)return[];var s=0;return E=A(E,function(d){if(n(d))return s=C(d.length,s),!0}),i(s,function(d){return a(E,r(d))})}}const wo=UA(function(){if(pe)return me;pe=1;var A=tr(),a=function(){if(he)return Ie;he=1;var i=rr(),n=Ze(),C=fo();return Ie=function(E,s){if(!E||!E.length)return[];var d=C(E);return s==null?d:n(d,function(Q){return i(s,void 0,Q)})}}(),r=A(function(i){var n=i.length,C=n>1?i[n-1]:void 0;return C=typeof C=="function"?(i.pop(),C):void 0,a(i,C)});return me=r}());var ue=function(A,a,r){return A[a]?A[a][0]?A[a][0][r]:A[a][r]:a==="contentBoxSize"?A.contentRect[r==="inlineSize"?"width":"height"]:void 0};function ko(A){A===void 0&&(A={});var a=A.onResize,r=t.useRef(void 0);r.current=a;var i=A.round||Math.round,n=t.useRef(),C=t.useState({width:void 0,height:void 0}),E=C[0],s=C[1],d=t.useRef(!1);t.useEffect(function(){return function(){d.current=!0}},[]);var Q,l,B,x,m,I,p=t.useRef({width:void 0,height:void 0}),c=(Q=t.useCallback(function(u){return n.current&&n.current.box===A.box&&n.current.round===i||(n.current={box:A.box,round:i,instance:new ResizeObserver(function(D){var y=D[0],v=A.box==="border-box"?"borderBoxSize":A.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",T=ue(y,v,"inlineSize"),K=ue(y,v,"blockSize"),z=T?i(T):void 0,q=K?i(K):void 0;if(p.current.width!==z||p.current.height!==q){var b={width:z,height:q};p.current.width=z,p.current.height=q,r.current?r.current(b):d.current||s(b)}})}),n.current.instance.observe(u,{box:A.box}),function(){n.current&&n.current.instance.unobserve(u)}},[A.box,i]),l=A.ref,B=t.useRef(null),x=t.useRef(null),m=t.useRef(),I=t.useCallback(function(){var u=null;B.current?u=B.current:l&&(u=l instanceof HTMLElement?l:l.current),x.current&&x.current.element===u&&x.current.reporter===I||(m.current&&(m.current(),m.current=null),x.current={reporter:I,element:u},u&&(m.current=Q(u)))},[l,Q]),t.useEffect(function(){I()},[I]),t.useCallback(function(u){B.current=u,I()},[I]));return t.useMemo(function(){return{ref:c,width:E.width,height:E.height}},[c,E?E.width:null,E?E.height:null])}const Do=g(rA)`
2
2
  color: ${A=>A.theme.colors.champion};
3
3
  `,xe=g.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{u as I,i as U,a as S,a$ as Pe,j as s,cf as Qe,G as Je,A as Xe,cj as et,b as i,R as T,b3 as Q,ck as tt,bG as at,cl as st,bs as ot,cm as nt,af as se,s as N,f as Ne,B as Re,C as F,as as Ie,br as it,bM as rt,aj as ct,cn as lt,aw as dt,co as pt,cp as oe,av as ut,ai as gt,cq as ht}from"./index-2CdI-B2B.js";import{a as k,o as X}from"./core-tlHkQPPu.js";import{n as u,k as Le}from"./mui-kiGMfX4-.js";import{bh as mt,eK as ft,dE as bt,eL as xt,eM as _t,eN as wt,eO as St,eP as yt,eQ as vt,eR as Ct,eS as jt}from"./zeni-epic-state-Bo1aGezX.js";import{a as Y,s as ae}from"./analyticsHelper-QM8g-I4_-BsSO6wHs.js";import{F as kt,d as Ot}from"./ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js";import{k as $t}from"./InsightsSection-DJrMi3DN-DUYhJ5vl.js";import{Y as xe,F as Bt,T as Pt,D as ee,y as fe}from"./detailCommon-B2986coM-C1gDOjW1.js";import{t as Nt,u as Rt,m as _e,Y as we,A as Se}from"./RevenueChart-CI7LXu5--DgnFQndd.js";import{x as It}from"./NoDataChart-C0lCeeVH-BiooJKO2.js";import{e as M}from"./getReferrerType-D1egX4iL-cWt5sFuQ.js";import{i as Lt}from"./TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js";import{v as Dt}from"./Switch-0GHq7mOt-Dq45hGqf.js";import{m as De}from"./TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js";import{r as Tt,N as W,a as zt,C as he,H as At}from"./CollapsableReportTable-B3_in9eE-D8gjZt8q.js";import{s as Mt,c as Ft,n as Et,a as q,o as ye,i as ve,l as Ce}from"./mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js";import{a as Vt}from"./NoDataTable-Mkdamra1-CCnSaZtC.js";import{a as ne,s as ie}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js";import{n as re}from"./mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./NavigationDots-DO5y6mdV-DGnlFBBn.js";import"./chartTypes-BADtYh4F-X-tWlUJq.js";import"./toCOABalancesWithID-C_Swao_b-2UkzUVnC.js";import"./toChartData-DfujfQ7D-nillWsTs.js";import"./ComposedChart-Cot0K7Et-DQrzoGG2.js";import"./Area-Sl30rGq6-WMXLxt2t.js";import"./AccountRow-DbyUdPZG-D3G-oWRQ.js";import"./useFormControl-DPydD0oc-BkCU7DyG.js";import"./graphic-no-data-l-CfhD7tYw-SmhQgAdh.js";const Wt=e=>k.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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"}),k.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.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"}),k.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"}),k.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),k.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"})),Ht=u.div`
1
+ import{u as I,i as U,a as S,a$ as Pe,j as s,cf as Qe,G as Je,A as Xe,cj as et,b as i,R as T,b3 as Q,ck as tt,bG as at,cl as st,bs as ot,cm as nt,af as se,s as N,f as Ne,B as Re,C as F,as as Ie,br as it,bM as rt,aj as ct,cn as lt,aw as dt,co as pt,cp as oe,av as ut,ai as gt,cq as ht}from"./index-OJbFNHch.js";import{a as k,o as X}from"./core-tlHkQPPu.js";import{n as u,k as Le}from"./mui-kiGMfX4-.js";import{bh as mt,eK as ft,dE as bt,eL as xt,eM as _t,eN as wt,eO as St,eP as yt,eQ as vt,eR as Ct,eS as jt}from"./zeni-epic-state-Bo1aGezX.js";import{a as Y,s as ae}from"./analyticsHelper-QM8g-I4_-D8fsuugi.js";import{F as kt,d as Ot}from"./ReportTableViewSelector-BeCqfOU9-Dl1-rF4w.js";import{k as $t}from"./InsightsSection-DJrMi3DN-BZzGhpNe.js";import{Y as xe,F as Bt,T as Pt,D as ee,y as fe}from"./detailCommon-B2986coM-NlrX1KrH.js";import{t as Nt,u as Rt,m as _e,Y as we,A as Se}from"./RevenueChart-CI7LXu5--C_eMlqa_.js";import{x as It}from"./NoDataChart-C0lCeeVH-DA9wYEab.js";import{e as M}from"./getReferrerType-D1egX4iL-cWt5sFuQ.js";import{i as Lt}from"./TimeRangeSwitcher-BLZFMJtQ-DGm3ShK1.js";import{v as Dt}from"./Switch-0GHq7mOt-DbAV4YYH.js";import{m as De}from"./TimeframeSwitcher-BsjH-yMO-BPnsY2-U.js";import{r as Tt,N as W,a as zt,C as he,H as At}from"./CollapsableReportTable-B3_in9eE-DAO-TPrY.js";import{s as Mt,c as Ft,n as Et,a as q,o as ye,i as ve,l as Ce}from"./mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-BBvkWVpb.js";import{a as Vt}from"./NoDataTable-Mkdamra1-C4lxq944.js";import{a as ne,s as ie}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-B-rBOsE2.js";import{n as re}from"./mapLoadingInProgressToTreeNode-wIyHFu9f-BUan4l0E.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./NavigationDots-DO5y6mdV-CX8opgkb.js";import"./chartTypes-BADtYh4F-B1Z_E0y8.js";import"./toCOABalancesWithID-C_Swao_b-UbAQtm0o.js";import"./toChartData-DfujfQ7D-DwlIUYBD.js";import"./ComposedChart-Cot0K7Et-Cs0IcUoo.js";import"./Area-Sl30rGq6-CogxmVvt.js";import"./AccountRow-DbyUdPZG-kPApYWvO.js";import"./useFormControl-DPydD0oc-BkCU7DyG.js";import"./graphic-no-data-l-CfhD7tYw-SmhQgAdh.js";const Wt=e=>k.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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"}),k.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),k.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"}),k.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"}),k.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),k.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"})),Ht=u.div`
2
2
  justify-content: center;
3
3
  align-items: center;
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{bw as c,j as a,bE as h,b as u}from"./index-2CdI-B2B.js";import{a as s}from"./core-tlHkQPPu.js";import{b as x,n as b}from"./mui-kiGMfX4-.js";const A=s.memo(function({christmasAnimationEnabled:e=!1,newYearAnimationEnabled:t=!1}){const o=x(),l=e||t,r=t?"DashboardNewYearShow":"DashboardChristmasSnow",[n,m]=c(r,l),[i,p]=s.useState(null);n==null||i!=null||m||p(n);const d=e&&o.mode==="light"?.7:.2;return(e||t)&&i!=null?a.jsx(w,{contextWiseOpacity:d,newYearAnimationEnabled:t,children:a.jsx(h,{style:{width:"inherit",height:"inherit",display:"block"},animationData:i,play:!0,loop:!t||5,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),w=b.div`
1
+ import{bw as c,j as a,bE as h,b as u}from"./index-OJbFNHch.js";import{a as s}from"./core-tlHkQPPu.js";import{b as x,n as b}from"./mui-kiGMfX4-.js";const A=s.memo(function({christmasAnimationEnabled:e=!1,newYearAnimationEnabled:t=!1}){const o=x(),l=e||t,r=t?"DashboardNewYearShow":"DashboardChristmasSnow",[n,m]=c(r,l),[i,p]=s.useState(null);n==null||i!=null||m||p(n);const d=e&&o.mode==="light"?.7:.2;return(e||t)&&i!=null?a.jsx(w,{contextWiseOpacity:d,newYearAnimationEnabled:t,children:a.jsx(h,{style:{width:"inherit",height:"inherit",display:"block"},animationData:i,play:!0,loop:!t||5,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),w=b.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{bn as u,iW as $,u as y,j as l,b as i,ah as d,ai as c}from"./index-2CdI-B2B.js";import{n as t}from"./mui-kiGMfX4-.js";import{b as S}from"./BoxItem-B6Qj2tSj-aLWYhGMW.js";import{e as j}from"./commonDimensions-B2oTTz3C-DxkHqcKn.js";function H({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:g}=e,f=r.length>0?r:m,a=u("0,0.00",x),o=$(g),n=y(),h=l.jsxs(N,{children:[l.jsx(P,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(W,{windowSize:n,children:[l.jsx(R,{children:f}),o!=null?l.jsxs(C,{windowSize:n,children:[l.jsx(E,{windowSize:n}),l.jsx(D,{color:o?.color,children:o?.value})]}):null]})}),l.jsxs(k,{windowSize:n,children:[s!=null?l.jsx(v,{children:l.jsx(z,{className:"tag",children:s})}):null,l.jsx(B,{windowSize:n,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(S,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const k=t.div`
1
+ import{bn as u,iW as $,u as y,j as l,b as i,ah as d,ai as c}from"./index-OJbFNHch.js";import{n as t}from"./mui-kiGMfX4-.js";import{b as S}from"./BoxItem-B6Qj2tSj-J1Dptt9x.js";import{e as j}from"./commonDimensions-B2oTTz3C-BcwGbjhJ.js";function H({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:g}=e,f=r.length>0?r:m,a=u("0,0.00",x),o=$(g),n=y(),h=l.jsxs(N,{children:[l.jsx(P,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(W,{windowSize:n,children:[l.jsx(R,{children:f}),o!=null?l.jsxs(C,{windowSize:n,children:[l.jsx(E,{windowSize:n}),l.jsx(D,{color:o?.color,children:o?.value})]}):null]})}),l.jsxs(k,{windowSize:n,children:[s!=null?l.jsx(v,{children:l.jsx(z,{className:"tag",children:s})}):null,l.jsx(B,{windowSize:n,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(S,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const k=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{i as z,u as M,j3 as C,j as e,cf as R,a as Y,bG as D,b as r,C as f,dj as L,R as F,af as B,ah as A,s as g}from"./index-2CdI-B2B.js";import{a as b}from"./core-tlHkQPPu.js";import{n as a}from"./mui-kiGMfX4-.js";import{y as I,s as N}from"./groupBy-LtwzERV9-C02NtlDV.js";import{a as T}from"./map-CnboTxlt-CZn0FfBt.js";import{i as P}from"./orderBy-D3W4CDe6-BoPe-dQB.js";import{bj as E}from"./zeni-epic-state-Bo1aGezX.js";import{s as O}from"./BoxItem-B6Qj2tSj-aLWYhGMW.js";import{e as V}from"./commonDimensions-B2oTTz3C-DxkHqcKn.js";import{c as G}from"./DepositAccTransactionItem-C36JnddA-CD1u3HOE.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const n=Y.getLocalizedStrings(),H={listItemMargin:new F(g[3],g[8])},K=C(function(t){const d=I(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),m=N(d,o=>o.length>0);return T(m,o=>({date:o[0].transactionDate,transactions:P(o,h=>h.transactionDate,"desc")}))}),ht=({transactionListView:t,onBackClick:d})=>{const m=z(),o=M(),h=b.createRef(),p=b.useRef(null),l=K(t.transactions),j=t.depositAccountName,x=l.length===0,k=i=>x===!1?l[i].transactions.length*V.transactionItemHeightResponsive.value(o)+45:24,S=({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(Q,{children:E().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((v,u)=>e.jsx(G,{data:v,boxType:O(u,s.transactions.length)},u))})]})})})}return e.jsx(w,{style:{...c},children:e.jsx(W,{children:e.jsx($,{windowSize:o,children:e.jsx(J,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(q,{children:[e.jsx(R,{title:`${j} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:m.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(D,{children:({height:i,width:c})=>e.jsx(X,{ref:h,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},w=a.div``,$=a.div`
1
+ import{i as z,u as M,j3 as C,j as e,cf as R,a as Y,bG as D,b as r,C as f,dj as L,R as F,af as B,ah as A,s as g}from"./index-OJbFNHch.js";import{a as b}from"./core-tlHkQPPu.js";import{n as a}from"./mui-kiGMfX4-.js";import{y as I,s as N}from"./groupBy-LtwzERV9-DfsHYWjt.js";import{a as T}from"./map-CnboTxlt-iF8o7Kja.js";import{i as P}from"./orderBy-D3W4CDe6-C2Pj0hxa.js";import{bj as E}from"./zeni-epic-state-Bo1aGezX.js";import{s as O}from"./BoxItem-B6Qj2tSj-J1Dptt9x.js";import{e as V}from"./commonDimensions-B2oTTz3C-BcwGbjhJ.js";import{c as G}from"./DepositAccTransactionItem-C36JnddA-BuRFl8Tj.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const n=Y.getLocalizedStrings(),H={listItemMargin:new F(g[3],g[8])},K=C(function(t){const d=I(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),m=N(d,o=>o.length>0);return T(m,o=>({date:o[0].transactionDate,transactions:P(o,h=>h.transactionDate,"desc")}))}),ht=({transactionListView:t,onBackClick:d})=>{const m=z(),o=M(),h=b.createRef(),p=b.useRef(null),l=K(t.transactions),j=t.depositAccountName,x=l.length===0,k=i=>x===!1?l[i].transactions.length*V.transactionItemHeightResponsive.value(o)+45:24,S=({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(Q,{children:E().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((v,u)=>e.jsx(G,{data:v,boxType:O(u,s.transactions.length)},u))})]})})})}return e.jsx(w,{style:{...c},children:e.jsx(W,{children:e.jsx($,{windowSize:o,children:e.jsx(J,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(q,{children:[e.jsx(R,{title:`${j} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:m.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(D,{children:({height:i,width:c})=>e.jsx(X,{ref:h,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},w=a.div``,$=a.div`
2
2
  margin: ${t=>`${r.sp0} ${H.listItemMargin.valuePx(t.windowSize)}`};
3
3
  `,W=a.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{u as q,a8 as G,a as j,dt as H,gg as J,b3 as K,j as n,dc as Q,dd as X,de as Y,aa as Z,bC as ee,R as l,b as ne,bJ as oe,s as a}from"./index-2CdI-B2B.js";import{a as y}from"./core-tlHkQPPu.js";import{n as g}from"./mui-kiGMfX4-.js";import{bi as $}from"./zeni-epic-state-Bo1aGezX.js";import{S as ae}from"./BankAccountSection-CwPIXA5w-DE6FMEHD.js";import{C as te}from"./MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js";import{u as ie,j as se}from"./BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js";import{g as re}from"./MailingDetailsSection-C_TtoLpj-DODfBmzp.js";const i={paddingTopBottom:new l(a[3],a[3]),paddingRight:new l(a[3],a[8]),paddingLeft:new l(a[3],a[6]),buttonWidth:new l(140,140),marginLeft:new l(a[4],a[6])},w="domesticWireDetailsPage",p="bankAccountSection",D="mailingAddressSection",v=e=>`${e}_form`,Ae=e=>{const{bankAccountCreationState:t,fetchBankNameByRoutingStatus:m,addressType:f,bankAccountToCreate:s,addressToEdit:r,mailingAddress:k,isDisabled:h,companyName:P,isMagicLink:u,currencySymbol:R,amount:z,onSaveHandler:L,onWireDetailsUpdated:E,onFetchBankName:W,onAddressClick:I,onBackClick:x}=e,d=q(),c=G({mode:"onBlur",reValidateMode:"onChange",defaultValues:y.useMemo(()=>ce(s,r),[s,r])}),[M,b]=y.useState(!1),o=j.getLocalizedStrings().spendManagement.billPay.vendorCreation,F=j.getLocalizedStrings().common.footer,U=o.wireDetails.domestic,O={onOkClick:()=>{b(!1),c.reset(),x?.()},onCancelClick:()=>{b(!1)}};y.useEffect(()=>{const B=c.watch((S,{name:N})=>{N!=null&&S!=null&&H(()=>(async(_,T)=>{const C=T[p].bankRoutingNumber;E(T),_===`${p}.bankRoutingNumber`&&C?.length===9&&J.test(C)===!0&&W?.(C)})(N,S))});return()=>{B.unsubscribe()}});const V=c.handleSubmit(B=>{m.fetchState!=="In-Progress"&&L("wire")}),A=!K(k!=null?$(k):k,r!=null?$(r):r)||de(s)||c.formState.isDirty;return n.jsxs(be,{children:[n.jsxs(ue,{size:d,children:[M===!0?n.jsx(Q,{titleComponent:n.jsx(Y,{children:o.discardTitle}),descriptionComponent:n.jsx(X,{children:o.discardDescription}),primaryButtonText:o.discard,secondaryButtonText:o.cancel,action:O}):null,n.jsx(ie,{header:u?n.jsx(te,{companyName:P??"",currencySymbol:R??"",amount:z??0}):U.addWireDetails,isMagicLink:u,isDirty:A,onBackClick:x,setShowConfirmationPopup:b}),t?.fetchState==="Error"&&t.error?.code===409?n.jsx(se,{warningText:o.bankAccountCommon.accountExistWarning}):null,n.jsx(me,{size:d,children:o.bankAccountCommon.accountDetailsTitle}),n.jsx(Z,{...c,children:n.jsxs("form",{id:v(w),onSubmit:V,children:[n.jsx(le,{size:d,children:n.jsx(ae,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:m,sectionId:p,isDisabled:h})}),n.jsx(re,{sectionId:D,isDisabled:h,addressType:f,addressToEdit:r,onAddressClick:I})]})})]}),n.jsx(ee,{formId:v(w),primaryBtn:{label:u?o.bankAccountCommon.submitDetails:o.bankAccountCommon.saveAccount,isLoading:t.fetchState==="In-Progress",style:{width:i.buttonWidth.value(d)},isDisabled:h!=null},showCancel:!u,cancelBtn:{label:F.cancel,style:{width:i.buttonWidth.value(d)},shouldResetOnCancel:!1,onClick:()=>{A?b(!0):(c.reset(),x?.())}}})]})},ce=(e,t)=>({[p]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[D]:{mailingAddress:t}}),de=e=>{if(e==null)return!1;const{bankAccountName:t,bankAccountNumber:m,bankName:f,bankRoutingNumber:s}=e;return!!t||!!m||!!f||!!s},le=g.div`
1
+ import{u as q,a8 as G,a as j,dt as H,gg as J,b3 as K,j as n,dc as Q,dd as X,de as Y,aa as Z,bC as ee,R as l,b as ne,bJ as oe,s as a}from"./index-OJbFNHch.js";import{a as y}from"./core-tlHkQPPu.js";import{n as g}from"./mui-kiGMfX4-.js";import{bi as $}from"./zeni-epic-state-Bo1aGezX.js";import{S as ae}from"./BankAccountSection-CwPIXA5w-DDDsPYwm.js";import{C as te}from"./MagicLinkTitleSection-CzGvBYzB-B3pEwVq_.js";import{u as ie,j as se}from"./BankAccountWarningSection-DGSw5Uvq-DbOA1NjS.js";import{g as re}from"./MailingDetailsSection-C_TtoLpj-DxhbJD-R.js";const i={paddingTopBottom:new l(a[3],a[3]),paddingRight:new l(a[3],a[8]),paddingLeft:new l(a[3],a[6]),buttonWidth:new l(140,140),marginLeft:new l(a[4],a[6])},w="domesticWireDetailsPage",p="bankAccountSection",D="mailingAddressSection",v=e=>`${e}_form`,Ae=e=>{const{bankAccountCreationState:t,fetchBankNameByRoutingStatus:m,addressType:f,bankAccountToCreate:s,addressToEdit:r,mailingAddress:k,isDisabled:h,companyName:P,isMagicLink:u,currencySymbol:R,amount:z,onSaveHandler:L,onWireDetailsUpdated:E,onFetchBankName:W,onAddressClick:I,onBackClick:x}=e,d=q(),c=G({mode:"onBlur",reValidateMode:"onChange",defaultValues:y.useMemo(()=>ce(s,r),[s,r])}),[M,b]=y.useState(!1),o=j.getLocalizedStrings().spendManagement.billPay.vendorCreation,F=j.getLocalizedStrings().common.footer,U=o.wireDetails.domestic,O={onOkClick:()=>{b(!1),c.reset(),x?.()},onCancelClick:()=>{b(!1)}};y.useEffect(()=>{const B=c.watch((S,{name:N})=>{N!=null&&S!=null&&H(()=>(async(_,T)=>{const C=T[p].bankRoutingNumber;E(T),_===`${p}.bankRoutingNumber`&&C?.length===9&&J.test(C)===!0&&W?.(C)})(N,S))});return()=>{B.unsubscribe()}});const V=c.handleSubmit(B=>{m.fetchState!=="In-Progress"&&L("wire")}),A=!K(k!=null?$(k):k,r!=null?$(r):r)||de(s)||c.formState.isDirty;return n.jsxs(be,{children:[n.jsxs(ue,{size:d,children:[M===!0?n.jsx(Q,{titleComponent:n.jsx(Y,{children:o.discardTitle}),descriptionComponent:n.jsx(X,{children:o.discardDescription}),primaryButtonText:o.discard,secondaryButtonText:o.cancel,action:O}):null,n.jsx(ie,{header:u?n.jsx(te,{companyName:P??"",currencySymbol:R??"",amount:z??0}):U.addWireDetails,isMagicLink:u,isDirty:A,onBackClick:x,setShowConfirmationPopup:b}),t?.fetchState==="Error"&&t.error?.code===409?n.jsx(se,{warningText:o.bankAccountCommon.accountExistWarning}):null,n.jsx(me,{size:d,children:o.bankAccountCommon.accountDetailsTitle}),n.jsx(Z,{...c,children:n.jsxs("form",{id:v(w),onSubmit:V,children:[n.jsx(le,{size:d,children:n.jsx(ae,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:m,sectionId:p,isDisabled:h})}),n.jsx(re,{sectionId:D,isDisabled:h,addressType:f,addressToEdit:r,onAddressClick:I})]})})]}),n.jsx(ee,{formId:v(w),primaryBtn:{label:u?o.bankAccountCommon.submitDetails:o.bankAccountCommon.saveAccount,isLoading:t.fetchState==="In-Progress",style:{width:i.buttonWidth.value(d)},isDisabled:h!=null},showCancel:!u,cancelBtn:{label:F.cancel,style:{width:i.buttonWidth.value(d)},shouldResetOnCancel:!1,onClick:()=>{A?b(!0):(c.reset(),x?.())}}})]})},ce=(e,t)=>({[p]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[D]:{mailingAddress:t}}),de=e=>{if(e==null)return!1;const{bankAccountName:t,bankAccountNumber:m,bankName:f,bankRoutingNumber:s}=e;return!!t||!!m||!!f||!!s},le=g.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{j as t,cT as rt,b as r,u as xe,cU as at,aj as Ue,a as _,C as ye,R as K,f as st,cV as ot,cz as qe,cF as Se,t as se,s as U,bJ as Ge,ah as Q,ak as we,cW as re,i as Ze,cH as it,B as ce,ai as $e,cx as lt,bM as nt,cX as dt,cY as ct,cZ as pt,cq as mt,c_ as ve,c$ as Fe,A as Je,d0 as Xe,cG as ft,aw as ht,cP as ut,as as bt}from"./index-2CdI-B2B.js";import{a as h,o as je}from"./core-tlHkQPPu.js";import{n as o,k as Ke}from"./mui-kiGMfX4-.js";import{f1 as M,bO as I,f2 as be,f3 as te,bj as gt,f4 as J,f5 as Oe,f6 as ae,f7 as C,f8 as xt,f9 as yt,fa as wt,fb as $t,fc as vt}from"./zeni-epic-state-Bo1aGezX.js";import{a as Ft}from"./analyticsHelper-QM8g-I4_-BsSO6wHs.js";import{F as jt,d as Ot}from"./ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js";import{r as Yt}from"./page-detail-L_-1iNMr-DCxtcaOg.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./CollapsableReportTable-B3_in9eE-D8gjZt8q.js";import"./AccountRow-DbyUdPZG-D3G-oWRQ.js";import"./useFormControl-DPydD0oc-BkCU7DyG.js";const kt=["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 pe(e,s,a,i){let l=0;if(e!==1&&(s==="quarter"||s==="year"))switch(s){case"quarter":{const{startOfTimeframeFY:m}=M(a.startDate,e,"quarter"),{endOfTimeframeFY:g}=M(a.endDate,e,"quarter");l=Math.ceil(Math.ceil(g.diff(m,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:m}=M(a.startDate,e,"year"),{endOfTimeframeFY:g}=M(a.endDate,e,"year");l=Math.ceil(Math.ceil(g.diff(m,"month",!0))/12);break}}else l=a.endDate.endOf(s).diff(a.startDate.startOf(s),s)+1;return i!=null?Math.min(l,i):l}function de(e,s,a,i=1){if(i>1){const l=te(a,e,i-1,s),{startOfTimeframeFY:m}=M(l,e,s);return{firstMonthOfFY:e,timeframe:s,dateRange:{startDate:m,endDate:a}}}return{firstMonthOfFY:e,timeframe:s,dateRange:{startDate:a,endDate:a}}}class Pe{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(s,a,i,l,m,g=i.endDate){if(i.endDate.isBefore(i.startDate))throw Error(`Invalid data available period ${JSON.stringify(i)}`);this._firstMonthOfFY=s,this._timeframe=a,this._dataAvailable=i,this._numberOfPeriods=l,this._maxNumberOfPeriods=m,this._endDate=g}get value(){return de(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(s){this._timeframe=s}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(s){if(s<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=s}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const s=be(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:a}=M(s,this.firstMonthOfFY,this.timeframe);return a.isAfter(this.dataAvailable.endDate)&&(a=this.dataAvailable.endDate),{startDate:this.startDate,endDate:a}}canUpdateToPeriod(s,a){if(this.firstMonthOfFY===1||this.timeframe==="month")return s.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&a.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:i}=M(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:l}=M(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return s.isBetween(i,l,null,"[]")&&a.isBetween(i,l,null,"[]")}}updatePeriod(s,a){if(!this.canUpdateToPeriod(s,a))return!1;let i=pe(this.firstMonthOfFY,this.timeframe,{startDate:s,endDate:a});if(i>this.maxNumberOfPeriods){i=this._numberOfPeriods;const{endOfTimeframeFY:l}=M(be(s,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=l}else if(s.isAfter(a)){i=1;const{endOfTimeframeFY:l}=M(s,this.firstMonthOfFY,this.timeframe);this._endDate=l}else this._endDate=a;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=i,!0}updateStartDate(s){return this.updatePeriod(s,this.endDate)}updateEndDate(s){return this.updatePeriod(this.startDate,s)}}const oe=["1","2","3","4"],ie=gt().localeData().monthsShort(),N={pdf:12,excel:100,csv:100},q=(e,s,a)=>{const i=_.getLocalizedStrings().dateFormat.analytics.YYYYFormat,l=[];if(e===1||s==="month"){const{startDate:m,endDate:g}=a;let x=m;for(;x.isSameOrBefore(g,"year");)l.push(x.format(i)),x=be(x,e,1,"year")}else{const{startOfTimeframeFY:m}=M(a.startDate,e,"year"),{endOfTimeframeFY:g}=M(a.endDate,e,"year");let{fyYear:x}=C(m,e);const{fyYear:O}=C(g,e);for(;x<=O;)l.push(`${x}`),x++}return l},Dt=o.div`
1
+ import{j as t,cT as rt,b as r,u as xe,cU as at,aj as Ue,a as _,C as ye,R as K,f as st,cV as ot,cz as qe,cF as Se,t as se,s as U,bJ as Ge,ah as Q,ak as we,cW as re,i as Ze,cH as it,B as ce,ai as $e,cx as lt,bM as nt,cX as dt,cY as ct,cZ as pt,cq as mt,c_ as ve,c$ as Fe,A as Je,d0 as Xe,cG as ft,aw as ht,cP as ut,as as bt}from"./index-OJbFNHch.js";import{a as h,o as je}from"./core-tlHkQPPu.js";import{n as o,k as Ke}from"./mui-kiGMfX4-.js";import{f1 as M,bO as I,f2 as be,f3 as te,bj as gt,f4 as J,f5 as Oe,f6 as ae,f7 as C,f8 as xt,f9 as yt,fa as wt,fb as $t,fc as vt}from"./zeni-epic-state-Bo1aGezX.js";import{a as Ft}from"./analyticsHelper-QM8g-I4_-D8fsuugi.js";import{F as jt,d as Ot}from"./ReportTableViewSelector-BeCqfOU9-Dl1-rF4w.js";import{r as Yt}from"./page-detail-L_-1iNMr-DCxtcaOg.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./CollapsableReportTable-B3_in9eE-DAO-TPrY.js";import"./AccountRow-DbyUdPZG-kPApYWvO.js";import"./useFormControl-DPydD0oc-BkCU7DyG.js";const kt=["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 pe(e,s,a,i){let l=0;if(e!==1&&(s==="quarter"||s==="year"))switch(s){case"quarter":{const{startOfTimeframeFY:m}=M(a.startDate,e,"quarter"),{endOfTimeframeFY:g}=M(a.endDate,e,"quarter");l=Math.ceil(Math.ceil(g.diff(m,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:m}=M(a.startDate,e,"year"),{endOfTimeframeFY:g}=M(a.endDate,e,"year");l=Math.ceil(Math.ceil(g.diff(m,"month",!0))/12);break}}else l=a.endDate.endOf(s).diff(a.startDate.startOf(s),s)+1;return i!=null?Math.min(l,i):l}function de(e,s,a,i=1){if(i>1){const l=te(a,e,i-1,s),{startOfTimeframeFY:m}=M(l,e,s);return{firstMonthOfFY:e,timeframe:s,dateRange:{startDate:m,endDate:a}}}return{firstMonthOfFY:e,timeframe:s,dateRange:{startDate:a,endDate:a}}}class Pe{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(s,a,i,l,m,g=i.endDate){if(i.endDate.isBefore(i.startDate))throw Error(`Invalid data available period ${JSON.stringify(i)}`);this._firstMonthOfFY=s,this._timeframe=a,this._dataAvailable=i,this._numberOfPeriods=l,this._maxNumberOfPeriods=m,this._endDate=g}get value(){return de(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(s){this._timeframe=s}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(s){if(s<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=s}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const s=be(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:a}=M(s,this.firstMonthOfFY,this.timeframe);return a.isAfter(this.dataAvailable.endDate)&&(a=this.dataAvailable.endDate),{startDate:this.startDate,endDate:a}}canUpdateToPeriod(s,a){if(this.firstMonthOfFY===1||this.timeframe==="month")return s.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&a.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:i}=M(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:l}=M(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return s.isBetween(i,l,null,"[]")&&a.isBetween(i,l,null,"[]")}}updatePeriod(s,a){if(!this.canUpdateToPeriod(s,a))return!1;let i=pe(this.firstMonthOfFY,this.timeframe,{startDate:s,endDate:a});if(i>this.maxNumberOfPeriods){i=this._numberOfPeriods;const{endOfTimeframeFY:l}=M(be(s,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=l}else if(s.isAfter(a)){i=1;const{endOfTimeframeFY:l}=M(s,this.firstMonthOfFY,this.timeframe);this._endDate=l}else this._endDate=a;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=i,!0}updateStartDate(s){return this.updatePeriod(s,this.endDate)}updateEndDate(s){return this.updatePeriod(this.startDate,s)}}const oe=["1","2","3","4"],ie=gt().localeData().monthsShort(),N={pdf:12,excel:100,csv:100},q=(e,s,a)=>{const i=_.getLocalizedStrings().dateFormat.analytics.YYYYFormat,l=[];if(e===1||s==="month"){const{startDate:m,endDate:g}=a;let x=m;for(;x.isSameOrBefore(g,"year");)l.push(x.format(i)),x=be(x,e,1,"year")}else{const{startOfTimeframeFY:m}=M(a.startDate,e,"year"),{endOfTimeframeFY:g}=M(a.endDate,e,"year");let{fyYear:x}=C(m,e);const{fyYear:O}=C(g,e);for(;x<=O;)l.push(`${x}`),x++}return l},Dt=o.div`
2
2
  padding: ${r.sp3};
3
3
  border: 1px solid ${e=>e.borderColor.default};
4
4
  border-radius: ${r.sp1};
@@ -1,4 +1,4 @@
1
- import{u as a,j as i,cH as y,b as o,a as h,R as s,cS as P,d as c,e as g,f as b,s as t,bn as L,lj as k,lk as C,ll as R}from"./index-2CdI-B2B.js";import{n}from"./mui-kiGMfX4-.js";import"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";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])},j={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,D=({rewardsPlan:e})=>{const r=[_(),M(),A({rewardsPlan:e})],d=a();return i.jsx(W,{children:r.map((f,v)=>i.jsxs(N,{children:[i.jsx(T,{children:f}),v<r.length-1?i.jsx(E,{windowSize:d}):null]},`step_${v}`))})},_=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx($,{windowSize:e,icon:"link",children:i.jsx(B,{windowSize:e})}),i.jsx(z,{windowSize:e,children:r.title})]}),i.jsx(S,{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($,{windowSize:e,icon:"user",children:i.jsx(H,{windowSize:e})}),i.jsx(z,{windowSize:e,children:r.title})]}),i.jsx(S,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},A=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx($,{windowSize:r,icon:"money",children:i.jsx(I,{windowSize:r})}),i.jsx(z,{windowSize:r,children:d.title[e.planName]})]}),i.jsx(S,{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{u as a,j as i,cH as y,b as o,a as h,R as s,cS as P,d as c,e as g,f as b,s as t,bn as L,lj as k,lk as C,ll as R}from"./index-OJbFNHch.js";import{n}from"./mui-kiGMfX4-.js";import"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";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])},j={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,D=({rewardsPlan:e})=>{const r=[_(),M(),A({rewardsPlan:e})],d=a();return i.jsx(W,{children:r.map((f,v)=>i.jsxs(N,{children:[i.jsx(T,{children:f}),v<r.length-1?i.jsx(E,{windowSize:d}):null]},`step_${v}`))})},_=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx($,{windowSize:e,icon:"link",children:i.jsx(B,{windowSize:e})}),i.jsx(z,{windowSize:e,children:r.title})]}),i.jsx(S,{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($,{windowSize:e,icon:"user",children:i.jsx(H,{windowSize:e})}),i.jsx(z,{windowSize:e,children:r.title})]}),i.jsx(S,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},A=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx($,{windowSize:r,icon:"money",children:i.jsx(I,{windowSize:r})}),i.jsx(z,{windowSize:r,children:d.title[e.planName]})]}),i.jsx(S,{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}`};
@@ -1,4 +1,4 @@
1
- import{u as ie,a as de,hc as pe,i as ce,a8 as ue,bB as me,j as t,dc as ge,al as he,dd as fe,de as ve,i6 as xe,bm as E,dm as Re,b as o,cH as $e,aa as Ce,bC as ye,R as k,hf as be,hg as we,hh as Pe,dp as je,bJ as Se,C as J,dM as Oe,s as d}from"./index-2CdI-B2B.js";import{a as x}from"./core-tlHkQPPu.js";import{n as r}from"./mui-kiGMfX4-.js";import{fC as Ie,bh as ke}from"./zeni-epic-state-Bo1aGezX.js";import{d as Te}from"./AllUserItems-Cc_-o3gE-BoV9oLkk.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js";import"./RoleWithToolTip-CWH-iJqI-DmzPBpda.js";import"./LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js";const w={containerPaddingTop:new k(d[3],d[3]),containerPaddingLeft:new k(d[3],d[6],d[6]),containerPaddingRight:new k(d[3],d[6],d[8]),buttonWidth:new k(85,85)},Q="editPeoplePage",R="userItems",l=de.getLocalizedStrings().peoplePage,et=({peopleDetails:e,managersList:p,classList:$,controllersList:P,mode:a,isZeniTenant:T,onCloseClick:j,onResetClick:S,onSaveClick:c,onDeleteUser:K,onPeopleLocalDataUpdated:X,analytics:N,isReimbursementDisabled:Z,isZeniAccountsDisabled:A,isChargeCardDisabled:W,isTreasuryDisabled:q,isBankingOnlyTenant:m,isCardsOnlyTenant:g,isLiteRoleDisabled:F})=>{const C=ie(),[ee,B]=x.useState(!1),[te,se]=x.useState(-1),oe=a==="zeni_only"?l.invitePage.editZeniTitle:l.invitePage.editTitle,re=x.useRef(null),L=x.useMemo(()=>pe(Z,A,W,m,g,F,q),[Z,A,W,m,g,F,q]),V=ce(),n=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:Y(e.people,p,$,a,L,m,g),values:Y(e.people,p,$,a,L,m,g)}),ne=n.handleSubmit(()=>{M()&&c()},()=>{M(),console.warn("Edit Profile form error")}),M=()=>{const h=n.getValues();let i=!0;return h.userItems.forEach((U,y)=>{const{role:_,department:I,nonZeniRole:b,manager:z}=U;if(a==="zeni_only"){const s=_.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(n.setError(`${R}.${y}.role`,{type:"required"}),i=!1)}else{const s=b?.userRole.selectedRole;(s!=null&&b!=null?b.productsByUserRole[s].map(u=>u.selectedOption).filter(u=>u!=null):[]).length<1&&(n.setError(`${R}.${y}.nonZeniRole.userRole.selectedRole`,{type:"required"}),i=!1),s!=="investor_or_banker"&&I?.selectedOption==null&&(m||g||(n.setError(`${R}.${y}.department`,{type:"required"}),i=!1)),z?.selectedUser==null&&s!=="investor_or_banker"&&(n.setError(`${R}.${y}.manager`,{type:"required"}),i=!1)}}),i};x.useEffect(()=>{const h=n.watch((i,{name:U})=>{U!=null&&i!=null&&(async(y,_)=>{const I=[],{userItems:b}=_,z=e.person?.userRole?.userRoleId;b.forEach(s=>{let u={};if(z!=null){if(a==="zeni_only")u={email:s.email,role:s.role.selectedOptions};else{const f=s.nonZeniRole?.userRole.selectedRole;let v=[];f==="admin"||f==="investor_or_banker"?v.push(f):v=f!=null?(s.nonZeniRole?.productsByUserRole[f]??[]).map(D=>Ie(D.selectedOption?.value)).filter(D=>D!=null):[],f==="employee"&&v.length===0&&v.push("reimbursements_user");const H=ke(v);u={email:s.email,role:v,departmentId:H?void 0:s.department?.selectedOption?.value,managerId:H?void 0:s.manager?.selectedUser}}I.push(u)}}),X(I)})(0,i)});return()=>{h.unsubscribe()}});const le={onOkClick:()=>{const h=e.person;N?.trackRemoveUserAccess(h.userRole.userRoles,h.userRole.userEmail),K?.(e.person)},onCancelClick:()=>{B(!1)}},G=me(e.person?.update),O=e.person?.update,ae=l.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return x.useEffect(()=>{O==null&&G==="removeUsers"&&(B(!1),S?.())},[O,G]),t.jsxs(t.Fragment,{children:[ee===!0?t.jsx(ge,{titleComponent:t.jsx(ve,{children:l.deleteOverlay.title}),descriptionComponent:t.jsx(fe,{children:ae}),primaryButtonText:l.deleteOverlay.remove,secondaryButtonText:l.deleteOverlay.cancel,action:le,proceedButtonVariant:"danger",isLoading:O==="removeUsers",isDisabled:O==="removeUsers",style:{background:V.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsx(De,{children:t.jsx(Ee,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(xe,{title:oe,backgroundColor:V.colors.grey4,style:{zIndex:4},onCloseClick:j,isTitleAlignLeft:C==="small"}),t.jsxs(Be,{"data-testid":E("edit-people-page-container"),windowSize:C,ref:re,children:[t.jsxs(ze,{children:[t.jsx(Re,{personBasic:e.person?.user,styles:{height:o.sp6,width:o.sp6}}),t.jsxs(Le,{children:[t.jsx(Ue,{children:e.person?.user?.firstName?t.jsxs(_e,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ae,{className:"delete-icon-wrapper","data-testid":E("edit-people-page-delete-icon-wrapper"),onClick:()=>{B(!0)},children:t.jsx($e,{style:{padding:"2px 5px"},enterDelay:600,title:l.deleteOverlay.title,placement:"top",children:t.jsx(Ze,{windowsize:C})})})]})]}),t.jsx(Ce,{...n,children:t.jsx("form",{id:`${Q}_form`,onSubmit:ne,children:t.jsx(Te,{control:n.control,sectionId:R,deleteConfirmationIndex:te,updateDeleteConfirmationIndex:se,mode:a,isZeniTenant:T,classList:$,managersList:p,controllersList:P,customerRoleOptions:L,isBankingOnlyTenant:m,isCardsOnlyTenant:g,isEdit:!0,person:e.person,analytics:N})})})]}),t.jsx(ye,{formId:`${Q}_form`,"data-testid":E("edit-people-page-footer"),primaryBtn:{label:l.invitePage.update,style:{width:w.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:l.invitePage.cancel,style:{width:w.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:j},separatorStyle:{marginRight:o.sp4}})]})},Y=(e,p,$,P,a,T,j)=>{const S=$.map(c=>({label:c.fullyQualifiedAccountingClassName??"",value:c.classId,hoverText:c.accountingClassNumber}));return{[R]:[{userIndex:0,email:e[0].email,role:P==="zeni_only"?{allOptions:je.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:P!=="zeni_only"?{userRole:{selectedRole:Pe(e[0]?.role),allRootRole:we(T,j)},productsByUserRole:be(e[0]?.role,a)}:void 0,manager:{allUsers:p,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:S,selectedOption:S.find(c=>c.value===e[0]?.departmentId)}}]}},tt=(e,p)=>`${e}.${p}`,Be=r.div`
1
+ import{u as ie,a as de,hc as pe,i as ce,a8 as ue,bB as me,j as t,dc as ge,al as he,dd as fe,de as ve,i6 as xe,bm as E,dm as Re,b as o,cH as $e,aa as Ce,bC as ye,R as k,hf as be,hg as we,hh as Pe,dp as je,bJ as Se,C as J,dM as Oe,s as d}from"./index-OJbFNHch.js";import{a as x}from"./core-tlHkQPPu.js";import{n as r}from"./mui-kiGMfX4-.js";import{fC as Ie,bh as ke}from"./zeni-epic-state-Bo1aGezX.js";import{d as Te}from"./AllUserItems-Cc_-o3gE-Dj-vsTnw.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-90UTcRc3.js";import"./RoleWithToolTip-CWH-iJqI-1DRRWE9G.js";import"./LabeledZeniRolesDropDownField-DoF6cXd_-DT1LbBkc.js";const w={containerPaddingTop:new k(d[3],d[3]),containerPaddingLeft:new k(d[3],d[6],d[6]),containerPaddingRight:new k(d[3],d[6],d[8]),buttonWidth:new k(85,85)},Q="editPeoplePage",R="userItems",l=de.getLocalizedStrings().peoplePage,et=({peopleDetails:e,managersList:p,classList:$,controllersList:P,mode:a,isZeniTenant:T,onCloseClick:j,onResetClick:S,onSaveClick:c,onDeleteUser:K,onPeopleLocalDataUpdated:X,analytics:N,isReimbursementDisabled:Z,isZeniAccountsDisabled:A,isChargeCardDisabled:W,isTreasuryDisabled:q,isBankingOnlyTenant:m,isCardsOnlyTenant:g,isLiteRoleDisabled:F})=>{const C=ie(),[ee,B]=x.useState(!1),[te,se]=x.useState(-1),oe=a==="zeni_only"?l.invitePage.editZeniTitle:l.invitePage.editTitle,re=x.useRef(null),L=x.useMemo(()=>pe(Z,A,W,m,g,F,q),[Z,A,W,m,g,F,q]),V=ce(),n=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:Y(e.people,p,$,a,L,m,g),values:Y(e.people,p,$,a,L,m,g)}),ne=n.handleSubmit(()=>{M()&&c()},()=>{M(),console.warn("Edit Profile form error")}),M=()=>{const h=n.getValues();let i=!0;return h.userItems.forEach((U,y)=>{const{role:_,department:I,nonZeniRole:b,manager:z}=U;if(a==="zeni_only"){const s=_.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(n.setError(`${R}.${y}.role`,{type:"required"}),i=!1)}else{const s=b?.userRole.selectedRole;(s!=null&&b!=null?b.productsByUserRole[s].map(u=>u.selectedOption).filter(u=>u!=null):[]).length<1&&(n.setError(`${R}.${y}.nonZeniRole.userRole.selectedRole`,{type:"required"}),i=!1),s!=="investor_or_banker"&&I?.selectedOption==null&&(m||g||(n.setError(`${R}.${y}.department`,{type:"required"}),i=!1)),z?.selectedUser==null&&s!=="investor_or_banker"&&(n.setError(`${R}.${y}.manager`,{type:"required"}),i=!1)}}),i};x.useEffect(()=>{const h=n.watch((i,{name:U})=>{U!=null&&i!=null&&(async(y,_)=>{const I=[],{userItems:b}=_,z=e.person?.userRole?.userRoleId;b.forEach(s=>{let u={};if(z!=null){if(a==="zeni_only")u={email:s.email,role:s.role.selectedOptions};else{const f=s.nonZeniRole?.userRole.selectedRole;let v=[];f==="admin"||f==="investor_or_banker"?v.push(f):v=f!=null?(s.nonZeniRole?.productsByUserRole[f]??[]).map(D=>Ie(D.selectedOption?.value)).filter(D=>D!=null):[],f==="employee"&&v.length===0&&v.push("reimbursements_user");const H=ke(v);u={email:s.email,role:v,departmentId:H?void 0:s.department?.selectedOption?.value,managerId:H?void 0:s.manager?.selectedUser}}I.push(u)}}),X(I)})(0,i)});return()=>{h.unsubscribe()}});const le={onOkClick:()=>{const h=e.person;N?.trackRemoveUserAccess(h.userRole.userRoles,h.userRole.userEmail),K?.(e.person)},onCancelClick:()=>{B(!1)}},G=me(e.person?.update),O=e.person?.update,ae=l.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return x.useEffect(()=>{O==null&&G==="removeUsers"&&(B(!1),S?.())},[O,G]),t.jsxs(t.Fragment,{children:[ee===!0?t.jsx(ge,{titleComponent:t.jsx(ve,{children:l.deleteOverlay.title}),descriptionComponent:t.jsx(fe,{children:ae}),primaryButtonText:l.deleteOverlay.remove,secondaryButtonText:l.deleteOverlay.cancel,action:le,proceedButtonVariant:"danger",isLoading:O==="removeUsers",isDisabled:O==="removeUsers",style:{background:V.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsx(De,{children:t.jsx(Ee,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(xe,{title:oe,backgroundColor:V.colors.grey4,style:{zIndex:4},onCloseClick:j,isTitleAlignLeft:C==="small"}),t.jsxs(Be,{"data-testid":E("edit-people-page-container"),windowSize:C,ref:re,children:[t.jsxs(ze,{children:[t.jsx(Re,{personBasic:e.person?.user,styles:{height:o.sp6,width:o.sp6}}),t.jsxs(Le,{children:[t.jsx(Ue,{children:e.person?.user?.firstName?t.jsxs(_e,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ae,{className:"delete-icon-wrapper","data-testid":E("edit-people-page-delete-icon-wrapper"),onClick:()=>{B(!0)},children:t.jsx($e,{style:{padding:"2px 5px"},enterDelay:600,title:l.deleteOverlay.title,placement:"top",children:t.jsx(Ze,{windowsize:C})})})]})]}),t.jsx(Ce,{...n,children:t.jsx("form",{id:`${Q}_form`,onSubmit:ne,children:t.jsx(Te,{control:n.control,sectionId:R,deleteConfirmationIndex:te,updateDeleteConfirmationIndex:se,mode:a,isZeniTenant:T,classList:$,managersList:p,controllersList:P,customerRoleOptions:L,isBankingOnlyTenant:m,isCardsOnlyTenant:g,isEdit:!0,person:e.person,analytics:N})})})]}),t.jsx(ye,{formId:`${Q}_form`,"data-testid":E("edit-people-page-footer"),primaryBtn:{label:l.invitePage.update,style:{width:w.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:l.invitePage.cancel,style:{width:w.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:j},separatorStyle:{marginRight:o.sp4}})]})},Y=(e,p,$,P,a,T,j)=>{const S=$.map(c=>({label:c.fullyQualifiedAccountingClassName??"",value:c.classId,hoverText:c.accountingClassNumber}));return{[R]:[{userIndex:0,email:e[0].email,role:P==="zeni_only"?{allOptions:je.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:P!=="zeni_only"?{userRole:{selectedRole:Pe(e[0]?.role),allRootRole:we(T,j)},productsByUserRole:be(e[0]?.role,a)}:void 0,manager:{allUsers:p,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:S,selectedOption:S.find(c=>c.value===e[0]?.departmentId)}}]}},tt=(e,p)=>`${e}.${p}`,Be=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{bB as dn,i as wt,a$ as St,a8 as ro,a_ as jn,a as we,hY as qe,fS as Je,go as un,hZ as Ft,b3 as lo,u as Ae,hC as Qo,hE as ei,hF as ti,j as t,h_ as ni,aa as so,dc as mn,dd as co,de as uo,bm as Y,b as n,R as s,cf as Pn,c1 as oi,eR as ii,hG as ai,hS as mo,hN as On,bC as po,ak as ho,hO as ri,A as vt,h$ as li,C as O,f as go,as as pn,s as a,cb as si,hQ as di,du as ci,fY as hn,i0 as Mt,gD as $e,gF as Ce,dv as gn,dF as rt,fD as ui,gC as yo,t as At,dy as bo,dx as it,dN as je,af as yn,i1 as mi,gV as pi,dt as hi,gg as gi,bs as Rn,gP as yi,ca as bi,bM as fo,g as fi,fC as xi,bH as Et,hH as wi,cJ as xo,d as bn,e as wo,dP as So,d6 as Nt,bJ as Si,dT as vi,gL as $i,ah as fn,B as Ln,cH as vo,bK as An,dM as Ci,ai as ki,dB as $o,bn as Ii,i2 as Co,i3 as cn,hx as Bn,i4 as Bt,dL as Ti,hB as Di,cq as ji,dK as Pi}from"./index-2CdI-B2B.js";import{a as v,o as It}from"./core-tlHkQPPu.js";import{n as o}from"./mui-kiGMfX4-.js";import{a as Oi}from"./liveblocks-BrzOBACZ.js";import{fJ as Ri,bO as at,bT as ko,fK as zn,bj as xn,bp as Io,bn as Fn}from"./zeni-epic-state-Bo1aGezX.js";import To from"./InvoiceUploadSection-BducuHAy-CwGoLvBS.js";import{o as Li,t as zt,n as xt,s as wn,l as Mn,e as Te}from"./types-DRnhtDPC-CEIiK5pR.js";import{Z as Ai}from"./LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js";import{O as Bi}from"./CurrencySelectField-DR8cDrIS-TTiuldkA.js";import{S as zi}from"./BankAccountSection-CwPIXA5w-DE6FMEHD.js";import{u as Fi,j as Mi}from"./BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js";import{t as Ei}from"./radio-default-H1PowEcP-lvG8v5I_.js";import"./sentry-Dhk5jNhq.js";import"./analytics-CeQu-r45.js";import"./utils-BLUF9kAp.js";import"./AttachmentView-DRBK6aiE-DxR-B_-8.js";import"./uploadReceipts-BkHrFC8j-DevoCqHx.js";const Ee=(e,i)=>`${e}.${i}`,En={largeLabelWidth:new s(120,120,160),paddingBottom:new s(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Ie}},dateFormat:Ni,common:Wi}=we.getLocalizedStrings(),Ui=({lineIndex:e,mileage:i,classList:r,defaultCurrency:h,sectionId:u,isReimbursementCommentingEnabled:j,isDisabled:c,isAddReimbursementDisabled:$,companyMileageConfigInfo:p,reimbursementId:d,classHierarchyList:R})=>{const w=Ae(),l=St(),y=Mt(),x=`dashboard_${l.currentTenant?.companyId}`,g=wt(),{formState:{errors:b},getValues:P,trigger:_}=rt(),k=Wi.strings.empty,T=P(Ee(u,"distanceInMiles")),F=En.largeLabelWidth.value(w),te=P(Ee(u,"class")),ae=r.find(D=>D.classId===te?.selectedOption),re=Ee(u,"class"),M=je(b,re);v.useEffect(()=>{te?.selectedOption!=null&&(ae?.isDeleted===!0||M)&&_(re)},[te?.selectedOption,ae?.isDeleted,r,re,_]);const ne={application:"dashboard",companyId:l.currentTenant?.companyId,tab:"reimbursement",entityId:d},H=r.find(D=>D.classId===i.class),me={valueContainer:D=>({...D,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.transactionDate`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx($o,{isDisabled:c,label:{label:Ie.transactionDate,width:F},style:{paddingBottom:En.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Ee(u,"transactionDate"),placeholder:Ie.datePlaceholder,defaultValue:i?.transactionDate,dateFormat:Ni.visual.defaultInput,autoComplete:"off",maxDate:xn(),registerOptions:{required:!0,validate:D=>!!D}}})}),t.jsx(Tt,{}),t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Bn,{isDisabled:$?"disabled":void 0,style:{width:"auto"},label:{label:Ie.distanceInMiles,width:F},formattedTextField:{type:"number",name:Ee(u,"distanceInMiles"),placeholder:Ie.addMiles,defaultValue:i.distanceInMiles,registerOptions:{required:!0,validate:D=>D==null||D>0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Tt,{}),t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.amount`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Bn,{isDisabled:"disabled",label:{label:Ie.amount,width:F},formattedTextField:{type:"number",name:Ee(`${u}.amount`,"amount"),defaultValue:i.amount?.amount,placeholder:it(Ie.amount),returnValueType:"floatValue",prefix:i.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D==null||D>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:T!=null&&p?.mileageUnitAmount!=null?`${h.currencySymbol}${p?.mileageUnitAmount} per mile x ${T}`:void 0})}),t.jsx(Tt,{}),t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.memo`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(gn,{isDisabled:c,label:{label:Ie.memo,width:F},style:{width:"auto"},text:{type:"text",name:Ee(u,"memo"),placeholder:it(Ie.memo),defaultValue:i.memo,autoComplete:"off",options:{pattern:Co}}})}),t.jsx(Tt,{}),t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.class`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${n.sp2} ${n.sp2}`},children:t.jsx(cn,{isLoading:!1,label:{label:Ie.department,width:F},additionalLabelInfo:ae?.isDeleted===!0&&je(b,Ee(u,"class"))?Ie.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Ee(u,"class"),placeholder:it(Ie.department),valueToId:D=>(ee=>r.filter(oe=>oe.classId===ee)[0]?.accountingClassNumber)(D),defaultValue:{selectedOption:H?.classId,allOptions:Je(R,[])},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:D=>D?.selectedOption==null?!1:r.find(ce=>ce.classId===D?.selectedOption)?.isDeleted!==!0||Ie.deletedClassError}},style:{borderBottom:`1px solid ${g.colors.grey3}`,borderBottomLeftRadius:n.sp2,borderBottomRightRadius:n.sp2},fullWidthSelect:!0},Ee(u,"class"))})]})},Tt=o.div`
1
+ import{bB as dn,i as wt,a$ as St,a8 as ro,a_ as jn,a as we,hY as qe,fS as Je,go as un,hZ as Ft,b3 as lo,u as Ae,hC as Qo,hE as ei,hF as ti,j as t,h_ as ni,aa as so,dc as mn,dd as co,de as uo,bm as Y,b as n,R as s,cf as Pn,c1 as oi,eR as ii,hG as ai,hS as mo,hN as On,bC as po,ak as ho,hO as ri,A as vt,h$ as li,C as O,f as go,as as pn,s as a,cb as si,hQ as di,du as ci,fY as hn,i0 as Mt,gD as $e,gF as Ce,dv as gn,dF as rt,fD as ui,gC as yo,t as At,dy as bo,dx as it,dN as je,af as yn,i1 as mi,gV as pi,dt as hi,gg as gi,bs as Rn,gP as yi,ca as bi,bM as fo,g as fi,fC as xi,bH as Et,hH as wi,cJ as xo,d as bn,e as wo,dP as So,d6 as Nt,bJ as Si,dT as vi,gL as $i,ah as fn,B as Ln,cH as vo,bK as An,dM as Ci,ai as ki,dB as $o,bn as Ii,i2 as Co,i3 as cn,hx as Bn,i4 as Bt,dL as Ti,hB as Di,cq as ji,dK as Pi}from"./index-OJbFNHch.js";import{a as v,o as It}from"./core-tlHkQPPu.js";import{n as o}from"./mui-kiGMfX4-.js";import{a as Oi}from"./liveblocks-BrzOBACZ.js";import{fJ as Ri,bO as at,bT as ko,fK as zn,bj as xn,bp as Io,bn as Fn}from"./zeni-epic-state-Bo1aGezX.js";import To from"./InvoiceUploadSection-BducuHAy-DP3yW3zT.js";import{o as Li,t as zt,n as xt,s as wn,l as Mn,e as Te}from"./types-DRnhtDPC-CEIiK5pR.js";import{Z as Ai}from"./LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js";import{O as Bi}from"./CurrencySelectField-DR8cDrIS-BWQqgMWL.js";import{S as zi}from"./BankAccountSection-CwPIXA5w-DDDsPYwm.js";import{u as Fi,j as Mi}from"./BankAccountWarningSection-DGSw5Uvq-DbOA1NjS.js";import{t as Ei}from"./radio-default-H1PowEcP-lvG8v5I_.js";import"./sentry-Dhk5jNhq.js";import"./analytics-CeQu-r45.js";import"./utils-BLUF9kAp.js";import"./AttachmentView-DRBK6aiE-C1Ruc-VW.js";import"./uploadReceipts-BkHrFC8j-BKjYP7lf.js";const Ee=(e,i)=>`${e}.${i}`,En={largeLabelWidth:new s(120,120,160),paddingBottom:new s(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Ie}},dateFormat:Ni,common:Wi}=we.getLocalizedStrings(),Ui=({lineIndex:e,mileage:i,classList:r,defaultCurrency:h,sectionId:u,isReimbursementCommentingEnabled:j,isDisabled:c,isAddReimbursementDisabled:$,companyMileageConfigInfo:p,reimbursementId:d,classHierarchyList:R})=>{const w=Ae(),l=St(),y=Mt(),x=`dashboard_${l.currentTenant?.companyId}`,g=wt(),{formState:{errors:b},getValues:P,trigger:_}=rt(),k=Wi.strings.empty,T=P(Ee(u,"distanceInMiles")),F=En.largeLabelWidth.value(w),te=P(Ee(u,"class")),ae=r.find(D=>D.classId===te?.selectedOption),re=Ee(u,"class"),M=je(b,re);v.useEffect(()=>{te?.selectedOption!=null&&(ae?.isDeleted===!0||M)&&_(re)},[te?.selectedOption,ae?.isDeleted,r,re,_]);const ne={application:"dashboard",companyId:l.currentTenant?.companyId,tab:"reimbursement",entityId:d},H=r.find(D=>D.classId===i.class),me={valueContainer:D=>({...D,padding:`2px ${n.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.transactionDate`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx($o,{isDisabled:c,label:{label:Ie.transactionDate,width:F},style:{paddingBottom:En.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Ee(u,"transactionDate"),placeholder:Ie.datePlaceholder,defaultValue:i?.transactionDate,dateFormat:Ni.visual.defaultInput,autoComplete:"off",maxDate:xn(),registerOptions:{required:!0,validate:D=>!!D}}})}),t.jsx(Tt,{}),t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Bn,{isDisabled:$?"disabled":void 0,style:{width:"auto"},label:{label:Ie.distanceInMiles,width:F},formattedTextField:{type:"number",name:Ee(u,"distanceInMiles"),placeholder:Ie.addMiles,defaultValue:i.distanceInMiles,registerOptions:{required:!0,validate:D=>D==null||D>0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Tt,{}),t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.amount`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Bn,{isDisabled:"disabled",label:{label:Ie.amount,width:F},formattedTextField:{type:"number",name:Ee(`${u}.amount`,"amount"),defaultValue:i.amount?.amount,placeholder:it(Ie.amount),returnValueType:"floatValue",prefix:i.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D==null||D>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:T!=null&&p?.mileageUnitAmount!=null?`${h.currencySymbol}${p?.mileageUnitAmount} per mile x ${T}`:void 0})}),t.jsx(Tt,{}),t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.memo`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(gn,{isDisabled:c,label:{label:Ie.memo,width:F},style:{width:"auto"},text:{type:"text",name:Ee(u,"memo"),placeholder:it(Ie.memo),defaultValue:i.memo,autoComplete:"off",options:{pattern:Co}}})}),t.jsx(Tt,{}),t.jsx($e,{isThreadAllowed:j&&d!=null,dashboardTabKey:Ce({type:"details",key:`${e}.mileage.class`}),roomId:x,companyId:l.currentTenant?.companyId??k,companyName:l.currentTenant?.companyName??k,entityId:d,dashboardOptionType:"reimbursement",filterMetaData:{...ne,entityType:`reimbursement.details.${Te("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${n.sp2} ${n.sp2}`},children:t.jsx(cn,{isLoading:!1,label:{label:Ie.department,width:F},additionalLabelInfo:ae?.isDeleted===!0&&je(b,Ee(u,"class"))?Ie.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Ee(u,"class"),placeholder:it(Ie.department),valueToId:D=>(ee=>r.filter(oe=>oe.classId===ee)[0]?.accountingClassNumber)(D),defaultValue:{selectedOption:H?.classId,allOptions:Je(R,[])},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:D=>D?.selectedOption==null?!1:r.find(ce=>ce.classId===D?.selectedOption)?.isDeleted!==!0||Ie.deletedClassError}},style:{borderBottom:`1px solid ${g.colors.grey3}`,borderBottomLeftRadius:n.sp2,borderBottomRightRadius:n.sp2},fullWidthSelect:!0},Ee(u,"class"))})]})},Tt=o.div`
2
2
  display: flex;
3
3
  flex: 1;
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{i as y,a as C,bs as g,j as o,b0 as T,G as m,b as t}from"./index-2CdI-B2B.js";import{n as a}from"./mui-kiGMfX4-.js";import{W as v}from"./TrendWithTransactions-Bacaqvbc-CDzpSeHr.js";import"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./TrendChart-ZXja3Lv--B4yGBgeP.js";import"./chartTypes-BADtYh4F-X-tWlUJq.js";import"./toCOABalancesWithID-C_Swao_b-2UkzUVnC.js";import"./toChartData-DfujfQ7D-nillWsTs.js";import"./NoDataChart-C0lCeeVH-BiooJKO2.js";import"./InsightsSection-DJrMi3DN-DUYhJ5vl.js";import"./NavigationDots-DO5y6mdV-DGnlFBBn.js";import"./TransactionList-Brm_EWed-DwQzznTi.js";import"./BoxItem-B6Qj2tSj-aLWYhGMW.js";import"./commonDimensions-B2oTTz3C-DxkHqcKn.js";import"./groupBy-LtwzERV9-C02NtlDV.js";import"./map-CnboTxlt-CZn0FfBt.js";import"./orderBy-D3W4CDe6-BoPe-dQB.js";const k=a.div`
1
+ import{i as y,a as C,bs as g,j as o,b0 as T,G as m,b as t}from"./index-OJbFNHch.js";import{n as a}from"./mui-kiGMfX4-.js";import{W as v}from"./TrendWithTransactions-Bacaqvbc-CuLqX3Nb.js";import"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./TrendChart-ZXja3Lv--DjXJyQYi.js";import"./chartTypes-BADtYh4F-B1Z_E0y8.js";import"./toCOABalancesWithID-C_Swao_b-UbAQtm0o.js";import"./toChartData-DfujfQ7D-DwlIUYBD.js";import"./NoDataChart-C0lCeeVH-DA9wYEab.js";import"./InsightsSection-DJrMi3DN-BZzGhpNe.js";import"./NavigationDots-DO5y6mdV-CX8opgkb.js";import"./TransactionList-Brm_EWed-Cq3RVCVg.js";import"./BoxItem-B6Qj2tSj-J1Dptt9x.js";import"./commonDimensions-B2oTTz3C-BcwGbjhJ.js";import"./groupBy-LtwzERV9-DfsHYWjt.js";import"./map-CnboTxlt-iF8o7Kja.js";import"./orderBy-D3W4CDe6-C2Pj0hxa.js";const k=a.div`
2
2
  display: flex;
3
3
  margin: ${t.sp0} ${t.sp0} ${t.sp0} ${t.sp0};
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{u as z,a as P,j as i,eH as O,R as s,dQ as R,b as d,a9 as $,bn as b,bG as E,dj as K,s as r,H as B,ai as G,ah as k,bJ as U,af as A,di as F,C as D,dq as q}from"./index-2CdI-B2B.js";import{a as v}from"./core-tlHkQPPu.js";import{n as t}from"./mui-kiGMfX4-.js";import{a as I}from"./agingReportHelper-Cf__8gug-B4Tesv9Z.js";const p=P.getLocalizedStrings().reports.aging.agingDetail.header,m=[{key:"date",value:p.date,sortOrder:"ascending",width:new s(212,212)},{key:"invoiceNumber",value:p.invoiceNumber,sortOrder:"ascending",width:new s(188,188)},{key:"dueDate",value:p.dueDate,sortOrder:"ascending",width:new s(188,188)},{key:"daysPastDue",value:p.daysPastDue,sortOrder:"ascending",width:new s(188,188)},{key:"amount",value:p.amount,sortOrder:"ascending",width:new s(188,188)},{key:"balance",value:p.balance,sortOrder:"ascending",width:new s(120,120)}],Y={headerHeight:new s(45,58)},J=t.div`
1
+ import{u as z,a as P,j as i,eH as O,R as s,dQ as R,b as d,a9 as $,bn as b,bG as E,dj as K,s as r,H as B,ai as G,ah as k,bJ as U,af as A,di as F,C as D,dq as q}from"./index-OJbFNHch.js";import{a as v}from"./core-tlHkQPPu.js";import{n as t}from"./mui-kiGMfX4-.js";import{a as I}from"./agingReportHelper-Cf__8gug-B4Tesv9Z.js";const p=P.getLocalizedStrings().reports.aging.agingDetail.header,m=[{key:"date",value:p.date,sortOrder:"ascending",width:new s(212,212)},{key:"invoiceNumber",value:p.invoiceNumber,sortOrder:"ascending",width:new s(188,188)},{key:"dueDate",value:p.dueDate,sortOrder:"ascending",width:new s(188,188)},{key:"daysPastDue",value:p.daysPastDue,sortOrder:"ascending",width:new s(188,188)},{key:"amount",value:p.amount,sortOrder:"ascending",width:new s(188,188)},{key:"balance",value:p.balance,sortOrder:"ascending",width:new s(120,120)}],Y={headerHeight:new s(45,58)},J=t.div`
2
2
  top: ${d.sp0};
3
3
  left: ${d.sp0};
4
4
  min-height: ${e=>Y.headerHeight.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{i as X,u as le,d4 as de,a as x,j as t,bm as y,hr as Q,cz as ce,C as i,cH as V,b as r,cf as he,lu as pe,t as d,j9 as T,j8 as B,B as me,ca as ue,ag as ge,lv as Ce,d8 as ke,H as xe,cq as fe,af as h,ax as U,ah as je,L as ve,bH as ye,bz as $e,bJ as ee,iS as Le,bS as be,bR as we,cv as Me}from"./index-2CdI-B2B.js";import{a as s}from"./core-tlHkQPPu.js";import{n as o,c as te,k as Ee}from"./mui-kiGMfX4-.js";import{bj as re,bO as Se}from"./zeni-epic-state-Bo1aGezX.js";import{o as We}from"./AreaChart-2AgE74bB-juQGB2-h.js";import{_ as De}from"./Area-Sl30rGq6-WMXLxt2t.js";import{r as He}from"./transaction-placeholder-BDef7K0p-Dqvh6We2.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const Pe=x.getLocalizedStrings().expenseAutomation,Re=x.getLocalizedStrings().dateFormat.visual,{common:{strings:{percentage:ze},texts:{score:Ve}}}=x.getLocalizedStrings(),Te=({active:e,payload:a})=>{if(e===!1||e===void 0||!a||a.length===0)return null;const c=a[0]?.value;return c==null?null:t.jsxs(Ne,{children:[t.jsx(Ye,{children:Ve}),t.jsxs(Ze,{children:[c,ze]})]})};function Be({data:e,height:a}){const c=X(),b=e.map(f=>({month:Se(`${f.period.year}-${String(f.period.month).padStart(2,"0")}-01`).format(Re.MMMYYFormat),count:Math.round(f.auditScore)}));return t.jsxs(_e,{children:[t.jsx(Fe,{children:Pe.overview.monthEndCloseTrend}),t.jsx(Le,{height:a,width:"100%",children:t.jsxs(We,{data:b,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"scoreGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:i.brandColorJade,stopOpacity:.8}),t.jsx("stop",{offset:"100%",stopColor:i.brandColorJade,stopOpacity:.1})]})}),t.jsx(be,{dataKey:"month",axisLine:{stroke:c.colors.grey3},tickLine:!1,interval:"preserveStartEnd",label:{color:c.colors.hero,fontSize:d.smallRegular.fontSize,fontWeight:d.smallRegular.fontWeight,fontFamily:d.smallRegular.fontFamily}}),t.jsx(we,{hide:!0}),t.jsx(Me,{content:Te,cursor:{stroke:c.colors.primary,strokeDasharray:"3 3",strokeWidth:1},allowEscapeViewBox:{x:!1,y:!0}}),t.jsx(De,{type:"monotone",dataKey:"count",stroke:i.brandColorJade,strokeWidth:2,fill:"url(#scoreGradient)",dot:!1,activeDot:{r:5,fill:i.neutralGrey4Light,stroke:i.brandColorJade,strokeWidth:2}})]})})]})}const Fe=o(h)`
1
+ import{i as X,u as le,d4 as de,a as x,j as t,bm as y,hr as Q,cz as ce,C as i,cH as V,b as r,cf as he,lu as pe,t as d,j9 as T,j8 as B,B as me,ca as ue,ag as ge,lv as Ce,d8 as ke,H as xe,cq as fe,af as h,ax as U,ah as je,L as ve,bH as ye,bz as $e,bJ as ee,iS as Le,bS as be,bR as we,cv as Me}from"./index-OJbFNHch.js";import{a as s}from"./core-tlHkQPPu.js";import{n as o,c as te,k as Ee}from"./mui-kiGMfX4-.js";import{bj as re,bO as Se}from"./zeni-epic-state-Bo1aGezX.js";import{o as We}from"./AreaChart-2AgE74bB-DgDnH-B0.js";import{_ as De}from"./Area-Sl30rGq6-CogxmVvt.js";import{r as He}from"./transaction-placeholder-BDef7K0p-Dqvh6We2.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const Pe=x.getLocalizedStrings().expenseAutomation,Re=x.getLocalizedStrings().dateFormat.visual,{common:{strings:{percentage:ze},texts:{score:Ve}}}=x.getLocalizedStrings(),Te=({active:e,payload:a})=>{if(e===!1||e===void 0||!a||a.length===0)return null;const c=a[0]?.value;return c==null?null:t.jsxs(Ne,{children:[t.jsx(Ye,{children:Ve}),t.jsxs(Ze,{children:[c,ze]})]})};function Be({data:e,height:a}){const c=X(),b=e.map(f=>({month:Se(`${f.period.year}-${String(f.period.month).padStart(2,"0")}-01`).format(Re.MMMYYFormat),count:Math.round(f.auditScore)}));return t.jsxs(_e,{children:[t.jsx(Fe,{children:Pe.overview.monthEndCloseTrend}),t.jsx(Le,{height:a,width:"100%",children:t.jsxs(We,{data:b,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"scoreGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:i.brandColorJade,stopOpacity:.8}),t.jsx("stop",{offset:"100%",stopColor:i.brandColorJade,stopOpacity:.1})]})}),t.jsx(be,{dataKey:"month",axisLine:{stroke:c.colors.grey3},tickLine:!1,interval:"preserveStartEnd",label:{color:c.colors.hero,fontSize:d.smallRegular.fontSize,fontWeight:d.smallRegular.fontWeight,fontFamily:d.smallRegular.fontFamily}}),t.jsx(we,{hide:!0}),t.jsx(Me,{content:Te,cursor:{stroke:c.colors.primary,strokeDasharray:"3 3",strokeWidth:1},allowEscapeViewBox:{x:!1,y:!0}}),t.jsx(De,{type:"monotone",dataKey:"count",stroke:i.brandColorJade,strokeWidth:2,fill:"url(#scoreGradient)",dot:!1,activeDot:{r:5,fill:i.neutralGrey4Light,stroke:i.brandColorJade,strokeWidth:2}})]})})]})}const Fe=o(h)`
2
2
  color: ${e=>e.theme.colors.champion};
3
3
  `,_e=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{b as n,cJ as rs,u as we,hC as Xi,hD as Qi,j as t,a as ve,dc as ls,a9 as _e,bC as ea,s as g,c9 as cs,dd as ds,i as St,cf as us,js as hs,bn as Je,cH as fe,R as Q,ai as mt,ah as Oe,C as Xe,af as jt,bm as _,jq as ps,ig as ms,i8 as ta,ca as gs,cA as Bt,bH as na,cq as oa,lB as xs,hr as fs,f as ys,hE as Cs,hF as ia,c1 as ws,d8 as vs,cS as bs,fU as gn,cP as wo,a8 as Jt,cz as vo,aa as Kt,lC as Ss,lD as js,lE as ks,lF as ln,lG as aa,lH as sa,lI as Is,lJ as zo,lK as $s,eB as ra,lL as Ts,lM as Ls,lN as As,lO as Rs,lP as Es,lQ as Ds,lR as Bs,lS as Os,lT as Fs,lU as zs,lV as la,lW as Ps,lX as Ms,lY as _s,lZ as Ns,hT as ca,l_ as Vs,l$ as Hs,m0 as Ws,bG as Bn,dj as On,A as da,r as ua,D as ha,dt as xn,f9 as bo,hQ as Us,h9 as qs,ii as Js,as as Ks,L as Gs,gV as Zs,b3 as pa,m1 as Ys,bs as So,bB as Po,ia as ma,cm as ga,bq as Xs,hZ as Dt,jf as _n,fS as Ln,dF as jo,a_ as Qs,dO as xa,eC as er,ka as tr,eI as ko,di as Fn,dq as zn,jT as nt,t as Rt,j2 as nr,hU as Nn,kE as Mo,ex as fa,dQ as hn,m2 as or,by as ir,eH as ya,B as pn,jK as Ca,jU as go,m3 as nn,ff as wa,fg as va,kd as ba,ke as Sa,bj as Io,m4 as ar,dP as Pn,jN as ja,gL as ka,fJ as Vn,j$ as sr,f7 as rr,ak as yt,m5 as lr,m6 as cr,dL as dr,bv as Ia,a7 as ur,fG as hr,fH as pr,fI as mr,fK as _o,fL as No,fM as gr,m7 as xr,bK as Hn,fF as fr,m8 as yr,bz as Cr,fV as wr,fW as vr,fX as br}from"./index-2CdI-B2B.js";import{a,o as $a}from"./core-tlHkQPPu.js";import{n as s,c as Ye,k as $o}from"./mui-kiGMfX4-.js";import{bj as Wn,gg as Vo,gh as mn,gi as Sr,gj as jr,cy as kr,bO as xo,cz as Ir,cA as $r,cB as Tr,fu as cn,bG as _t,eK as Ho,c4 as Ta,gk as Lr,gl as Ar,gm as Wo,c0 as Rr,bp as Nt,gn as La,go as Aa,gp as Ra,gq as Ea,gr as Da,gs as To,gt as Er}from"./zeni-epic-state-Bo1aGezX.js";import{X as Ba,r as Oa,e as on,N as pt}from"./CollapsableReportTable-B3_in9eE-D8gjZt8q.js";import{U as Un}from"./AccountRow-DbyUdPZG-D3G-oWRQ.js";import{a as Fa}from"./mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js";import{n as Uo}from"./mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js";import{R as Dr}from"./VendorsAccountsSection-tcJAh1A7-COfHef35.js";import{i as Br,p as qo,t as Or,n as Fr}from"./uploadAttachment-Wnp0PZFn-CVVetHUv.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./useFormControl-DPydD0oc-BkCU7DyG.js";const{common:{navBar:{back:zr},texts:{refresh:Pr,close:Mr,copy:_r,copied:Nr,open:Vr}},expenseAutomation:{common:{numbers:{maximumCount:Hr}}}}=ve.getLocalizedStrings(),Wr=s(Us)`
1
+ import{b as n,cJ as rs,u as we,hC as Xi,hD as Qi,j as t,a as ve,dc as ls,a9 as _e,bC as ea,s as g,c9 as cs,dd as ds,i as St,cf as us,js as hs,bn as Je,cH as fe,R as Q,ai as mt,ah as Oe,C as Xe,af as jt,bm as _,jq as ps,ig as ms,i8 as ta,ca as gs,cA as Bt,bH as na,cq as oa,lB as xs,hr as fs,f as ys,hE as Cs,hF as ia,c1 as ws,d8 as vs,cS as bs,fU as gn,cP as wo,a8 as Jt,cz as vo,aa as Kt,lC as Ss,lD as js,lE as ks,lF as ln,lG as aa,lH as sa,lI as Is,lJ as zo,lK as $s,eB as ra,lL as Ts,lM as Ls,lN as As,lO as Rs,lP as Es,lQ as Ds,lR as Bs,lS as Os,lT as Fs,lU as zs,lV as la,lW as Ps,lX as Ms,lY as _s,lZ as Ns,hT as ca,l_ as Vs,l$ as Hs,m0 as Ws,bG as Bn,dj as On,A as da,r as ua,D as ha,dt as xn,f9 as bo,hQ as Us,h9 as qs,ii as Js,as as Ks,L as Gs,gV as Zs,b3 as pa,m1 as Ys,bs as So,bB as Po,ia as ma,cm as ga,bq as Xs,hZ as Dt,jf as _n,fS as Ln,dF as jo,a_ as Qs,dO as xa,eC as er,ka as tr,eI as ko,di as Fn,dq as zn,jT as nt,t as Rt,j2 as nr,hU as Nn,kE as Mo,ex as fa,dQ as hn,m2 as or,by as ir,eH as ya,B as pn,jK as Ca,jU as go,m3 as nn,ff as wa,fg as va,kd as ba,ke as Sa,bj as Io,m4 as ar,dP as Pn,jN as ja,gL as ka,fJ as Vn,j$ as sr,f7 as rr,ak as yt,m5 as lr,m6 as cr,dL as dr,bv as Ia,a7 as ur,fG as hr,fH as pr,fI as mr,fK as _o,fL as No,fM as gr,m7 as xr,bK as Hn,fF as fr,m8 as yr,bz as Cr,fV as wr,fW as vr,fX as br}from"./index-OJbFNHch.js";import{a,o as $a}from"./core-tlHkQPPu.js";import{n as s,c as Ye,k as $o}from"./mui-kiGMfX4-.js";import{bj as Wn,gg as Vo,gh as mn,gi as Sr,gj as jr,cy as kr,bO as xo,cz as Ir,cA as $r,cB as Tr,fu as cn,bG as _t,eK as Ho,c4 as Ta,gk as Lr,gl as Ar,gm as Wo,c0 as Rr,bp as Nt,gn as La,go as Aa,gp as Ra,gq as Ea,gr as Da,gs as To,gt as Er}from"./zeni-epic-state-Bo1aGezX.js";import{X as Ba,r as Oa,e as on,N as pt}from"./CollapsableReportTable-B3_in9eE-DAO-TPrY.js";import{U as Un}from"./AccountRow-DbyUdPZG-kPApYWvO.js";import{a as Fa}from"./mapTimeframeBalancesToTreeNode-Cv8OFsQz-BQTTe1de.js";import{n as Uo}from"./mapLoadingInProgressToTreeNode-wIyHFu9f-BUan4l0E.js";import{R as Dr}from"./VendorsAccountsSection-tcJAh1A7-Dj7jjfw5.js";import{i as Br,p as qo,t as Or,n as Fr}from"./uploadAttachment-Wnp0PZFn-BWKvLRtm.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./useFormControl-DPydD0oc-BkCU7DyG.js";const{common:{navBar:{back:zr},texts:{refresh:Pr,close:Mr,copy:_r,copied:Nr,open:Vr}},expenseAutomation:{common:{numbers:{maximumCount:Hr}}}}=ve.getLocalizedStrings(),Wr=s(Us)`
2
2
  display: flex;
3
3
  width: ${n.sp4};
4
4
  height: ${n.sp4};
@@ -1,4 +1,4 @@
1
- import{i as ze,u as Z,a as q,a8 as Qe,bB as De,dt as et,j as t,cf as tt,aa as it,bC as at,R as g,b as a,mc as lt,md as nt,me as ot,dy as Ve,dv as rt,gl as dt,gZ as st,g_ as ct,dx as ke,hx as pt,mf as mt,dB as ut,gs as Ee,dC as ht,gt as Oe,gC as Ae,t as xe,gG as yt,s as p,bM as gt,bH as we,C as We,ai as xt,at as qe}from"./index-2CdI-B2B.js";import{a as Y}from"./core-tlHkQPPu.js";import{n as d}from"./mui-kiGMfX4-.js";import{bO as He,bj as oe,bT as _e,bK as ft,bp as bt}from"./zeni-epic-state-Bo1aGezX.js";import{c as wt}from"./LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js";import{p as ie}from"./LabeledText-iHeu8MCf-BqC7UtSs.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const vt={progressBarWidth:new g(343,726)},St=({pageIndex:e})=>{const i=Z(),f=ze(),u=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[u.stateOne,u.stateTwo,u.stateThree];return i==="small"?t.jsxs(Ct,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:f.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((c,n)=>t.jsx(It,{isLast:n==h.length-1,isRelevant:n<=e,perSectionHeight:100/h.length,children:t.jsx(Be,{children:c})},n))})]}):t.jsxs(jt,{windowSize:i,children:[t.jsx(nt,{coloredSectionCount:e,totalSections:2,barColor:f.colors.brandColorJade,isFrozen:!1}),t.jsx(Pt,{children:h.map((c,n)=>t.jsx($t,{stateIndex:n,isRelevant:n<=e,children:t.jsx(Be,{children:c})},c))})]})},jt=d.div`
1
+ import{i as ze,u as Z,a as q,a8 as Qe,bB as De,dt as et,j as t,cf as tt,aa as it,bC as at,R as g,b as a,mc as lt,md as nt,me as ot,dy as Ve,dv as rt,gl as dt,gZ as st,g_ as ct,dx as ke,hx as pt,mf as mt,dB as ut,gs as Ee,dC as ht,gt as Oe,gC as Ae,t as xe,gG as yt,s as p,bM as gt,bH as we,C as We,ai as xt,at as qe}from"./index-OJbFNHch.js";import{a as Y}from"./core-tlHkQPPu.js";import{n as d}from"./mui-kiGMfX4-.js";import{bO as He,bj as oe,bT as _e,bK as ft,bp as bt}from"./zeni-epic-state-Bo1aGezX.js";import{c as wt}from"./LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js";import{p as ie}from"./LabeledText-iHeu8MCf-GFbIBet5.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const vt={progressBarWidth:new g(343,726)},St=({pageIndex:e})=>{const i=Z(),f=ze(),u=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[u.stateOne,u.stateTwo,u.stateThree];return i==="small"?t.jsxs(Ct,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:f.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((c,n)=>t.jsx(It,{isLast:n==h.length-1,isRelevant:n<=e,perSectionHeight:100/h.length,children:t.jsx(Be,{children:c})},n))})]}):t.jsxs(jt,{windowSize:i,children:[t.jsx(nt,{coloredSectionCount:e,totalSections:2,barColor:f.colors.brandColorJade,isFrozen:!1}),t.jsx(Pt,{children:h.map((c,n)=>t.jsx($t,{stateIndex:n,isRelevant:n<=e,children:t.jsx(Be,{children:c})},c))})]})},jt=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${a.sp3};
@@ -1,4 +1,4 @@
1
- import{i as w,u as f,a as k,bs as s,C as n,j as e,dc as y,R as p,dd as x,de as _,s as c}from"./index-2CdI-B2B.js";import{n as l}from"./mui-kiGMfX4-.js";import"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const i={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(c[0],c[0],255),popupContainerWidth:new p(100,100,85)},z=l.div`
1
+ import{i as w,u as f,a as k,bs as s,C as n,j as e,dc as y,R as p,dd as x,de as _,s as c}from"./index-OJbFNHch.js";import{n as l}from"./mui-kiGMfX4-.js";import"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const i={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(c[0],c[0],255),popupContainerWidth:new p(100,100,85)},z=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{j as l,u as M,a as K,dF as A,dN as W,i as Q,dL as Z,R as L,hB as _,b as o,bm as P,fD as ne,b3 as Y,ht as de,hu as ce,B as pe,C as u,s as b,hX as ue,dO as xe,dM as he,ak as fe,co as ye,t as H,eB as ve,cp as ge,cn as $e}from"./index-2CdI-B2B.js";import{n}from"./mui-kiGMfX4-.js";import{a as F}from"./core-tlHkQPPu.js";const w={width:new L(343,580,726),height:new L(b[6],b[6]),controlHeight:new L(b[6],b[6]),paddingLeftRight:new L(b[3],b[4]),paddingTop:new L(b[3],b[3]),paddingBottom:new L(b[3],b[2]),labelMarginRight:new L(b[3],b[4])};function we({isDisabled:e,label:r,firstText:t,secondText:p,style:k,isFieldError:j}){const x=M(),{formState:{errors:S}}=A(),f=W(S,t.name),$=W(S,p.name),s=Q();return l.jsxs(ke,{size:x,style:k,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:$,"data-testid":P("labeled-multi-text-field",t.name),children:[l.jsx(Z,{isDisabled:e,label:r.label,style:{marginRight:w.labelMarginRight.value(x),width:r.width??"auto",color:s.colors.champion}}),l.jsxs(je,{labelWidth:r.width,children:[l.jsxs(te,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(_,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(x),cursor:"inherit",backgroundColor:s.colors.grey3,borderRadius:o.sp1,color:s.colors.primary},hoverBgColor:s.colors.background,bgColor:s.colors.background,disabledColor:s.colors.background,isFieldError:j,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(se,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Se,{children:[l.jsx(oe,{}),l.jsx(Te,{}),l.jsx(oe,{})]}),l.jsxs(te,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(_,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(x),cursor:"inherit",backgroundColor:s.colors.grey3,borderRadius:o.sp1,color:s.colors.primary},hoverBgColor:s.colors.background,bgColor:s.colors.background,disabledColor:s.colors.background,isFieldError:j,defaultValue:t.defaultValue}),l.jsx(se,{isError:$,children:p.additionalInfoLabel})]})]})]})]})}const ke=n.div`
1
+ import{j as l,u as M,a as K,dF as A,dN as W,i as Q,dL as Z,R as L,hB as _,b as o,bm as P,fD as ne,b3 as Y,ht as de,hu as ce,B as pe,C as u,s as b,hX as ue,dO as xe,dM as he,ak as fe,co as ye,t as H,eB as ve,cp as ge,cn as $e}from"./index-OJbFNHch.js";import{n}from"./mui-kiGMfX4-.js";import{a as F}from"./core-tlHkQPPu.js";const w={width:new L(343,580,726),height:new L(b[6],b[6]),controlHeight:new L(b[6],b[6]),paddingLeftRight:new L(b[3],b[4]),paddingTop:new L(b[3],b[3]),paddingBottom:new L(b[3],b[2]),labelMarginRight:new L(b[3],b[4])};function we({isDisabled:e,label:r,firstText:t,secondText:p,style:k,isFieldError:j}){const x=M(),{formState:{errors:S}}=A(),f=W(S,t.name),$=W(S,p.name),s=Q();return l.jsxs(ke,{size:x,style:k,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:$,"data-testid":P("labeled-multi-text-field",t.name),children:[l.jsx(Z,{isDisabled:e,label:r.label,style:{marginRight:w.labelMarginRight.value(x),width:r.width??"auto",color:s.colors.champion}}),l.jsxs(je,{labelWidth:r.width,children:[l.jsxs(te,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(_,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(x),cursor:"inherit",backgroundColor:s.colors.grey3,borderRadius:o.sp1,color:s.colors.primary},hoverBgColor:s.colors.background,bgColor:s.colors.background,disabledColor:s.colors.background,isFieldError:j,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(se,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Se,{children:[l.jsx(oe,{}),l.jsx(Te,{}),l.jsx(oe,{})]}),l.jsxs(te,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(_,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(x),cursor:"inherit",backgroundColor:s.colors.grey3,borderRadius:o.sp1,color:s.colors.primary},hoverBgColor:s.colors.background,bgColor:s.colors.background,disabledColor:s.colors.background,isFieldError:j,defaultValue:t.defaultValue}),l.jsx(se,{isError:$,children:p.additionalInfoLabel})]})]})]})]})}const ke=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{i as qe,u as Q,a8 as Ue,a_ as Ee,dt as Ke,j as t,a as ue,cf as _e,aa as Ye,df as Se,b as o,B as be,bm as F,cz as Ze,da as Je,bG as Qe,eC as Xe,dj as et,a9 as tt,A as lt,dP as ot,cm as Pe,bq as at,R as L,cA as re,s as y,eI as $e,af as we,di as nt,dq as it,dF as rt,jA as st,jF as Te,ex as ve,dQ as he,cH as Z,fN as Ce,ak as dt,jG as ct,ah as ht,bW as mt,d6 as gt,c6 as pt,C as We,jH as ut}from"./index-2CdI-B2B.js";import{a as $}from"./core-tlHkQPPu.js";import{n,c as fe}from"./mui-kiGMfX4-.js";import{c4 as wt,fZ as xt}from"./zeni-epic-state-Bo1aGezX.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const Me="recommendedFirst",ke="recommendedSecond",q="currentSelection",xe="originalVendor",me="requested",se=(e,l)=>`${e}.${l}`,de=(e,l,i)=>i!=null?`${e}.${l}.${i}`:`${e}.${l}`;function bt(e){const l=Q(),{button:{label:i,onClick:a},search:{isOpen:m,placeHolder:c,searchText:x,onTextChange:d}}=e;return t.jsxs(vt,{children:[t.jsx(ft,{isSearchOpen:m&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Se,{style:{position:"absolute",left:"unset",right:o.sp0},placeholder:c,searchText:x,onSearchTextChanged:d}):null}),l==="small"?t.jsx(Se,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:c,searchText:x,onSearchTextChanged:d,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(jt,{style:{marginLeft:o.sp5}}):t.jsx(be,{variant:"primary",onClick:a,label:i,size:"small",style:{marginLeft:o.sp3}})]})}const vt=n.div`
1
+ import{i as qe,u as Q,a8 as Ue,a_ as Ee,dt as Ke,j as t,a as ue,cf as _e,aa as Ye,df as Se,b as o,B as be,bm as F,cz as Ze,da as Je,bG as Qe,eC as Xe,dj as et,a9 as tt,A as lt,dP as ot,cm as Pe,bq as at,R as L,cA as re,s as y,eI as $e,af as we,di as nt,dq as it,dF as rt,jA as st,jF as Te,ex as ve,dQ as he,cH as Z,fN as Ce,ak as dt,jG as ct,ah as ht,bW as mt,d6 as gt,c6 as pt,C as We,jH as ut}from"./index-OJbFNHch.js";import{a as $}from"./core-tlHkQPPu.js";import{n,c as fe}from"./mui-kiGMfX4-.js";import{c4 as wt,fZ as xt}from"./zeni-epic-state-Bo1aGezX.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const Me="recommendedFirst",ke="recommendedSecond",q="currentSelection",xe="originalVendor",me="requested",se=(e,l)=>`${e}.${l}`,de=(e,l,i)=>i!=null?`${e}.${l}.${i}`:`${e}.${l}`;function bt(e){const l=Q(),{button:{label:i,onClick:a},search:{isOpen:m,placeHolder:c,searchText:x,onTextChange:d}}=e;return t.jsxs(vt,{children:[t.jsx(ft,{isSearchOpen:m&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Se,{style:{position:"absolute",left:"unset",right:o.sp0},placeholder:c,searchText:x,onSearchTextChanged:d}):null}),l==="small"?t.jsx(Se,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:c,searchText:x,onSearchTextChanged:d,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(jt,{style:{marginLeft:o.sp5}}):t.jsx(be,{variant:"primary",onClick:a,label:i,size:"small",style:{marginLeft:o.sp3}})]})}const vt=n.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  padding-right: ${o.sp0};
@@ -1,4 +1,4 @@
1
- import{a as C,j as r,bk as v,G as w,bm as E,bu as L,bl as y,bp as D,b as j,af as B}from"./index-2CdI-B2B.js";import{o as h,a as t}from"./core-tlHkQPPu.js";import{e as Z}from"./SummaryCard-Bm1IRZgD-Bll-orHR.js";import{n as l}from"./mui-kiGMfX4-.js";import{h as x}from"./NavigationArrow-DlO0Lww9-Ct543iDt.js";import{n as H}from"./NavigationDots-DO5y6mdV-DGnlFBBn.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./ReloadCard-CreyuBvN-CLMqgpFk.js";const b=l.div`
1
+ import{a as C,j as r,bk as v,G as w,bm as E,bu as L,bl as y,bp as D,b as j,af as B}from"./index-OJbFNHch.js";import{o as h,a as t}from"./core-tlHkQPPu.js";import{e as Z}from"./SummaryCard-Bm1IRZgD-91ZI-22I.js";import{n as l}from"./mui-kiGMfX4-.js";import{h as x}from"./NavigationArrow-DlO0Lww9-C_GP4JM3.js";import{n as H}from"./NavigationDots-DO5y6mdV-CX8opgkb.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./ReloadCard-CreyuBvN-DjNwhyuW.js";const b=l.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  flex-direction: column;