@zeniai/web-cockpit-ui 1.14.89-prod → 1.14.90-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/dist/assets/{ACHDetailsPage-BBq7KpbY-CpL5U89v.js → ACHDetailsPage-BUP-_2-W-BxsdzxJg.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-Djq6mgKa-BXUkte6G.js → AIPerformancePage-DHF_70JI-BB0m0Wmb.js} +22 -22
  3. package/dist/assets/AccountInfoPage-pmUIckJ9-ClFTcWKH.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DO6aVqBW-CcG81fXf.js → AccountInfoPageContent-DLSL1NNm-ysW8pq2z.js} +9 -9
  5. package/dist/assets/AccountLockedInfoModal-Bq3y0K0F-DT_bUQ3U.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-s5lyisHF.js → AccountReconDetailsDrawerPage-CGcZO_qz-Cy1Ijv5f.js} +16 -16
  7. package/dist/assets/{AccountRow-Ck53DDbT-DgVym5NM.js → AccountRow-D2Ypckgj-DU9kFXuE.js} +26 -26
  8. package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-DdN6kRaj.js → AccountsPromoCardStack-BVVDCW1H-DJjdfLGW.js} +23 -23
  9. package/dist/assets/AddAddressForCardDrawer-C8aENofu-DA1NQK9C.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DA6AmuaY-BQi9MsaD.js → AddToWalletPage-CmT5jSb5-D2YVbVt5.js} +11 -11
  11. package/dist/assets/{AgingReportsPage-B_Hhl_Is-DGuqbTZb.js → AgingReportsPage-BeUGvj3b-CHP-b-K4.js} +6 -6
  12. package/dist/assets/{AllUserItems-BV22Ibpn-D4sEkFpc.js → AllUserItems-CmlMyz-f-C0puagwR.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-DqV1vOVH-C05RVobp.js → ApAgingDetailPage-Dz1_N0Yw-iyEKxxlG.js} +3 -3
  14. package/dist/assets/{AppBasePage-LrgCcvIv-Ch9LW15t.js → AppBasePage-DX4EGGcT-DxyBlsaI.js} +11 -11
  15. package/dist/assets/{AppDrawerContent-aZG5Qc_X-DEDViUw7.js → AppDrawerContent-Brg3Rw4K-DWiehP3E.js} +5 -5
  16. package/dist/assets/ApprovalRulesSettingsPage-Bn7KrUl2-CvKRvgo_.js +47 -0
  17. package/dist/assets/{ArAgingChart-Am7LTkqG-B6qiKVZ7.js → ArAgingChart-DQZtCsHS-CSTDLkfC.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-BtF6K5dA-VZeY_ZUJ.js +46 -0
  19. package/dist/assets/{AttachmentView-Bujbmx1d-DqiQcBPx.js → AttachmentView-DgPySmB8-B0CUUwUu.js} +8 -8
  20. package/dist/assets/{BankAccountSection-C5rYUW3V-Bq5OdcQr.js → BankAccountSection-BVZK5jmO-oboSifeA.js} +7 -7
  21. package/dist/assets/{BankAccountWarningSection-DakysSbk-DtGHGGlf.js → BankAccountWarningSection-DHdeDi15-DsdgRhNS.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-CzKGiQZr.js → BankConnectionsSettingsPage-BN3lAARB-UlnRR8CQ.js} +31 -31
  23. package/dist/assets/{BillDetailPage-DYc_nZRU-Bfft4Wvj.js → BillDetailPage-BuUm6vdf-DEUKUhee.js} +13 -13
  24. package/dist/assets/BillPayApprovalRuleDetailPage-BXSdsF2E-CYUFVErE.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-B8HbVvc9-DpzHPmZp.js +241 -0
  26. package/dist/assets/{BillPayPromoPage-BK2J56U5-Dr_7W8ch.js → BillPayPromoPage-DkoqXDNt-FNHctwfQ.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-Jic5E25q-ByxpO-dO.js → BillPaySetUpPage-BommXkLS-DOKgmPVm.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CKZVChEm-DCpRgyWO.js → BillingSettingsPage-gHbc5Kq3-CFDIJf8G.js} +10 -10
  29. package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-pr6_FYet.js → BillsBulkReviewDrawerPage-C541rBnx-DPMvwxh2.js} +1 -1
  30. package/dist/assets/{BoxItem-8PfNfaHq-B3NqjMnf.js → BoxItem-usHxaONy-BSYmkNdH.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-JGge-Iiw-CDuaPB9j.js → BusinessVerificationPage-CLsxXy9d-ClcyVS-f.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-W81SQ4GF-D9TP2ZHa.js → CardNumberSubText-D_fWhc_K-BxJ3GoBc.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-DnOcmx2i-BC6CYrJs.js → CashbackDetailPage-D3WylWVP-CydwwFdH.js} +19 -19
  34. package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-BSQk_5-_.js → ChargeCardDetailPage-BUsGBwBf-DhD5ouX9.js} +27 -27
  35. package/dist/assets/{ChargeCardListPage-Dgj-WWWI-w23hoUyI.js → ChargeCardListPage-Jhx05dVV-DjDdThgH.js} +24 -24
  36. package/dist/assets/{ChargeCardListTable-uJZKWoh7-C3O6hd1k.js → ChargeCardListTable-D-eYWaxh-CZeSVtIX.js} +26 -26
  37. package/dist/assets/ChargeCardPromoPage-CzR82VtA-DoVVgv51.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-lGDN0gVp.js → ChargeCardSetupPage-Ctz8PCuu-Dmh0C1fi.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-BOXYEkI8.js → ChargeCardStatementsPage-EUtRTAX2-CIQRTxBN.js} +6 -6
  40. package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-BIViF4jr.js → CheckDepositDrawerPage-B7DC0HAi-DPwOJJS7.js} +17 -17
  41. package/dist/assets/{CollapsableReportTable-Crihcv_z-1kvNpwNO.js → CollapsableReportTable-I40BZv7o-RBVPkQ58.js} +233 -233
  42. package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-85Q00Xll.js → CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js} +24 -24
  43. package/dist/assets/{CompanyPassportCard-DMRQkRPb-Da9mkNtI.js → CompanyPassportCard-82bbFwk--C3mnYk4t.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-D3XvbSF_-CYpevto3.js → CompanyPassportPage-DG1Fa_Uw-B4wsnqA2.js} +18 -18
  45. package/dist/assets/{CompleteProfile-BqjXO5ze-Ctdetiwt.js → CompleteProfile-B7bQqLQH-DwtJrHr4.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DtwLo4WZ-C2L-ZVQE.js → ConfettiBurst-DUyIBnw4-BZY51mbD.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-CD1A265s.js → CreateOrEditVendorPage-DVzMO96w-CjeOn0Zu.js} +6 -6
  48. package/dist/assets/CreditCardPaymentDrawerPage-C03hfKGc-BI7dTqV7.js +224 -0
  49. package/dist/assets/{CurrencySelectField-ClOg6nnS-kGQo9dVf.js → CurrencySelectField-2hU3oIp_-CnccIVlk.js} +3 -3
  50. package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-DcQOmDTQ.js → CustomerOnboardingActivationPage-Dt-Nml2t-CQyv3wO4.js} +8 -8
  51. package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-B7ffmmrc.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CxxSHxC_.js → CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-CS261SSd.js} +11 -11
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-Dc6IfrxS.js → CustomerOnboardingNoStepsPage-CwI8nL61-Xg6qQ6Ku.js} +4 -4
  54. package/dist/assets/CustomerOnboardingPage-C3FgZjAN-C75cnlLW.js +107 -0
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-CYHRi8SS.js → CustomerOnboardingProductSuitePage-BOYu-82S-uR17VQjV.js} +4 -4
  56. package/dist/assets/{Dashboard-CdYlvep--BGWE43Rb.js → Dashboard-D_oTtu1--CP9XS1zf.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-c6q027Qp-DuE_OhrG.js → DashboardReportPage-Dprj3eUQ-BK5e1r9g.js} +20 -20
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-CxxrP75O.js → DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-D8kL8enp-Dq5wJete.js → DepositAccTransactionItem-C2oP415b-B5ygx6vl.js} +6 -6
  60. package/dist/assets/DepositAccTransactionListPage-DCvdqAz1-Df_FOAOf.js +66 -0
  61. package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-f9WMmV-Y.js → DomesticWireDetailsPage-Da_3EveP-Bjb9K-P-.js} +2 -2
  62. package/dist/assets/{DownloadOverlay-Dr4uLNpZ-DONqYIqe.js → DownloadOverlay-BwddFmV2-BqOR54wm.js} +26 -26
  63. package/dist/assets/{DrawerPage-CbKBsc7w-SC5EmQrv.js → DrawerPage-CGrnrvf2-BvrxfWnf.js} +12 -12
  64. package/dist/assets/EditPeoplePage-DMgxG2Gd-C3BsPnxU.js +55 -0
  65. package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-CLWs3phi.js → EditReimbursementDetailPage-DwCiVkeu-B4w5FVLx.js} +25 -25
  66. package/dist/assets/EntityDetailPage-BcRVEfi5-Cnj_gM9q.js +18 -0
  67. package/dist/assets/{EntitySummarySection-BIV9aAq2-gyi2P83i.js → EntitySummarySection-BaHHLLkE-D3Ip19-Y.js} +28 -28
  68. package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-CJFA1E0S.js → ExpenseAutomationOverviewPage-hl_3Pc0g-gY12ACUr.js} +27 -27
  69. package/dist/assets/ExpenseAutomationPage-D70ghitX-EafeQT3m.js +1650 -0
  70. package/dist/assets/{ExpressPayPage-DnpQuDmt-B1wqsfAL.js → ExpressPayPage-BpfkmJ_I-B4izq8YR.js} +13 -13
  71. package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-B0W4Ko3A.js → FeaturePreviewPage-Bzi8Bpk3-DtSpKYbK.js} +3 -3
  72. package/dist/assets/{FollowStepsSection-B2I9SddL-0icECvY3.js → FollowStepsSection-Bu3RG_GH-DmaIgxgE.js} +10 -10
  73. package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-DDpKubDJ.js → GlobalReviewListPage-D4BD7q-I-BHZQG-gN.js} +11 -11
  74. package/dist/assets/{InformationCardStack-mEhasBqu-Cby7NjOe.js → InformationCardStack-B9wnkR3p-CjpaX6cg.js} +3 -3
  75. package/dist/assets/{InsightsCardStack-Mj7QcQnH-9E267zSA.js → InsightsCardStack-C1_rd2Sb-uYkz47Dy.js} +11 -11
  76. package/dist/assets/InsightsSection-7-T67WeF-BlMRO9Ba.js +27 -0
  77. package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-BC2VX2XQ.js → IntegrationsSettingsPage-C9YpvDgg-DjW-A2Ra.js} +11 -11
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-kUzCnm4M.js → InternationalWireSwiftDetailsPage-C5mI8dEh-MFTemI3R.js} +12 -12
  79. package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-B4oK9pjT.js → InternationalWireVerificationPage-B8AOwcSX-HJr1qwVZ.js} +23 -23
  80. package/dist/assets/{InviteFormPage-DK6X9Zwi-B6zDF_N3.js → InviteFormPage-DuBhhnre-DKK8UkI0.js} +22 -22
  81. package/dist/assets/{InvitePageListView-CwKbcKlM-BpKjoalu.js → InvitePageListView-Dw8kwEFd-zXFzVUiq.js} +41 -41
  82. package/dist/assets/InvitePeoplePage-BI_vd7xw-BSlMVd1C.js +12 -0
  83. package/dist/assets/{InvoiceUploadSection-CokNNkKu-LMnKce0C.js → InvoiceUploadSection-9DaovMq8-DOf6F-xG.js} +3 -3
  84. package/dist/assets/IssueChargeCardPage-fumweN4Y-Ie_niRER.js +532 -0
  85. package/dist/assets/{LabeledAddressValue-BhwrrtZX-Dtm3Vn-k.js → LabeledAddressValue-cNf6hI1l-C1IgZGiS.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DzmwP7hP-DTG2n0wD.js → LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js} +8 -8
  87. package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-DY1ubvCV.js → LabeledControlledCheckBoxField-DQwUvKR2-BFeYWYOG.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-BHPGlraH.js → LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js} +7 -7
  89. package/dist/assets/LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js +41 -0
  90. package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-BfNjnfMR.js → LabeledDropDownFormattedTextField-B-yUtgxR-CkZPhULB.js} +7 -7
  91. package/dist/assets/{LabeledText-Db46hFZY-BVLwPpan.js → LabeledText-BJ3Zvb5p-yc50ilCa.js} +2 -2
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-BVcg7w-8.js → LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js} +17 -17
  93. package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-C1lu43_h.js → LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js} +11 -11
  94. package/dist/assets/{LinkJETransactionPage-BZSRaZqY-CJzDRMx9.js → LinkJETransactionPage-BsszwFNq-BtKpHm2U.js} +10 -10
  95. package/dist/assets/{LockCardPage-KTyESoXL-BEIak2Ih.js → LockCardPage-DqQGGac2-Bntrtxvn.js} +42 -42
  96. package/dist/assets/{LowBalancePopup-B0BDCEui-imBShbhH.js → LowBalancePopup-BFo5zRk3-BLFy36gu.js} +6 -6
  97. package/dist/assets/MagicLinkACHDetailsPage-wYa3cyyZ-Cn9Ml7SS.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-CW4RNKOV-Bj3CP8hj.js +1 -0
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-Ce8g6h3x.js → MagicLinkInternationalWireDetailsPage-CX9SeCLl-Bato55Wl.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-CdrXg-uF.js → MagicLinkSuccessPage-Dipq1-St-C4ZMZxw5.js} +2 -2
  101. package/dist/assets/{MagicLinkTitleSection-CWw516D8-pIsP-hCT.js → MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js} +7 -7
  102. package/dist/assets/{MailingDetailsSection-CugAM90r-1QhNZBqO.js → MailingDetailsSection-DwNF-L2Y-DJJZ9RqI.js} +1 -1
  103. package/dist/assets/{Menu-CGN2qO6T-C4Fa3L7f.js → Menu-D0jF6uaE-AMW53cTN.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-qcVSSqGc.js → MyBankConnectionsSettingsPage-DpM6MKBq-CmnrHUZV.js} +7 -7
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-C-dJs3xW.js → MyPendingActivationChargeCardListPage-BaT55Pwg-BdKjhqSf.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-DVrg-p-V.js → MyProfileSettingsPage-kD1dY6P6-BAgE1Tqp.js} +6 -6
  107. package/dist/assets/{NavBarWithPicker-DLLvivn4-BzT_Crvs.js → NavBarWithPicker-D-WQJ-tG-C6mGlKIr.js} +4 -4
  108. package/dist/assets/{NavigationArrow-B4j2t8Qu-hrsh9ohB.js → NavigationArrow-Z9PgxZ-c-DrPA9Vgt.js} +1 -1
  109. package/dist/assets/{NavigationDots-DyMqwpgy-JfxKvmss.js → NavigationDots-BT-m0FmS-CJdtX5bS.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-BFKhG52x.js → NewGlobalMerchantPage-YsnX4uQU-7PwHdB8y.js} +36 -36
  111. package/dist/assets/{NoDataChart-Ce1_TZ5w-DDbLlhh6.js → NoDataChart-DMivligx-DVgr9SAl.js} +1 -1
  112. package/dist/assets/{NoDataTable-l2T5Hw3t-BXRvsSzg.js → NoDataTable-DwOJY23X-BMIpXvJR.js} +1 -1
  113. package/dist/assets/{NotFoundPage-msdN-Eu6-C6ZelS6k.js → NotFoundPage-DuKXpHos-BIXgl60z.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-_ovcjr8E-CGt9EpNU.js → NotificationSettingsPage-DlU2NxiC-DDx7Rraa.js} +22 -22
  115. package/dist/assets/NotificationsListConfig-BQCb9x9X-C3jJIn48.js +1 -0
  116. package/dist/assets/{NotificationsPage-Ddxb5kE0-D6sdzZ5M.js → NotificationsPage-q0bK_5gs-C_zZBYkJ.js} +37 -37
  117. package/dist/assets/{OpExByVendorPage-BLAHey0l-BlNwZbg2.js → OpExByVendorPage-Boc7U8eu-BxBRsCtx.js} +24 -24
  118. package/dist/assets/OverlayContainerPage-CrZuT2Jj-DDO8EgYZ.js +11 -0
  119. package/dist/assets/{PandLWithForecastPage-B7Z73Sq--CNDc-1lT.js → PandLWithForecastPage-B2eGvFPp-CEl0eyCC.js} +10 -10
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-2WYjNORF.js → PaymentAccountSetupBillingAddressSection-BP-_59EO-KoltH9y1.js} +9 -9
  121. package/dist/assets/{PeoplePage-BHRFiM0D-DRMll50T.js → PeoplePage-YMfZIga6-BPMCy-eb.js} +23 -23
  122. package/dist/assets/{Preview-Bnbo8Nq1.js → Preview-BszQHI_F.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-D2bf_6Gb-TEfA4CrL.js → ProductsCarousel-CUaU5-V7-CFq7I05R.js} +6 -6
  124. package/dist/assets/{PromoBaseCards-CI7UOpeY-B1evZov_.js → PromoBaseCards-CmOYEhSO-D3yPErwW.js} +2 -2
  125. package/dist/assets/{QBOConnectionDialog-D7MeKn1t-B2w1QKzx.js → QBOConnectionDialog-BNiXUEAk-B55AIWRo.js} +3 -3
  126. package/dist/assets/{QBOSetupSection-DWhfA4Xv-qK0GI5W7.js → QBOSetupSection-CjjNFfgF-CIhiV9Dd.js} +9 -9
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-tP7WcKvd-CCMfftol.js +26 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-BkuYJ6qb-BIx385RC.js +243 -0
  129. package/dist/assets/{ReimbursementDetailPage-COIRwy7i-CGhFzpju.js → ReimbursementDetailPage-D5IzqJS5-BklJr7jT.js} +13 -13
  130. package/dist/assets/ReimbursementPromoPage-D7n6lZNo-BpT8Ss67.js +84 -0
  131. package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-dSx9uq0k.js → ReimbursementSetUpPage-E1elWU5Z-VC2DwUtC.js} +15 -15
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-CHho_I4c.js → ReimbursementsBulkReviewDrawerPage-HzYNji-G-DGG79plx.js} +1 -1
  133. package/dist/assets/{ReloadCard-B2sJR97f-BCtofZlK.js → ReloadCard-DMWwNZ1z-CIbg2f6Q.js} +3 -3
  134. package/dist/assets/{ReportTableViewSelector-_IO343vS-Czn5ein5.js → ReportTableViewSelector-EU36E1lv-XPDH-qLc.js} +11 -11
  135. package/dist/assets/{ReportsPage-C-aQ1bdd-CGJdsE_g.js → ReportsPage-iJDifG6q-BnnQKn2l.js} +4 -4
  136. package/dist/assets/{RevenueChart-Bgq6My4J-CVvgi3IE.js → RevenueChart-BbOK-HCB-UtcLA02J.js} +22 -22
  137. package/dist/assets/ReviewDetailsPage-Bk2vvBn3-C2KvPaPZ.js +290 -0
  138. package/dist/assets/{ReviewOverlay-CPU7RPiJ-Boo32wAd.js → ReviewOverlay-CJlk2MNH-s-FncxF6.js} +14 -14
  139. package/dist/assets/{RoleWithToolTip-DSSGBzvw-LpQZuizj.js → RoleWithToolTip-B7woUKhj-CCCbdbHN.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-_HxIg-El.js → ScheduleDetailsFixedAssetsPage-B-WjqQN_-BZxRVl4y.js} +3 -3
  141. package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-D7Ghhz-Q.js → ScheduleDetailsPage-ocFBINM3-BwGXsqpK.js} +4 -4
  142. package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-CH4pWS8t.js → ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js} +24 -24
  143. package/dist/assets/{ScreenRoutes-CAl3Z8kZ.js → ScreenRoutes-Bs2X1R3V.js} +42 -42
  144. package/dist/assets/{SetUpAccountSection-DrMCC1IY-DKdlON5F.js → SetUpAccountSection-9zELif-q-xWCkQEz2.js} +4 -4
  145. package/dist/assets/{SignIn-Ij6tlYI5-W_hhag2x.js → SignIn-BHHUcLal-BDutKsDY.js} +17 -17
  146. package/dist/assets/{SignInScreen-C1qvvdaH.js → SignInScreen-DqJeiieA.js} +1 -1
  147. package/dist/assets/SpendManagementListViewPage-BAdSW-49-C0b0e4ib.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-HzCmGr0--BrKmnwTS.js +785 -0
  149. package/dist/assets/{SpendManagementSection-BqWbsmBW-DdAcoAqN.js → SpendManagementSection-LzT-Bnhy-DcyEJGSm.js} +15 -15
  150. package/dist/assets/StatementItem-BnxTFgdM-ncI51LoG.js +31 -0
  151. package/dist/assets/{StatementsPage-BG_pNQzc-C5W9jefo.js → StatementsPage-B8X2un5p-CiIvEzAF.js} +4 -4
  152. package/dist/assets/{StatusSwitcher-DYRXaLvx-C8j2Xkv0.js → StatusSwitcher-BPKr5BUW-lb0m6Cbr.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-C75XU1EG-Bq01jAuq.js → SubTabSwitcher-4dvyyQSv-BdqA6ZlC.js} +1 -1
  154. package/dist/assets/{SummaryCard-DEnzgi31-uIlH28-c.js → SummaryCard-CiNkV7uy-BHimAYKo.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-BacWm0wS-3n2EdCaU.js → TaskManagementPage-BiyyDIWi-DCcTniX2.js} +15 -15
  156. package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-xiPqTTPj.js → TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcher-BVgI_VZw-Dr2i-g4z.js → TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CkdcdrPb.js → TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js} +1 -1
  159. package/dist/assets/{TopExCard-ImUx-vXr-RGtoQGSt.js → TopExCard-DbPlohSJ-YKd6FEuQ.js} +4 -4
  160. package/dist/assets/{TopExDetailPage-Dg_8DQk8-C4FAKt7P.js → TopExDetailPage-Cla8Hd-1-1fpYe-lT.js} +9 -9
  161. package/dist/assets/{TransactionDetailPage-BzaDB50S-5UQplDsu.js → TransactionDetailPage-BbjtQvBr-DNyUqobk.js} +45 -45
  162. package/dist/assets/{TransactionList-DMd3dgoK-GAchYYqt.js → TransactionList-BRiHadkm-BVpjF8up.js} +14 -14
  163. package/dist/assets/{TransactionListBig-BxHqh8u6-x9Ey0UsD.js → TransactionListBig-BOeu4-R4-Cua70V6_.js} +20 -20
  164. package/dist/assets/TransactionListPage-ByVvx6ON-C32shKZQ.js +35 -0
  165. package/dist/assets/TransactionVendorDetailPage-DMweGn3b-CelejD-M.js +80 -0
  166. package/dist/assets/{TransferDrawerPage-oV7ickRP-D-sipkzC.js → TransferDrawerPage-BTqCR3Hb-CYdeK3jF.js} +12 -12
  167. package/dist/assets/{TreasuryOverviewPage-CECDKjNn-DafLwMhl.js → TreasuryOverviewPage-CDJtsQsC-ns0b2xlD.js} +42 -42
  168. package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-Iq5Spa9l.js → TreasuryPromoPage-Bqt6DcqL-DbWZMgaj.js} +131 -131
  169. package/dist/assets/TreasuryStatementsPage-2PsC-PWa-MMDwIX2Z.js +58 -0
  170. package/dist/assets/TreasuryTaxLetterPage-D6MoHMAo-MFFnXqVo.js +58 -0
  171. package/dist/assets/{TrendChart-C_6ob-SX-UqLmUzGG.js → TrendChart-DiutckSt-CgHLzJj6.js} +4 -4
  172. package/dist/assets/{TrendWithTransactions-lMD2sZ-C-CwJLlCAn.js → TrendWithTransactions-rPwZKHfV-DNKy45Dj.js} +9 -9
  173. package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-BI_hO66l.js → UncategorizedAccountsMappingPage-CFx4P194-CH9WyFGN.js} +11 -11
  174. package/dist/assets/{UnitIntegrationPage-D9Pzxqju-DEb5YSJD.js → UnitIntegrationPage-DO8dMzVg-DvbEuGmN.js} +6 -6
  175. package/dist/assets/UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js +38 -0
  176. package/dist/assets/{Vendor2FAPopup-D-r0NVE--Cj-W5XDH.js → Vendor2FAPopup-BdG-Ywma-QkJvZ609.js} +1 -1
  177. package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-Bs2SlaRU.js → VendorACHDetailsPage-BUNmE_s6-5dZ0tO5y.js} +1 -1
  178. package/dist/assets/{VendorDetailPage-BhfawsBd-B6AIf-oM.js → VendorDetailPage-Dy9McuGu-BueeE3oi.js} +19 -19
  179. package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-BBrkrthi.js → VendorDomesticWireDetailsPage-DvACrh7C-fv6qIbh-.js} +1 -1
  180. package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-NorBD_dQ.js → VendorFiling1099EditablePage-Y0hGO4RH-Bkykk5NB.js} +21 -21
  181. package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-v0NQaBfE.js → VendorFirstReviewPage-C-pT1M36-D21-SWZN.js} +50 -50
  182. package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-RCdBVGb0.js → VendorInternationalWireDetailsPage-CCMramET-CvrUOrMX.js} +15 -15
  183. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-BcKJJc7Z.js → VendorInternationalWireSwiftDetailsPage-lxD_Z5W--BAaZ1iJw.js} +1 -1
  184. package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-CCWdfZ9i.js → VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js} +2 -2
  185. package/dist/assets/{VerifyDevice-DE3UbLEe-xqLTy9aT.js → VerifyDevice-DDZdWfa8-C2_zooti.js} +7 -7
  186. package/dist/assets/{VideoPlayer-Gw_PLr8F-LYtV3YjE.js → VideoPlayer-D0GZ_Yml-CzUqkm8K.js} +2 -2
  187. package/dist/assets/{VideoPopup-DPZYhLgy-BO96yEx0.js → VideoPopup-CEdhfU31-CRc_PqEa.js} +1 -1
  188. package/dist/assets/{WarningsDrawerPage-CZvToguS-ZmIZ7qVV.js → WarningsDrawerPage-CIK9lkT2-4Dbh3gee.js} +7 -7
  189. package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-C7s0f_Qs.js → ZeniAccountDetailPage-BF8cg2oa-D23upslb.js} +36 -36
  190. package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-D69L6A9u.js → ZeniAccountListViewPage-BkdkYY8j-BsJgCgRQ.js} +9 -9
  191. package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-B89t8_rk.js → ZeniAccountNavBarPieces-FAxN1QDY-BljetA4S.js} +3 -3
  192. package/dist/assets/{ZeniAccountPromoPage-DA611IgH-CDNeuQb5.js → ZeniAccountPromoPage-COAOIU03-Bkst1764.js} +31 -31
  193. package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-DgoWwbJ9.js → ZeniAccountSetupPage-QMBiVius-DdJzbNoZ.js} +6 -6
  194. package/dist/assets/{ZeniCopyright-FFqiWypL-jhRC6VHA.js → ZeniCopyright-CgfP-kcy-BQ8g3w-z.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-B8KinheN.js → ZeniTransferAmountSlider-B1fmc3f9-BXoBksgM.js} +3 -3
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-DgdBD8_G-BctcirlU.js} +1 -1
  197. package/dist/assets/{analytics-XaDXTZcq.js → analytics-DGBWhVbe.js} +1 -1
  198. package/dist/assets/{analyticsHelper-CczQLvkM-CJFzfxe1.js → analyticsHelper-BKtlFOJm-DFeq4K6y.js} +1 -1
  199. package/dist/assets/analyticsHelper-BY515BEN.js +1 -0
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-PEovUgvH-DFZl4BUT.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-mbafm5D3-BCnmjSj0.js} +1 -1
  202. package/dist/assets/{chartTypes-CwQl8aoN-mEF0MFro.js → chartTypes-BZYC5y5J-fsutalT0.js} +1 -1
  203. package/dist/assets/{commonDimensions-B1u_MhON-DBkNP1J8.js → commonDimensions-B-aZt-hB-CyMsSMR_.js} +1 -1
  204. package/dist/assets/{core-3dlyNYRL.js → core-B-FNbYlu.js} +12 -12
  205. package/dist/assets/{dash.all.min-DBAY9LgI.js → dash.all.min-BBsvkPzr.js} +1 -1
  206. package/dist/assets/{detailCommon-nYxvvV_i-Can4Gb-c.js → detailCommon-DCtkwfR8-BBwf5Sk5.js} +2 -2
  207. package/dist/assets/{downloadPdf-yGlKpV2--fFgmg-2D.js → downloadPdf-BhQlJMh0-BaxCiwAc.js} +1 -1
  208. package/dist/assets/{empty-DeBX16Fq.js → empty-TjEo4rDg.js} +1 -1
  209. package/dist/assets/epic-DMZtehrN.js +2 -0
  210. package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-Cmt9OgIZ-aujv_noX.js} +1 -1
  211. package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-DU4J8fDt-DTSR9TM8.js} +1 -1
  212. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js} +1 -1
  213. package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-BPg58FML-BjSDfVm7.js} +1 -1
  214. package/dist/assets/{index-DcV3YN51.js → index-BhteR_e0.js} +3325 -3235
  215. package/dist/assets/{index-DYDdrdFx.js → index-CFi0iD-l.js} +1 -1
  216. package/dist/assets/{index-CEtuJXY3.js → index-CL_7G35J.js} +1 -1
  217. package/dist/assets/{index-DrmeEdvK.js → index-DdJI4MMd.js} +1 -1
  218. package/dist/assets/{index-CdTBIE6I.js → index-dPPP2cWo.js} +1 -1
  219. package/dist/assets/{index-DQmBF4-D.js → index-piC0sJHK.js} +1 -1
  220. package/dist/assets/{liveblocks-CNYVvsag.js → liveblocks-BBTLClA6.js} +1 -1
  221. package/dist/assets/{lottie-22bRan8M.js → lottie-gmZDfwf4.js} +2 -2
  222. package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-Bvp61kW7.js → mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js} +1 -1
  223. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-CVFismWT.js → mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js} +1 -1
  224. package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-1MsMz7Z4.js → mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js} +1 -1
  225. package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-DsWNrW_e.js → mapTimeframeBalancesToTreeNode-B-kK0AfR-BuUApKLg.js} +1 -1
  226. package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-D-u3haR2.js → mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js} +1 -1
  227. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-CQahu__z.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js} +1 -1
  228. package/dist/assets/{mui-bYXq4XMS.js → mui-DLNyBjYF.js} +1 -1
  229. package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-CWX5S47F-Dn7FEY9U.js} +1 -1
  230. package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-CiSgisfh-B6CtarQ8.js} +1 -1
  231. package/dist/assets/{react-BpmEXSTM.js → react-2VG2yH4x.js} +1 -1
  232. package/dist/assets/{react-B84192hO.js → react-BiH01iGK.js} +2 -2
  233. package/dist/assets/{react-BvHTyLQY.js → react-Bqj7JUF5.js} +1 -1
  234. package/dist/assets/{react-Egsc5mMa.js → react-CeCWo9lx.js} +3 -3
  235. package/dist/assets/{react-BUQtf2po.js → react-CwPTei9W.js} +2 -2
  236. package/dist/assets/{react-CA3XI5Yc.js → react-CxPSrq5B.js} +1 -1
  237. package/dist/assets/{react-BuvI16A0.js → react-VfkIuzgx.js} +1 -1
  238. package/dist/assets/{react-Cz0zQhlY.js → react-sPv488Z5.js} +1 -1
  239. package/dist/assets/{recharts-h5iNQbFd.js → recharts-Cnl2EvUV.js} +1 -1
  240. package/dist/assets/{sentry-cYFeB6Pw.js → sentry-EYLV4XmG.js} +1 -1
  241. package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-DOlUxcFf-DYYbm8md.js} +1 -1
  242. package/dist/assets/{toCOABalancesWithID-rZFEkHuM-CcmAJqxc.js → toCOABalancesWithID-ChMShONK-DKVddnaL.js} +1 -1
  243. package/dist/assets/{toChartData-C-dHC-Oz-CP4vBFhW.js → toChartData-BUweupH8-9P9fGujj.js} +1 -1
  244. package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-CpOwZAMG-R9RAntKW.js} +1 -1
  245. package/dist/assets/{uploadAttachment-D3clfqPu-R41YBfbA.js → uploadAttachment-CeUHLpzO-CvskAe_e.js} +23 -23
  246. package/dist/assets/{uploadReceipts-Bkf_PaOH-BpDx2Xyf.js → uploadReceipts-Bkf_PaOH-B-Qf32vH.js} +1 -1
  247. package/dist/assets/{url-DPKHmOp_.js → url-DzcuVjHh.js} +1 -1
  248. package/dist/assets/{url-B-8T_WZb.js → url-dmxYLsoS.js} +1 -1
  249. package/dist/assets/{useLongPress-GCK2COYQ-8uipnze8.js → useLongPress-GCK2COYQ-BC43nxgO.js} +1 -1
  250. package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-BBd1wKwW-_aHpaGit.js} +1 -1
  251. package/dist/assets/utils-D1zwltK3.js +70 -0
  252. package/dist/assets/{zeni-epic-state-BwKvATgd.js → zeni-epic-state-HWtMOH-U.js} +3 -3
  253. package/dist/index.html +1 -1
  254. package/package.json +4 -4
  255. package/dist/assets/AccountInfoPage-CxWBk_t_-C853qZJF.js +0 -18
  256. package/dist/assets/AccountLockedInfoModal-DVvzKHJQ-BNuMKDDn.js +0 -59
  257. package/dist/assets/AddAddressForCardDrawer-e8qbO2Y5-DvtRki6M.js +0 -6
  258. package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-Cxbiv_Ie.js +0 -47
  259. package/dist/assets/ArAgingDetailPage-BEKsyA9Q-DYnsL3vQ.js +0 -46
  260. package/dist/assets/BillPayApprovalRuleDetailPage-ppU1Epmy-wt7XFnWO.js +0 -27
  261. package/dist/assets/BillPayApprovalRulesPage-UblNi2mR-Cy8f-c8U.js +0 -235
  262. package/dist/assets/ChargeCardPromoPage-uqT96W3_-BnyG_G4H.js +0 -222
  263. package/dist/assets/CreditCardPaymentDrawerPage-BvifQpD3-CNzp5-gT.js +0 -224
  264. package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-Cjd_r5yY.js +0 -1
  265. package/dist/assets/CustomerOnboardingPage-DUMQKVfM-grMFHxOC.js +0 -107
  266. package/dist/assets/DepositAccTransactionListPage-BS-OReem-BilXaW65.js +0 -66
  267. package/dist/assets/EditPeoplePage-BgsR09q8-Clk10Ml0.js +0 -55
  268. package/dist/assets/EntityDetailPage-Cvd4MG0F-BwgJTkQo.js +0 -18
  269. package/dist/assets/ExpenseAutomationPage-DW6Pxoah-DEkIGTkH.js +0 -1650
  270. package/dist/assets/InsightsSection-B3xD0SZ9-D-qnLmvb.js +0 -27
  271. package/dist/assets/InvitePeoplePage-BqzJOjVI-jVQ9WiMY.js +0 -12
  272. package/dist/assets/IssueChargeCardPage-CRtJDmrZ-BSgoE7Zm.js +0 -532
  273. package/dist/assets/LabeledDocumentField-p3pI5qLu-DGU5hH4V.js +0 -41
  274. package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-D28XX0Mk.js +0 -1
  275. package/dist/assets/MagicLinkDomesticWireDetailsPage-CDB2igue-93p71ZIQ.js +0 -1
  276. package/dist/assets/NotificationsListConfig-BJm7A9Mz-BFc01g7L.js +0 -1
  277. package/dist/assets/OverlayContainerPage-CrZuT2Jj-Dr75-ri4.js +0 -11
  278. package/dist/assets/ReimbursementApprovalRuleDetailPage-C_dTOk5P-b8CZcjjJ.js +0 -26
  279. package/dist/assets/ReimbursementApprovalRulesPage-B5lca4qx-BsFO_SEH.js +0 -237
  280. package/dist/assets/ReimbursementPromoPage-Bjm0UHcm-OX27QZ1k.js +0 -84
  281. package/dist/assets/ReviewDetailsPage-COx9R71r-88bs-gXn.js +0 -290
  282. package/dist/assets/SpendManagementListViewPage-AI676Urw-BtTyp4PL.js +0 -123
  283. package/dist/assets/SpendManagementPerTabPage-D79c3Xqh-lldxOES4.js +0 -754
  284. package/dist/assets/StatementItem-Aal79YaO-6BMegZOO.js +0 -31
  285. package/dist/assets/TransactionListPage-CN9fZznd-BrDL89Z5.js +0 -35
  286. package/dist/assets/TransactionVendorDetailPage-CykcquSh-B4MWnYyc.js +0 -80
  287. package/dist/assets/TreasuryStatementsPage-QyWxshsI-NmuXI2Gt.js +0 -58
  288. package/dist/assets/TreasuryTaxLetterPage-BLmfU0VD-CtEdSJnO.js +0 -58
  289. package/dist/assets/UploadAdditionalDocumentOverlay-CJYvOjh0-CyuAR94x.js +0 -38
  290. package/dist/assets/analyticsHelper-DP2qtYwK.js +0 -1
  291. package/dist/assets/epic-BLwHhkRJ.js +0 -2
  292. package/dist/assets/utils-fBOyu0sO.js +0 -70
@@ -0,0 +1,58 @@
1
+ import{e as j,q as v,V as e,bz as z,F as P,b1 as C,o as r,p as c,cq as I,y as B,d,ak as E}from"./index-BhteR_e0.js";import{a as m}from"./core-B-FNbYlu.js";import{n as o}from"./mui-DLNyBjYF.js";import{$ as L}from"./BoxItem-usHxaONy-BSYmkNdH.js";import{o as M}from"./commonDimensions-B-aZt-hB-CyMsSMR_.js";import{O as R}from"./StatementItem-BnxTFgdM-ncI51LoG.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-BhQlJMh0-BaxCiwAc.js";const p=P.getLocalizedStrings().spendManagement.treasury.statements,w={listItemMargin:new B(d[3],d[8])},rt=({currentTenantCompanyName:t,authParams:x,downloadEndPoint:b,statementListView:a,onBackClick:u})=>{const g=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>M.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?e.jsx(h,{windowSize:i,style:{...n,width:`calc(100% - 2*${w.listItemMargin.valuePx(i)})`},children:e.jsx(R,{currentTenantCompanyName:t,accountLast4:"",data:l,authParams:x,downloadEndPoint:b,documentType:"treasuryStatement",boxType:L(s,a.statements.length)},l.id)}):e.jsx(T,{style:{...n},children:e.jsx(N,{children:e.jsx(h,{windowSize:i,children:e.jsx(q,{children:p.noStatements})})})})};return e.jsxs(V,{children:[e.jsx(z,{title:p.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:u,source:"treasury"}),e.jsx(H,{windowSize:i,children:e.jsx(C,{children:({height:s,width:n})=>e.jsx(K,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},T=o.div``,h=o.div`
2
+ margin: ${t=>`${r.sp0} ${w.listItemMargin.valuePx(t.windowSize)}`};
3
+ &:hover {
4
+ position: relative;
5
+ z-index: 2;
6
+ }
7
+ `,N=o.div`
8
+ display: flex;
9
+ height: 100%;
10
+ flex: 1 1 auto;
11
+ flex-direction: row;
12
+ justify-content: center;
13
+ align-items: flex-end;
14
+ `,V=o.div`
15
+ display: flex;
16
+ height: 100%;
17
+ flex-direction: column;
18
+ width: 100%;
19
+ padding-bottom: ${r.sp7};
20
+ `,q=o(E)`
21
+ display: flex;
22
+ color: ${t=>t.theme.colors.grey2};
23
+ `,H=o.div`
24
+ display: flex;
25
+ flex-direction: column;
26
+ width: 100%;
27
+ height: 100%;
28
+ margin-top: ${t=>t.windowSize==="small"?r.sp3:r.sp6};
29
+ `,K=o(I)`
30
+ scrollbar-width: thin;
31
+ scrollbar-color: transparent transparent;
32
+ &::-webkit-scrollbar {
33
+ width: ${r.sp2};
34
+ height: ${r.sp0};
35
+ background-color: transparent;
36
+ }
37
+ &::-webkit-scrollbar-track {
38
+ box-shadow: inset 0 0 2px ${c.scrollbarBoxShadow};
39
+ -webkit-box-shadow: inset 0 0 2px ${c.scrollbarBoxShadow};
40
+ background-color: transparent;
41
+ }
42
+ &::-webkit-scrollbar-thumb {
43
+ background-color: transparent;
44
+ }
45
+
46
+ &:hover {
47
+ scrollbar-color: ${t=>t.theme.colors.grey1} transparent;
48
+ &::-webkit-scrollbar {
49
+ width: ${r.sp2};
50
+ height: ${r.sp0};
51
+ background-color: transparent;
52
+ }
53
+ &::-webkit-scrollbar-thumb {
54
+ background-color: ${t=>t.theme.colors.grey1};
55
+ border-radius: 2px;
56
+ }
57
+ }
58
+ `;export{rt as default};
@@ -0,0 +1,58 @@
1
+ import{e as v,q as L,V as t,bz as S,F as z,b1 as P,o as r,p as c,cq as C,y as I,d,ak as T}from"./index-BhteR_e0.js";import{a as p}from"./core-B-FNbYlu.js";import{n as o}from"./mui-DLNyBjYF.js";import{$ as B}from"./BoxItem-usHxaONy-BSYmkNdH.js";import{o as E}from"./commonDimensions-B-aZt-hB-CyMsSMR_.js";import{O as M}from"./StatementItem-BnxTFgdM-ncI51LoG.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-BhQlJMh0-BaxCiwAc.js";const h=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new I(d[3],d[8])},re=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:b,taxLetterListView:a,onBackClick:g})=>{const u=v(),i=L(),f=p.createRef(),y=p.useRef(),$=a.taxLetters.length===0,k=()=>E.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(m,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:b,documentType:"taxLetter",boxType:B(s,a.taxLetters.length)},l.id)}):t.jsx(R,{style:{...n},children:t.jsx(N,{children:t.jsx(m,{windowSize:i,children:t.jsx(q,{children:h.noTaxLetter})})})})};return t.jsxs(V,{children:[t.jsx(S,{title:h.title,backgroundColor:u.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(H,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(K,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},R=o.div``,m=o.div`
2
+ margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
+ &:hover {
4
+ position: relative;
5
+ z-index: 2;
6
+ }
7
+ `,N=o.div`
8
+ display: flex;
9
+ height: 100%;
10
+ flex: 1 1 auto;
11
+ flex-direction: row;
12
+ justify-content: center;
13
+ align-items: flex-end;
14
+ `,V=o.div`
15
+ display: flex;
16
+ height: 100%;
17
+ flex-direction: column;
18
+ width: 100%;
19
+ padding-bottom: ${r.sp7};
20
+ `,q=o(T)`
21
+ display: flex;
22
+ color: ${e=>e.theme.colors.grey2};
23
+ `,H=o.div`
24
+ display: flex;
25
+ flex-direction: column;
26
+ width: 100%;
27
+ height: 100%;
28
+ margin-top: ${e=>e.windowSize==="small"?r.sp3:r.sp6};
29
+ `,K=o(C)`
30
+ scrollbar-width: thin;
31
+ scrollbar-color: transparent transparent;
32
+ &::-webkit-scrollbar {
33
+ width: ${r.sp2};
34
+ height: ${r.sp0};
35
+ background-color: transparent;
36
+ }
37
+ &::-webkit-scrollbar-track {
38
+ box-shadow: inset 0 0 2px ${c.scrollbarBoxShadow};
39
+ -webkit-box-shadow: inset 0 0 2px ${c.scrollbarBoxShadow};
40
+ background-color: transparent;
41
+ }
42
+ &::-webkit-scrollbar-thumb {
43
+ background-color: transparent;
44
+ }
45
+
46
+ &:hover {
47
+ scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
48
+ &::-webkit-scrollbar {
49
+ width: ${r.sp2};
50
+ height: ${r.sp0};
51
+ background-color: transparent;
52
+ }
53
+ &::-webkit-scrollbar-thumb {
54
+ background-color: ${e=>e.theme.colors.grey1};
55
+ border-radius: 2px;
56
+ }
57
+ }
58
+ `;export{re as default};
@@ -1,16 +1,16 @@
1
- import{F as k,V as s,d as P,aK as $,b1 as B,b as j,aV as R,o as L,p as z,ak as A}from"./index-DcV3YN51.js";import{a as v,w as O}from"./core-3dlyNYRL.js";import{EP as u}from"./zeni-epic-state-BwKvATgd.js";import{d as V,g as T,p as D,u as q}from"./chartTypes-CwQl8aoN-mEF0MFro.js";import{n as w}from"./mui-bYXq4XMS.js";import{o as K}from"./toCOABalancesWithID-rZFEkHuM-CcmAJqxc.js";import{V as _}from"./toChartData-C-dHC-Oz-CP4vBFhW.js";import{B as G,C as N,X as W,Y as X,T as Q,R as Z,b as H}from"./recharts-h5iNQbFd.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./lexical-DPEnH3HH.js";const I=w.div`
1
+ import{F as $,V as s,e as P,aK as k,b1 as B,b as w,aV as R,o as L,p as z,ak as A}from"./index-BhteR_e0.js";import{a as v,S as O}from"./core-B-FNbYlu.js";import{EP as u}from"./zeni-epic-state-HWtMOH-U.js";import{d as V,g as M,p as D,u as q}from"./chartTypes-BZYC5y5J-fsutalT0.js";import{n as j}from"./mui-DLNyBjYF.js";import{o as K}from"./toCOABalancesWithID-ChMShONK-DKVddnaL.js";import{V as _}from"./toChartData-BUweupH8-9P9fGujj.js";import{B as G,C as N,X as W,Y as X,T as Q,R as Z,b as H}from"./recharts-Cnl2EvUV.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./lexical-DPEnH3HH.js";const I=j.div`
2
2
  display: flex;
3
- `,J=w.div`
3
+ `,J=j.div`
4
4
  flex: display;
5
5
  opacity: 0.85;
6
6
  border-radius: ${L.sp1};
7
7
  flex-direction: column;
8
8
  padding: ${L.sp3};
9
9
  background-color: ${e=>e.theme.colors.black};
10
- `,U=w(A)`
10
+ `,U=j(A)`
11
11
  color: ${e=>e.color??z.neutralGrey2Light};
12
12
  text-align: left;
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: space-between;
16
- `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(n=>{const l=n.name;if(n&&e&&n.value!==0){const d=n.payload,y=n.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?s.jsx(I,{children:s.jsx(J,{children:t.map((a,r)=>s.jsx(U,{color:a.color,children:`${a.barName}: ${q(a.value)}`},a.barName+r))})}):null},ae=O.memo(te),re=(e,t,a,r)=>{let n=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(n=K("trend","actual",l))}if(n.length>0){const l=D("trend","actual"),d={};return d[l]=n,_(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},E=[D("trend","actual")];function De({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:n,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?se(e,r,a):void 0,b=k.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,E,a,t),Y=f=>{const h=[];return E.forEach(o=>{h.push(s.jsx(H,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:f.toString(),"data-testid":$(o,"bar")},o))}),h};return x==null?null:s.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:Y(n),customToolTipContent:({active:f,payload:h})=>s.jsx(ae,{active:f,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:n,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=P(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,Y=V(e),f=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,f,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const M=i.payload.timeLabel.label,C=i.payload.timeLabel.startDate,S=i.payload.timeLabel.endDate,F=T(M,f,1);b(F),y?.(t,{startDate:C,endDate:S})};return s.jsx("div",{style:{width:l,height:d},"data-testid":$("simple-bar-chart"),children:s.jsx(B,{children:({height:o,width:i})=>s.jsxs(G,{"data-testid":$("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[s.jsx(N,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),s.jsx(W,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...j.extraSmallRegular.cssObject}}),s.jsx(X,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...j.extraSmallRegular.cssObject},tickFormatter:c=>R("0,0.[00]a",c,Y)}),s.jsx(Q,{cursor:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&s.jsx(Z,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:p}=k.getLocalizedStrings(),se=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u(t.startDate,p.visual.MMMYYFormat,e)} - ${u(t.endDate,p.visual.MMMYYFormat,e)}`:r=`${u(t.startDate,p.visual.Dformat,e)} - ${u(t.endDate,p.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u(t.startDate,p.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${k.getLocalizedStrings().quarterPrefix}${u(t.startDate,p.visual.QYYformat,e)}`;break;case"year":r=`${u(t.startDate,p.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{De as default};
16
+ `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(n=>{const l=n.name;if(n&&e&&n.value!==0){const d=n.payload,y=n.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?s.jsx(I,{children:s.jsx(J,{children:t.map((a,r)=>s.jsx(U,{color:a.color,children:`${a.barName}: ${q(a.value)}`},a.barName+r))})}):null},ae=O.memo(te),re=(e,t,a,r)=>{let n=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(n=K("trend","actual",l))}if(n.length>0){const l=D("trend","actual"),d={};return d[l]=n,_(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},S=[D("trend","actual")];function De({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:n,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?se(e,r,a):void 0,b=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,S,a,t),Y=f=>{const h=[];return S.forEach(o=>{h.push(s.jsx(H,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:f.toString(),"data-testid":k(o,"bar")},o))}),h};return x==null?null:s.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:Y(n),customToolTipContent:({active:f,payload:h})=>s.jsx(ae,{active:f,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:n,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=P(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,Y=V(e),f=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=M(a.label,f,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const T=i.payload.timeLabel.label,E=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,F=M(T,f,1);b(F),y?.(t,{startDate:E,endDate:C})};return s.jsx("div",{style:{width:l,height:d},"data-testid":k("simple-bar-chart"),children:s.jsx(B,{children:({height:o,width:i})=>s.jsxs(G,{"data-testid":k("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[s.jsx(N,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),s.jsx(W,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...w.extraSmallRegular.cssObject}}),s.jsx(X,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:c=>R("0,0.[00]a",c,Y)}),s.jsx(Q,{cursor:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&s.jsx(Z,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:p}=$.getLocalizedStrings(),se=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u(t.startDate,p.visual.MMMYYFormat,e)} - ${u(t.endDate,p.visual.MMMYYFormat,e)}`:r=`${u(t.startDate,p.visual.Dformat,e)} - ${u(t.endDate,p.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u(t.startDate,p.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${$.getLocalizedStrings().quarterPrefix}${u(t.startDate,p.visual.QYYformat,e)}`;break;case"year":r=`${u(t.startDate,p.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{De as default};
@@ -1,6 +1,6 @@
1
- import{Q as D,V as i,A as b,o as t,F as R,y as c,aK as S,b1 as E,b5 as Y,E as V,u as a,ak as _,_ as q}from"./index-DcV3YN51.js";import{a as H}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import K from"./TrendChart-C_6ob-SX-UqLmUzGG.js";import{C as W}from"./NoDataChart-Ce1_TZ5w-DDbLlhh6.js";import{q as Q}from"./InsightsSection-B3xD0SZ9-D-qnLmvb.js";import{f as X}from"./TransactionList-DMd3dgoK-GAchYYqt.js";const Z=n.div`
1
+ import{q as H,V as i,m as R,o as t,F as b,y as c,aK as S,b1 as V,b5 as Y,D as A,d as a,ak as E,L as K}from"./index-BhteR_e0.js";import{a as D}from"./core-B-FNbYlu.js";import{n}from"./mui-DLNyBjYF.js";import W from"./TrendChart-DiutckSt-CgHLzJj6.js";import{C as _}from"./NoDataChart-DMivligx-DVgr9SAl.js";import{q as X}from"./InsightsSection-7-T67WeF-BlMRO9Ba.js";import{f as Z}from"./TransactionList-BRiHadkm-BVpjF8up.js";const G=n.div`
2
2
  display: inline-block;
3
- `,G=n.div`
3
+ `,J=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
5
5
  display: flex;
6
6
  align-items: center;
@@ -12,21 +12,21 @@ import{Q as D,V as i,A as b,o as t,F as R,y as c,aK as S,b1 as E,b5 as Y,E as V,
12
12
  background-color: ${e=>e.theme.colors.grey2};
13
13
  color: ${e=>e.theme.colors.primary};
14
14
  }
15
- `,J=n.div`
15
+ `,Q=n.div`
16
16
  display: flex;
17
17
  flex-direction: row;
18
18
  justify-content: center;
19
19
  align-items: center;
20
- `,U=n(_)`
20
+ `,U=n(E)`
21
21
  margin-right: ${t.sp2};
22
- `,ee=n(q)`
22
+ `,ee=n(K)`
23
23
  width: ${t.sp3};
24
24
  height: ${t.sp3};
25
25
  color: inherit;
26
26
  &:hover {
27
27
  color: inherit;
28
28
  }
29
- `;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(Z,{children:i.jsx(G,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(J,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=R.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
29
+ `;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(G,{children:i.jsx(J,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(Q,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=b.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
30
30
  display: flex;
31
31
  flex: 1 1 auto;
32
32
  width: 100%;
@@ -45,7 +45,7 @@ import{Q as D,V as i,A as b,o as t,F as R,y as c,aK as S,b1 as E,b5 as Y,E as V,
45
45
  justify-content: center;
46
46
  align-items: center;
47
47
  margin-top: ${t.sp8};
48
- `;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:f,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const w=s==="In-Progress"||s==="Not-Started",$=d.length===0&&w,v=d.length>0&&w,y=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(M,C)=>{T?.(M,C)}}:void 0,h=D();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:f})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(X,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:r,transactions:d,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:y,onListInnerElementHeightChanged:u})})]}):i.jsx(se,{children:i.jsx(b,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},j={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
48
+ `;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:f,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const w=s==="In-Progress"||s==="Not-Started",$=d.length===0&&w,v=d.length>0&&w,M=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(y,C)=>{T?.(y,C)}}:void 0,h=H();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:f})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(Z,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:r,transactions:d,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:M,onListInnerElementHeightChanged:u})})]}):i.jsx(se,{children:i.jsx(R,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},j={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
49
49
  display: flex;
50
50
  flex: 1 1 auto;
51
51
  min-height: 100%;
@@ -63,7 +63,7 @@ import{Q as D,V as i,A as b,o as t,F as R,y as c,aK as S,b1 as E,b5 as Y,E as V,
63
63
  height: 360px;
64
64
  margin: ${e=>`${t.sp0} ${o.chartMarginLeftRight.valuePx(e.windowSize)}`};
65
65
  margin-bottom: ${e=>e.bottomMarginNeeded===!0?t.sp8:t.sp0};
66
- `,he=n(V)`
66
+ `,he=n(A)`
67
67
  color: ${e=>e.theme.colors.primary};
68
68
  margin-top: ${e=>o.headingMarginTop.valuePx(e.windowSize)};
69
69
  margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
@@ -113,4 +113,4 @@ import{Q as D,V as i,A as b,o as t,F as R,y as c,aK as S,b1 as E,b5 as Y,E as V,
113
113
  align-items: center;
114
114
  height: ${e=>j.loaderTrendChartHeight.valuePx(e.windowSize)};
115
115
  margin-top: ${t.sp8};
116
- `;function be({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},w="month",$=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,y=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,M=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=D(),[I,N]=H.useState(d),z=H.useRef(null),F=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?y()?i.jsx(Pe,{windowSize:P,children:i.jsx(b,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:R.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(E,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(K,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(B,A)=>{f?.("Chart",{timeframe:B,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(Q,{insights:h?.insights})})]})},k=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:M,onTransactionListHeightChanged:x=>{N(x)}})}),O=p=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+x+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(b,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:P,height:O(I),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(k,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(k,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=R.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{be as R};
116
+ `;function Re({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},w="month",$=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const z={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",z)},P=H(),[I,N]=D.useState(d),L=D.useRef(null),F=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(Pe,{windowSize:P,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(_,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(V,{children:({height:x,width:z})=>i.jsx(i.Fragment,{children:i.jsx(W,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(B,q)=>{f?.("Chart",{timeframe:B,addTimePeriod:q})},width:z,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:L,children:i.jsx(X,{insights:h?.insights})})]})},k=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{N(x)}})}),O=p=>{const x=L.current!=null?L.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+x+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:P,height:O(I),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(k,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(k,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=b.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{Re as R};
@@ -1,4 +1,4 @@
1
- import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as tn,hK as je,cB as on,V as t,bz as cn,cm as sn,cn as an,co as ln,ab as dn,hL as rn,A as un,hM as Z,hN as pn,aO as mn,fs as gn,hO as Ve,y as u,ak as xn,o as a,cO as ye,aS as W,gF as te,hP as oe,u as r,B as fe,p as Ae,g0 as _e,ag as $e,bg as hn}from"./index-DcV3YN51.js";import{a as Y}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{Fz as Te,Fe as wn,Ff as bn,FA as yn}from"./zeni-epic-state-BwKvATgd.js";import{h as fn}from"./VendorsAccountsSection-EmHO3wQ0-CCWdfZ9i.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},He={title:new fe("standardMedium","largeMedium")},An=s.div`
1
+ import{e as ie,q as ce,av as Ke,aN as en,gA as I,hI as U,F as H,a8 as nn,hJ as tn,hK as je,cB as on,V as t,bz as cn,cm as sn,cn as an,co as ln,ab as dn,hL as rn,m as un,hM as Z,hN as pn,aO as mn,fs as gn,hO as Ve,y as u,ak as xn,o as a,cO as ye,aS as W,gF as te,hP as oe,d as r,a as fe,p as Ae,g0 as _e,ag as $e,bg as hn}from"./index-BhteR_e0.js";import{a as Y}from"./core-B-FNbYlu.js";import{n as s}from"./mui-DLNyBjYF.js";import{Fz as Te,Fe as wn,Ff as bn,FA as yn}from"./zeni-epic-state-HWtMOH-U.js";import{h as fn}from"./VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new fe("standardMedium","largeMedium")},An=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -27,7 +27,7 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
27
27
  margin-bottom: ${a.sp0};
28
28
  `,In=s.div`
29
29
  color: ${e=>e.theme.colors.primary};
30
- ${e=>`${He.title.style(e.windowSize)}`};
30
+ ${e=>`${qe.title.style(e.windowSize)}`};
31
31
  `,Rn=s.div`
32
32
  display: flex;
33
33
  flex-direction: column;
@@ -45,7 +45,7 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
45
45
  max-height: ${e=>C.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
46
46
  margin-right: ${e=>C.iconContainerMarginRight.valuePx(e.windowSize)};
47
47
  `,Cn=s.div`
48
- ${e=>`${He.title.style(e.windowSize)}`};
48
+ ${e=>`${qe.title.style(e.windowSize)}`};
49
49
  color: ${e=>e.theme.colors.primary};
50
50
  `,Pn=s($e)`
51
51
  color: ${e=>e.theme.colors.hero};
@@ -65,7 +65,7 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
65
65
  background-color: ${e=>e.theme.colors.grey5};
66
66
  border: 1px solid ${e=>e.theme.colors.grey3};
67
67
  border-radius: ${a.sp2};
68
- `,X=(e,n)=>`${e}.${n}`;function On({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(l),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],R=I(o.billPayAccountHierarchy,z,"Accounts"),O=o.billPayRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=ye(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(An,{windowSize:l,children:[t.jsx(In,{windowSize:l,children:c.billsSection.heading}),t.jsxs($n,{windowSize:l,children:[t.jsxs(Sn,{windowSize:l,children:[t.jsx(vn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Ln,{})}),t.jsxs(Rn,{children:[t.jsx(Cn,{windowSize:l,children:c.billsSection.title}),t.jsx(Pn,{children:c.billsSection.subTitle})]})]}),t.jsx(Mn,{children:t.jsx(zn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:X(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:k},label:{label:o.billPayRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(X(e,"isRecommendedBillPayAccountChecked"))}}:void 0},X(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new fe("standardMedium","largeMedium")},kn=s.div`
68
+ `,X=(e,n)=>`${e}.${n}`;function On({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(l),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],R=I(o.billPayAccountHierarchy,z,"Accounts"),O=o.billPayRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=ye(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(An,{windowSize:l,children:[t.jsx(In,{windowSize:l,children:c.billsSection.heading}),t.jsxs($n,{windowSize:l,children:[t.jsxs(Sn,{windowSize:l,children:[t.jsx(vn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Ln,{})}),t.jsxs(Rn,{children:[t.jsx(Cn,{windowSize:l,children:c.billsSection.title}),t.jsx(Pn,{children:c.billsSection.subTitle})]})]}),t.jsx(Mn,{children:t.jsx(zn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:X(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:k},label:{label:o.billPayRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(X(e,"isRecommendedBillPayAccountChecked"))}}:void 0},X(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},He={title:new fe("standardMedium","largeMedium")},kn=s.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  row-gap: ${e=>P.rowGap.valuePx(e.windowSize)};
@@ -94,7 +94,7 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
94
94
  margin-bottom: ${a.sp0};
95
95
  `,Tn=s.div`
96
96
  color: ${e=>e.theme.colors.primary};
97
- ${e=>`${qe.title.style(e.windowSize)}`};
97
+ ${e=>`${He.title.style(e.windowSize)}`};
98
98
  `,Fn=s.div`
99
99
  display: flex;
100
100
  flex-direction: column;
@@ -112,17 +112,17 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
112
112
  max-height: ${e=>P.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
113
113
  margin-right: ${e=>P.iconContainerMarginRight.valuePx(e.windowSize)};
114
114
  `,Bn=s.div`
115
- ${e=>`${qe.title.style(e.windowSize)}`};
115
+ ${e=>`${He.title.style(e.windowSize)}`};
116
116
  color: ${e=>e.theme.colors.primary};
117
117
  `,Vn=s($e)`
118
118
  color: ${e=>e.theme.colors.hero};
119
119
  `,_n=s(_e)`
120
120
  width: ${a.sp4};
121
121
  height: ${a.sp4};
122
- `,Hn=s.div`
122
+ `,qn=s.div`
123
123
  display: flex;
124
124
  flex-direction: column;
125
- `,qn=s.div`
125
+ `,Hn=s.div`
126
126
  display: flex;
127
127
  flex-direction: column;
128
128
  margin-left: ${e=>P.elementsMarginLeftRight.valuePx(e.windowSize)};
@@ -132,7 +132,7 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
132
132
  background-color: ${e=>e.theme.colors.grey5};
133
133
  border: 1px solid ${e=>e.theme.colors.grey3};
134
134
  border-radius: ${a.sp2};
135
- `,K=(e,n)=>`${e}.${n}`;function Wn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(l),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],R=I(o.reimbursementsAccountHierarchy,z,"Accounts"),O=o.reimbursementsRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=ye(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(kn,{windowSize:l,children:[t.jsx(Tn,{windowSize:l,children:c.reimbursementsSection.heading}),t.jsxs(En,{windowSize:l,children:[t.jsxs(jn,{windowSize:l,children:[t.jsx(Dn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(_n,{})}),t.jsxs(Fn,{children:[t.jsx(Bn,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(Vn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Hn,{children:t.jsx(qn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:K(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??q.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(K(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},K(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new fe("standardMedium","largeMedium")},Nn=s.div`
135
+ `,K=(e,n)=>`${e}.${n}`;function Wn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(l),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],R=I(o.reimbursementsAccountHierarchy,z,"Accounts"),O=o.reimbursementsRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=ye(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(kn,{windowSize:l,children:[t.jsx(Tn,{windowSize:l,children:c.reimbursementsSection.heading}),t.jsxs(En,{windowSize:l,children:[t.jsxs(jn,{windowSize:l,children:[t.jsx(Dn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(_n,{})}),t.jsxs(Fn,{children:[t.jsx(Bn,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(Vn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(qn,{children:t.jsx(Hn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:K(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(K(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},K(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new fe("standardMedium","largeMedium")},Nn=s.div`
136
136
  display: flex;
137
137
  flex-direction: column;
138
138
  row-gap: ${e=>L.rowGap.valuePx(e.windowSize)};
@@ -199,7 +199,7 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
199
199
  background-color: ${e=>e.theme.colors.grey5};
200
200
  border: 1px solid ${e=>e.theme.colors.grey3};
201
201
  border-radius: ${a.sp2};
202
- `,F=(e,n)=>`${e}.${n}`;function tt({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=q.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(l),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],R=I(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=I(o.expenseAccountHierarchy,O),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),d=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",d).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),D={valueContainer:f=>({...f,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=ye(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Nn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Gn,{windowSize:l,children:[t.jsxs(Un,{windowSize:l,children:[t.jsx(Zn,{windowSize:l,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Kn,{})}),t.jsxs(Qn,{children:[t.jsx(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Xn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(et,{children:t.jsxs(nt,{windowSize:l,children:[t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:F(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>oe(f,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:R},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:F(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(F(e,"isRecommendedIncomeAccountChecked"))}}:void 0},F(e,"incomeAccount")),t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:F(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>oe(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:D,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:F(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(F(e,"isRecommendedExpenseAccountChecked"))}}:void 0},F(e,"expenseAccount"))]})})]})]})}const J={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,r[5],r[5]),sectionsRowGap:new u(12,r[7],r[7]),subTitlePaddingTop:new u(12,r[3]),subTitlePaddingBottom:new u(r[3],r[3])},{common:m,uncategorizedAccountsMapping:V}=q.getLocalizedStrings(),Fe="uncategorizedAccountsMappingPage",H="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ne="vendorsAccountSection",ot=s.div`
202
+ `,F=(e,n)=>`${e}.${n}`;function tt({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(l),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],R=I(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=I(o.expenseAccountHierarchy,O),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),d=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",d).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),D={valueContainer:f=>({...f,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=ye(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Nn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Gn,{windowSize:l,children:[t.jsxs(Un,{windowSize:l,children:[t.jsx(Zn,{windowSize:l,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Kn,{})}),t.jsxs(Qn,{children:[t.jsx(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Xn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(et,{children:t.jsxs(nt,{windowSize:l,children:[t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:F(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>oe(f,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:R},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:F(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(F(e,"isRecommendedIncomeAccountChecked"))}}:void 0},F(e,"incomeAccount")),t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:F(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>oe(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:D,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:F(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(F(e,"isRecommendedExpenseAccountChecked"))}}:void 0},F(e,"expenseAccount"))]})})]})]})}const J={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,r[5],r[5]),sectionsRowGap:new u(12,r[7],r[7]),subTitlePaddingTop:new u(12,r[3]),subTitlePaddingBottom:new u(r[3],r[3])},{common:m,uncategorizedAccountsMapping:V}=H.getLocalizedStrings(),Fe="uncategorizedAccountsMappingPage",q="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ne="vendorsAccountSection",ot=s.div`
203
203
  display: flex;
204
204
  height: 100vh;
205
205
  width: 100%;
@@ -241,4 +241,4 @@ import{d as ie,Q as ce,av as Ke,aN as en,gA as I,hI as U,F as q,a8 as nn,hJ as t
241
241
  padding-top: ${e=>J.subTitlePaddingTop.valuePx(e.windowSize)};
242
242
  padding-bottom: ${e=>J.subTitlePaddingBottom.valuePx(e.windowSize)};
243
243
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
244
- `;function ft({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:O}){const k=ie(),$=ce(),S=Ke(),[d,v]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:D,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=D!=null?[D]:[],re=B!=null?[B]:[],ue=_!=null?[_]:[],pe=f!=null?[f]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),we=I(n.reimbursementsAccountHierarchy,pe,"Accounts"),Se=I(n.prepaidExpensesAccountHierarchy,me,"Accounts"),Ie=I(n.fixedAssetsAccountHierarchy,ge,"Accounts"),Re=I(n.accruedExpensesAccountHierarchy,xe,"Accounts"),ve=I(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Ce=I(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Pe=U(n.expenseTypeList,V.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,V.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,V.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,V.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,V.filing1099Section.allBoxes),be={int:Ge,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!y){const ze=Q.accountId?.selectedOption,Oe=Q.expenseType?.selectedOption,ke=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(w[x].expenseCategory1099[0])||A>0&&g===1&&je(w[x].expenseCategory1099[0])||y)&&z(w)}),Ze=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[H].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${H}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[H].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${H}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,be)},{shouldValidate:!0})}}M(A)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),Y.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{w.unsubscribe()}});const Me=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),R?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.title,onBackClick:R,backgroundColor:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(ln,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(an,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:V.subTitle}),Ye===!1?t.jsx(dn,{...b,children:t.jsx("form",{id:De(Fe),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:H,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(On,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(fn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&yn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(mn,{formId:De(Fe),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(gn,{isFooterRendered:Me(),meetingUrl:p})]})}const De=e=>`${e}_form`,Be=(e,n,o,l,p,c,M,z,R,O,k,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:D}=e,B=d?.selectedIncomeAccountId===v?.account?.accountId,_=d?.selectedExpenseAccountId===h?.account?.accountId,f=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===D?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[H]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:f},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{ft as default};
244
+ `;function ft({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:O}){const k=ie(),$=ce(),S=Ke(),[d,v]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:D,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=D!=null?[D]:[],re=B!=null?[B]:[],ue=_!=null?[_]:[],pe=f!=null?[f]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),we=I(n.reimbursementsAccountHierarchy,pe,"Accounts"),Se=I(n.prepaidExpensesAccountHierarchy,me,"Accounts"),Ie=I(n.fixedAssetsAccountHierarchy,ge,"Accounts"),Re=I(n.accruedExpensesAccountHierarchy,xe,"Accounts"),ve=I(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Ce=I(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Pe=U(n.expenseTypeList,V.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,V.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,V.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,V.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,V.filing1099Section.allBoxes),be={int:Ge,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!y){const ze=Q.accountId?.selectedOption,Oe=Q.expenseType?.selectedOption,ke=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(w[x].expenseCategory1099[0])||A>0&&g===1&&je(w[x].expenseCategory1099[0])||y)&&z(w)}),Ze=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,be)},{shouldValidate:!0})}}M(A)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),Y.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{w.unsubscribe()}});const Me=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),R?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.title,onBackClick:R,backgroundColor:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(ln,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(an,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:V.subTitle}),Ye===!1?t.jsx(dn,{...b,children:t.jsx("form",{id:De(Fe),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(On,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(Wn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(fn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&yn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(mn,{formId:De(Fe),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(gn,{isFooterRendered:Me(),meetingUrl:p})]})}const De=e=>`${e}_form`,Be=(e,n,o,l,p,c,M,z,R,O,k,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:D}=e,B=d?.selectedIncomeAccountId===v?.account?.accountId,_=d?.selectedExpenseAccountId===h?.account?.accountId,f=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===D?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:f},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{ft as default};
@@ -1,4 +1,4 @@
1
- import{aN as b,V as t,hR as q,hS as R,Q as O,F as T,cm as L,ad as C,cn as U,co as A,a8 as _,ab as G,cK as H,cG as F,y as g,cH as M,p as N,an as J,A as K,n as Q,o as i,ak as Y,u as D,ap as X,b8 as Z}from"./index-DcV3YN51.js";import{a as c}from"./core-3dlyNYRL.js";import{n as f}from"./mui-bYXq4XMS.js";import{bO as ee,bj as te}from"./zeni-epic-state-BwKvATgd.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(D[3],D[2]),width:new g(300,420,420)},ie=f.div`
1
+ import{aN as b,V as t,hR as W,hS as R,q as O,F as T,cm as L,ad as $,cn as N,co as U,a8 as _,ab as G,cK as H,cG as F,y as g,cH as M,p as z,an as J,m as K,n as Q,o as i,ak as X,d as D,ap as Y,b8 as Z}from"./index-BhteR_e0.js";import{a as c}from"./core-B-FNbYlu.js";import{n as f}from"./mui-DLNyBjYF.js";import{bO as ee,bj as te}from"./zeni-epic-state-HWtMOH-U.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(D[3],D[2]),width:new g(300,420,420)},ie=f.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -12,11 +12,11 @@ import{aN as b,V as t,hR as q,hS as R,Q as O,F as T,cm as L,ad as C,cn as U,co a
12
12
  background-color: ${e=>e.theme.colors.grey3};
13
13
  min-height: 1px;
14
14
  max-height: 1px;
15
- `;function ne({selectedIndustry:e,allIndustries:l,saveDetailsFetchState:o,incDate:n,onSubmitBusinessInfo:u,onCancel:s}){const{companyPassport:r,dateFormat:m,commonSetUp:{twoFactorAuthentication:d}}=T.getLocalizedStrings(),I=d.businessInfoTitle,k=d.businessInfoDescription,p=O(),v="business-info-form",x="companyIndustry",w="incDate",h=_({mode:"all",values:{[x]:{selectedOption:e,allOptions:l.map(a=>a.code)},[w]:n?.toDate()}}),$=h.handleSubmit(a=>{u?.(a[x].selectedOption??"",a[w])}),S=a=>l.find(y=>y.code===a)?.name??a;return t.jsx(G,{...h,children:t.jsx("form",{id:v,onSubmit:$,children:t.jsx(L,{formId:v,titleComponent:t.jsx(A,{children:I}),descriptionComponent:t.jsx(U,{children:k}),primaryButtonText:d.submit,secondaryButtonText:d.cancel,isLoading:o==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>console.log(""),onCancelClick:s},children:t.jsxs(ie,{windowSize:p,children:[t.jsx(H,{label:{label:r.companyIncInfo.incDate,width:V.labelWidth.value(p)},style:{paddingBottom:V.paddingBottom.valuePx(p),width:V.width.valuePx(p)},dateField:{name:w,placeholder:F(r.companyIncInfo.incDate),defaultValue:n,dateFormat:m.visual.defaultInput,maxDate:te(),minDate:ee("01 Jan 1900"),autoComplete:"off",registerOptions:{required:!0}},additionalInfoLabel:d.requireIncDate}),t.jsx(se,{}),t.jsx(M,{label:{label:r.companyInfo.industry,width:V.smallLabelWidth.value(p)},style:{width:V.width.valuePx(p)},singleSelectField:{singleSelect:{getLabelForId:S,showTickMark:!1,alwaysShowEyeTooltip:!1,name:x,placeholder:F(r.companyInfo.industry),showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:e,allOptions:l?.map(a=>a.code)??[]},registerOptions:{required:!0,validate:a=>!!(a!=null&&a.selectedOption)}},errorInfoLabel:d.requireIndustry,isFunctional:!0})]})})})})}const oe=f(Y)`
15
+ `;function ne({selectedIndustry:e,allIndustries:l,saveDetailsFetchState:o,incDate:n,onSubmitBusinessInfo:u,onCancel:s}){const{companyPassport:r,dateFormat:m,commonSetUp:{twoFactorAuthentication:d}}=T.getLocalizedStrings(),k=d.businessInfoTitle,I=d.businessInfoDescription,p=O(),v="business-info-form",x="companyIndustry",w="incDate",h=_({mode:"all",values:{[x]:{selectedOption:e,allOptions:l.map(a=>a.code)},[w]:n?.toDate()}}),C=h.handleSubmit(a=>{u?.(a[x].selectedOption??"",a[w])}),S=a=>l.find(y=>y.code===a)?.name??a;return t.jsx(G,{...h,children:t.jsx("form",{id:v,onSubmit:C,children:t.jsx(L,{formId:v,titleComponent:t.jsx(U,{children:k}),descriptionComponent:t.jsx(N,{children:I}),primaryButtonText:d.submit,secondaryButtonText:d.cancel,isLoading:o==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>console.log(""),onCancelClick:s},children:t.jsxs(ie,{windowSize:p,children:[t.jsx(H,{label:{label:r.companyIncInfo.incDate,width:V.labelWidth.value(p)},style:{paddingBottom:V.paddingBottom.valuePx(p),width:V.width.valuePx(p)},dateField:{name:w,placeholder:F(r.companyIncInfo.incDate),defaultValue:n,dateFormat:m.visual.defaultInput,maxDate:te(),minDate:ee("01 Jan 1900"),autoComplete:"off",registerOptions:{required:!0}},additionalInfoLabel:d.requireIncDate}),t.jsx(se,{}),t.jsx(M,{label:{label:r.companyInfo.industry,width:V.smallLabelWidth.value(p)},style:{width:V.width.valuePx(p)},singleSelectField:{singleSelect:{getLabelForId:S,showTickMark:!1,alwaysShowEyeTooltip:!1,name:x,placeholder:F(r.companyInfo.industry),showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:e,allOptions:l?.map(a=>a.code)??[]},registerOptions:{required:!0,validate:a=>!!(a!=null&&a.selectedOption)}},errorInfoLabel:d.requireIndustry,isFunctional:!0})]})})})})}const oe=f(X)`
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  padding: 9px;
18
18
  margin: ${e=>e.windowSize==="small"?`${i.sp0} ${i.sp3} ${i.sp7} ${i.sp3}`:`${i.sp0} ${i.sp8} ${i.sp7} ${i.sp8}`};
19
- `,ae=({isBillPayAdminLevelAccess:e,acceptUpdatedTOSFetchState:l,onBackClick:o,onAcceptUpdatedTOS:n})=>{const u=O(),s=T.getLocalizedStrings().commonSetUp,r=e===!0?s.twoFactorAuthentication.termsUpdated:s.twoFactorAuthentication.accessRestricted,m=e===!0?"":s.twoFactorAuthentication.description;return t.jsx(L,{titleComponent:t.jsx(A,{children:r}),descriptionComponent:t.jsx(U,{children:m}),primaryButtonText:e===!0?s.twoFactorAuthentication.iAgree:s.twoFactorAuthentication.understood,isLoading:l?.fetchState==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>{e===!0?n?.():o?.()}},primaryButtonWidth:e===!1?116:void 0,secondaryButtonWidth:e===!1?116:void 0,children:e===!0?t.jsxs(oe,{windowSize:u,children:[s.businessVerification.terms.term6,t.jsx(C,{href:s.businessVerification.terms.consentUrl,linkText:s.businessVerification.terms.consent}),s.businessVerification.terms.term2,t.jsx(C,{href:s.businessVerification.terms.depositUrl,linkText:s.businessVerification.terms.depositTerms}),s.businessVerification.terms.term3,t.jsx(C,{href:s.businessVerification.terms.privacyPolicyUrl,linkText:s.businessVerification.terms.privacy}),s.businessVerification.terms.term4,t.jsx(C,{href:s.businessVerification.terms.tosUrl,linkText:s.businessVerification.terms.tos}),s.businessVerification.terms.term5]}):null})},B={largeWidth:new g(343,544,544),height:new g(366,366,366)},re=f.div`
19
+ `,ae=({isBillPayAdminLevelAccess:e,acceptUpdatedTOSFetchState:l,onBackClick:o,onAcceptUpdatedTOS:n})=>{const u=O(),s=T.getLocalizedStrings().commonSetUp,r=e===!0?s.twoFactorAuthentication.termsUpdated:s.twoFactorAuthentication.accessRestricted,m=e===!0?"":s.twoFactorAuthentication.description;return t.jsx(L,{titleComponent:t.jsx(U,{children:r}),descriptionComponent:t.jsx(N,{children:m}),primaryButtonText:e===!0?s.twoFactorAuthentication.iAgree:s.twoFactorAuthentication.understood,isLoading:l?.fetchState==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>{e===!0?n?.():o?.()}},primaryButtonWidth:e===!1?116:void 0,secondaryButtonWidth:e===!1?116:void 0,children:e===!0?t.jsxs(oe,{windowSize:u,children:[s.businessVerification.terms.term6,t.jsx($,{href:s.businessVerification.terms.consentUrl,linkText:s.businessVerification.terms.consent}),s.businessVerification.terms.term2,t.jsx($,{href:s.businessVerification.terms.depositUrl,linkText:s.businessVerification.terms.depositTerms}),s.businessVerification.terms.term3,t.jsx($,{href:s.businessVerification.terms.privacyPolicyUrl,linkText:s.businessVerification.terms.privacy}),s.businessVerification.terms.term4,t.jsx($,{href:s.businessVerification.terms.tosUrl,linkText:s.businessVerification.terms.tos}),s.businessVerification.terms.term5]}):null})},B={largeWidth:new g(343,544,544),height:new g(366,366,366)},re=f.div`
20
20
  position: fixed;
21
21
  top: 0;
22
22
  left: 0;
@@ -26,7 +26,7 @@ import{aN as b,V as t,hR as q,hS as R,Q as O,F as T,cm as L,ad as C,cn as U,co a
26
26
  display: flex;
27
27
  flex-direction: column;
28
28
  align-items: center;
29
- background: ${N.overlayDark};
29
+ background: ${z.overlayDark};
30
30
  `,ce=f.div`
31
31
  display: flex;
32
32
  flex-direction: column;
@@ -39,7 +39,7 @@ import{aN as b,V as t,hR as q,hS as R,Q as O,F as T,cm as L,ad as C,cn as U,co a
39
39
  top: 30%;
40
40
  width: ${e=>B.largeWidth.valuePx(e.windowSize)};
41
41
  height: ${e=>B.height.valuePx(e.windowSize)};
42
- `,le=f(X)`
42
+ `,le=f(Y)`
43
43
  margin-top: ${i.sp7};
44
44
  padding-left: ${i.sp8};
45
45
  padding-right: ${i.sp8};
@@ -64,4 +64,4 @@ import{aN as b,V as t,hR as q,hS as R,Q as O,F as T,cm as L,ad as C,cn as U,co a
64
64
  padding-top: ${i.sp3};
65
65
  position: absolute;
66
66
  bottom: 0;
67
- `;function pe(e){const l=O(),o=T.getLocalizedStrings().commonSetUp.twoFactorAuthentication,n=e.businessVerificationSubmitState!=="In-Progress"&&(e.businessVerificationSubmitState==="Error"||e.businessVerificationStatus==="require_info"||e.businessVerificationStatus==null),u=n===!0?o.verificationFailed:o.verificationInProgress,s=n===!0?o.verificationError:e.businessVerificationSubmitState==="In-Progress"?"":o.submissionSuccessful,r=n?o.goToSettings:o.understood,m=()=>{n?e.action.onNavigateToSettings():e.action.onBackClick()};return t.jsx(re,{windowSize:l,role:"presentation",style:{background:N.overlayDark,...e.style},children:t.jsx(J,{onClickAway:()=>e.action.onCancelClick?.(),children:t.jsxs(ce,{windowSize:l,isEditPopup:!1,children:[t.jsx(le,{isError:n,children:u}),s!==""?t.jsx(ue,{children:s}):null,e.businessVerificationSubmitState==="In-Progress"?t.jsx(K,{size:"Standard",start:!0,style:{marginTop:84}}):null,e.businessVerificationSubmitState!=="In-Progress"?t.jsxs(t.Fragment,{children:[t.jsx(de,{}),t.jsx(E,{children:t.jsx(Q,{variant:e.proceedButtonVariant??"primary",label:r,onClick:m,style:{width:134,whiteSpace:"nowrap"},loading:e.isLoading})})]}):t.jsx(E,{})]})})})}const ke=e=>{const{isUnitMigrationTOSRequired:l,isUnitMigrationRequired:o,officer:n,setupDetailsFetchState:u,onVerifyOtpSuccess:s}=e,r=b(e.setupDetailsFetchState),m=b(e.acceptUpdatedTOSFetchState.fetchState),d=b(n?.otpverificationStatus?.fetchState),I=b(e.businessVerificationSubmitState),k=b(e.businessVerificationStatus),p=b(e.officer?.sendOtpStatus.fetchState),[v,x]=c.useState(l===!0),[w,h]=c.useState(e.isListPage&&u==="Completed"&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")),[$,S]=c.useState(n?.isPhoneVerified===!1),[a,y]=c.useState(!1),[z,j]=c.useState(e.isNewCompanyIndustryVerified!==!0||e.incDate==null);return c.useEffect(()=>{m==="In-Progress"&&e.acceptUpdatedTOSFetchState?.fetchState==="Completed"&&(n?.isPhoneVerified===!1?S(!0):(e.isNewCompanyIndustryVerified!==!0||e.incDate==null)&&j(!0),x(!1))},[m,e.acceptUpdatedTOSFetchState,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{d==="In-Progress"&&n?.otpverificationStatus?.fetchState==="Completed"&&(s?.(n?.officerType,n?.phone+""),e.isNewCompanyIndustryVerified!==!0||e.incDate==null?j(!0):h(!0),y(!1))},[d,s,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{!e.isListPage&&I==="In-Progress"&&(e.businessVerificationSubmitState==="Completed"||e.businessVerificationSubmitState==="Error")&&h(!1)},[I,e.businessVerificationSubmitState,e.isListPage]),c.useEffect(()=>{k==="pending_review"&&e.businessVerificationStatus==="verified"&&h(!1)},[k,e.businessVerificationStatus]),c.useEffect(()=>{r==="In-Progress"&&u==="Completed"&&(n?.isPhoneVerified===!1&&S(!0),e.isListPage&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")&&h(!0))},[r,u,n,e.businessVerificationStatus,e.isListPage]),c.useEffect(()=>{p==="In-Progress"&&e.officer?.sendOtpStatus.fetchState==="Completed"&&(y(!0),S(!1))},[p,e.officer?.sendOtpStatus]),t.jsx(t.Fragment,{children:v===!0?t.jsx(ae,{...e}):o===!0&&a===!0?t.jsx(q,{showHelperText:!0,verifyOtpFetchState:e.officer?.otpverificationStatus.fetchState??"Not-Started",phoneNumber:e.officer?.phone??"",otpChallenge:e.officer?.otpChallenge,action:{onVerifyClick:e.onVerifyOtp,onCancelClick:()=>e.onBackClick(),onResendOtp:e.onResendOtp,onEditButtonClick:()=>{S(!0),y(!1)}}}):o===!0&&$===!0?t.jsx(R,{showHelperText:!0,phoneNumber:e.officer?.phone??"",sendOtpFetchState:e.officer?.sendOtpStatus.fetchState??"Not-Started",action:{onCancelClick:e.onBackClick,onGetCodeClick:P=>e.onGetOtp?.(P,e.officer?.officerType)}}):o===!0&&z===!0?t.jsx(ne,{incDate:e.incDate,allIndustries:e.allIndustries??[],selectedIndustry:e.companyIndustry,saveDetailsFetchState:e.companyDetailsSaveState,onCancel:e.onBackClick,onSubmitBusinessInfo:(P,W)=>{e.officer!=null&&h(!0),e.onSubmitBusinessInfo?.(P,W,n?.officerType),j(!1)}}):w===!0?t.jsx(pe,{businessVerificationStatus:e.businessVerificationStatus,businessVerificationSubmitState:e.businessVerificationSubmitState,action:{onNavigateToSettings:e.onNavigateToSettings,onBackClick:e.onBackClick}}):null})};export{ke as default};
67
+ `;function pe(e){const l=O(),o=T.getLocalizedStrings().commonSetUp.twoFactorAuthentication,n=e.businessVerificationSubmitState!=="In-Progress"&&(e.businessVerificationSubmitState==="Error"||e.businessVerificationStatus==="require_info"||e.businessVerificationStatus==null),u=n===!0?o.verificationFailed:o.verificationInProgress,s=n===!0?o.verificationError:e.businessVerificationSubmitState==="In-Progress"?"":o.submissionSuccessful,r=n?o.goToSettings:o.understood,m=()=>{n?e.action.onNavigateToSettings():e.action.onBackClick()};return t.jsx(re,{windowSize:l,role:"presentation",style:{background:z.overlayDark,...e.style},children:t.jsx(J,{onClickAway:()=>e.action.onCancelClick?.(),children:t.jsxs(ce,{windowSize:l,isEditPopup:!1,children:[t.jsx(le,{isError:n,children:u}),s!==""?t.jsx(ue,{children:s}):null,e.businessVerificationSubmitState==="In-Progress"?t.jsx(K,{size:"Standard",start:!0,style:{marginTop:84}}):null,e.businessVerificationSubmitState!=="In-Progress"?t.jsxs(t.Fragment,{children:[t.jsx(de,{}),t.jsx(E,{children:t.jsx(Q,{variant:e.proceedButtonVariant??"primary",label:r,onClick:m,style:{width:134,whiteSpace:"nowrap"},loading:e.isLoading})})]}):t.jsx(E,{})]})})})}const Ie=e=>{const{isUnitMigrationTOSRequired:l,isUnitMigrationRequired:o,officer:n,setupDetailsFetchState:u,onVerifyOtpSuccess:s}=e,r=b(e.setupDetailsFetchState),m=b(e.acceptUpdatedTOSFetchState.fetchState),d=b(n?.otpverificationStatus?.fetchState),k=b(e.businessVerificationSubmitState),I=b(e.businessVerificationStatus),p=b(e.officer?.sendOtpStatus.fetchState),[v,x]=c.useState(l===!0),[w,h]=c.useState(e.isListPage&&u==="Completed"&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")),[C,S]=c.useState(n?.isPhoneVerified===!1),[a,y]=c.useState(!1),[A,j]=c.useState(e.isNewCompanyIndustryVerified!==!0||e.incDate==null);return c.useEffect(()=>{m==="In-Progress"&&e.acceptUpdatedTOSFetchState?.fetchState==="Completed"&&(n?.isPhoneVerified===!1?S(!0):(e.isNewCompanyIndustryVerified!==!0||e.incDate==null)&&j(!0),x(!1))},[m,e.acceptUpdatedTOSFetchState,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{d==="In-Progress"&&n?.otpverificationStatus?.fetchState==="Completed"&&(s?.(n?.officerType,n?.phone+""),e.isNewCompanyIndustryVerified!==!0||e.incDate==null?j(!0):h(!0),y(!1))},[d,s,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{!e.isListPage&&k==="In-Progress"&&(e.businessVerificationSubmitState==="Completed"||e.businessVerificationSubmitState==="Error")&&h(!1)},[k,e.businessVerificationSubmitState,e.isListPage]),c.useEffect(()=>{I==="pending_review"&&e.businessVerificationStatus==="verified"&&h(!1)},[I,e.businessVerificationStatus]),c.useEffect(()=>{r==="In-Progress"&&u==="Completed"&&(n?.isPhoneVerified===!1&&S(!0),e.isListPage&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")&&h(!0))},[r,u,n,e.businessVerificationStatus,e.isListPage]),c.useEffect(()=>{p==="In-Progress"&&e.officer?.sendOtpStatus.fetchState==="Completed"&&(y(!0),S(!1))},[p,e.officer?.sendOtpStatus]),t.jsx(t.Fragment,{children:v===!0?t.jsx(ae,{...e}):o===!0&&a===!0?t.jsx(W,{showHelperText:!0,verifyOtpFetchState:e.officer?.otpverificationStatus.fetchState??"Not-Started",phoneNumber:e.officer?.phone??"",otpChallenge:e.officer?.otpChallenge,action:{onVerifyClick:e.onVerifyOtp,onCancelClick:()=>e.onBackClick(),onResendOtp:e.onResendOtp,onEditButtonClick:()=>{S(!0),y(!1)}}}):o===!0&&C===!0?t.jsx(R,{showHelperText:!0,phoneNumber:e.officer?.phone??"",sendOtpFetchState:e.officer?.sendOtpStatus.fetchState??"Not-Started",action:{onCancelClick:e.onBackClick,onGetCodeClick:P=>e.onGetOtp?.(P,e.officer?.officerType)}}):o===!0&&A===!0?t.jsx(ne,{incDate:e.incDate,allIndustries:e.allIndustries??[],selectedIndustry:e.companyIndustry,saveDetailsFetchState:e.companyDetailsSaveState,onCancel:e.onBackClick,onSubmitBusinessInfo:(P,q)=>{e.officer!=null&&h(!0),e.onSubmitBusinessInfo?.(P,q,n?.officerType),j(!1)}}):w===!0?t.jsx(pe,{businessVerificationStatus:e.businessVerificationStatus,businessVerificationSubmitState:e.businessVerificationSubmitState,action:{onNavigateToSettings:e.onNavigateToSettings,onBackClick:e.onBackClick}}):null})};export{Ie as default};
@@ -0,0 +1,38 @@
1
+ import{a8 as U,ft as y,aN as k,q,F as A,V as i,cB as W,ab as _,aK as K,fu as X,o as a,p as G,cL as H,aO as J,y as x,L as Q,D as Y,b8 as Z,b7 as ee,d as c}from"./index-BhteR_e0.js";import{a as m}from"./core-B-FNbYlu.js";import{n as l}from"./mui-DLNyBjYF.js";import{Et as te}from"./zeni-epic-state-HWtMOH-U.js";const F={marginRight:new x(c[3],c[8]),marginLeft:new x(c[3],c[8]),height:new x(c[5],62)},f="additionalDocumentsForm",s="ssnCard";function pe(e){const{filesEndPoint:w,authParams:D,companyOfficer:t,updateStatus:u,onClose:$,onEditFileName:E,onDeleteFile:I,updateFilesEntity:v,onSendForVerificationClick:N,onCompanyOfficerUpdated:P}=e,n=U({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:y(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,b]=m.useState(!1),[C,L]=m.useState(!1),S=k(u.fetchState),j=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},B=Object.values(j??{}).filter(o=>o!=null),T=te(B);m.useEffect(()=>{S==="In-Progress"&&u.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:y(!0,t?.additionalFiles??[],s)}})},[S,u,n,t?.additionalFiles]);const r=q(),h=A.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,M=n.handleSubmit(()=>{T.fetchState!=="In-Progress"&&N?.(t?.officerType??"Officer_1")}),R=async(o,p)=>{const d=p[f].front;o.includes("front")&&d?.fileId!=null?(P?.(t?.officerType??"Officer_1",[d?.fileId]),b(!0)):b(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&W(()=>R(d,p))});return()=>{o.unsubscribe()}}),i.jsx(_,{...n,children:i.jsxs("form",{id:f,onSubmit:M,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":K("upload-additional-documents-close",f)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(X,{name:f,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:H,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${G.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:y(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:O,filesEndPoint:w,authParams:D,hasError:C,onEditFileName:E,onDeleteFile:I,updateFilesEntity:v,onFileSizeError:o=>L(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(J,{formId:f,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:u.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Y)`
2
+ margin-top: 19px;
3
+ color: ${e=>e.theme.colors.primary};
4
+ margin-bottom: ${a.sp2};
5
+ display: flex;
6
+ justify-content: flex-start;
7
+ `,ae=l(Z)`
8
+ color: ${e=>e.theme.colors.hero};
9
+ white-space: pre-line;
10
+ display: flex;
11
+ justify-content: flex-start;
12
+ `,se=l(ee)`
13
+ color: ${e=>e.theme.colors.primary};
14
+ white-space: pre-line;
15
+ `,le=l.div`
16
+ padding: ${a.sp3} ${a.sp0};
17
+ `,oe=l.div`
18
+ height: ${e=>F.height.valuePx(e.size)};
19
+ `,ne=l(Q)`
20
+ cursor: pointer;
21
+ width: ${a.sp4};
22
+ height: ${a.sp4};
23
+ position: absolute;
24
+ right: ${e=>e.size==="small"?a.sp4:a.sp8};
25
+ top: 19px;
26
+ color: ${e=>e.theme.colors.hero};
27
+ &:hover {
28
+ color: ${e=>e.theme.colors.primary};
29
+ }
30
+ `,re=l.div`
31
+ margin-right: ${e=>F.marginRight.valuePx(e.size)};
32
+ margin-left: ${e=>F.marginLeft.valuePx(e.size)};
33
+ `,de=l.div`
34
+ padding: ${a.sp3} ${a.sp0};
35
+ display: flex;
36
+ flex-direction: column;
37
+ justify-content: center;
38
+ `;export{pe as g};
@@ -1 +1 @@
1
- import{aN as s,F as v,V as i,hR as y,hS as b}from"./index-DcV3YN51.js";import{a as e}from"./core-3dlyNYRL.js";import"./mui-bYXq4XMS.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const A=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:V,newVendorState:g}=S,r=Object.assign({},V??g),[C,a]=e.useState(!1),[O,o]=e.useState(t.initiateVerification===!0),p=s(r?.saveStatus?.fetchState),x=s(t.userVerificationStatus.fetchState),f=s(t.otpVerificationStatus?.fetchState),u=s(t.sendOtpStatus.fetchState),P=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&o(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(a(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(a(!0),o(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(y,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>a(!1),onResendOtp:d,onEditButtonClick:()=>{o(!0),a(!1)}}}):O===!0?i.jsx(b,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?P:void 0,action:{onCancelClick:()=>o(!1),onGetCodeClick:E=>h?.(E)}}):null})};export{A as default};
1
+ import{aN as s,F as v,V as i,hR as y,hS as b}from"./index-BhteR_e0.js";import{a as e}from"./core-B-FNbYlu.js";import"./mui-DLNyBjYF.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const A=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:V,newVendorState:g}=S,r=Object.assign({},V??g),[C,a]=e.useState(!1),[O,o]=e.useState(t.initiateVerification===!0),p=s(r?.saveStatus?.fetchState),x=s(t.userVerificationStatus.fetchState),f=s(t.otpVerificationStatus?.fetchState),u=s(t.sendOtpStatus.fetchState),P=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&o(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(a(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(a(!0),o(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(y,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>a(!1),onResendOtp:d,onEditButtonClick:()=>{o(!0),a(!1)}}}):O===!0?i.jsx(b,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?P:void 0,action:{onCancelClick:()=>o(!1),onGetCodeClick:E=>h?.(E)}}):null})};export{A as default};
@@ -1 +1 @@
1
- import{V as d}from"./index-DcV3YN51.js";import{a as u}from"./core-3dlyNYRL.js";import{f as k}from"./ACHDetailsPage-BBq7KpbY-CpL5U89v.js";import"./mui-bYXq4XMS.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./BankAccountWarningSection-DakysSbk-DtGHGGlf.js";import"./MagicLinkTitleSection-CWw516D8-pIsP-hCT.js";import"./BankAccountSection-C5rYUW3V-Bq5OdcQr.js";const H=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:m})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:s,fetchBankNameByRoutingStatus:p}=t;return u.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),d.jsx(k,{bankAccountToCreate:s,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:m})};export{H as default};
1
+ import{V as d}from"./index-BhteR_e0.js";import{a as u}from"./core-B-FNbYlu.js";import{f as k}from"./ACHDetailsPage-BUP-_2-W-BxsdzxJg.js";import"./mui-DLNyBjYF.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./BankAccountWarningSection-DHdeDi15-DsdgRhNS.js";import"./MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js";import"./BankAccountSection-BVZK5jmO-oboSifeA.js";const H=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:m})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:s,fetchBankNameByRoutingStatus:p}=t;return u.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),d.jsx(k,{bankAccountToCreate:s,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:m})};export{H as default};