@zeniai/web-cockpit-ui 1.14.93-dev → 1.14.94-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 (284) hide show
  1. package/dist/assets/{ACHDetailsPage-Cmt4zlsa-CVV8HYnx.js → ACHDetailsPage--3bIj7tB-3F9dwMR-.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Bll3cTy1-gL3wACpX.js → AIPerformancePage-DBCeKLy6-DoFLATw5.js} +1 -1
  3. package/dist/assets/AccountInfoPage-CITo61GF-CgwHepBH.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-9wbA8niq-Bqglb0N2.js → AccountInfoPageContent-Zb49sPy6-B7XnQcW_.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CLvVkdLW-bPK5I-r7.js → AccountLockedInfoModal-BcokXO2D-CS3sAEh5.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BXa1TZA0-CJ_GlXhF.js → AccountReconDetailsDrawerPage-BWydimgX-dIMZ3KX3.js} +3 -3
  7. package/dist/assets/{AccountRow-Ba39SxP8-8PYcW3Va.js → AccountRow-XnGMYfcj-CkjY0dM_.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-W5TW8HPU-Cm5YfN59.js → AccountsPromoCardStack-BQeRFxKs-CSqaKnps.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-nEnaGKnm-DN6yVFPQ.js → AddAddressForCardDrawer-DOXNDswm-JiOm9hW4.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CQYHG0Yj-CP1osDBN.js → AddToWalletPage-D4yEGRLZ-9f9p7H0-.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BWCU11pF-MZUqlZXC.js → AgingReportsPage-Bos6Ptg1-u0-8eZRf.js} +3 -3
  12. package/dist/assets/{AllUserItems-DPxoQeZA-Fd0FWod6.js → AllUserItems-JjQPLLSr-CHIofzkk.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-cslGsO08-CvebivaV.js → ApAgingDetailPage-Y4VWhY78-OPeQ-zhp.js} +2 -2
  14. package/dist/assets/{AppBasePage-BZINcjPW-DJOgvT_q.js → AppBasePage-CaAadL3t-B5dacIto.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-V7jCH_90-Ck_yeGZ4.js → AppDrawerContent-BKsLlcGq-C-I5tgBW.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BC6CLesU-BKNNkRpO.js → ApprovalRulesSettingsPage-sHR8nTbf-CvweKKJv.js} +1 -1
  17. package/dist/assets/{ArAgingChart-C7VtW0AI-Co8wpWo7.js → ArAgingChart-Cn2M7EaL-CioxnnU1.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-Bttq4jQR-BeQILYq-.js → ArAgingDetailPage-vdpIT5_o-BuX_9MW_.js} +5 -5
  19. package/dist/assets/{AttachmentView-BijZrB02-BJhcTpzV.js → AttachmentView-QyMOK54a-_Wag7_iK.js} +1 -1
  20. package/dist/assets/{BankAccountSection-De0m3zrf-DJo0ErGm.js → BankAccountSection-BexfgJ02-CJbDgNfM.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-DoqOr9h0-CysUjzfB.js → BankAccountWarningSection-MLEqvFgR-BxBAHmR8.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BaySatUW-BFaS82zx.js → BankConnectionsSettingsPage-DP9KRNaJ-CmsjOmvw.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Bg_3myu0-BcOsOHp0.js → BillDetailPage-jNE4rg05-BvKca9U-.js} +1 -1
  24. package/dist/assets/BillPayApprovalRuleDetailPage-C8hROA4_-CB0BAa6k.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-BQywFC8e-BuMp1BIY.js +235 -0
  26. package/dist/assets/{BillPayPromoPage-SUtLQemf-YRwlMQqq.js → BillPayPromoPage-D2OmNki0-COFGRb92.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BbIjaE2K-BvM1AO08.js → BillPaySetUpPage-C81gx8-a-DAG36bWE.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-Bmd6ET1I-D1Hos3cN.js → BillingSettingsPage-CIUisdZK-mQpXJmxB.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CYSMvAbC-CCvMSRtJ.js → BillsBulkReviewDrawerPage-DqjW9AqP-D7YAQNvr.js} +1 -1
  30. package/dist/assets/{BoxItem-B8HVRhgE-Bev68PFI.js → BoxItem-YBSbdQ7d-D8N3mTZg.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Cn1b1hk4-CAZR1TOe.js → BusinessVerificationPage-DeJbdegJ-n2Ac3MMR.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BcJnpRxI-D1zdlj5r.js → CardNumberSubText-Bq9G3f38-BaBJQ2OX.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BkIotpWn-DxPDsNjO.js → CashbackDetailPage-C-0eaJVF-Bmh2Azca.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-kKKhppzB-DtYb-jra.js → ChargeCardDetailPage-CBB5up99-C7PliMpM.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-CP778-GK-CTP7-db-.js → ChargeCardListPage-52TDMfjH-XC6zwUdm.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DBryLHST-Ce2gmrfZ.js → ChargeCardListTable-BdHKiQtr-BoKeTaBP.js} +11 -11
  37. package/dist/assets/ChargeCardPromoPage-D43dBHNx-Dmge2_bT.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-m8dUXi38-BJz_Xnlk.js → ChargeCardSetupPage-CgzI8qMq-8aOP9gWV.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-Dq5NpUXk-Bke0Yjm9.js → ChargeCardStatementsPage-C1PYOcuH-DSHTFs6J.js} +6 -6
  40. package/dist/assets/{CheckDepositDrawerPage-BJQ2GSoP-CvcGnuco.js → CheckDepositDrawerPage-CrYCkxKl-DX8fhtud.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-l16Ixpgb-BS0sBPj9.js → CollapsableReportTable-CvXUxopt-CWXKqXg0.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-mKcrRkb5-BdmL4WQb.js → CompanyOfficerDetailsSection-DYAECWJz-C-5qszuR.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-DUwjb7jY-D94p2vYM.js → CompanyPassportCard-CLoIl-hE-CX-RLpgg.js} +2 -2
  44. package/dist/assets/{CompanyPassportPage-mQ_Le1I1-BsfzlRNE.js → CompanyPassportPage-B3opPlfY-CffcaeWU.js} +13 -13
  45. package/dist/assets/{CompleteProfile-CesiGAex-BxV2T4kD.js → CompleteProfile-DKCP0ZOq-CCpcvdBI.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-CXF_94LB-B61erBlR.js → ConfettiBurst-Ccs36Y8q-BoEyotYe.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-BMVOhEEP-okcAo0FU.js → CreateOrEditVendorPage-CC5jroI_-C5qdwHAS.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-Cl4vJBjO-BN2fXeeY.js → CreditCardPaymentDrawerPage-BNSfaY2k-4QGMMrZP.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-CvnrYpdi-Bx3ura4E.js → CurrencySelectField-CfFOlEnM-CfS03uxO.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-CmengYgm-DwWvQDwP.js → CustomerOnboardingActivationPage-Cac_xdpd-DG_j3gPE.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-DOZu4r0V-CARfFPsC.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-hF2fjE7f-Bx4vnxk_.js → CustomerOnboardingDetailPageSkeleton-Cktian-X-Ch6gtFyy.js} +6 -6
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-B-pbVz1_-Bu3QH6hN.js → CustomerOnboardingNoStepsPage-BVW1Hd-G-CEYYL4XK.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-CUj-SOSh-DqZnrHrN.js → CustomerOnboardingPage-CSTODxiL-B0YN-L_5.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DLJg9lqc-B7ctGtPH.js → CustomerOnboardingProductSuitePage-dcjDfxm3-DmmzRM-K.js} +1 -1
  56. package/dist/assets/{Dashboard-DUBT_4AU-BQQLhc7F.js → Dashboard-DHwjF8AD-euUt_v4D.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-cTPn6w4q-BsaoYjkr.js → DashboardReportPage-BbFqvGcc-Bm6bvb04.js} +10 -10
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation--y1-phUW-DGEiib0J.js → DashboardSidebarBackgroundAnimation-Aepv0x8n-BRMC8BKu.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-BJ6rNbQF-DcQ3w2ay.js → DepositAccTransactionItem-B6bYU73--Bk-F2M5u.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-BXu7yVC4-BqrqxoR4.js → DepositAccTransactionListPage-DdCwnDuw-DoIQ6X_F.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-D5wDMrfR-C5cM-TE-.js → DomesticWireDetailsPage-DXlw9Ok--f2WgPebu.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-BF8Uzj65-BjVIvIOE.js → DownloadOverlay-KKP34aVT-GDmhikON.js} +1 -1
  63. package/dist/assets/{DrawerPage-4QqiD5ag-BNPe32xq.js → DrawerPage-DXGL0DM7-Bc-jzyXP.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-BFROUzlu-DwFofRms.js → EditPeoplePage-DWmJ1PpR-B171l_6f.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-Bz32u6U5-D6GoDZH_.js → EditReimbursementDetailPage-B_5V1IzS-CpmdAjAk.js} +1 -1
  66. package/dist/assets/EntityDetailPage-BUzV8V9O-CDFw7Jz4.js +18 -0
  67. package/dist/assets/{EntitySummarySection-0nKZeBKn-BkqQH4-k.js → EntitySummarySection-CdjupOWB-Bdi92weZ.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-Dvyn5ovf-DA904IZ7.js → ExpenseAutomationOverviewPage-Bx47Uuzu-r5x-Txwb.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-DPmIOATd-E0cwlhE5.js → ExpenseAutomationPage-aVCW740N-y9h0gDFl.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-DGTh3qGM-CBuhnCa1.js → ExpressPayPage-xIDJP3---15Mg_KmG.js} +8 -8
  71. package/dist/assets/{FeaturePreviewPage-CHUVkqak-Bv1bUX1B.js → FeaturePreviewPage-BeGkbhpj-XrVvhthA.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-C_pWSlPc-DWF54WG6.js → FollowStepsSection-9Bp032CO-BrD2qQBR.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-BjPOnObQ-CbXiHvNN.js → GlobalReviewListPage-BKgbn5KU-DMdX8GV6.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DvFu-gjh-DGBl4kd-.js → InformationCardStack-DR09Frl5-og6T9hD3.js} +6 -6
  75. package/dist/assets/{InsightsCardStack-CR3wSnhE-CCTCkrt4.js → InsightsCardStack-Bs9n7ddB-B2Kwtl5L.js} +5 -5
  76. package/dist/assets/{InsightsSection-DCFjudcA-7O17fZbk.js → InsightsSection-Bt4Z2mKl-xYOXRNGL.js} +2 -2
  77. package/dist/assets/{IntegrationsSettingsPage-DpPc99qg-BuRPrwyt.js → IntegrationsSettingsPage-Ce3RYvgj-Bxed6b4a.js} +2 -2
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-xXEk6Ubv-DgeDkVIK.js → InternationalWireSwiftDetailsPage-Dl6FL0Lc-BaPHN9iA.js} +4 -4
  79. package/dist/assets/{InternationalWireVerificationPage-uh0GqYQA-9ZEgxwG_.js → InternationalWireVerificationPage-MYSltOya-BZ90_Q4i.js} +5 -5
  80. package/dist/assets/{InviteFormPage-5xqk5ISe-Bbb5YAD8.js → InviteFormPage-C0ezbQfC-ClPGWuNA.js} +1 -1
  81. package/dist/assets/{InvitePageListView-CpmTnQLj-CTufHHPe.js → InvitePageListView-SMhlCNKA-B22x1b9R.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-BeCWfFpI-DBINJPSA.js → InvitePeoplePage-Dna0gg0J-kTwq0Am9.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-BvaKEakI-Cgqd0lG_.js → InvoiceUploadSection-QGU5U32X-Bt28YEXu.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-Bomvo_PH-CiqvhZJZ.js → IssueChargeCardPage-jai5Nd4c-BHDpP46s.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-b4zlBP-g-DPs_zAUA.js → LabeledAddressValue-cvWoRExB-DOimN9ER.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DpcuqwLy-CTnD7CIG.js → LabeledAddressValueField-BewnvHGP-Cy17-5a4.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-BTjbeJMZ-ByFU_udW.js → LabeledControlledCheckBoxField-DFKeD5HK-jfbQYMID.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-D_oWjB4_-A2URoXC_.js → LabeledCreatableSingleSelectField-nc8iZ1C1-CV4i9q1e.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-dtnakMLl-DM4CLrZI.js → LabeledDocumentField-DmRNRSkb-CDplxK9C.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DDtxGo1u-9ainO5Wl.js → LabeledDropDownFormattedTextField-BP1jmZf7-D3OI0FNX.js} +1 -1
  91. package/dist/assets/{LabeledText-CUs3VIof-3boaO8Y1.js → LabeledText-CIupsEGL-vKnChPk0.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-GKSXWTga.js → LabeledUserSingleSelectWithSubtitlesField-CeZEGuNW-DnFoIROQ.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-DYkmOsOP-Dg0kuJ4H.js → LabeledZeniRolesDropDownField-CDmiz3py-JlLIrijY.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-DbP6jfzn-BtGeDf5_.js → LinkJETransactionPage-BtUXXguK-BX6h2lWE.js} +1 -1
  95. package/dist/assets/{LockCardPage-CWEZyzEM-Bg4PM8JQ.js → LockCardPage-TzEwLGD1-Cmclt9pm.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BQ9JPBTS-DRn4mn9-.js → LowBalancePopup-BWD6Kz-D-JhqQW5Xo.js} +1 -1
  97. package/dist/assets/MagicLinkACHDetailsPage-CZQ8tUTD-Da6izWW_.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-DHZY9sKi-DpYSqAI_.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-BJtMjz1M-Dw8wDVtb.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-DU1RM5NI-Wq9yOHXi.js → MagicLinkSuccessPage-DQAUDzEV-D_oG7NAX.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-RWEjrx8m-CX8Fw-B8.js → MagicLinkTitleSection-JcGSlbn4-wY3-HkBx.js} +1 -1
  102. package/dist/assets/MailingDetailsSection-Ch5XvR8o-DHMj4gz4.js +21 -0
  103. package/dist/assets/{Menu-BTZYMOTT-CKMXXApd.js → Menu-B05IRjpP-oB6ZIzEi.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-DufaL9n8-M4dyrfVV.js → MyBankConnectionsSettingsPage-D2a7LgLg-CVhBWNpq.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-DwCUyRec-SM92wYsw.js → MyPendingActivationChargeCardListPage-pDexjhqy-DP1wPJrc.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-geduKqxy-CauaXJ2g.js → MyProfileSettingsPage-CRkrD2Bn-FBlqtq-o.js} +2 -2
  107. package/dist/assets/{NavBarWithPicker-edkm8kW--DTJVRU93.js → NavBarWithPicker-9HjZDzt5-FKds7wXE.js} +1 -1
  108. package/dist/assets/{NavigationArrow-DAOz2wst-CzpVYMv0.js → NavigationArrow-CgBj8o4H-BlFGUhy1.js} +1 -1
  109. package/dist/assets/{NavigationDots-Dm8SYcdL-CXSz5QAZ.js → NavigationDots-BcSXYcwF-cwaSYMDv.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-enaZFSVb-D5ALf38h.js → NewGlobalMerchantPage-Dv9JrWDT-BA8nAIgM.js} +1 -1
  111. package/dist/assets/{NoDataChart-BIcLmdso-V1__FO4W.js → NoDataChart-tkUQHi-b-C5CjlXPt.js} +1 -1
  112. package/dist/assets/{NoDataTable-C9ywvwy4-CbJRpj1w.js → NoDataTable-DHZ1gQeV-DFGtLWam.js} +1 -1
  113. package/dist/assets/{NotFoundPage-B0Pfc4vD-0nVsRFSV.js → NotFoundPage-D59UVi8i-5MNYbcKK.js} +7 -7
  114. package/dist/assets/{NotificationSettingsPage-Di4KhoPI-Zq8167Bo.js → NotificationSettingsPage-xVOogGxf-BuNP_ADs.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-CHb7phwi-CuAMA5zK.js → NotificationsListConfig-CkDLXlK_-Dyu4QQzt.js} +1 -1
  116. package/dist/assets/{NotificationsPage-B4KMZZ0V-CdnEBa77.js → NotificationsPage-C8zx5kJx-Dl-4CqVn.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-CAxLWg7x-CVAp3gyR.js → OpExByVendorPage-BaUEnLMo-DqlhH9_M.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-C0naTs3U.js → OverlayContainerPage-Daz3A7cI-CjSleqHo.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-Dx56-ypM-CahTbCAI.js → PandLWithForecastPage-BKWEOfwP-voM5FybB.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-C8QwChEK-DSZP0_gt.js → PaymentAccountSetupBillingAddressSection-Ddm0Q_3J-iDE-MOKu.js} +1 -1
  121. package/dist/assets/{PeoplePage-CjD6uKA--DQJyasjD.js → PeoplePage-ChBsx1YC-C_Fl1jcc.js} +1 -1
  122. package/dist/assets/Preview-DWEhp9iP.js +1 -0
  123. package/dist/assets/{ProductsCarousel-DzOaqLVq-BtBP3iUE.js → ProductsCarousel-CaOQupY4-Bxf4CH6R.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-B1h9AEH0-CHWZv_Gb.js → PromoBaseCards-DeJ4J5Lp-BRCdntYT.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-Bv6unk3C-C69fuiCc.js → QBOConnectionDialog--nz5v12t-BznyDbQp.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-BTjj7g98-CXsc6nTM.js → QBOSetupSection-DQTH1dAT--WL2Dx1Z.js} +1 -1
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-BottOscg-CAHU3Hml.js +24 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-B46nrYDg-DD0XiWBs.js +237 -0
  129. package/dist/assets/{ReimbursementDetailPage-DnXsG55s-DO7QVibn.js → ReimbursementDetailPage-DvSn2LUG-B9MjjUuK.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-Di39wgvD-CwoSxp24.js → ReimbursementPromoPage-DRItpn0n-DjtSA1Xj.js} +1 -1
  131. package/dist/assets/{ReimbursementSetUpPage-CT5bs4wM-CImglJgz.js → ReimbursementSetUpPage-CRnE1XYI-C2_UvSyd.js} +4 -4
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BcB8hTar-D2swNEDZ.js → ReimbursementsBulkReviewDrawerPage-C6Cn3AOg-WyMbQmuf.js} +1 -1
  133. package/dist/assets/{ReloadCard-BGPtXAV7-D43T0ICm.js → ReloadCard-CRQf0INS-CM9HcBcK.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-gEKTiiSk-DFp8GlM2.js → ReportTableViewSelector-Dj9qmDS0-C79_BFmS.js} +4 -4
  135. package/dist/assets/{ReportsPage-Ctvnzlk1-DLJ23fuU.js → ReportsPage-BJmkDtu3-BHlyDsBo.js} +5 -5
  136. package/dist/assets/{RevenueChart-D1PfVLk0-DHVFjjTE.js → RevenueChart-LvTct9qg-CqMmRuwP.js} +14 -14
  137. package/dist/assets/{ReviewDetailsPage-Ynw6pln--BjtdFL4i.js → ReviewDetailsPage-CDWKsdgl-_lQ4M5E9.js} +52 -52
  138. package/dist/assets/{ReviewOverlay-DQZwNpFY-DMkxDhbs.js → ReviewOverlay-Bh8LAnRM-CyjKd25e.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-DbQ4ezrP-Dd2VpMcB.js → RoleWithToolTip-BHHwWcYs-BR4B_g9G.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlqQBt-s-drLmv8lF.js → ScheduleDetailsFixedAssetsPage-C_nki9xG-C_v2_vCQ.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsPage-CrVetPy7-CWE6_gjF.js → ScheduleDetailsPage-BXmAqbuh-Gg4bs2eh.js} +1 -1
  142. package/dist/assets/{ScheduleSequenceTable-B7pQ00z8-CEVjTUeV.js → ScheduleSequenceTable-BePVgFIB-BxJLrQ2I.js} +1 -1
  143. package/dist/assets/{ScreenRoutes-Sl9iaV1P.js → ScreenRoutes-xhTHWLYi.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-BAsI7p1f-Dy9q8TNa.js → SetUpAccountSection-B1mXaFmw-BQBAmCi3.js} +1 -1
  145. package/dist/assets/{SignIn-CE6gxhI3-CtZacIY2.js → SignIn-B8qL3jmy-CehNtVNp.js} +1 -1
  146. package/dist/assets/SignInScreen-Cp3MQQbP.js +1 -0
  147. package/dist/assets/SpendManagementListViewPage-D-XwxN9o-C4dAHfpb.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-CF7D2umh-zU9LbhKc.js +754 -0
  149. package/dist/assets/{SpendManagementSection-rHLuZG8_-UxYLxpbV.js → SpendManagementSection-CIqYxYxX-BVCp77Yh.js} +1 -1
  150. package/dist/assets/StatementItem-Cj9_LMwP-iOXv6bUO.js +31 -0
  151. package/dist/assets/{StatementsPage-5oimgNHp-D8qK05-P.js → StatementsPage-CB8LocUZ-e2Dh9l46.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-CLCkXs_4-DhXpfaBL.js → StatusSwitcher-DetjWSRH-Q0yUcFVR.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-DDR7LrDO-DpWQK8Dj.js → SubTabSwitcher-DNqrmpKa-CF4L1Kwg.js} +1 -1
  154. package/dist/assets/{SummaryCard-Cg5UVud3-DPRQua4j.js → SummaryCard-CxlxmBvk-B-SyMhB-.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-6_zt2ePp-BeO6Q35e.js → TaskManagementPage-zHTW1LJ--Dqvt7j5c.js} +15 -15
  156. package/dist/assets/{TimeRangeSwitcher-BTx3d66N-DkQSngDA.js → TimeRangeSwitcher-8D64-X4u-DSKeQDPn.js} +11 -11
  157. package/dist/assets/{TimeframeSwitcher-BkGiMDhd-Dhql0xBj.js → TimeframeSwitcher-YicRGCkf-D-mysr-q.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-M554ai9V-DeR389hA.js → TimeframeSwitcherWithToggle-mP6ezXyM-B9RCQQMF.js} +3 -3
  159. package/dist/assets/{TopExCard-ym2uAvUy-DkU_w9K-.js → TopExCard-BDEoKFUO-Cqks_MY0.js} +10 -10
  160. package/dist/assets/{TopExDetailPage-DU1Qj5ea-DhOfzSmR.js → TopExDetailPage-CLUf9sHg-DjgQ-dJN.js} +8 -8
  161. package/dist/assets/{TransactionDetailPage-BHyBhrM7-B3UILKwv.js → TransactionDetailPage-C-GKDIp2-oZAwumRI.js} +1 -1
  162. package/dist/assets/{TransactionList-CIbSavhJ-Dp71olkE.js → TransactionList-BqQVYWs_-CYNYQaes.js} +1 -1
  163. package/dist/assets/{TransactionListBig-kC4b3DAu-DjTE72OH.js → TransactionListBig-CDgdq8hU-BFzaq7Iz.js} +1 -1
  164. package/dist/assets/{TransactionListPage-Ci98GcF7-ClRcNxWS.js → TransactionListPage-CyGTX1pW-Cj8J8ecy.js} +2 -2
  165. package/dist/assets/{TransactionVendorDetailPage-DI4kq_vO-D-o6bFok.js → TransactionVendorDetailPage-NKocfHyN-C_fZiZg1.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-B342yNDJ-CsWgYoId.js → TransferDrawerPage-qNh4Fww2-CNaDS1Go.js} +1 -1
  167. package/dist/assets/{TreasuryOverviewPage-cvOuWLTK-CefWRHUR.js → TreasuryOverviewPage-D1RQYkoX-CQ3CkOfI.js} +1 -1
  168. package/dist/assets/{TreasuryPromoPage-DyseS2l1-PYUqYVga.js → TreasuryPromoPage-najiDjYG-CYR1JzfB.js} +1 -1
  169. package/dist/assets/TreasuryStatementsPage-CRR-Df5x-DF9p1Ylz.js +58 -0
  170. package/dist/assets/{TreasuryTaxLetterPage-DjV36uFi-ebsJYDfS.js → TreasuryTaxLetterPage-vKXs7eCx-B9A61B43.js} +2 -2
  171. package/dist/assets/{TrendChart--yie2Xkp-B3lZJMT5.js → TrendChart-DtubLSsW-C9uVL_nf.js} +2 -2
  172. package/dist/assets/{TrendWithTransactions-DVLdmgtU-Cv22_4bm.js → TrendWithTransactions-DB5hmoGk-BT0bTVEH.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-CRypWMwQ-DzPLYLFI.js → UncategorizedAccountsMappingPage-ldBfy4n9-BSd43gPp.js} +5 -5
  174. package/dist/assets/{UnitIntegrationPage-DU6Luklp-CVEu7KVf.js → UnitIntegrationPage-DPHlAm3E-k8T3V2L9.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-jNiTn6qG-D_tolxLp.js → UploadAdditionalDocumentOverlay-C2kqDNTp-CLCo9ZjN.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-BNA3GtkO-ClfV14L3.js → Vendor2FAPopup-_DrX-sZ2-C-ynpNGr.js} +1 -1
  177. package/dist/assets/VendorACHDetailsPage-ims8AKLH-Ckg60c1E.js +1 -0
  178. package/dist/assets/{VendorDetailPage-B6s7kOX--Cl8uI1J2.js → VendorDetailPage-dh7UBGAL-gseaFndd.js} +1 -1
  179. package/dist/assets/VendorDomesticWireDetailsPage-C_28sDKW-Ck0eXnl0.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-DiVBfWTv-CQg0-jaT.js → VendorFiling1099EditablePage-CGEA0mkh-DtfOreYr.js} +1 -1
  181. package/dist/assets/{VendorFirstReviewPage-CuM6lK63-QOnJj4dm.js → VendorFirstReviewPage-BGktoc9W-h6QMXY4Y.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CcTippeu-CFZ4Mir_.js → VendorInternationalWireDetailsPage-DidLa6Yx-BHcPntRA.js} +1 -1
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-YqE835gy-EXKEVzqz.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-zeM6PeT4-zwdhVM2D.js → VendorsAccountsSection-BtjrsclQ-CCbXB7Vr.js} +1 -1
  185. package/dist/assets/{VerifyDevice-iKowLq-3-BWk2f90N.js → VerifyDevice-DkibYc6v-B-zCOUZe.js} +7 -7
  186. package/dist/assets/{VideoPlayer-CN28Ho6V-t5x8EBh8.js → VideoPlayer-C8VeeJIx-Bo3SMitQ.js} +2 -2
  187. package/dist/assets/{VideoPopup-CfYmxIk4-BV_-FDHV.js → VideoPopup-aA7dkXbZ-BQm8xqng.js} +4 -4
  188. package/dist/assets/{WarningsDrawerPage-C4jqovLJ-DvCRmdFF.js → WarningsDrawerPage-CA0EogPY-DmMnG6Y0.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-M045ginI-CIh86zMI.js → ZeniAccountDetailPage-Z7ZXcJ98-BoMU7_sz.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage-C-eOjorO-Dort1_5m.js → ZeniAccountListViewPage-CllLl65J-C_iRgCJw.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-Dz9ssqU1-7L41-5ss.js → ZeniAccountNavBarPieces-CHXbVcQE-vXZ3dsMQ.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-BxzNy8wF-ClpXMz8i.js → ZeniAccountPromoPage-DAtyHUfj-BSm4TiYG.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-zWKttj2U-Co7Yvnyy.js → ZeniAccountSetupPage-Cy6_fMVK-C8cnPKU9.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-2oeOVh0P-DJaD_9oR.js → ZeniCopyright-D5JfDH77-jPfeHSFD.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-BADEO33A-DpMPk5Vb.js → ZeniTransferAmountSlider-Bk2gg7DY-CUDntV_F.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-eMWALCp1.js → add-to-wallet-DgdBD8_G-C5IoXTpL.js} +1 -1
  197. package/dist/assets/{analytics-DCCTWnnc.js → analytics-aL6KvWIc.js} +1 -1
  198. package/dist/assets/{analyticsHelper-C2XPB_2A-DuJwOZQc.js → analyticsHelper-Cnk2OUU2-obG2D2We.js} +1 -1
  199. package/dist/assets/{analyticsHelper-DnU5BAvo.js → analyticsHelper-KEHx3dOo.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-9nM57KjQ.js → arrow-south-east-round-PEovUgvH-TX5SKWFw.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-DeA5cpdU.js → auto-transfer-rule-mbafm5D3-Bk6z9OTx.js} +1 -1
  202. package/dist/assets/{chartTypes-PZyiFZrr-DoI-jL6q.js → chartTypes-CMIndIax-BEMOmico.js} +1 -1
  203. package/dist/assets/{commonDimensions-C_y3LIE8-X_N9ThEv.js → commonDimensions-DSS8XDHZ-BEyzahKx.js} +1 -1
  204. package/dist/assets/{constants-COrMNehl.js → constants-BPxZQJPZ.js} +1 -1
  205. package/dist/assets/{core-D2k9JfRf.js → core-DesIUmVX.js} +1 -1
  206. package/dist/assets/{dash.all.min-wMAz1qMX.js → dash.all.min-C390RKsv.js} +1 -1
  207. package/dist/assets/{detailCommon-PTd6DPpO-o02U7S0B.js → detailCommon-DWd4agOz-DxO_ewED.js} +3 -3
  208. package/dist/assets/{downloadPdf-BdoS2D6l-B5cqxKI-.js → downloadPdf-BCoq8NLc-6NV7wH9_.js} +1 -1
  209. package/dist/assets/{empty-D-w6ZnHI.js → empty-SFYuBxta.js} +1 -1
  210. package/dist/assets/{empty-D0VEAoJw.js → empty-VSZPEYlm.js} +1 -1
  211. package/dist/assets/{epic-ClwVDlVx.js → epic-BVf_osK2.js} +2 -2
  212. package/dist/assets/{gift-box-Cmt9OgIZ-D29dLASa.js → gift-box-Cmt9OgIZ-TIfg-5OQ.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-C5a4mTsI.js → graphic-no-data-l-DU4J8fDt-DuzN_8KG.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DMABn47o.js → graphic-no-data-net-burn-l-CzmycA0m-DXtlpj6J.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-CY1iZII1.js → handshake-BPg58FML-CsRg4PlR.js} +1 -1
  216. package/dist/assets/{index-BDimSyBu.js → index-9kMzLkcy.js} +1 -1
  217. package/dist/assets/{index-CK2D3iZ1.js → index-BoDHThmj.js} +8 -8
  218. package/dist/assets/{index-BNglrSQW.js → index-C68_2S6E.js} +1 -1
  219. package/dist/assets/{index-n5uJZ9k2.js → index-CznijgRQ.js} +1 -1
  220. package/dist/assets/{index-CCUQyVRy.js → index-DUHbU2Cn.js} +1 -1
  221. package/dist/assets/{index-BeaEqEWK.js → index-Do2Bw3DR.js} +1 -1
  222. package/dist/assets/{index-Byk1BTgy.js → index-Ibs5bNMX.js} +1 -1
  223. package/dist/assets/{lexical-BEs89iUy.js → lexical-WHFPYU-_.js} +1 -1
  224. package/dist/assets/{liveblocks-CofSwFWW.js → liveblocks-2fUZ-mzS.js} +1 -1
  225. package/dist/assets/{lottie-BO8FHl2Q.js → lottie-BC5QDLx3.js} +2 -2
  226. package/dist/assets/mapLoadingInProgressToTreeNode-Dgkep7PZ-BYp3zSrW.js +1 -0
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C6gW1Rqr-Dv2Q5ZLA.js → mapSectionWithAcOnlyToTreeNode-DF-WWO6U-CTOVPeIK.js} +1 -1
  228. package/dist/assets/mapSpacerToTreeNode-CumKhTYV-Dl2RLlwx.js +1 -0
  229. package/dist/assets/mapTimeframeBalancesToTreeNode-BttFKWAb-HZT5Q3k5.js +1 -0
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-BooGIyls-Ct92rF5c.js → mapTimeframeBalancesToTreeNode-CBfPdKyR-CzUv0SrG.js} +1 -1
  231. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BREIWW8N-D82Zhv2q.js +1 -0
  232. package/dist/assets/{mui-DCr-y2iU.js → mui-DjUnBv6N.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-DDARVgTr.js → page-detail-CWX5S47F-BzMdmGGr.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-DO_kFVBk.js → radio-default-CiSgisfh-BaxkJ2IH.js} +1 -1
  235. package/dist/assets/{react-CFfs9kVE.js → react-C_7-vb8x.js} +1 -1
  236. package/dist/assets/{react-DFeqXhsB.js → react-ClWHGkrF.js} +2 -2
  237. package/dist/assets/{react-BGUULhAS.js → react-D27rdI1k.js} +1 -1
  238. package/dist/assets/{react-j6fq6Sto.js → react-DJeKvZ9o.js} +3 -3
  239. package/dist/assets/{react-CEdfmx42.js → react-Duprtjy6.js} +2 -2
  240. package/dist/assets/{react-UyoSCzBu.js → react-alWVovel.js} +2 -2
  241. package/dist/assets/{react-BgpCchG_.js → react-pGoAOdu_.js} +1 -1
  242. package/dist/assets/{react-DgBRIATV.js → react-rAAguZrV.js} +2 -2
  243. package/dist/assets/{recharts-CIKvFUT6.js → recharts-CFBD4y8X.js} +1 -1
  244. package/dist/assets/{sentry-Dm3bm_ok.js → sentry-CAa_RBiQ.js} +2 -2
  245. package/dist/assets/{shield-DOlUxcFf-BEm6OgBB.js → shield-DOlUxcFf-DL1rYkPV.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-v28KjzUb-BufPkuG3.js +1 -0
  247. package/dist/assets/{toChartData-BUhYY9IR-S8AOthKK.js → toChartData-DuH-6FTe-D-qs3n2e.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-gpUqGjUj.js → transaction-placeholder-CpOwZAMG-CmGAjmF0.js} +1 -1
  249. package/dist/assets/{uploadAttachment-D-Lomshq-0SKv4D0e.js → uploadAttachment-BkoEZkOd-bK4cqD66.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-BEcpM53g.js → uploadReceipts-CPw64UYa-UaFIqgAV.js} +1 -1
  251. package/dist/assets/{url-BXpa7lO3.js → url-qjSvksOH.js} +1 -1
  252. package/dist/assets/{url-D9ndU82p.js → url-sgt9CiMb.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-DzUxHAZU.js → useLongPress-GCK2COYQ-BKjrZB1N.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-Cow5FZNy.js → usp-line-BBd1wKwW-DAbeFX6P.js} +1 -1
  255. package/dist/assets/{utils-CVsOBiWJ.js → utils-MCudDogO.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-Cgro3mH-.js → zeni-epic-state-BO46e_7F.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +3 -3
  259. package/dist/assets/AccountInfoPage-D2IedGAy-DpkY7tZI.js +0 -18
  260. package/dist/assets/BillPayApprovalRuleDetailPage-B7z1PKq6-D3qc7XQa.js +0 -27
  261. package/dist/assets/BillPayApprovalRulesPage-Cj55NkSk-CVNQ2WUg.js +0 -241
  262. package/dist/assets/ChargeCardPromoPage-D_eQ_vXf-CNDMyI7K.js +0 -222
  263. package/dist/assets/CustomerOnboardingContainerPage-CBiHoKP2-K1SzPxIX.js +0 -1
  264. package/dist/assets/EntityDetailPage-BnG_PBK5-88aNTDFS.js +0 -18
  265. package/dist/assets/MagicLinkACHDetailsPage-CKoTuvNz-BHd5xcLb.js +0 -1
  266. package/dist/assets/MagicLinkDomesticWireDetailsPage-Di5hHI_D-C4fzv92i.js +0 -1
  267. package/dist/assets/MagicLinkInternationalWireDetailsPage-B2izwKNk-B8pTw_O-.js +0 -1
  268. package/dist/assets/MailingDetailsSection-BT3SGHhD-Ctkbx47B.js +0 -21
  269. package/dist/assets/Preview-BXKaaVKN.js +0 -1
  270. package/dist/assets/ReimbursementApprovalRuleDetailPage-CHXo51lU-BT66bgjF.js +0 -32
  271. package/dist/assets/ReimbursementApprovalRulesPage-D7utb8vM-BSv0WO21.js +0 -243
  272. package/dist/assets/SignInScreen-BTo7-KSm.js +0 -1
  273. package/dist/assets/SpendManagementListViewPage-CURCimXb-CsGfTOO_.js +0 -123
  274. package/dist/assets/SpendManagementPerTabPage-RY3B-92H-DYTGBiT6.js +0 -785
  275. package/dist/assets/StatementItem-DcPGZchp-CZE_bKaq.js +0 -31
  276. package/dist/assets/TreasuryStatementsPage-rXMNPd2f-B8HSB6xE.js +0 -58
  277. package/dist/assets/VendorACHDetailsPage-B9UpKcN3-BTioFEDj.js +0 -1
  278. package/dist/assets/VendorDomesticWireDetailsPage-CVJAmjuC-DlG2tDpP.js +0 -1
  279. package/dist/assets/VendorInternationalWireSwiftDetailsPage-8u1L-aEg-CW6R8j3k.js +0 -1
  280. package/dist/assets/mapLoadingInProgressToTreeNode-CUy8c_Sm-CvM45xH7.js +0 -1
  281. package/dist/assets/mapSpacerToTreeNode-DqR98mLo-CGAj6TpO.js +0 -1
  282. package/dist/assets/mapTimeframeBalancesToTreeNode-BIGZRHHI-DtvbK4iE.js +0 -1
  283. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-lSB04gFW-CRpECfjU.js +0 -1
  284. package/dist/assets/toCOABalancesWithID-CPbzhUua-B5GAWKcP.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as E,a8 as W,F as w,cB as _,V as n,cm as V,cn as F,co as H,ab as O,aO as q,y as c,eR as Q,b5 as U,o as Z,c as t}from"./index-CK2D3iZ1.js";import{a as x}from"./sentry-Dm3bm_ok.js";import{n as u}from"./mui-DCr-y2iU.js";import{W as G,A as J}from"./BankAccountWarningSection-DoqOr9h0-CysUjzfB.js";import{M as K}from"./MagicLinkTitleSection-RWEjrx8m-CX8Fw-B8.js";import{e as X}from"./BankAccountSection-De0m3zrf-DJo0ErGm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="8ac8cf2e-c697-40a0-8e54-ee7ee93b60dc",e._sentryDebugIdIdentifier="sentry-dbid-8ac8cf2e-c697-40a0-8e54-ee7ee93b60dc")}catch{}})();const a={paddingTopBottomContainer:new c(t[3],t[3]),paddingLeftContainer:new c(t[3],t[6]),paddingRightContainer:new c(t[3],t[8]),sectionTitleMarginLeft:new c(t[4],t[6]),sectionTitleMarginTop:new c(12,t[3]),buttonWidth:new c(140,140)},T="achDetailsPage",p="bankAccountSection",A=e=>`${e}_form`,ue=({bankAccountCreationState:e,bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,isDisabled:k,style:B,onSaveHandler:S,onBackClick:h,onACHDetailsUpdated:v,onFetchBankName:N,isMagicLink:m,companyName:D,currencySymbol:j,amount:$,bankAccountContext:P})=>{const r=E(),i=W({mode:"onBlur",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Y(o),[o])}),[z,b]=x.useState(!1),l=w.getLocalizedStrings().spendManagement.billPay.vendorCreation,R=w.getLocalizedStrings().common.footer,{achDetails:C,bankAccountCommon:y}=l,I={onOkClick:()=>{b(!1),i.reset(),h?.()},onCancelClick:()=>{b(!1)}},L=async(f,d)=>{const s=d[p].bankRoutingNumber;v(d),f===`${p}.bankRoutingNumber`&&s?.length===9&&Q.test(s)===!0&&N?.(s)};x.useEffect(()=>{const f=i.watch((d,{name:s})=>{s!=null&&d!=null&&_(()=>L(s,d))});return()=>{f.unsubscribe()}});const M=i.handleSubmit(f=>{g.fetchState!=="In-Progress"&&S("ach")});return n.jsxs(ne,{children:[n.jsxs(te,{style:B,size:r,children:[z===!0?n.jsx(V,{titleComponent:n.jsx(H,{children:l.discardTitle}),descriptionComponent:n.jsx(F,{children:l.discardDescription}),primaryButtonText:l.discard,secondaryButtonText:l.cancel,action:I}):null,n.jsx(G,{header:m?n.jsx(K,{companyName:D??"",currencySymbol:j??"",amount:$??0}):C.addACHDetails,isMagicLink:m,isDirty:i.formState.isDirty,onBackClick:h,setShowConfirmationPopup:b}),e?.fetchState==="Error"&&e.error?.code===409?n.jsx(J,{warningText:y.accountExistWarning}):null,P==="express-pay"?null:n.jsx(ae,{size:r,children:C.title}),n.jsx(ie,{children:n.jsx(O,{...i,children:n.jsx("form",{id:A(T),onSubmit:M,children:n.jsx(ee,{size:r,children:n.jsx(X,{bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,sectionId:p,isDisabled:k})})})})})]}),n.jsx(q,{formId:A(T),primaryBtn:{label:m?y.submitDetails:y.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:a.buttonWidth.value(r)},isDisabled:k!=null},showCancel:!m,cancelBtn:{label:R.cancel,style:{width:a.buttonWidth.value(r)},shouldResetOnCancel:!1,onClick:()=>{i.formState.isDirty?b(!0):(i.reset(),h?.())}}})]})},Y=e=>({[p]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName,bankAccountType:e?.bankAccountType}}),ee=u.div`
1
+ import{q as E,a8 as W,F as w,cB as _,V as n,cm as V,cn as F,co as H,ab as O,aO as q,y as r,eR as Q,b5 as U,o as Z,c as t}from"./index-BoDHThmj.js";import{a as x}from"./sentry-CAa_RBiQ.js";import{n as u}from"./mui-DjUnBv6N.js";import{W as G,A as J}from"./BankAccountWarningSection-MLEqvFgR-BxBAHmR8.js";import{M as K}from"./MagicLinkTitleSection-JcGSlbn4-wY3-HkBx.js";import{e as X}from"./BankAccountSection-BexfgJ02-CJbDgNfM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ed853a2b-658e-4cd8-926b-4d7034d72be2",e._sentryDebugIdIdentifier="sentry-dbid-ed853a2b-658e-4cd8-926b-4d7034d72be2")}catch{}})();const a={paddingTopBottomContainer:new r(t[3],t[3]),paddingLeftContainer:new r(t[3],t[6]),paddingRightContainer:new r(t[3],t[8]),sectionTitleMarginLeft:new r(t[4],t[6]),sectionTitleMarginTop:new r(12,t[3]),buttonWidth:new r(140,140)},T="achDetailsPage",p="bankAccountSection",A=e=>`${e}_form`,ue=({bankAccountCreationState:e,bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,isDisabled:k,style:B,onSaveHandler:S,onBackClick:h,onACHDetailsUpdated:v,onFetchBankName:N,isMagicLink:m,companyName:D,currencySymbol:j,amount:$,bankAccountContext:P})=>{const c=E(),i=W({mode:"onBlur",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Y(o),[o])}),[z,b]=x.useState(!1),d=w.getLocalizedStrings().spendManagement.billPay.vendorCreation,R=w.getLocalizedStrings().common.footer,{achDetails:C,bankAccountCommon:y}=d,I={onOkClick:()=>{b(!1),i.reset(),h?.()},onCancelClick:()=>{b(!1)}},L=async(f,l)=>{const s=l[p].bankRoutingNumber;v(l),f===`${p}.bankRoutingNumber`&&s?.length===9&&Q.test(s)===!0&&N?.(s)};x.useEffect(()=>{const f=i.watch((l,{name:s})=>{s!=null&&l!=null&&_(()=>L(s,l))});return()=>{f.unsubscribe()}});const M=i.handleSubmit(f=>{g.fetchState!=="In-Progress"&&S("ach")});return n.jsxs(ne,{children:[n.jsxs(te,{style:B,size:c,children:[z===!0?n.jsx(V,{titleComponent:n.jsx(H,{children:d.discardTitle}),descriptionComponent:n.jsx(F,{children:d.discardDescription}),primaryButtonText:d.discard,secondaryButtonText:d.cancel,action:I}):null,n.jsx(G,{header:m?n.jsx(K,{companyName:D??"",currencySymbol:j??"",amount:$??0}):C.addACHDetails,isMagicLink:m,isDirty:i.formState.isDirty,onBackClick:h,setShowConfirmationPopup:b}),e?.fetchState==="Error"&&e.error?.code===409?n.jsx(J,{warningText:y.accountExistWarning}):null,P==="express-pay"?null:n.jsx(ae,{size:c,children:C.title}),n.jsx(ie,{children:n.jsx(O,{...i,children:n.jsx("form",{id:A(T),onSubmit:M,children:n.jsx(ee,{size:c,children:n.jsx(X,{bankAccountToCreate:o,fetchBankNameByRoutingStatus:g,sectionId:p,isDisabled:k})})})})})]}),n.jsx(q,{formId:A(T),primaryBtn:{label:m?y.submitDetails:y.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:a.buttonWidth.value(c)},isDisabled:k!=null},showCancel:!m,cancelBtn:{label:R.cancel,style:{width:a.buttonWidth.value(c)},shouldResetOnCancel:!1,onClick:()=>{i.formState.isDirty?b(!0):(i.reset(),h?.())}}})]})},Y=e=>({[p]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName,bankAccountType:e?.bankAccountType}}),ee=u.div`
2
2
  padding-left: ${e=>a.paddingLeftContainer.valuePx(e.size)};
3
3
  padding-right: ${e=>a.paddingRightContainer.valuePx(e.size)};
4
4
  padding-top: ${e=>a.paddingTopBottomContainer.valuePx(e.size)};
@@ -1,4 +1,4 @@
1
- import{y as u,a7 as y1,q as M,F as j,ca as j1,V as C,bQ as $1,o as r,aM as v1,b as D,ch as b1,k4 as T,c as n,bM as g,dp as h1,p as d,a6 as S1,b1 as p1,d as m1,k5 as f,ag as x,k6 as Z1,k7 as B1,aq as S,D as q,b5 as J,al as F1,k8 as W1,dK as _1,fZ as D1,cf as u1,ak as H1}from"./index-CK2D3iZ1.js";import{a as e}from"./sentry-Dm3bm_ok.js";import{n as o,c as P1,k as T1}from"./mui-DCr-y2iU.js";import{G6 as E,G7 as e1,G8 as F}from"./zeni-epic-state-Cgro3mH-.js";import{R as V1}from"./NavBarWithPicker-edkm8kW--DTJVRU93.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-CIKvFUT6.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="3c41b8ac-75e4-45f9-a7b7-2b2fafed23fd",t._sentryDebugIdIdentifier="sentry-dbid-3c41b8ac-75e4-45f9-a7b7-2b2fafed23fd")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=o.div`
1
+ import{y as u,a7 as y1,q as M,F as j,ca as j1,V as C,bQ as $1,o as r,aM as v1,b as D,ch as b1,k4 as T,c as n,bM as g,dp as h1,p as d,a6 as S1,b1 as p1,d as m1,k5 as f,ag as x,k6 as Z1,k7 as B1,aq as S,D as q,b5 as J,al as F1,k8 as W1,dK as _1,fZ as D1,cf as u1,ak as H1}from"./index-BoDHThmj.js";import{a as e}from"./sentry-CAa_RBiQ.js";import{n as o,c as P1,k as T1}from"./mui-DjUnBv6N.js";import{G6 as E,G7 as e1,G8 as F}from"./zeni-epic-state-BO46e_7F.js";import{R as V1}from"./NavBarWithPicker-9HjZDzt5-FKds7wXE.js";import{F as k1,X as x1,Y as I,I as z1,J as O1,G as t1}from"./recharts-CFBD4y8X.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="53c34c3f-4858-439f-b5c5-57c7adda51e8",t._sentryDebugIdIdentifier="sentry-dbid-53c34c3f-4858-439f-b5c5-57c7adda51e8")}catch{}})();const C1={titleLoaderWidth:new u(200,200,300),subtitleLoaderWidth:new u(100,100,200)},G1=o.div`
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border: 1px solid ${t=>t.theme.colors.grey3};
@@ -0,0 +1,18 @@
1
+ import{d as y,q as x,V as t,gJ as b,o as a,y as s,hv as D,c as i}from"./index-BoDHThmj.js";import{a as $}from"./sentry-CAa_RBiQ.js";import{n as o}from"./mui-DjUnBv6N.js";import{K as P}from"./StatusSwitcher-DetjWSRH-Q0yUcFVR.js";import{r as v}from"./AccountInfoPageContent-Zb49sPy6-B7XnQcW_.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./zeni-epic-state-BO46e_7F.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";import"./downloadPdf-BCoq8NLc-6NV7wH9_.js";import"./commonDimensions-DSS8XDHZ-BEyzahKx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="77fa3114-3e95-4024-b030-fbc207701642",e._sentryDebugIdIdentifier="sentry-dbid-77fa3114-3e95-4024-b030-fbc207701642")}catch{}})();const d={pageTitleMarginXAxis:new s(i[4],i[8]),containerPaddingLeft:new s(i[3],i[6],i[8]),containerPaddingRight:new s(i[3],i[6],i[8])},B=({authParams:e,downloadAccountDetailEndPoint:n,depositAccount:r,zeniAccountsConfigDetail:f,currentTenant:g,onDismissClick:u})=>{const p=y(),c=x(),[l,m]=$.useState("achDetails"),w=h=>{m(h)};return t.jsxs(A,{children:[t.jsx(b,{title:"",backgroundColor:p.colors.grey4,style:{zIndex:4},isTitleAlignLeft:!0,onCloseClick:u}),t.jsx(T,{windowSize:c,children:r.accountName}),t.jsx(j,{children:t.jsx(P,{tabIds:["achDetails","wireDetails"],selectedTab:l,entity:"zeni_accounts",onTabSelectedChange:w,isSwitcherLeftAlign:!0})}),t.jsx(z,{windowSize:c,children:t.jsx(v,{authParams:e,downloadAccountDetailEndPoint:n,currentTab:l,zeniAccountsConfigDetail:f,currentTenant:g,depositAccount:r})})]})},z=o.div`
2
+ padding-left: ${e=>`${d.containerPaddingLeft.valuePx(e.windowSize)}`};
3
+ padding-right: ${e=>`${d.containerPaddingRight.valuePx(e.windowSize)}`};
4
+ `,A=o.div`
5
+ display: flex;
6
+ flex-direction: column;
7
+ background-color: ${e=>e.theme.colors.grey4};
8
+ overflow-x: hidden;
9
+ height: 100%;
10
+ width: 100%;
11
+ `,T=o(D)`
12
+ color: ${e=>e.theme.colors.primary};
13
+ padding: ${a.sp3} ${a.sp0};
14
+ margin: ${e=>`${a.sp0} ${d.pageTitleMarginXAxis.valuePx(e.windowSize)} `};
15
+ `,j=o.div`
16
+ display: flex;
17
+ justify-content: flex-start;
18
+ `;export{B as default};
@@ -1,4 +1,4 @@
1
- import{q as je,gR as Ae,hw as W,V as r,bQ as z,m as Se,aM as L,o as a,b5 as Te,F as ve,c0 as De,p as E,ag as re,u as Ce,gU as ze,ak as ae}from"./index-CK2D3iZ1.js";import{a as s}from"./sentry-Dm3bm_ok.js";import{n as t}from"./mui-DCr-y2iU.js";import{w as Le}from"./downloadPdf-BdoS2D6l-B5cqxKI-.js";import{o as _e}from"./commonDimensions-C_y3LIE8-X_N9ThEv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="e749aa2a-5fcd-42ef-9154-af6548af2144",e._sentryDebugIdIdentifier="sentry-dbid-e749aa2a-5fcd-42ef-9154-af6548af2144")}catch{}})();const{common:{strings:Ie,copyToClipBoard:g},spendManagement:{zeniAccounts:{zeniAccountDetail:G},billPay:{vendorCreation:{achDetails:o}},downloads:K}}=ve.getLocalizedStrings(),er=({authParams:e,downloadAccountDetailEndPoint:y,currentTab:p,depositAccount:c,zeniAccountsConfigDetail:b,currentTenant:k})=>{const oe=je(),[,R]=Ae(),[N,te]=s.useState(!1),[se,ne]=s.useState(!1),[ce,ie]=s.useState(!1),[le,de]=s.useState(!1),[ue,be]=s.useState(!1),[me,pe]=s.useState(!1),[he,fe]=s.useState(!1),[xe,ye]=s.useState(!1),[h,P]=s.useState(!1),[w,q]=s.useState(!1),[j,F]=s.useState(!1),[A,U]=s.useState(!1),[S,V]=s.useState(!1),[T,O]=s.useState(!1),[v,Q]=s.useState(!1),[$,B]=s.useState(!1),D=k?.company?.companyInfo.companyLegalName,C=W(b.zeniAccountsConfigDetail.mailingAddress).text2,m=W(b.zeniAccountsConfigDetail.bankAddress).text2;s.useEffect(()=>{(h||T||v||$||S||$||j||w||A)&&setTimeout(()=>{P(!1),O(!1),Q(!1),B(!1),V(!1),U(!1),F(!1),q(!1)},1200)},[h,T,v,$,S,A,j,w]);const H=(f,n)=>{switch(f){case"accountType":ne(n);break;case"acccountNumber":ie(n);break;case"routingNumber":de(n);break;case"bankName":be(n);break;case"beneficiaryName":fe(n);break;case"beneficiaryAddress":pe(n);break;case"bankAddress":ye(n);break}},$e=f=>{let n;f==="achDetails"?n=`${o.bankRoutingNumber} ${c.routingNumberAch}
1
+ import{q as je,gR as Ae,hw as W,V as r,bQ as z,m as Se,aM as L,o as a,b5 as Te,F as ve,c0 as De,p as E,ag as re,u as Ce,gU as ze,ak as ae}from"./index-BoDHThmj.js";import{a as s}from"./sentry-CAa_RBiQ.js";import{n as t}from"./mui-DjUnBv6N.js";import{w as Le}from"./downloadPdf-BCoq8NLc-6NV7wH9_.js";import{o as _e}from"./commonDimensions-DSS8XDHZ-BEyzahKx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="6a62c03d-1015-4a5d-ad7d-5a825c8952ed",e._sentryDebugIdIdentifier="sentry-dbid-6a62c03d-1015-4a5d-ad7d-5a825c8952ed")}catch{}})();const{common:{strings:Ie,copyToClipBoard:g},spendManagement:{zeniAccounts:{zeniAccountDetail:G},billPay:{vendorCreation:{achDetails:o}},downloads:K}}=ve.getLocalizedStrings(),er=({authParams:e,downloadAccountDetailEndPoint:y,currentTab:p,depositAccount:c,zeniAccountsConfigDetail:b,currentTenant:k})=>{const oe=je(),[,R]=Ae(),[N,te]=s.useState(!1),[se,ne]=s.useState(!1),[ce,ie]=s.useState(!1),[le,de]=s.useState(!1),[ue,be]=s.useState(!1),[me,pe]=s.useState(!1),[he,fe]=s.useState(!1),[xe,ye]=s.useState(!1),[h,P]=s.useState(!1),[w,q]=s.useState(!1),[j,F]=s.useState(!1),[A,U]=s.useState(!1),[S,V]=s.useState(!1),[T,O]=s.useState(!1),[v,Q]=s.useState(!1),[$,B]=s.useState(!1),D=k?.company?.companyInfo.companyLegalName,C=W(b.zeniAccountsConfigDetail.mailingAddress).text2,m=W(b.zeniAccountsConfigDetail.bankAddress).text2;s.useEffect(()=>{(h||T||v||$||S||$||j||w||A)&&setTimeout(()=>{P(!1),O(!1),Q(!1),B(!1),V(!1),U(!1),F(!1),q(!1)},1200)},[h,T,v,$,S,A,j,w]);const H=(f,n)=>{switch(f){case"accountType":ne(n);break;case"acccountNumber":ie(n);break;case"routingNumber":de(n);break;case"bankName":be(n);break;case"beneficiaryName":fe(n);break;case"beneficiaryAddress":pe(n);break;case"bankAddress":ye(n);break}},$e=f=>{let n;f==="achDetails"?n=`${o.bankRoutingNumber} ${c.routingNumberAch}
2
2
 
3
3
  ${o.accountTypeLabel} ${c.accountSubType.name??""}
4
4
 
@@ -1,4 +1,4 @@
1
- import{d as g,F as l,V as t,ak as x,b8 as c,n as y,o as r,p,ap as b,bW as j,bX as $,bY as w,bP as k}from"./index-CK2D3iZ1.js";import{n as o}from"./mui-DCr-y2iU.js";import{t as v}from"./handshake-BPg58FML-CY1iZII1.js";import"./sentry-Dm3bm_ok.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="d0aefe30-271f-4eaa-94fa-41623662d5bf",e._sentryDebugIdIdentifier="sentry-dbid-d0aefe30-271f-4eaa-94fa-41623662d5bf")}catch{}})();const m="support@zeni.ai",n=l.getLocalizedStrings().commonSetUp.twoFactorAuthentication,h=({unlockDate:e,onSubmit:i})=>{const s=g(),f=e.format(l.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat),u=e.format(l.getLocalizedStrings().dateFormat.visual.HHMMFormat);return t.jsxs(S,{children:[t.jsx(D,{children:n.accountLockedTitle}),t.jsxs(_,{children:[t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(A,{})}),t.jsx(x,{children:n.accountLockedSecurityMessage})]}),t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(z,{})}),t.jsxs(c,{children:[n.tryAgainAfter,t.jsxs(I,{children:[f,t.jsx(L,{children:"•"}),u]}),n.signInViaGoogleOrMicrosoft]})]}),t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(F,{})}),t.jsxs(c,{children:[n.accountLockedContactMessage,t.jsx(C,{href:`mailto:${m}`,children:m})]})]}),t.jsx(y,{variant:"primary",label:n.understood,onClick:i})]})]})};function M({unlockDate:e,onClose:i}){return t.jsx(k,{open:!0,onClose:i,children:t.jsx(T,{children:t.jsx(h,{unlockDate:e,onSubmit:i})})})}const S=o.div`
1
+ import{d as g,F as l,V as t,ak as x,b8 as c,n as y,o as r,p,ap as b,bW as j,bX as $,bY as w,bP as k}from"./index-BoDHThmj.js";import{n as o}from"./mui-DjUnBv6N.js";import{t as v}from"./handshake-BPg58FML-CsRg4PlR.js";import"./sentry-CAa_RBiQ.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./zeni-epic-state-BO46e_7F.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="d0aefe30-271f-4eaa-94fa-41623662d5bf",e._sentryDebugIdIdentifier="sentry-dbid-d0aefe30-271f-4eaa-94fa-41623662d5bf")}catch{}})();const m="support@zeni.ai",n=l.getLocalizedStrings().commonSetUp.twoFactorAuthentication,h=({unlockDate:e,onSubmit:i})=>{const s=g(),f=e.format(l.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat),u=e.format(l.getLocalizedStrings().dateFormat.visual.HHMMFormat);return t.jsxs(S,{children:[t.jsx(D,{children:n.accountLockedTitle}),t.jsxs(_,{children:[t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(A,{})}),t.jsx(x,{children:n.accountLockedSecurityMessage})]}),t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(z,{})}),t.jsxs(c,{children:[n.tryAgainAfter,t.jsxs(I,{children:[f,t.jsx(L,{children:"•"}),u]}),n.signInViaGoogleOrMicrosoft]})]}),t.jsxs(a,{children:[t.jsx(d,{theme:s,children:t.jsx(F,{})}),t.jsxs(c,{children:[n.accountLockedContactMessage,t.jsx(C,{href:`mailto:${m}`,children:m})]})]}),t.jsx(y,{variant:"primary",label:n.understood,onClick:i})]})]})};function M({unlockDate:e,onClose:i}){return t.jsx(k,{open:!0,onClose:i,children:t.jsx(T,{children:t.jsx(h,{unlockDate:e,onSubmit:i})})})}const S=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{a8 as fe,fv as xe,V as t,ab as ge,cm as ye,cn as je,co as Se,o as c,B as $e,b5 as Q,al as X,L as be,a9 as ke,dJ as ve,eP as we,d1 as J,ds as Z,F as Ce,ak as d,d as Ee,aK as Pe,bu as ee,dM as te,at as Re,p as ne,u as Ie}from"./index-CK2D3iZ1.js";import{a as r}from"./sentry-Dm3bm_ok.js";import{n as o}from"./mui-DCr-y2iU.js";import{bL as oe,Gm as De,Gn as _e}from"./zeni-epic-state-Cgro3mH-.js";import{E as Te,C as Fe,w as Ue,f as Le}from"./AccountRow-Ba39SxP8-8PYcW3Va.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6a1e987b-90b4-43a1-aab9-90500c656005",e._sentryDebugIdIdentifier="sentry-dbid-6a1e987b-90b4-43a1-aab9-90500c656005")}catch{}})();const m={containerPaddingLeft:c.sp4,containerPaddingRight:c.sp4,navBarHeight:c.sp10,navBarPaddingRight:c.sp4,navBarPaddingLeft:c.sp4,balanceContainerWidth:114,sourceContainerWidth:400},Me=o.div`
1
+ import{a8 as fe,fv as xe,V as t,ab as ge,cm as ye,cn as je,co as Se,o as c,B as $e,b5 as Q,al as X,L as ke,a9 as be,dJ as ve,eP as we,d1 as J,ds as Z,F as Ce,ak as d,d as Ee,aK as Pe,bu as ee,dM as te,at as Re,p as ne,u as Ie}from"./index-BoDHThmj.js";import{a as r}from"./sentry-CAa_RBiQ.js";import{n as o}from"./mui-DjUnBv6N.js";import{bL as oe,Gm as De,Gn as _e}from"./zeni-epic-state-BO46e_7F.js";import{E as Te,C as Fe,w as Ue,f as Le}from"./AccountRow-XnGMYfcj-CkjY0dM_.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4e713e27-54d5-41ee-81c6-9c51a777d7e3",e._sentryDebugIdIdentifier="sentry-dbid-4e713e27-54d5-41ee-81c6-9c51a777d7e3")}catch{}})();const m={containerPaddingLeft:c.sp4,containerPaddingRight:c.sp4,navBarHeight:c.sp10,navBarPaddingRight:c.sp4,navBarPaddingLeft:c.sp4,balanceContainerWidth:114,sourceContainerWidth:400},Me=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -19,7 +19,7 @@ import{a8 as fe,fv as xe,V as t,ab as ge,cm as ye,cn as je,co as Se,o as c,B as
19
19
  z-index: 2;
20
20
  top: ${c.sp0};
21
21
  width: 100%;
22
- `,Oe=o(be)`
22
+ `,Oe=o(ke)`
23
23
  cursor: pointer;
24
24
  color: ${e=>e.theme.colors.hero};
25
25
  width: ${c.sp4};
@@ -236,4 +236,4 @@ import{a8 as fe,fv as xe,V as t,ab as ge,cm as ye,cn as je,co as Se,o as c,B as
236
236
  color: ${e=>e.status==="connected"?e.theme.colors.success:e.status==="reconnect"?e.theme.colors.important:e.theme.colors.link};
237
237
  cursor: pointer;
238
238
  text-decoration: underline;
239
- `,{common:p,dateFormat:G,expenseAutomation:{accountRecon:i}}=Ce.getLocalizedStrings(),ft=(e,n)=>`${e}.${n}`,xt="accountReconDrawerDetailsPage",se="accountReconDrawerDetailsSection";function Mt({accountReconciliation:e,plaidConnectionDetails:n,monthYearPeriod:l,openFilePicker:u,filesEndPoint:x,authParams:S,onDismissClick:$,onFetchLinkTokenClick:E,onEstablishConnectionClick:P,onSelectSourceType:T,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:U,onUploadWindowOpenedOnce:L}){const f=fe({mode:"all",reValidateMode:"onChange",defaultValues:K(e),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:K(e)}),b=f.handleSubmit(()=>{}),[h,g]=r.useState(void 0),k=n.link_account_no_microdeposit,v=n.update_account,a=h==="update_account"?v:k,[y,M]=r.useState(a.linkToken??null),[s,w]=r.useState(!1),[N,B]=r.useState(!1),[Y,O]=r.useState(void 0),[re,z]=r.useState(void 0),le=r.useCallback(()=>{g("link_account_no_microdeposit")},[]),de=r.useCallback(()=>{g("update_account"),E("update_account",e.paymentAccountId)},[e.paymentAccountId]),ue={onOkClick:()=>{Y!=null&&(R(Y),O(void 0)),z(void 0),B(!1)},onCancelClick:()=>{O(void 0),B(!1)}},H=r.useRef(h);r.useEffect(()=>{H.current=h},[h]);const pe=r.useCallback(I=>{P(I,e.accountReconEntity.account.accountId,H.current),g(void 0),w(!1)},[P,e.accountReconEntity.account.accountId]),he=r.useCallback((I,me)=>{I!=null&&console.log("Plaid Connection Error",I,me),g(void 0),w(!1)},[]),{open:q,ready:V}=xe({token:y,onSuccess:pe,onExit:he});return r.useEffect(()=>{(oe(new Date().toISOString()).isAfter(a.expiration)||a.linkToken==null)&&a.fetchStatus.fetchState==="Not-Started"&&E("link_account_no_microdeposit")},[a.fetchStatus.fetchState]),r.useEffect(()=>{!s&&h!=null&&a.linkToken===y&&a.fetchStatus.fetchState==="Completed"&&V&&w(!0)},[V,y,a.fetchStatus.fetchState,a.linkToken,h,s]),r.useEffect(()=>{a.fetchStatus.fetchState==="Completed"&&a.linkToken!=null&&a.linkToken!==y&&M(a.linkToken)},[a.fetchStatus.fetchState,a.linkToken,y]),r.useEffect(()=>{s&&q()},[s,q]),t.jsxs(Me,{children:[t.jsx(Ye,{children:t.jsx(We,{children:t.jsxs(Ne,{children:[t.jsx(Be,{}),t.jsxs(ze,{children:[t.jsx(He,{children:e.accountReconEntity.account.accountName}),t.jsx(ce,{children:t.jsx(kt,{monthYearPeriod:l})})]}),t.jsx(qe,{children:t.jsx(Oe,{onClick:$})})]})})}),t.jsxs(Ae,{children:[t.jsx(ge,{...f,children:t.jsx("form",{style:{width:"100%"},id:xt,onSubmit:b,children:t.jsx(gt,{monthYearPeriod:l,accountReconciliation:e,filesEndPoint:x,openFilePicker:u,authParams:S,onConnectClick:le,onReconnectClick:de,onSelectSourceType:T,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:U,onUploadWindowOpenedOnce:L,showConfirmationPopup:N,setShowConfirmationPopup:B,deleteFileId:Y,setDeleteFileId:O,uploadErrorMessage:re,setUploadErrorMessage:z})})}),N===!0||e.statementDeleteStatus.fetchState==="In-Progress"?t.jsx(ye,{titleComponent:t.jsx(Se,{children:i.reconciliation.drawer.deleteConfirmation.heading}),descriptionComponent:t.jsx(je,{children:i.reconciliation.drawer.deleteConfirmation.description}),isLoading:e.statementDeleteStatus.fetchState==="In-Progress",primaryButtonText:p.confirm,secondaryButtonText:p.cancel,action:ue}):null]})]})}const gt=({monthYearPeriod:e,accountReconciliation:n,filesEndPoint:l,authParams:u,openFilePicker:x,onConnectClick:S,onReconnectClick:$,setDeleteFileId:E,setShowConfirmationPopup:P,onEditFileName:T,onSelectSourceType:R,onStatementUploadSuccess:F,onUploadWindowOpenedOnce:U,uploadErrorMessage:L,setUploadErrorMessage:f})=>{const[b,h]=r.useState(!1),g=(n.localData?.accountSource??"plaid")==="plaid"?n.accountReconEntity.reconciliationId!=null?n.accountReconEntity.reconUpdatedAt:n.accountReconEntity.accountUpdatedAt:n.accountReconEntity.reconUpdatedAt,k=[];n.accountReconEntity.account.accountType==="bank"&&k.push({label:i.reconciliation.menu.bankConnection,value:"plaid"}),k.push({label:i.reconciliation.menu.statement,value:"bank_statement"});const v=n.accountReconEntity.account.accountType==="credit_card"?"bank_statement":n.localData?.accountSource;let a=n.accountConnectionStatus==="connected"||n.connectionInProgress===!0?"plaid":n.accountReconEntity.statementStatus?.code==="uploaded"||n.statementParseInProgress===!0||b?"bank_statement":void 0;n.accountReconEntity.account.accountType==="credit_card"&&(a="bank_statement"),r.useEffect(()=>{n.accountReconEntity.statementStatus.code==="uploaded"&&(n.accountReconEntity.statementDataStatus?.code==="validation_failed"||n.accountReconEntity.statementDataStatus?.code==="parsing_failed"||n.accountReconEntity.statementDataStatus?.code==="processing_failed")&&f(Te(n.accountReconEntity.statementDataStatus?.code,"drawer",n.accountReconEntity.errorMessage?.errorShort))},[n.accountReconEntity.statementStatus.code,n.accountReconEntity.statementDataStatus?.code,n.accountReconEntity.errorMessage?.errorShort,f]);const y=["reconciled","in_progress","reconciled_via_qbo"],M=n.accountReconEntity.reconciliationStatus!=null&&y.includes(n.accountReconEntity.reconciliationStatus.code);return t.jsxs(Ve,{children:[t.jsxs(Je,{children:[t.jsxs(Ge,{children:[t.jsx(A,{children:i.reconciliation.headers.bankBalance}),t.jsx(Ke,{children:t.jsx(Fe,{bankBalance:n.accountReconEntity.balance,bankConnection:n.accountConnectionStatus,isLoading:!1,fromDrawer:!0,accountId:n.accountReconEntity.account.accountId,statementStatus:n.accountReconEntity.statementStatus.code,onStatementAddClicked:()=>{},setIsHovering:()=>{}})})]}),t.jsxs(Qe,{children:[t.jsx(A,{children:i.reconciliation.headers.clearedBalance}),t.jsx(Xe,{children:t.jsx(Ue,{clearedBalance:n.accountReconEntity.clearedBalance,isLoading:!1})})]}),t.jsxs(et,{children:[t.jsx(A,{children:i.reconciliation.headers.variance}),t.jsx(tt,{children:t.jsx($t,{variance:n.accountReconEntity.variance,variancePercentage:n.accountReconEntity.variancePercentage})})]})]}),t.jsxs(st,{children:[t.jsxs(rt,{children:[" ",i.reconciliation.drawer.source," "]}),t.jsxs(lt,{children:[t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.type}),t.jsx(_,{children:a!=null?t.jsx(j,{children:a==="plaid"&&n.accountReconEntity.account.accountType==="bank"?t.jsxs(t.Fragment,{children:[t.jsx(ie,{}),i.reconciliation.menu.bankConnection]}):t.jsxs(t.Fragment,{children:[t.jsx(ae,{}),i.reconciliation.menu.statement]})}):t.jsx(ke,{controller:!0,children:t.jsx(ve,{moreIconType:"custom",customIcon:t.jsx(yt,{selectedSourceType:v}),options:k,customStyleConfig:{option:()=>({".option-container":{justifyContent:"flex-start"}}),valueContainer:()=>({height:c.sp5,width:"180px"})},menuPlacement:"bottom",onOptionSelection:s=>{R(De(s))},valueToIcon:s=>s==="plaid"?t.jsx(ut,{}):s==="bank_statement"?t.jsx(pt,{}):null})})})]}),v==="bank_statement"?t.jsx(C,{children:t.jsx(we,{name:ft(se,"file"),file:n.accountReconEntity.statementMetaData?.file,showPhotoPicker:!1,isDisabled:M,sizeLimit:1e7,onFileSizeError:s=>{s&&f(p.fileElementPicker.sizeLimit)},deleteFileStatusById:{},updateFileStatusById:{},filesEndPoint:l,authParams:u,acceptableTypes:["application/pdf"],placeholderText:i.reconciliation.drawer.downloadPlaceholder,autoOpenFilePicker:x,accountStatementUpload:{uploadHelper:_e,metadataPayload:{accountId:n.accountReconEntity.account.accountId,accountType:n.accountReconEntity.account.accountType??"bank",monthYearPeriod:e},errorMessage:L,onUploadError:s=>{f(s?.message)},onUploadSuccess:s=>{F(s),h(!1)},onUploadStart:()=>{h(!0),f(void 0)},onUploadWindowOpenedOnce:()=>{U()}},onDeleteFile:s=>{E(s),P(!0)},onEditFileName:(s,w)=>{T(s,w)}})}):null,t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.status}),t.jsx(_,{children:v!=="bank_statement"?t.jsx(jt,{status:n.accountConnectionStatus,connectionInProgress:n.connectionInProgress,onConnectClick:S,onReconnectClick:$}):t.jsx(St,{uploadInProgress:b,status:n.accountReconEntity.statementDataStatus?.code})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.accountType}),t.jsx(_,{children:t.jsx(bt,{accountSubType:J(n.accountReconEntity.account.accountSubType??"")})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.lastUpdated}),t.jsx(_,{children:t.jsx(Z,{isLoading:b,customStyle:{height:"20px",width:"100px"},position:"left",children:g!=null?t.jsx(j,{children:J(g.utc(!0).fromNow())}):p.strings.hyphen})})]})]})]})]})},yt=({selectedSourceType:e})=>t.jsxs(ct,{children:[e==null||e==="plaid"?t.jsx(ie,{}):t.jsx(ae,{}),t.jsx(it,{children:e==null||e==="plaid"?i.reconciliation.menu.bankConnection:i.reconciliation.menu.statement}),t.jsx(at,{})]}),jt=({status:e,connectionInProgress:n,onConnectClick:l,onReconnectClick:u})=>n?t.jsx(W,{children:i.reconciliation.drawer.values.connecting}):e==="connected"?t.jsxs(W,{children:[t.jsx(dt,{}),t.jsx(ht,{children:i.reconciliation.drawer.values.connected})]}):t.jsx(W,{onClick:e==="reconnect"?u:l,children:t.jsx(mt,{status:e,children:e==="reconnect"?i.reconciliation.drawer.values.reconnect:i.reconciliation.drawer.values.connect})}),St=({status:e,uploadInProgress:n})=>n?t.jsx(Z,{isLoading:n,customStyle:{height:"20px",width:"100px"},position:"left",children:t.jsx(t.Fragment,{})}):e==null?t.jsx(j,{children:p.strings.hyphen}):e==="parsing"?t.jsx(j,{children:i.reconciliation.drawer.values.statementParsing}):e==="validated"?t.jsx(j,{children:i.reconciliation.drawer.values.uploaded}):t.jsx(j,{children:p.strings.hyphen}),$t=({variance:e,variancePercentage:n,reconciliationStatusCode:l})=>{const u=Ee(),{varianceColor:x,variancePercentageColor:S,variancePercentageContainerColor:$}=Le(u,e,l,!0);return t.jsxs(Ze,{children:[t.jsx(nt,{textColor:x,children:Pe("0,0",e)??p.strings.hyphen}),t.jsxs(ot,{textColor:S,bgColor:$,children:[n!=null?n===0?"0":n.toFixed(2):null,n!=null?p.strings.percentage:null]})]})},bt=({accountSubType:e})=>{const n=e!=null?e.replace("_"," "):p.strings.hyphen;return t.jsx(j,{children:n})},kt=({monthYearPeriod:e})=>t.jsx(ce,{children:vt(e)}),vt=e=>{const{month:n,year:l}=e,u=oe(`${l}-${String(n).padStart(2,"0")}-01`);let x=u.endOf("month");return`${u.format(G.visual.DMMMYYYYFormat)} ${p.strings.hyphen} ${x.format(G.visual.DMMMYYYYFormat)}`},K=e=>({[se]:{file:e.accountReconEntity.statementMetaData?.file,selectedType:e.localData?.accountSource}});export{Mt as default,ft as uniqueName};
239
+ `,{common:p,dateFormat:G,expenseAutomation:{accountRecon:i}}=Ce.getLocalizedStrings(),ft=(e,n)=>`${e}.${n}`,xt="accountReconDrawerDetailsPage",se="accountReconDrawerDetailsSection";function Mt({accountReconciliation:e,plaidConnectionDetails:n,monthYearPeriod:l,openFilePicker:u,filesEndPoint:x,authParams:S,onDismissClick:$,onFetchLinkTokenClick:E,onEstablishConnectionClick:P,onSelectSourceType:T,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:U,onUploadWindowOpenedOnce:L}){const f=fe({mode:"all",reValidateMode:"onChange",defaultValues:K(e),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:K(e)}),k=f.handleSubmit(()=>{}),[h,g]=r.useState(void 0),b=n.link_account_no_microdeposit,v=n.update_account,a=h==="update_account"?v:b,[y,M]=r.useState(a.linkToken??null),[s,w]=r.useState(!1),[N,B]=r.useState(!1),[Y,O]=r.useState(void 0),[re,z]=r.useState(void 0),le=r.useCallback(()=>{g("link_account_no_microdeposit")},[]),de=r.useCallback(()=>{g("update_account"),E("update_account",e.paymentAccountId)},[e.paymentAccountId]),ue={onOkClick:()=>{Y!=null&&(R(Y),O(void 0)),z(void 0),B(!1)},onCancelClick:()=>{O(void 0),B(!1)}},H=r.useRef(h);r.useEffect(()=>{H.current=h},[h]);const pe=r.useCallback(I=>{P(I,e.accountReconEntity.account.accountId,H.current),g(void 0),w(!1)},[P,e.accountReconEntity.account.accountId]),he=r.useCallback((I,me)=>{I!=null&&console.log("Plaid Connection Error",I,me),g(void 0),w(!1)},[]),{open:q,ready:V}=xe({token:y,onSuccess:pe,onExit:he});return r.useEffect(()=>{(oe(new Date().toISOString()).isAfter(a.expiration)||a.linkToken==null)&&a.fetchStatus.fetchState==="Not-Started"&&E("link_account_no_microdeposit")},[a.fetchStatus.fetchState]),r.useEffect(()=>{!s&&h!=null&&a.linkToken===y&&a.fetchStatus.fetchState==="Completed"&&V&&w(!0)},[V,y,a.fetchStatus.fetchState,a.linkToken,h,s]),r.useEffect(()=>{a.fetchStatus.fetchState==="Completed"&&a.linkToken!=null&&a.linkToken!==y&&M(a.linkToken)},[a.fetchStatus.fetchState,a.linkToken,y]),r.useEffect(()=>{s&&q()},[s,q]),t.jsxs(Me,{children:[t.jsx(Ye,{children:t.jsx(We,{children:t.jsxs(Ne,{children:[t.jsx(Be,{}),t.jsxs(ze,{children:[t.jsx(He,{children:e.accountReconEntity.account.accountName}),t.jsx(ce,{children:t.jsx(bt,{monthYearPeriod:l})})]}),t.jsx(qe,{children:t.jsx(Oe,{onClick:$})})]})})}),t.jsxs(Ae,{children:[t.jsx(ge,{...f,children:t.jsx("form",{style:{width:"100%"},id:xt,onSubmit:k,children:t.jsx(gt,{monthYearPeriod:l,accountReconciliation:e,filesEndPoint:x,openFilePicker:u,authParams:S,onConnectClick:le,onReconnectClick:de,onSelectSourceType:T,onDeleteFile:R,onEditFileName:F,onStatementUploadSuccess:U,onUploadWindowOpenedOnce:L,showConfirmationPopup:N,setShowConfirmationPopup:B,deleteFileId:Y,setDeleteFileId:O,uploadErrorMessage:re,setUploadErrorMessage:z})})}),N===!0||e.statementDeleteStatus.fetchState==="In-Progress"?t.jsx(ye,{titleComponent:t.jsx(Se,{children:i.reconciliation.drawer.deleteConfirmation.heading}),descriptionComponent:t.jsx(je,{children:i.reconciliation.drawer.deleteConfirmation.description}),isLoading:e.statementDeleteStatus.fetchState==="In-Progress",primaryButtonText:p.confirm,secondaryButtonText:p.cancel,action:ue}):null]})]})}const gt=({monthYearPeriod:e,accountReconciliation:n,filesEndPoint:l,authParams:u,openFilePicker:x,onConnectClick:S,onReconnectClick:$,setDeleteFileId:E,setShowConfirmationPopup:P,onEditFileName:T,onSelectSourceType:R,onStatementUploadSuccess:F,onUploadWindowOpenedOnce:U,uploadErrorMessage:L,setUploadErrorMessage:f})=>{const[k,h]=r.useState(!1),g=(n.localData?.accountSource??"plaid")==="plaid"?n.accountReconEntity.reconciliationId!=null?n.accountReconEntity.reconUpdatedAt:n.accountReconEntity.accountUpdatedAt:n.accountReconEntity.reconUpdatedAt,b=[];n.accountReconEntity.account.accountType==="bank"&&b.push({label:i.reconciliation.menu.bankConnection,value:"plaid"}),b.push({label:i.reconciliation.menu.statement,value:"bank_statement"});const v=n.accountReconEntity.account.accountType==="credit_card"?"bank_statement":n.localData?.accountSource;let a=n.accountConnectionStatus==="connected"||n.connectionInProgress===!0?"plaid":n.accountReconEntity.statementStatus?.code==="uploaded"||n.statementParseInProgress===!0||k?"bank_statement":void 0;n.accountReconEntity.account.accountType==="credit_card"&&(a="bank_statement"),r.useEffect(()=>{n.accountReconEntity.statementStatus.code==="uploaded"&&(n.accountReconEntity.statementDataStatus?.code==="validation_failed"||n.accountReconEntity.statementDataStatus?.code==="parsing_failed"||n.accountReconEntity.statementDataStatus?.code==="processing_failed")&&f(Te(n.accountReconEntity.statementDataStatus?.code,"drawer",n.accountReconEntity.errorMessage?.errorShort))},[n.accountReconEntity.statementStatus.code,n.accountReconEntity.statementDataStatus?.code,n.accountReconEntity.errorMessage?.errorShort,f]);const y=["reconciled","in_progress","reconciled_via_qbo"],M=n.accountReconEntity.reconciliationStatus!=null&&y.includes(n.accountReconEntity.reconciliationStatus.code);return t.jsxs(Ve,{children:[t.jsxs(Je,{children:[t.jsxs(Ge,{children:[t.jsx(A,{children:i.reconciliation.headers.bankBalance}),t.jsx(Ke,{children:t.jsx(Fe,{bankBalance:n.accountReconEntity.balance,bankConnection:n.accountConnectionStatus,isLoading:!1,fromDrawer:!0,accountId:n.accountReconEntity.account.accountId,statementStatus:n.accountReconEntity.statementStatus.code,onStatementAddClicked:()=>{},setIsHovering:()=>{}})})]}),t.jsxs(Qe,{children:[t.jsx(A,{children:i.reconciliation.headers.clearedBalance}),t.jsx(Xe,{children:t.jsx(Ue,{clearedBalance:n.accountReconEntity.clearedBalance,isLoading:!1})})]}),t.jsxs(et,{children:[t.jsx(A,{children:i.reconciliation.headers.variance}),t.jsx(tt,{children:t.jsx($t,{variance:n.accountReconEntity.variance,variancePercentage:n.accountReconEntity.variancePercentage})})]})]}),t.jsxs(st,{children:[t.jsxs(rt,{children:[" ",i.reconciliation.drawer.source," "]}),t.jsxs(lt,{children:[t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.type}),t.jsx(_,{children:a!=null?t.jsx(j,{children:a==="plaid"&&n.accountReconEntity.account.accountType==="bank"?t.jsxs(t.Fragment,{children:[t.jsx(ie,{}),i.reconciliation.menu.bankConnection]}):t.jsxs(t.Fragment,{children:[t.jsx(ae,{}),i.reconciliation.menu.statement]})}):t.jsx(be,{controller:!0,children:t.jsx(ve,{moreIconType:"custom",customIcon:t.jsx(yt,{selectedSourceType:v}),options:b,customStyleConfig:{option:()=>({".option-container":{justifyContent:"flex-start"}}),valueContainer:()=>({height:c.sp5,width:"180px"})},menuPlacement:"bottom",onOptionSelection:s=>{R(De(s))},valueToIcon:s=>s==="plaid"?t.jsx(ut,{}):s==="bank_statement"?t.jsx(pt,{}):null})})})]}),v==="bank_statement"?t.jsx(C,{children:t.jsx(we,{name:ft(se,"file"),file:n.accountReconEntity.statementMetaData?.file,showPhotoPicker:!1,isDisabled:M,sizeLimit:1e7,onFileSizeError:s=>{s&&f(p.fileElementPicker.sizeLimit)},deleteFileStatusById:{},updateFileStatusById:{},filesEndPoint:l,authParams:u,acceptableTypes:["application/pdf"],placeholderText:i.reconciliation.drawer.downloadPlaceholder,autoOpenFilePicker:x,accountStatementUpload:{uploadHelper:_e,metadataPayload:{accountId:n.accountReconEntity.account.accountId,accountType:n.accountReconEntity.account.accountType??"bank",monthYearPeriod:e},errorMessage:L,onUploadError:s=>{f(s?.message)},onUploadSuccess:s=>{F(s),h(!1)},onUploadStart:()=>{h(!0),f(void 0)},onUploadWindowOpenedOnce:()=>{U()}},onDeleteFile:s=>{E(s),P(!0)},onEditFileName:(s,w)=>{T(s,w)}})}):null,t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.status}),t.jsx(_,{children:v!=="bank_statement"?t.jsx(jt,{status:n.accountConnectionStatus,connectionInProgress:n.connectionInProgress,onConnectClick:S,onReconnectClick:$}):t.jsx(St,{uploadInProgress:k,status:n.accountReconEntity.statementDataStatus?.code})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.accountType}),t.jsx(_,{children:t.jsx(kt,{accountSubType:J(n.accountReconEntity.account.accountSubType??"")})})]}),t.jsxs(C,{children:[t.jsx(D,{children:i.reconciliation.drawer.labels.lastUpdated}),t.jsx(_,{children:t.jsx(Z,{isLoading:k,customStyle:{height:"20px",width:"100px"},position:"left",children:g!=null?t.jsx(j,{children:J(g.utc(!0).fromNow())}):p.strings.hyphen})})]})]})]})]})},yt=({selectedSourceType:e})=>t.jsxs(ct,{children:[e==null||e==="plaid"?t.jsx(ie,{}):t.jsx(ae,{}),t.jsx(it,{children:e==null||e==="plaid"?i.reconciliation.menu.bankConnection:i.reconciliation.menu.statement}),t.jsx(at,{})]}),jt=({status:e,connectionInProgress:n,onConnectClick:l,onReconnectClick:u})=>n?t.jsx(W,{children:i.reconciliation.drawer.values.connecting}):e==="connected"?t.jsxs(W,{children:[t.jsx(dt,{}),t.jsx(ht,{children:i.reconciliation.drawer.values.connected})]}):t.jsx(W,{onClick:e==="reconnect"?u:l,children:t.jsx(mt,{status:e,children:e==="reconnect"?i.reconciliation.drawer.values.reconnect:i.reconciliation.drawer.values.connect})}),St=({status:e,uploadInProgress:n})=>n?t.jsx(Z,{isLoading:n,customStyle:{height:"20px",width:"100px"},position:"left",children:t.jsx(t.Fragment,{})}):e==null?t.jsx(j,{children:p.strings.hyphen}):e==="parsing"?t.jsx(j,{children:i.reconciliation.drawer.values.statementParsing}):e==="validated"?t.jsx(j,{children:i.reconciliation.drawer.values.uploaded}):t.jsx(j,{children:p.strings.hyphen}),$t=({variance:e,variancePercentage:n,reconciliationStatusCode:l})=>{const u=Ee(),{varianceColor:x,variancePercentageColor:S,variancePercentageContainerColor:$}=Le(u,e,l,!0);return t.jsxs(Ze,{children:[t.jsx(nt,{textColor:x,children:Pe("0,0",e)??p.strings.hyphen}),t.jsxs(ot,{textColor:S,bgColor:$,children:[n!=null?n===0?"0":n.toFixed(2):null,n!=null?p.strings.percentage:null]})]})},kt=({accountSubType:e})=>{const n=e!=null?e.replace("_"," "):p.strings.hyphen;return t.jsx(j,{children:n})},bt=({monthYearPeriod:e})=>t.jsx(ce,{children:vt(e)}),vt=e=>{const{month:n,year:l}=e,u=oe(`${l}-${String(n).padStart(2,"0")}-01`);let x=u.endOf("month");return`${u.format(G.visual.DMMMYYYYFormat)} ${p.strings.hyphen} ${x.format(G.visual.DMMMYYYYFormat)}`},K=e=>({[se]:{file:e.accountReconEntity.statementMetaData?.file,selectedType:e.localData?.accountSource}});export{Mt as default,ft as uniqueName};
@@ -1,4 +1,4 @@
1
- import{V as t,aK as E,bQ as f,o,aM as y,a9 as se,dJ as re,F as le,ak as w,dK as de,p as g,dL as Z,dM as Y,cY as ue,aS as x,ag as X,c as p,q as xe,d as S,aZ as pe,dq as he,am as ge,n as me,al as I,bH as fe,dC as je}from"./index-CK2D3iZ1.js";import{a as ye}from"./sentry-Dm3bm_ok.js";import{n as a,c as we}from"./mui-DCr-y2iU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="517fdea9-d35a-415a-97eb-8f2c236386da",e._sentryDebugIdIdentifier="sentry-dbid-517fdea9-d35a-415a-97eb-8f2c236386da")}catch{}})();const $e=a.div`
1
+ import{V as t,aK as E,bQ as f,o,aM as y,a9 as se,dJ as re,F as le,ak as w,dK as de,p as g,dL as Z,dM as Y,cY as ue,aS as x,ag as X,c as p,q as xe,d as S,aZ as pe,dq as he,am as ge,n as me,al as I,bH as fe,dC as je}from"./index-BoDHThmj.js";import{a as ye}from"./sentry-CAa_RBiQ.js";import{n as a,c as we}from"./mui-DjUnBv6N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="517fdea9-d35a-415a-97eb-8f2c236386da",e._sentryDebugIdIdentifier="sentry-dbid-517fdea9-d35a-415a-97eb-8f2c236386da")}catch{}})();const $e=a.div`
2
2
  position: relative;
3
3
  ${e=>e.showTreeLine===!0&&e.collapsed!==!0?`&::after {
4
4
  content: "";
@@ -1,4 +1,4 @@
1
- import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as ce,bv as le,bw as V,l as de,aL as W,aI as pe,d as J,av as ue,aM as _,aU as me,aJ as he,aP as ge,ag as R,aW as xe,b3 as fe,ak as ye,b8 as Ce}from"./index-CK2D3iZ1.js";import{a as U,S}from"./sentry-Dm3bm_ok.js";import{c as $e}from"./SummaryCard-Cg5UVud3-DPRQua4j.js";import{n as r,k as X,c as K}from"./mui-DCr-y2iU.js";import{EG as be}from"./zeni-epic-state-Cgro3mH-.js";import{N as q}from"./NavigationArrow-DAOz2wst-CzpVYMv0.js";import{k as ve}from"./NavigationDots-Dm8SYcdL-CXSz5QAZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d7936220-27a7-4d94-ad15-95c8fb8ddaad",e._sentryDebugIdIdentifier="sentry-dbid-d7936220-27a7-4d94-ad15-95c8fb8ddaad")}catch{}})();const je="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-1.png",Ae="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-2.png",we="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-3.png",T=(e,n)=>{const i=e==="right"?`-${n}%`:`${n}%`;return X`
1
+ import{F,V as o,o as t,aV as z,p as b,ap as ne,b as ae,bs as ie,bt as se,bu as ce,bv as le,bw as V,l as de,aL as W,aI as pe,d as J,av as ue,aM as _,aU as me,aJ as he,aP as ge,ag as R,aW as xe,b3 as fe,ak as ye,b8 as Ce}from"./index-BoDHThmj.js";import{a as U,w as I}from"./sentry-CAa_RBiQ.js";import{c as $e}from"./SummaryCard-CxlxmBvk-B-SyMhB-.js";import{n as r,k as X,c as K}from"./mui-DjUnBv6N.js";import{EG as ve}from"./zeni-epic-state-BO46e_7F.js";import{N as q}from"./NavigationArrow-CgBj8o4H-BlFGUhy1.js";import{k as be}from"./NavigationDots-BcSXYcwF-cwaSYMDv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fd280338-fd08-435c-a4d0-1fa206ac3ec2",e._sentryDebugIdIdentifier="sentry-dbid-fd280338-fd08-435c-a4d0-1fa206ac3ec2")}catch{}})();const je="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-1.png",Ae="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-2.png",we="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-3.png",T=(e,n)=>{const i=e==="right"?`-${n}%`:`${n}%`;return X`
2
2
  0% {
3
3
  opacity: 0;
4
4
  transform: translateX(${i});
@@ -27,7 +27,7 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
27
27
  width: ${t.sp7};
28
28
  height: ${t.sp7};
29
29
  border-radius: 50%;
30
- border: 2px solid ${v.neutralGrey5Light};
30
+ border: 2px solid ${b.neutralGrey5Light};
31
31
  `,ze=r.div`
32
32
  display: flex;
33
33
  align-items: center;
@@ -36,12 +36,12 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
36
36
  gap: ${t.sp2};
37
37
  margin-bottom: ${t.sp4};
38
38
  padding: ${t.sp0} ${t.sp2};
39
- `,Se=r(Ce)`
39
+ `,Ie=r(Ce)`
40
40
  text-align: center;
41
41
  max-width: 222px;
42
42
  white-space: pre-line;
43
43
  color: ${e=>e.theme.colors.zeniAccountsPromoDetailTextColor};
44
- `,Ie=r.div`
44
+ `,Se=r.div`
45
45
  min-height: 95px;
46
46
  display: flex;
47
47
  flex-direction: column;
@@ -57,7 +57,7 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
57
57
  `,Te=r(ye)`
58
58
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonColor};
59
59
  `,Be=r(le)`
60
- color: ${v.brandColorJade};
60
+ color: ${b.brandColorJade};
61
61
  height: ${t.sp4};
62
62
  width: ${t.sp4};
63
63
  `,Me=r(ce)`
@@ -91,14 +91,14 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
91
91
  height: 34px;
92
92
  width: ${t.sp5};
93
93
  border-radius: ${t.sp0} ${t.sp1} ${t.sp1} ${t.sp0};
94
- background-color: ${v.brandColorGold};
94
+ background-color: ${b.brandColorGold};
95
95
  `,Ue=r.div`
96
96
  display: flex;
97
97
  align-items: center;
98
98
  height: 34px;
99
99
  width: 168px;
100
100
  border-radius: ${t.sp0} ${t.sp1} ${t.sp1} ${t.sp0};
101
- background-color: ${v.brandColorJade};
101
+ background-color: ${b.brandColorJade};
102
102
  opacity: 0;
103
103
  animation: ${T("right",100)} normal 0.5s 1
104
104
  forwards;
@@ -112,7 +112,7 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
112
112
  `,Xe=r.div`
113
113
  width: 2px;
114
114
  height: ${t.sp0};
115
- background-color: ${v.important};
115
+ background-color: ${b.important};
116
116
  transform: rotate(64deg);
117
117
  position: absolute;
118
118
  top: ${t.sp1};
@@ -134,7 +134,7 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
134
134
  ${e=>De(e.direction,e.stepCount)}
135
135
  `,We=r.div`
136
136
  display: flex;
137
- `,I=r.div`
137
+ `,S=r.div`
138
138
  margin-right: -${t.sp3};
139
139
  opacity: 0;
140
140
  transform: translateX(50%);
@@ -142,13 +142,13 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
142
142
  forwards;
143
143
  `,L=r.img`
144
144
  ${Q}
145
- `,qe=r(I)`
145
+ `,qe=r(S)`
146
146
  display: flex;
147
147
  justify-content: center;
148
148
  align-items: center;
149
149
  margin-right: ${t.sp3};
150
150
  ${Q}
151
- background-color:${v.brandColorGold};
151
+ background-color:${b.brandColorGold};
152
152
  `,Ee=r(ne)`
153
153
  color: ${e=>e.theme.colors.brandColorOnyx};
154
154
  `,Ye=r(se)`
@@ -158,7 +158,7 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
158
158
  path {
159
159
  stroke-width: 2px;
160
160
  }
161
- `,Ge=(e,n)=>{const{common:i}=F.getLocalizedStrings();switch(e){case"keepInterest":case"noHiddenFees":return o.jsx(o.Fragment,{children:n.map((a,s)=>o.jsx(Ze,{className:"card-highlight-text-stack",direction:a.direction,stepCount:a.stepCount,children:a.values.map((p,h)=>o.jsx(k,{className:"card-highlight-text",children:p},`${p}_${h}`))},`${a.direction}_${s}`))});case"protectCash":return o.jsxs(o.Fragment,{children:[o.jsxs(He,{children:[o.jsx(Me,{}),o.jsx(Be,{})]}),o.jsx(_e,{}),o.jsxs(Le,{children:[o.jsxs(Ne,{children:[o.jsx(Oe,{}),o.jsxs(E,{isZeniProgressBar:!1,children:[n[0].values[0]," ",i.texts.insured]})]}),o.jsxs(Ue,{children:[o.jsx(Fe,{children:n[0].values[1]}),o.jsx(E,{isZeniProgressBar:!0,style:{marginTop:"6px"},children:i.texts.insured})]})]})]});case"freeWire":return o.jsxs(ee,{style:{gap:t.sp2},children:[o.jsxs(k,{style:{position:"relative"},children:[n[0].values[0],o.jsx(Xe,{})]}),o.jsx(k,{children:o.jsx(Y,{children:o.jsx(Ye,{})})}),o.jsx(k,{children:o.jsx(Y,{style:{animationDelay:"1.5s"},children:n[0].values[1]})})]});case"expertSupport":return o.jsxs(We,{children:[o.jsx(I,{style:{animationDelay:"0.2s"},children:o.jsx(L,{src:je})}),o.jsx(I,{style:{animationDelay:"0.4s",zIndex:1},children:o.jsx(L,{src:Ae})}),o.jsx(I,{style:{animationDelay:"0.6s",zIndex:2},children:o.jsx(L,{src:we})}),o.jsx(qe,{style:{animationDelay:"0.8s",zIndex:3},children:o.jsxs(Ee,{children:[" ",n[0].values[0]]})})]})}};let G;function Ve({zeniAccountsPromoCardContent:e,showConfetti:n}){const[i]=xe("Confetti"),a=J(),[s,p]=U.useState(!1);U.useEffect(()=>(n&&(G=setTimeout(()=>{p(!0)},2e3)),()=>{clearTimeout(G),p(!1)}),[n]);const{prefix:h,header:d,headerAnimationData:u,showAnimation:f,key:g}=e;return o.jsxs(ze,{children:[n&&s&&i!=null?o.jsx(fe,{loop:!1,play:!0,onComplete:()=>{p(!1)},segments:[100,299],animationData:i,style:{position:"absolute",top:`-${t.sp8}`,left:t.sp0},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,o.jsxs(Ie,{children:[d!=null?o.jsx(Te,{children:d}):null,o.jsx(ee,{children:f?Ge(g,u):null})]}),o.jsx(Se,{themeContext:a,children:h})]})}const Je=r(he)`
161
+ `,Ge=(e,n)=>{const{common:i}=F.getLocalizedStrings();switch(e){case"keepInterest":case"noHiddenFees":return o.jsx(o.Fragment,{children:n.map((a,s)=>o.jsx(Ze,{className:"card-highlight-text-stack",direction:a.direction,stepCount:a.stepCount,children:a.values.map((p,h)=>o.jsx(k,{className:"card-highlight-text",children:p},`${p}_${h}`))},`${a.direction}_${s}`))});case"protectCash":return o.jsxs(o.Fragment,{children:[o.jsxs(He,{children:[o.jsx(Me,{}),o.jsx(Be,{})]}),o.jsx(_e,{}),o.jsxs(Le,{children:[o.jsxs(Ne,{children:[o.jsx(Oe,{}),o.jsxs(E,{isZeniProgressBar:!1,children:[n[0].values[0]," ",i.texts.insured]})]}),o.jsxs(Ue,{children:[o.jsx(Fe,{children:n[0].values[1]}),o.jsx(E,{isZeniProgressBar:!0,style:{marginTop:"6px"},children:i.texts.insured})]})]})]});case"freeWire":return o.jsxs(ee,{style:{gap:t.sp2},children:[o.jsxs(k,{style:{position:"relative"},children:[n[0].values[0],o.jsx(Xe,{})]}),o.jsx(k,{children:o.jsx(Y,{children:o.jsx(Ye,{})})}),o.jsx(k,{children:o.jsx(Y,{style:{animationDelay:"1.5s"},children:n[0].values[1]})})]});case"expertSupport":return o.jsxs(We,{children:[o.jsx(S,{style:{animationDelay:"0.2s"},children:o.jsx(L,{src:je})}),o.jsx(S,{style:{animationDelay:"0.4s",zIndex:1},children:o.jsx(L,{src:Ae})}),o.jsx(S,{style:{animationDelay:"0.6s",zIndex:2},children:o.jsx(L,{src:we})}),o.jsx(qe,{style:{animationDelay:"0.8s",zIndex:3},children:o.jsxs(Ee,{children:[" ",n[0].values[0]]})})]})}};let G;function Ve({zeniAccountsPromoCardContent:e,showConfetti:n}){const[i]=xe("Confetti"),a=J(),[s,p]=U.useState(!1);U.useEffect(()=>(n&&(G=setTimeout(()=>{p(!0)},2e3)),()=>{clearTimeout(G),p(!1)}),[n]);const{prefix:h,header:d,headerAnimationData:u,showAnimation:f,key:g}=e;return o.jsxs(ze,{children:[n&&s&&i!=null?o.jsx(fe,{loop:!1,play:!0,onComplete:()=>{p(!1)},segments:[100,299],animationData:i,style:{position:"absolute",top:`-${t.sp8}`,left:t.sp0},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,o.jsxs(Se,{children:[d!=null?o.jsx(Te,{children:d}):null,o.jsx(ee,{children:f?Ge(g,u):null})]}),o.jsx(Ie,{themeContext:a,children:h})]})}const Je=r(he)`
162
162
  flex-wrap: wrap;
163
163
  overflow: hidden;
164
164
  & .styledNav {
@@ -204,4 +204,4 @@ import{F,V as o,o as t,aV as z,p as v,ap as ne,b as ae,bs as ie,bt as se,bu as c
204
204
  bottom: 6px;
205
205
  `,ro=r(V)`
206
206
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonColor};
207
- `,P=F.getLocalizedStrings().zeniAccountsPromoCard;function no({analytics:e,cardPosition:n,card:i,data:a,activeCardIndex:s,isZeniAccountsSetUp:p,handleLearnMoreClick:h,handleCardNavigation:d}){const u=J(),f=ue(),[g,x]=S.useState(0),[y,C]=S.useState(0),[B,j]=S.useState("left"),A=(l,$)=>{l.stopPropagation(),j($);const re=$=="left"?s+1:s-1;e.trackZeniAccountsPromoCardClick(n,$==="left"?"Next":"Back"),d(w(re),$)},M=l=>{d(w(l),"left")};function m(l){x(l.targetTouches[0].clientX)}function oe(l){C(l.targetTouches[0].clientX)}function w(l){return l<0?a.length+l:l%a.length}function te(){g-y>50&&y!==0?(d(w(s+1),"left"),j("left"),x(0),C(0)):g-y<-50&&y!==0&&(d(w(s-1),"right"),j("right"),x(0),C(0))}const H=a.length>1,Z=be(f.loggedInUserRoleMap);return o.jsx(Je,{"data-testid":_("dashboard",i.cardType),style:{cursor:"default"},dimension:i.dimension,onTouchStart:l=>H?m(l):null,onTouchMove:l=>H?oe(l):null,onTouchEnd:()=>H?te():null,children:o.jsxs(Re,{children:[o.jsx(N,{children:o.jsx(q,{"data-testid":_("dashboard-navigation-arrow-left",i.cardType),isSpendManagementPromoCard:!0,navType:"left",handleClick:A,promoColor:u.colors.zeniAccountsPromoButtonColor,promoBorderColor:u.colors.zeniAccountsPromoButtonColor})}),o.jsxs(N,{style:{height:"100%",position:"relative",alignItems:"center"},children:[o.jsx(eo,{children:o.jsx(oo,{children:P.title})}),a.map((l,$)=>o.jsx(me,{activeCardIndex:s,currentIndex:$,which:B,children:o.jsx(Ve,{zeniAccountsPromoCardContent:l,showConfetti:s===2})},l.key)),o.jsx(Ke,{onClick:()=>h(Z?p?"Move Money":"Sign Up for Free":"Learn More"),children:o.jsx(Qe,{children:Z?p?P.button:P.signUp:P.learnMore})}),o.jsx(ve,{spendManagementPromoCardActive:!0,numberOfDots:a.length,activeIndex:s,handleClick:M,promoColor:u.colors.zeniAccountsPromoButtonColor,promoColorHover:u.colors.zeniAccountsPromoNavigationDotHoverColor,style:{cursor:"default",position:"absolute",bottom:t.sp5}}),s===0?o.jsx(to,{children:o.jsx(ro,{children:a[0].footer})}):null]}),o.jsx(N,{children:o.jsx(q,{"data-testid":_("dashboard-navigation-arrow-right",i.cardType),isSpendManagementPromoCard:!0,navType:"right",handleClick:A,promoColor:u.colors.zeniAccountsPromoButtonColor,promoBorderColor:u.colors.zeniAccountsPromoButtonColor})})]})})}const{zeniAccountsPromoCard:c,common:b}=F.getLocalizedStrings(),D={key:"keepInterest",title:c.title,prefix:c.keepInterest.prefixDashboard,header:c.keepInterest.header,headerAnimationData:[],footer:c.keepInterest.footer,showAnimation:!0},O={key:"protectCash",title:c.title,prefix:c.protectCash.prefix,headerAnimationData:[],showAnimation:!0},ao=[{key:"noHiddenFees",title:c.title,prefix:c.noHiddenFees.prefix,headerAnimationData:[{direction:"down",stepCount:6,values:c.noHiddenFees.headerAnimationData}],showAnimation:!0},{key:"freeWire",title:c.title,prefix:c.freeWire.prefix,headerAnimationData:[{direction:"right",stepCount:1,values:c.freeWire.headerAnimationData}],showAnimation:!0},{key:"expertSupport",title:c.title,prefix:c.expertSupport.prefix,header:c.expertSupport.header,headerAnimationData:[{direction:"left",stepCount:1,values:c.expertSupport.headerAnimationData}],showAnimation:!0}];function io({card:e,data:n,analytics:i,actions:a,isZeniAccountsEnabled:s,columnKey:p,index:h,dndProps:d}){const[u,f]=U.useState(0),g=m=>{f(m)},x=(p+1)*(h+1),y=m=>{i.trackZeniAccountsPromoCardClick(x,m),n.depositAccountId!=null?a.onCardBtnClick?.("zeni_accounts_promo_card",n.depositAccountId):a.onCardBtnClick?.("zeni_accounts_promo_card")},{maxInsuredAmount:C,maxPossibleInterest:B,maxAnnualPercentageYield:j,maxCashBalanceAvailable:A=0}=n;D.headerAnimationData=so(B??25e4),D.prefix=c.keepInterest.prefixDashboard.replace(/<amount>/,z("0,0",A,b.currency.currencySymbol).toUpperCase()),D.footer=c.keepInterest.footer.replace(/<interest>/,j.toString()),O.headerAnimationData=[{direction:"right",stepCount:1,values:[...c.protectCash.headerAnimationData,z(W(C),C,b.currency.currencySymbol).toUpperCase()]}],O.prefix=c.protectCash.prefix.replace(/<amount>/,z(W(C),C,b.currency.currencySymbol).toUpperCase());const M=[D,O,...ao];return o.jsx(pe,{isDragging:d?.draggedCardType!=null,isDragOver:d?.dragOverCard===e.cardType,draggable:!0,onDragStart:m=>d?.onDragStart(e.cardType,m),onDragOver:m=>d?.onDragOver(m,e.cardType),onDragLeave:m=>d?.onDragLeave(m),onDrop:m=>d?.onDrop(m,e.cardType),dimension:e.dimension,children:o.jsx($e,{card:e,actions:{onCardClick:()=>{},onReloadData:()=>{}},children:o.jsx(no,{card:e,data:M,handleCardNavigation:g,activeCardIndex:u,handleLearnMoreClick:y,isZeniAccountsSetUp:s&&n.depositAccountId!=null,analytics:i,cardPosition:x})})},e.cardIndex)}S.memo(io);function so(e){const n=[],i=z("0,0",Math.floor(e),b.currency.currencySymbol);for(let a=0;a<i.length;a++){const s=i[a],p={direction:"up",stepCount:0,values:[s]};if(s===b.currency.currencySymbol||s===b.strings.comma)n.push(p);else{const h=parseInt(i[a]),d=a===1&&h<=1?1:Math.floor(h/2),u=a%2===0?"down":"up",f=h-d,g=[];for(let x=0;x<=f;x++){const y=d+x;g.push(y.toString())}u==="down"&&g.reverse(),n.push({direction:u,stepCount:f,values:g})}}return n}export{Ge as G,io as a,so as c};
207
+ `,P=F.getLocalizedStrings().zeniAccountsPromoCard;function no({analytics:e,cardPosition:n,card:i,data:a,activeCardIndex:s,isZeniAccountsSetUp:p,handleLearnMoreClick:h,handleCardNavigation:d}){const u=J(),f=ue(),[g,x]=I.useState(0),[y,C]=I.useState(0),[B,j]=I.useState("left"),A=(l,$)=>{l.stopPropagation(),j($);const re=$=="left"?s+1:s-1;e.trackZeniAccountsPromoCardClick(n,$==="left"?"Next":"Back"),d(w(re),$)},M=l=>{d(w(l),"left")};function m(l){x(l.targetTouches[0].clientX)}function oe(l){C(l.targetTouches[0].clientX)}function w(l){return l<0?a.length+l:l%a.length}function te(){g-y>50&&y!==0?(d(w(s+1),"left"),j("left"),x(0),C(0)):g-y<-50&&y!==0&&(d(w(s-1),"right"),j("right"),x(0),C(0))}const H=a.length>1,Z=ve(f.loggedInUserRoleMap);return o.jsx(Je,{"data-testid":_("dashboard",i.cardType),style:{cursor:"default"},dimension:i.dimension,onTouchStart:l=>H?m(l):null,onTouchMove:l=>H?oe(l):null,onTouchEnd:()=>H?te():null,children:o.jsxs(Re,{children:[o.jsx(N,{children:o.jsx(q,{"data-testid":_("dashboard-navigation-arrow-left",i.cardType),isSpendManagementPromoCard:!0,navType:"left",handleClick:A,promoColor:u.colors.zeniAccountsPromoButtonColor,promoBorderColor:u.colors.zeniAccountsPromoButtonColor})}),o.jsxs(N,{style:{height:"100%",position:"relative",alignItems:"center"},children:[o.jsx(eo,{children:o.jsx(oo,{children:P.title})}),a.map((l,$)=>o.jsx(me,{activeCardIndex:s,currentIndex:$,which:B,children:o.jsx(Ve,{zeniAccountsPromoCardContent:l,showConfetti:s===2})},l.key)),o.jsx(Ke,{onClick:()=>h(Z?p?"Move Money":"Sign Up for Free":"Learn More"),children:o.jsx(Qe,{children:Z?p?P.button:P.signUp:P.learnMore})}),o.jsx(be,{spendManagementPromoCardActive:!0,numberOfDots:a.length,activeIndex:s,handleClick:M,promoColor:u.colors.zeniAccountsPromoButtonColor,promoColorHover:u.colors.zeniAccountsPromoNavigationDotHoverColor,style:{cursor:"default",position:"absolute",bottom:t.sp5}}),s===0?o.jsx(to,{children:o.jsx(ro,{children:a[0].footer})}):null]}),o.jsx(N,{children:o.jsx(q,{"data-testid":_("dashboard-navigation-arrow-right",i.cardType),isSpendManagementPromoCard:!0,navType:"right",handleClick:A,promoColor:u.colors.zeniAccountsPromoButtonColor,promoBorderColor:u.colors.zeniAccountsPromoButtonColor})})]})})}const{zeniAccountsPromoCard:c,common:v}=F.getLocalizedStrings(),D={key:"keepInterest",title:c.title,prefix:c.keepInterest.prefixDashboard,header:c.keepInterest.header,headerAnimationData:[],footer:c.keepInterest.footer,showAnimation:!0},O={key:"protectCash",title:c.title,prefix:c.protectCash.prefix,headerAnimationData:[],showAnimation:!0},ao=[{key:"noHiddenFees",title:c.title,prefix:c.noHiddenFees.prefix,headerAnimationData:[{direction:"down",stepCount:6,values:c.noHiddenFees.headerAnimationData}],showAnimation:!0},{key:"freeWire",title:c.title,prefix:c.freeWire.prefix,headerAnimationData:[{direction:"right",stepCount:1,values:c.freeWire.headerAnimationData}],showAnimation:!0},{key:"expertSupport",title:c.title,prefix:c.expertSupport.prefix,header:c.expertSupport.header,headerAnimationData:[{direction:"left",stepCount:1,values:c.expertSupport.headerAnimationData}],showAnimation:!0}];function io({card:e,data:n,analytics:i,actions:a,isZeniAccountsEnabled:s,columnKey:p,index:h,dndProps:d}){const[u,f]=U.useState(0),g=m=>{f(m)},x=(p+1)*(h+1),y=m=>{i.trackZeniAccountsPromoCardClick(x,m),n.depositAccountId!=null?a.onCardBtnClick?.("zeni_accounts_promo_card",n.depositAccountId):a.onCardBtnClick?.("zeni_accounts_promo_card")},{maxInsuredAmount:C,maxPossibleInterest:B,maxAnnualPercentageYield:j,maxCashBalanceAvailable:A=0}=n;D.headerAnimationData=so(B??25e4),D.prefix=c.keepInterest.prefixDashboard.replace(/<amount>/,z("0,0",A,v.currency.currencySymbol).toUpperCase()),D.footer=c.keepInterest.footer.replace(/<interest>/,j.toString()),O.headerAnimationData=[{direction:"right",stepCount:1,values:[...c.protectCash.headerAnimationData,z(W(C),C,v.currency.currencySymbol).toUpperCase()]}],O.prefix=c.protectCash.prefix.replace(/<amount>/,z(W(C),C,v.currency.currencySymbol).toUpperCase());const M=[D,O,...ao];return o.jsx(pe,{isDragging:d?.draggedCardType!=null,isDragOver:d?.dragOverCard===e.cardType,draggable:!0,onDragStart:m=>d?.onDragStart(e.cardType,m),onDragOver:m=>d?.onDragOver(m,e.cardType),onDragLeave:m=>d?.onDragLeave(m),onDrop:m=>d?.onDrop(m,e.cardType),dimension:e.dimension,children:o.jsx($e,{card:e,actions:{onCardClick:()=>{},onReloadData:()=>{}},children:o.jsx(no,{card:e,data:M,handleCardNavigation:g,activeCardIndex:u,handleLearnMoreClick:y,isZeniAccountsSetUp:s&&n.depositAccountId!=null,analytics:i,cardPosition:x})})},e.cardIndex)}I.memo(io);function so(e){const n=[],i=z("0,0",Math.floor(e),v.currency.currencySymbol);for(let a=0;a<i.length;a++){const s=i[a],p={direction:"up",stepCount:0,values:[s]};if(s===v.currency.currencySymbol||s===v.strings.comma)n.push(p);else{const h=parseInt(i[a]),d=a===1&&h<=1?1:Math.floor(h/2),u=a%2===0?"down":"up",f=h-d,g=[];for(let x=0;x<=f;x++){const y=d+x;g.push(y.toString())}u==="down"&&g.reverse(),n.push({direction:u,stepCount:f,values:g})}}return n}export{Ge as G,io as a,so as c};
@@ -1,4 +1,4 @@
1
- import{d as y,q as S,aN as T,b as d,V as l,jm as w,o as t,y as c,aM as B,F as x,c as n}from"./index-CK2D3iZ1.js";import{a as C}from"./sentry-Dm3bm_ok.js";import{n as I}from"./mui-DCr-y2iU.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="29dfb081-2d2f-461d-9e18-13bcf4c4cf5a",e._sentryDebugIdIdentifier="sentry-dbid-29dfb081-2d2f-461d-9e18-13bcf4c4cf5a")}catch{}})();const m={marginTop:new c(n[0],18),marginBottom:new c(n[0],n[3])},{spendManagement:{chargeCard:{chargeCardsPromo:p}},common:j}=x.getLocalizedStrings(),K=({googleAPIKey:e,customAddress:s,customAddressStatus:o,onDismissClick:r,onSubmitHandler:g})=>{const u=y(),a=S(),i=T(o.fetchState);C.useEffect(()=>{i==="In-Progress"&&o.fetchState==="Completed"&&r()},[o.fetchState,r,i]);const f=a==="small"?d.extraSmallRegular.cssObject:d.standardRegular.cssObject,b=a==="small"?d.standardMedium.cssObject:d.h5Regular.cssObject;return l.jsx(P,{"data-testid":B("add-address-for-card-drawer"),children:l.jsx(w,{googleAPIKey:e,loadingState:o.fetchState,addressToEdit:s,onSubmitHandler:h=>g(h),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:p.addAddress,subTitleMessage:p.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:m.marginTop.valuePx(a),marginBottom:m.marginBottom.valuePx(a),...b},subTitleStyles:{marginTop:t.sp0,marginBottom:t.sp0,...f,color:u.colors.hero},navBarContainerStyles:{alignItems:"center",justifyContent:"space-between",paddingTop:t.sp2,paddingRight:t.sp3},sectionStyles:{paddingTop:t.sp4,paddingBottom:t.sp4},footerButtons:{primaryButtonLabel:j.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},P=I.div`
1
+ import{d as y,q as S,aN as T,b as d,V as l,jm as w,o as t,y as c,aM as B,F as x,c as n}from"./index-BoDHThmj.js";import{a as C}from"./sentry-CAa_RBiQ.js";import{n as I}from"./mui-DjUnBv6N.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./zeni-epic-state-BO46e_7F.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="29dfb081-2d2f-461d-9e18-13bcf4c4cf5a",e._sentryDebugIdIdentifier="sentry-dbid-29dfb081-2d2f-461d-9e18-13bcf4c4cf5a")}catch{}})();const m={marginTop:new c(n[0],18),marginBottom:new c(n[0],n[3])},{spendManagement:{chargeCard:{chargeCardsPromo:p}},common:j}=x.getLocalizedStrings(),K=({googleAPIKey:e,customAddress:s,customAddressStatus:o,onDismissClick:r,onSubmitHandler:g})=>{const u=y(),a=S(),i=T(o.fetchState);C.useEffect(()=>{i==="In-Progress"&&o.fetchState==="Completed"&&r()},[o.fetchState,r,i]);const f=a==="small"?d.extraSmallRegular.cssObject:d.standardRegular.cssObject,b=a==="small"?d.standardMedium.cssObject:d.h5Regular.cssObject;return l.jsx(P,{"data-testid":B("add-address-for-card-drawer"),children:l.jsx(w,{googleAPIKey:e,loadingState:o.fetchState,addressToEdit:s,onSubmitHandler:h=>g(h),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:p.addAddress,subTitleMessage:p.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:m.marginTop.valuePx(a),marginBottom:m.marginBottom.valuePx(a),...b},subTitleStyles:{marginTop:t.sp0,marginBottom:t.sp0,...f,color:u.colors.hero},navBarContainerStyles:{alignItems:"center",justifyContent:"space-between",paddingTop:t.sp2,paddingRight:t.sp3},sectionStyles:{paddingTop:t.sp4,paddingBottom:t.sp4},footerButtons:{primaryButtonLabel:j.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},P=I.div`
2
2
  display: flex;
3
3
  background-color: ${e=>e.theme.colors.grey4};
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{q as L,a7 as le,av as ne,F as N,V as t,bz as de,c as p,j1 as pe,jj as ce,o as i,n as W,aM as A,y as m,a as $,B as b,jk as he,j2 as ge,cf as xe,p as r,jl as me,bv as ue,cS as we,ak as $e,b as be,j6 as fe}from"./index-CK2D3iZ1.js";import{a as g}from"./sentry-Dm3bm_ok.js";import{n as o,c as D}from"./mui-DCr-y2iU.js";import{EF as ye}from"./zeni-epic-state-Cgro3mH-.js";import{t as je,n as ve,i as Se,a as Ce,l as ke,r as Te,A as ze}from"./add-to-wallet-DgdBD8_G-eMWALCp1.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ae79747f-0dfb-420a-98ae-bd8a6c56cf20",e._sentryDebugIdIdentifier="sentry-dbid-ae79747f-0dfb-420a-98ae-bd8a6c56cf20")}catch{}})();const Ie=({options:e,selected:a,onToggle:h,containerStyle:l={},optionStyle:y={},thumbStyle:k={}})=>{const u=e.findIndex(n=>n.id===a),w=100/e.length,j=()=>u===0?{left:"1%"}:u===e.length-1?{left:`${(e.length-1)*w}%`}:{left:`${u*w}%`};return t.jsxs(We,{style:l,children:[t.jsx(Ae,{style:{width:`${w-1}%`,...j(),...k}}),e.map(n=>t.jsx(De,{style:y,active:n.id===a,"data-testid":n.dataTestId,onClick:v=>{v.preventDefault(),h(n.id)},children:n.label},n.id))]})},We=o.div`
1
+ import{q as L,a7 as le,av as ne,F as N,V as t,bz as de,c as p,j1 as pe,jj as ce,o as i,n as W,aM as A,y as m,a as $,B as b,jk as he,j2 as ge,cf as xe,p as r,jl as me,bv as ue,cS as we,ak as $e,b as be,j6 as fe}from"./index-BoDHThmj.js";import{a as g}from"./sentry-CAa_RBiQ.js";import{n as o,c as D}from"./mui-DjUnBv6N.js";import{EF as ye}from"./zeni-epic-state-BO46e_7F.js";import{t as je,n as ve,i as Se,a as Ce,l as ke,r as Te,A as ze}from"./add-to-wallet-DgdBD8_G-C5IoXTpL.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ae79747f-0dfb-420a-98ae-bd8a6c56cf20",e._sentryDebugIdIdentifier="sentry-dbid-ae79747f-0dfb-420a-98ae-bd8a6c56cf20")}catch{}})();const Ie=({options:e,selected:a,onToggle:h,containerStyle:l={},optionStyle:y={},thumbStyle:k={}})=>{const u=e.findIndex(n=>n.id===a),w=100/e.length,j=()=>u===0?{left:"1%"}:u===e.length-1?{left:`${(e.length-1)*w}%`}:{left:`${u*w}%`};return t.jsxs(We,{style:l,children:[t.jsx(Ae,{style:{width:`${w-1}%`,...j(),...k}}),e.map(n=>t.jsx(De,{style:y,active:n.id===a,"data-testid":n.dataTestId,onClick:v=>{v.preventDefault(),h(n.id)},children:n.label},n.id))]})},We=o.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  background: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{d as q,q as O,hX as _e,V as t,hY as De,bL as Ne,hZ as ve,bA as Oe,bz as ke,y as D,a9 as F,g1 as je,F as x,o as N,aQ as Pe,c as m,aK as Q,cc as Be,cd as $e,ce as Ie,ak as Ae,cf as Me,b1 as ne,aA as oe,aS as re}from"./index-CK2D3iZ1.js";import{a as f}from"./sentry-Dm3bm_ok.js";import{n as y}from"./mui-DCr-y2iU.js";import{bh as R,FP as Ye}from"./zeni-epic-state-Cgro3mH-.js";import{n as A}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-C7VtW0AI-Co8wpWo7.js";import{C as ie}from"./NoDataChart-BIcLmdso-V1__FO4W.js";import{I as se,R as $}from"./CollapsableReportTable-l16Ixpgb-BS0sBPj9.js";import{d as le}from"./NoDataTable-C9ywvwy4-CbJRpj1w.js";import{l as ce}from"./mapSpacerToTreeNode-DqR98mLo-CGAj6TpO.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./chartTypes-PZyiFZrr-DoI-jL6q.js";import"./AccountRow-Ba39SxP8-8PYcW3Va.js";import"./graphic-no-data-l-DU4J8fDt-C5a4mTsI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="afebe18a-585b-4277-b1a1-511f7ce0b432",e._sentryDebugIdIdentifier="sentry-dbid-afebe18a-585b-4277-b1a1-511f7ce0b432")}catch{}})();const Fe={chartHeight:new D(288,360)},de=y.div`
1
+ import{d as q,q as O,hX as _e,V as t,hY as De,bL as Ne,hZ as ve,bA as Oe,bz as ke,y as D,a9 as F,g1 as je,F as x,o as N,aQ as Pe,c as m,aK as Q,cc as Be,cd as $e,ce as Ie,ak as Ae,cf as Me,b1 as ne,aA as oe,aS as re}from"./index-BoDHThmj.js";import{a as f}from"./sentry-CAa_RBiQ.js";import{n as y}from"./mui-DjUnBv6N.js";import{bh as R,FP as Ye}from"./zeni-epic-state-BO46e_7F.js";import{n as A}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Le}from"./ArAgingChart-Cn2M7EaL-CioxnnU1.js";import{C as ie}from"./NoDataChart-tkUQHi-b-C5CjlXPt.js";import{I as se,R as $}from"./CollapsableReportTable-CvXUxopt-CWXKqXg0.js";import{d as le}from"./NoDataTable-DHZ1gQeV-DFGtLWam.js";import{l as ce}from"./mapSpacerToTreeNode-CumKhTYV-Dl2RLlwx.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";import"./chartTypes-CMIndIax-BEMOmico.js";import"./AccountRow-XnGMYfcj-CkjY0dM_.js";import"./graphic-no-data-l-DU4J8fDt-DuzN_8KG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="a68895ca-113d-47ea-af69-18307129b745",e._sentryDebugIdIdentifier="sentry-dbid-a68895ca-113d-47ea-af69-18307129b745")}catch{}})();const Fe={chartHeight:new D(288,360)},de=y.div`
2
2
  display: flex;
3
3
  `,ge=y.div`
4
4
  display: flex;
@@ -16,7 +16,7 @@ import{d as q,q as O,hX as _e,V as t,hY as De,bL as Ne,hZ as ve,bA as Oe,bz as k
16
16
  `,he=y.div`
17
17
  width: 100%;
18
18
  height: calc(100vh - ${N.sp11});
19
- `;function We({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ze,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=O(),r=q(),u=!(l==="small"||l==="medium-compact"),p=f.useCallback((d,g)=>{a(d,g)},[a]);return f.useEffect(()=>{const d={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.apAgingUIState.sortKey,sortOrder:e.apAgingUIState.sortOrder,onSortOrderChanged:p,onEntityNameClick:o}};if(n==null||!oe(i,e)){const g=He(e,d,u);s(e),c(g)}else{const g=ue(n,d,e,u);c(g)}},[e,p]),e.agingBalances.length===0?t.jsx(M,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(M,{windowSize:l,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(r.colors.grey4),rootNodes:n,type:"name+balances_actual",isSticky:{isStickyHeader:u,isStickyName:u},treeNodePadding:{left:v.contentPaddingLeft.value(l),right:v.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ze({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=q(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,S)=>{a(g,S)},[a]);return f.useEffect(()=>{const g={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.arAgingUIState.sortKey,sortOrder:e.arAgingUIState.sortOrder,onSortOrderChanged:d,onEntityNameClick:o}};if(c==null||!oe(s,e)){const S=Ue(e,g,p);n(e),l(S)}else{const S=ue(c,g,e,p);l(S)}},[e,d]),e.agingBalances.length===0?t.jsx(M,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(M,{windowSize:r,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(u.colors.grey4),rootNodes:c,type:"name+balances_actual",isSticky:{isStickyHeader:p,isStickyName:p},treeNodePadding:{left:v.contentPaddingLeft.value(r),right:v.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Ve={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Qe=y.div`
19
+ `;function We({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ze,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=O(),r=q(),u=!(l==="small"||l==="medium-compact"),p=f.useCallback((d,g)=>{a(d,g)},[a]);return f.useEffect(()=>{const d={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.apAgingUIState.sortKey,sortOrder:e.apAgingUIState.sortOrder,onSortOrderChanged:p,onEntityNameClick:o}};if(n==null||!oe(i,e)){const g=He(e,d,u);s(e),c(g)}else{const g=ue(n,d,e,u);c(g)}},[e,p]),e.agingBalances.length===0?t.jsx(M,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(M,{windowSize:l,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(r.colors.grey4),rootNodes:n,type:"name+balances_actual",isSticky:{isStickyHeader:u,isStickyName:u},treeNodePadding:{left:v.contentPaddingLeft.value(l),right:v.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ze({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=q(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,b)=>{a(g,b)},[a]);return f.useEffect(()=>{const g={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.arAgingUIState.sortKey,sortOrder:e.arAgingUIState.sortOrder,onSortOrderChanged:d,onEntityNameClick:o}};if(c==null||!oe(s,e)){const b=Ue(e,g,p);n(e),l(b)}else{const b=ue(c,g,e,p);l(b)}},[e,d]),e.agingBalances.length===0?t.jsx(M,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(M,{windowSize:r,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(u.colors.grey4),rootNodes:c,type:"name+balances_actual",isSticky:{isStickyHeader:p,isStickyName:p},treeNodePadding:{left:v.contentPaddingLeft.value(r),right:v.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Ve={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Qe=y.div`
20
20
  display: flex;
21
21
  width: 100%;
22
22
  justify-content: space-between;
@@ -34,7 +34,7 @@ import{d as q,q as O,hX as _e,V as t,hY as De,bL as Ne,hZ as ve,bA as Oe,bz as k
34
34
  width: fit-content;
35
35
  `,te=y(Me)`
36
36
  color: ${e=>e.theme.colors.primary};
37
- `;function Xe({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Ee(e),[e]),i=O();return t.jsxs(Qe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(X,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:Q("0,0",s?.balance)})]},n)}),t.jsxs(X,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:Q("0,0",o?.balance)})]})]})}const K={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:_,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=q(),[o,i]=f.useState(!1),s=O(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:S,onEntityNameClick:fe,updateDownloadStateHandler:Y,onNodeCollapseToggled:ye}=e,{fetchState:k,reportTitle:we,reportId:w}=n,{searchString:j,downloadState:I,sortKey:z,sortOrder:L,selectedDate:b,agingDateSelectionType:H}=c,{authParams:U,downloadEndPoint:W,timezone:J}=l,Z=f.useCallback((h,C)=>{const P=ae(C);u(h,P),r.trackAgingReportDateChange(A(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),V=f.useCallback(h=>{const C=_e({options:B.preComputedDurationOptions.map(({label:E,value:Ce})=>({label:E,value:Ye(Ce)})).filter(({value:E})=>E!=null),selectedDate:h}),P=ae(C);u(h,P),r.trackAgingReportDateChange(A(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),xe=f.useCallback((h,C)=>{S(h,C),r.trackAgingReportSortChange(A(w),C,h)},[r,S,w]),be=f.useCallback(()=>t.jsx(De,{maxDate:R(),selectedDate:{date:b},precomputedOptionsProperties:{preComputedOptionSelected:ct(H),preComputedOptionDateFormat:_.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:Z},onSelectedDateChanged:V}),[b,Z,V,H]);if(f.useEffect(()=>{async function h(){const C={companyName:l.companyName,searchString:j,sortKey:z,sortOrder:L,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:b};await tt(W,U,C),Y("Completed"),r.trackAgingReportDownloadClick(A(w),z,L)}o&&I!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[U,W,l.companyName,I,o,w,j,z,L,Y,b,r,J]),k==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const Se=t.jsxs(t.Fragment,{children:[t.jsx(ve,{isSearchOpen:(j?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:j??"",onSearchTextChanged:h=>{d(h)},downloadPresent:!0}),t.jsx(Oe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:I==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(I==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(ke,{title:we,subTitle:be(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Se,downloadPresent:!0,style:{marginBottom:K.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(F,{controller:k==="In-Progress"||k==="Not-Started",children:t.jsx(je,{fetchState:k})}),t.jsxs(F,{controller:k==="Completed",children:[t.jsx(F,{controller:j.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Xe,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Re,{report:n})]})}),t.jsx(We,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,T.defaultFileName),l=await n.arrayBuffer();Ie(l,c)}else console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
37
+ `;function Xe({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Ee(e),[e]),i=O();return t.jsxs(Qe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(X,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:Q("0,0",s?.balance)})]},n)}),t.jsxs(X,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:Q("0,0",o?.balance)})]})]})}const K={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:_,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=q(),[o,i]=f.useState(!1),s=O(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:b,onEntityNameClick:fe,updateDownloadStateHandler:Y,onNodeCollapseToggled:ye}=e,{fetchState:k,reportTitle:we,reportId:w}=n,{searchString:j,downloadState:I,sortKey:z,sortOrder:L,selectedDate:S,agingDateSelectionType:H}=c,{authParams:U,downloadEndPoint:W,timezone:J}=l,Z=f.useCallback((h,C)=>{const P=ae(C);u(h,P),r.trackAgingReportDateChange(A(w),S!=null?S.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),V=f.useCallback(h=>{const C=_e({options:B.preComputedDurationOptions.map(({label:E,value:Ce})=>({label:E,value:Ye(Ce)})).filter(({value:E})=>E!=null),selectedDate:h}),P=ae(C);u(h,P),r.trackAgingReportDateChange(A(w),S!=null?S.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),xe=f.useCallback((h,C)=>{b(h,C),r.trackAgingReportSortChange(A(w),C,h)},[r,b,w]),Se=f.useCallback(()=>t.jsx(De,{maxDate:R(),selectedDate:{date:S},precomputedOptionsProperties:{preComputedOptionSelected:ct(H),preComputedOptionDateFormat:_.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:Z},onSelectedDateChanged:V}),[S,Z,V,H]);if(f.useEffect(()=>{async function h(){const C={companyName:l.companyName,searchString:j,sortKey:z,sortOrder:L,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:S};await tt(W,U,C),Y("Completed"),r.trackAgingReportDownloadClick(A(w),z,L)}o&&I!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[U,W,l.companyName,I,o,w,j,z,L,Y,S,r,J]),k==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const be=t.jsxs(t.Fragment,{children:[t.jsx(ve,{isSearchOpen:(j?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:j??"",onSearchTextChanged:h=>{d(h)},downloadPresent:!0}),t.jsx(Oe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:I==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(I==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(ke,{title:we,subTitle:Se(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:be,downloadPresent:!0,style:{marginBottom:K.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(F,{controller:k==="In-Progress"||k==="Not-Started",children:t.jsx(je,{fetchState:k})}),t.jsxs(F,{controller:k==="Completed",children:[t.jsx(F,{controller:j.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Xe,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Re,{report:n})]})}),t.jsx(We,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,T.defaultFileName),l=await n.arrayBuffer();Ie(l,c)}else console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
38
38
  display: flex;
39
39
  width: 100%;
40
40
  height: calc(100% - 60px);
@@ -1,4 +1,4 @@
1
- import{cO as Q,eh as Ie,q as _,V as l,aM as P,y as O,o as i,b7 as re,F as B,n as ie,ak as ne,cY as Pe,cf as Ce,c as L,bQ as Se,aG as te,cx as Y,gK as de,fU as R,fR as K,fS as X,fT as ce,fV as pe,aZ as me,gL as Te,p as ue,cV as ge,al as he,cW as Oe,ac as Re}from"./index-CK2D3iZ1.js";import{n as p}from"./mui-DCr-y2iU.js";import{Fv as ze,bg as J}from"./zeni-epic-state-Cgro3mH-.js";import{a as E}from"./sentry-Dm3bm_ok.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-GKSXWTga.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-DYkmOsOP-Dg0kuJ4H.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="28f5fba9-fb13-4d7a-b55a-9859c82268ac",e._sentryDebugIdIdentifier="sentry-dbid-28f5fba9-fb13-4d7a-b55a-9859c82268ac")}catch{}})();const Z=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new O(120,120,160),toolTipWidth:new O(215,237)},g=B.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:w,isBankingOnlyTenant:m,isCardsOnlyTenant:f,isEdit:U,person:x,analytics:v})=>{const y=_(),C=se.largeLabelWidth.value(y),{setValue:S}=Q(),D=te(h),$=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),M=E.useMemo(()=>te(Y.roles),[]),u=J(e.role);return E.useEffect(()=>{(u||m||f)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,f]),l.jsxs(Le,{windowSize:y,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:Z(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(H,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:Z(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:X(m,f)},productsByUserRole:K(e.role,w)},registerOptions:{required:!0}}}),l.jsx(H,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:Z(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(H,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:Z(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||f?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||f)},isDisabled:u||m||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||f?"disabled":void 0,opacity:u||m||f?.32:1}),U?null:l.jsxs(Ue,{windowSize:y,children:[g.invitePage.controllerText,$[0]?l.jsxs(Ne,{href:`mailto:${$[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${$[0].firstName} ${$[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(fe,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:Z(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:M},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>B.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
1
+ import{cO as Q,eh as Ie,q as _,V as l,aM as P,y as O,o as i,b7 as re,F as B,n as ie,ak as ne,cY as Pe,cf as Ce,c as L,bQ as Se,aG as te,cx as Y,gK as de,fU as R,fR as K,fS as X,fT as ce,fV as pe,aZ as me,gL as Te,p as ue,cV as ge,al as he,cW as Oe,ac as Re}from"./index-BoDHThmj.js";import{n as p}from"./mui-DjUnBv6N.js";import{Fv as ze,bg as J}from"./zeni-epic-state-BO46e_7F.js";import{a as E}from"./sentry-CAa_RBiQ.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-CeZEGuNW-DnFoIROQ.js";import{j as fe,C as be}from"./LabeledZeniRolesDropDownField-CDmiz3py-JlLIrijY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="75f34e77-c58a-4376-94e4-a758ff2f1f0c",e._sentryDebugIdIdentifier="sentry-dbid-75f34e77-c58a-4376-94e4-a758ff2f1f0c")}catch{}})();const Z=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new O(120,120,160),toolTipWidth:new O(215,237)},g=B.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:w,isBankingOnlyTenant:m,isCardsOnlyTenant:b,isEdit:U,person:x,analytics:v})=>{const y=_(),C=se.largeLabelWidth.value(y),{setValue:S}=Q(),D=te(h),$=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),M=E.useMemo(()=>te(Y.roles),[]),u=J(e.role);return E.useEffect(()=>{(u||m||b)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,b]),l.jsxs(Le,{windowSize:y,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:Z(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(H,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(fe,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:Z(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:X(m,b)},productsByUserRole:K(e.role,w)},registerOptions:{required:!0}}}),l.jsx(H,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:Z(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(H,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:Z(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||b?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||b)},isDisabled:u||m||b?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||b?"disabled":void 0,opacity:u||m||b?.32:1}),U?null:l.jsxs(Ue,{windowSize:y,children:[g.invitePage.controllerText,$[0]?l.jsxs(Ne,{href:`mailto:${$[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${$[0].firstName} ${$[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(be,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:Z(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:M},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>B.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -43,7 +43,7 @@ import{cO as Q,eh as Ie,q as _,V as l,aM as P,y as O,o as i,b7 as re,F as B,n as
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new O(125,140,160),toolTipWidth:new O(246,250)},c=B.getLocalizedStrings().peoplePage,Fe=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:w,index:m,customerRoleOptions:f,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const y=_(),{getValues:C,formState:{errors:S},setValue:D}=Q(),$=oe.largeLabelWidth.value(y),[N,...M]=w,u=M.map(d=>d.email).join(","),r=E.useMemo(()=>Y.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=J(e.role);return E.useEffect(()=>{(n||x||v)&&D(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&D(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),l.jsxs(Me,{windowSize:y,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:F(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:d=>!_e(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(j=>!j.match(Te)).reduce((j,I)=>j&&I)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ve(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(V,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:c.invitePage.role,width:$},style:{width:"auto"},rolesDropDownField:{name:F(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:X(x,v)},productsByUserRole:K(e.role,f)},registerOptions:{required:!0}}}),l.jsx(V,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:$},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:F(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const j=s.findIndex(I=>I.userId===d);if(j!==-1){const I=s[j],k=h.find(T=>T.classId===I.userRole.accountingClassIDs[0]),b=[];return k!=null&&b.push(k.className),b}else return[]},placeholderLabel:n?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!n},isDisabled:n?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?i.sp8:"74px",boxSizing:"border-box"},isDisabled:n?"disabled":void 0,opacity:n?.32:1}),l.jsx(V,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:$},singleSelectWithoutClearableField:{name:F(t,"department"),defaultValue:{allOptions:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})),selectedOption:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})).find(d=>d.value===e.departmentId)},placeholder:n||x||v?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||v)},isDisabled:n||x||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||v?"disabled":void 0,opacity:n||x||v?.32:1}),l.jsx(V,{}),U?null:l.jsxs(Ze,{windowSize:y,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(Ee,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(fe,{label:{label:c.invitePage.role,width:$},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:F(t,"role"),placeholderLabel:R(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},We=()=>B.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,_e=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Me=p.div`
46
+ `,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new O(125,140,160),toolTipWidth:new O(246,250)},c=B.getLocalizedStrings().peoplePage,Fe=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:w,index:m,customerRoleOptions:b,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const y=_(),{getValues:C,formState:{errors:S},setValue:D}=Q(),$=oe.largeLabelWidth.value(y),[N,...M]=w,u=M.map(d=>d.email).join(","),r=E.useMemo(()=>Y.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=J(e.role);return E.useEffect(()=>{(n||x||v)&&D(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&D(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),l.jsxs(Me,{windowSize:y,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:F(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:d=>!_e(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(j=>!j.match(Te)).reduce((j,I)=>j&&I)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ve(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(V,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(fe,{label:{label:c.invitePage.role,width:$},style:{width:"auto"},rolesDropDownField:{name:F(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:X(x,v)},productsByUserRole:K(e.role,b)},registerOptions:{required:!0}}}),l.jsx(V,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:$},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(y),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:F(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const j=s.findIndex(I=>I.userId===d);if(j!==-1){const I=s[j],k=h.find(T=>T.classId===I.userRole.accountingClassIDs[0]),f=[];return k!=null&&f.push(k.className),f}else return[]},placeholderLabel:n?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!n},isDisabled:n?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?i.sp8:"74px",boxSizing:"border-box"},isDisabled:n?"disabled":void 0,opacity:n?.32:1}),l.jsx(V,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:$},singleSelectWithoutClearableField:{name:F(t,"department"),defaultValue:{allOptions:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})),selectedOption:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})).find(d=>d.value===e.departmentId)},placeholder:n||x||v?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||v)},isDisabled:n||x||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||v?"disabled":void 0,opacity:n||x||v?.32:1}),l.jsx(V,{}),U?null:l.jsxs(Ze,{windowSize:y,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(Ee,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(be,{label:{label:c.invitePage.role,width:$},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:F(t,"role"),placeholderLabel:R(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},We=()=>B.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,_e=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Me=p.div`
47
47
  display: flex;
48
48
  flex-direction: column;
49
49
  background-color: ${e=>e.theme.colors.grey5};
@@ -92,7 +92,7 @@ import{cO as Q,eh as Ie,q as _,V as l,aM as P,y as O,o as i,b7 as re,F as B,n as
92
92
  `,Ve=(e,t,o,a,s)=>{if(Oe(s,t)&&s?.userItems&&s?.userItems[o]?.email)switch(s?.userItems[o]?.email.type){case"required":return c.invitePage.defaultHelpText;case"pattern":return e[o].email.forEach(h=>{if(!Re.test(h))return c.invitePage.defaultHelpText}),a==="zeni_only"?c.invitePage.otherThanZeniMailIDForZeniModeText:c.invitePage.zeniMailIDForNormalModeText;case"duplicate":return c.invitePage.emailAlreadyExist;case"notZeniMail":return c.invitePage.zeniMailIDForNormalModeText;case"validate":return c.invitePage.defaultHelpText;default:return}},Ee=({isInvestorBanker:e,firstController:t,restControllerEmailsStr:o})=>{let a="";const s=t[0];return s?.firstName&&s?.lastName?a=`${s?.firstName} ${s?.lastName}`:s?.firstName?a=s?.firstName:s?.lastName?a=s?.lastName:a=s?.email??"",l.jsxs(Be,{isDisabled:e,href:e?void 0:`mailto:${t[0]?.email}?cc=${o}&subject=${encodeURIComponent(c.invitePage.emailSubject)}`,children:[l.jsx("span",{children:a}),l.jsx(me,{className:"arrowIcon"})]})},qe=e=>l.jsx(Ae,{style:e.style,"data-testid":P("user-item-section"),children:e.isEdit?l.jsx(De,{...e}):l.jsx(Fe,{...e})}),Ae=p.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
- `,W={buttonWidth:new O(70,70),marginBottom:new O(12,L[3]),deleteContentMarginLeft:new O(L[0],L[3]),containerPaddingTop:new O(L[0],L[3]),addUserWrapperGap:new O(L[1],L[2])},Ge=(e,t,o,a,s,h,w)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:Y.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:X(h,w)},productsByUserRole:K([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=B.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:w,isZeniTenant:m,managersList:f,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:y,isCardsOnlyTenant:C,isEdit:S=!1,person:D,analytics:$})=>{const{getValues:N}=Q(),{append:M,remove:u}=Ie({name:h,control:t}),r=_(),n=N().userItems,d=()=>{const b=n.length-1,T=Ge(b+1,f,U,w,v,y,C);setTimeout(()=>M(T,{shouldFocus:!0}))},j=b=>{a(b)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Ke,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((b,T)=>{const je=n.length;let q={};if(w==="zeni_only")q={email:b.email,role:Ye(b.role.selectedOptions,S)??void 0};else{const ee=b.nonZeniRole?.userRole.selectedRole,A=ee!=null?(b.nonZeniRole?.productsByUserRole[ee]??[]).map(G=>ze(G.selectedOption?.value)).filter(G=>G!=null):[],le=A.length>0?J(A):!1;q={email:b.email,role:A,managerId:le?void 0:b.manager?.selectedUser,departmentId:le?void 0:b.department?.selectedOption?.value}}return l.jsxs(Xe,{"data-testid":P("user-item",b.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(He,{curIndex:T,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:k})}):l.jsx(ae,{windowSize:r,children:l.jsx(ye,{children:l.jsx($e,{children:l.jsx(we,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(qe,{isDisabled:e,sectionId:`${h}.${T}`,control:t,user:q,mode:w,isZeniTenant:m,managersList:f,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:y,isCardsOnlyTenant:C,isEdit:S,person:D,analytics:$,index:T}),o===T&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:I,onRemoveUserItem:k})}):null]},T)}):null,S?null:l.jsxs(ol,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(al,{}),l.jsx(rl,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},He=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const w=_();return l.jsxs(ye,{children:[l.jsx($e,{children:l.jsx(we,{windowSize:w,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(Qe,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=_();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Je,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(il,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:W.buttonWidth.value(o),marginRight:i.sp3},size:"small",variant:"secondary"}),l.jsx(ie,{"data-testid":P("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:W.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ye=(e,t)=>t?e:e!=null?[e]:[],Ke=p.div`
95
+ `,W={buttonWidth:new O(70,70),marginBottom:new O(12,L[3]),deleteContentMarginLeft:new O(L[0],L[3]),containerPaddingTop:new O(L[0],L[3]),addUserWrapperGap:new O(L[1],L[2])},Ge=(e,t,o,a,s,h,w)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:Y.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:X(h,w)},productsByUserRole:K([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=B.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:w,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:y,isCardsOnlyTenant:C,isEdit:S=!1,person:D,analytics:$})=>{const{getValues:N}=Q(),{append:M,remove:u}=Ie({name:h,control:t}),r=_(),n=N().userItems,d=()=>{const f=n.length-1,T=Ge(f+1,b,U,w,v,y,C);setTimeout(()=>M(T,{shouldFocus:!0}))},j=f=>{a(f)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Ke,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((f,T)=>{const je=n.length;let q={};if(w==="zeni_only")q={email:f.email,role:Ye(f.role.selectedOptions,S)??void 0};else{const ee=f.nonZeniRole?.userRole.selectedRole,A=ee!=null?(f.nonZeniRole?.productsByUserRole[ee]??[]).map(G=>ze(G.selectedOption?.value)).filter(G=>G!=null):[],le=A.length>0?J(A):!1;q={email:f.email,role:A,managerId:le?void 0:f.manager?.selectedUser,departmentId:le?void 0:f.department?.selectedOption?.value}}return l.jsxs(Xe,{"data-testid":P("user-item",f.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(He,{curIndex:T,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:k})}):l.jsx(ae,{windowSize:r,children:l.jsx(ye,{children:l.jsx($e,{children:l.jsx(we,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(qe,{isDisabled:e,sectionId:`${h}.${T}`,control:t,user:q,mode:w,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:y,isCardsOnlyTenant:C,isEdit:S,person:D,analytics:$,index:T}),o===T&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:I,onRemoveUserItem:k})}):null]},T)}):null,S?null:l.jsxs(ol,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(al,{}),l.jsx(rl,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},He=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const w=_();return l.jsxs(ye,{children:[l.jsx($e,{children:l.jsx(we,{windowSize:w,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(Qe,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=_();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Je,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(il,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:W.buttonWidth.value(o),marginRight:i.sp3},size:"small",variant:"secondary"}),l.jsx(ie,{"data-testid":P("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:W.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ye=(e,t)=>t?e:e!=null?[e]:[],Ke=p.div`
96
96
  display: flex;
97
97
  flex-direction: column;
98
98
  padding-top: ${e=>W.containerPaddingTop.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{d as R,q as B,F as g,V as o,bL as H,g1 as K,bz as q,cj as J,o as L,aQ as U,bA as V,y as M,cc as W,cd as Z,ce as G,c as f}from"./index-CK2D3iZ1.js";import{a as _}from"./sentry-Dm3bm_ok.js";import{n as i}from"./mui-DCr-y2iU.js";import{W as Q,L as X}from"./EntitySummarySection-0nKZeBKn-BkqQH4-k.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f2666984-c5d9-45d0-b22b-b9e71607a930",e._sentryDebugIdIdentifier="sentry-dbid-f2666984-c5d9-45d0-b22b-b9e71607a930")}catch{}})();const S={wrapperContainerMarginTop:new M(f[4],f[0]),wrapperContaineHorizontalrMargin:new M(f[0],f[8])},ee=i.div`
1
+ import{d as R,q as B,F as g,V as o,bL as H,g1 as K,bz as q,cj as J,o as L,aQ as U,bA as V,y as M,cc as W,cd as Z,ce as G,c as u}from"./index-BoDHThmj.js";import{a as _}from"./sentry-CAa_RBiQ.js";import{n as i}from"./mui-DjUnBv6N.js";import{W as Q,L as X}from"./EntitySummarySection-CdjupOWB-Bdi92weZ.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./zeni-epic-state-BO46e_7F.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";import"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="fe9cbff0-eb6e-4d23-807a-9203e7a5af36",e._sentryDebugIdIdentifier="sentry-dbid-fe9cbff0-eb6e-4d23-807a-9203e7a5af36")}catch{}})();const S={wrapperContainerMarginTop:new M(u[4],u[0]),wrapperContaineHorizontalrMargin:new M(u[0],u[8])},ee=i.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -43,4 +43,4 @@ import{d as R,q as B,F as g,V as o,bL as H,g1 as K,bz as q,cj as J,o as L,aQ as
43
43
  margin-left: ${e=>S.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
44
44
  margin-right: ${e=>S.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
45
45
  height: 100%;
46
- `;function _e(e){const s=R(),l=B(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:a,reportDate:t,analytics:d,onReload:w,onBackClick:T,onColumnSortConfigChanged:v,updateDownloadStateHandler:x,onTransactionClick:N}=e,{authParams:C,downloadEndPoint:k,timezone:z}=a,{fetchState:m,invoices:I,apAgingDetailUIState:$,vendor:n,totalBalances:E}=r,{sortKey:D,sortOrder:b,downloadState:y}=$,[j,P]=_.useState(!1),A=g.getLocalizedStrings(),F=A.reports.aging.agingDetail,Y=_.useCallback((c,u)=>{r.vendor!=null&&d.trackApAgingDetailReportSortChange(c,u,t.format(A.dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name),v(c,u)},[d,r.vendor,t,v]);if(_.useEffect(()=>{async function c(){const u={companyName:a.companyName,sortKey:D,sortOrder:b,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:n?.id??"",timezone:z,reportDate:t};await se(k,C,u),x("Completed"),r.vendor!=null&&d.trackApAgingDetailReportDownload(D,b,t.format(g.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name)}j&&y!=="In-Progress"&&(P(!1),x("In-Progress"),c())},[d,r.vendor,C,k,a.companyName,y,j,t,D,b,z,x,n?.id]),m==="Error")return o.jsxs(oe,{children:[o.jsx(te,{onClick:w,children:o.jsx(H,{})}),o.jsx(re,{children:p.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(K,{fetchState:m});const O=o.jsx(V,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:y==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(y==="In-Progress"){console.log("Download is already in progress!");return}else P(!0)}}}});return o.jsxs(ae,{children:[o.jsx(q,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:T,rightSideComponent:O,source:"ApAgingDetailPage"}),o.jsx(Q,{totalBalances:E,entityName:n?.name??"",entityLogo:n?.logo,reportId:"accounts_payable_aging",reportDate:t}),o.jsx(ne,{windowSize:l,children:o.jsx(ie,{windowSize:l,children:I.length===0||n==null?o.jsx(J,{message:F.noDataText}):o.jsx(ee,{windowSize:l,children:o.jsx(X,{uiState:$,invoices:I,entityName:n.name,entityLogo:n.logo,onColumnSortConfigChanged:Y,onTransactionClick:N})})})})]})}async function se(e,s,l){const h=`${e}?query=${encodeURIComponent(JSON.stringify(le(l)))}`,p=g.getLocalizedStrings(),r=p.reports.aging.apAging.apAging,a=p.download;try{const t=await W({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=Z(t.headers,a.defaultFileName),w=await t.arrayBuffer();G(w,d)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${t.statusText}`)}catch(t){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${JSON.stringify(t)}`)}}function le(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:g.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{_e as default,le as toDownloadAgingDetailedReportOptionsPayload};
46
+ `;function _e(e){const s=R(),l=B(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:a,reportDate:t,analytics:d,onReload:w,onBackClick:T,onColumnSortConfigChanged:v,updateDownloadStateHandler:x,onTransactionClick:N}=e,{authParams:C,downloadEndPoint:k,timezone:z}=a,{fetchState:m,invoices:I,apAgingDetailUIState:$,vendor:n,totalBalances:E}=r,{sortKey:D,sortOrder:b,downloadState:f}=$,[j,P]=_.useState(!1),A=g.getLocalizedStrings(),F=A.reports.aging.agingDetail,Y=_.useCallback((c,y)=>{r.vendor!=null&&d.trackApAgingDetailReportSortChange(c,y,t.format(A.dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name),v(c,y)},[d,r.vendor,t,v]);if(_.useEffect(()=>{async function c(){const y={companyName:a.companyName,sortKey:D,sortOrder:b,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:n?.id??"",timezone:z,reportDate:t};await se(k,C,y),x("Completed"),r.vendor!=null&&d.trackApAgingDetailReportDownload(D,b,t.format(g.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name)}j&&f!=="In-Progress"&&(P(!1),x("In-Progress"),c())},[d,r.vendor,C,k,a.companyName,f,j,t,D,b,z,x,n?.id]),m==="Error")return o.jsxs(oe,{children:[o.jsx(te,{onClick:w,children:o.jsx(H,{})}),o.jsx(re,{children:p.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(K,{fetchState:m});const O=o.jsx(V,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:f==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(f==="In-Progress"){console.log("Download is already in progress!");return}else P(!0)}}}});return o.jsxs(ae,{children:[o.jsx(q,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:T,rightSideComponent:O,source:"ApAgingDetailPage"}),o.jsx(Q,{totalBalances:E,entityName:n?.name??"",entityLogo:n?.logo,reportId:"accounts_payable_aging",reportDate:t}),o.jsx(ne,{windowSize:l,children:o.jsx(ie,{windowSize:l,children:I.length===0||n==null?o.jsx(J,{message:F.noDataText}):o.jsx(ee,{windowSize:l,children:o.jsx(X,{uiState:$,invoices:I,entityName:n.name,entityLogo:n.logo,onColumnSortConfigChanged:Y,onTransactionClick:N})})})})]})}async function se(e,s,l){const h=`${e}?query=${encodeURIComponent(JSON.stringify(le(l)))}`,p=g.getLocalizedStrings(),r=p.reports.aging.apAging.apAging,a=p.download;try{const t=await W({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=Z(t.headers,a.defaultFileName),w=await t.arrayBuffer();G(w,d)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${t.statusText}`)}catch(t){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${JSON.stringify(t)}`)}}function le(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:g.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{_e as default,le as toDownloadAgingDetailedReportOptionsPayload};
@@ -1,4 +1,4 @@
1
- import{V as t,q as m,L as f,o as r,y as p,p as a,aQ as x,F as g,bn as u,cT as $,dK as b,cS as w}from"./index-CK2D3iZ1.js";import{n as i,k as y}from"./mui-DCr-y2iU.js";import{a as j}from"./sentry-Dm3bm_ok.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e4fb301e-560f-4b87-b338-7facfec58d72",e._sentryDebugIdIdentifier="sentry-dbid-e4fb301e-560f-4b87-b338-7facfec58d72")}catch{}})();const l={maxWidth:new p(280,322),contentMaxWidth:new p(200,250)},k=y`
1
+ import{V as t,q as m,L as f,o as r,y as p,p as a,aQ as x,F as g,bn as u,cT as $,dK as b,cS as w}from"./index-BoDHThmj.js";import{n as i,k as y}from"./mui-DjUnBv6N.js";import{a as j}from"./sentry-CAa_RBiQ.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./zeni-epic-state-BO46e_7F.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e4fb301e-560f-4b87-b338-7facfec58d72",e._sentryDebugIdIdentifier="sentry-dbid-e4fb301e-560f-4b87-b338-7facfec58d72")}catch{}})();const l={maxWidth:new p(280,322),contentMaxWidth:new p(200,250)},k=y`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -1,4 +1,4 @@
1
- import{av as te,R as ae,t as k,bh as se,V as n,bi as oe,bj as le,bk as re,bl as de,a9 as ce,bm as ue,o as t,bn as pe,aW as b,b3 as f}from"./index-CK2D3iZ1.js";import{a as o,S as be}from"./sentry-Dm3bm_ok.js";import{n as l}from"./mui-DCr-y2iU.js";import{bk as fe}from"./zeni-epic-state-Cgro3mH-.js";import{v as me}from"./DashboardSidebarBackgroundAnimation--y1-phUW-DGEiib0J.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4f1384aa-1318-4600-900e-89fee59e53b2",e._sentryDebugIdIdentifier="sentry-dbid-4f1384aa-1318-4600-900e-89fee59e53b2")}catch{}})();const he=o.memo(function({animationEnabled:e=!1}){const[i,s]=b("DashboardSidebarBottomNewYear",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(ge,{children:n.jsx(f,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ge=l.div`
1
+ import{av as te,R as ae,t as k,bh as se,V as n,bi as oe,bj as le,bk as re,bl as de,a9 as ce,bm as ue,o as t,bn as pe,aW as b,b3 as f}from"./index-BoDHThmj.js";import{a as o,w as be}from"./sentry-CAa_RBiQ.js";import{n as l}from"./mui-DjUnBv6N.js";import{bk as fe}from"./zeni-epic-state-BO46e_7F.js";import{v as me}from"./DashboardSidebarBackgroundAnimation-Aepv0x8n-BRMC8BKu.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="b61b4314-78a1-4513-9d4d-c7f99fef24a5",e._sentryDebugIdIdentifier="sentry-dbid-b61b4314-78a1-4513-9d4d-c7f99fef24a5")}catch{}})();const he=o.memo(function({animationEnabled:e=!1}){const[i,s]=b("DashboardSidebarBottomNewYear",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(ge,{children:n.jsx(f,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ge=l.div`
2
2
  position: absolute;
3
3
  z-index: 0;
4
4
  bottom: -${t.sp3};
@@ -1,4 +1,4 @@
1
- import{d as F,q as U,av as V,F as p,aS as x,V as t,bz as E,m as G,fp as b,dC as S,y as d,o as k,al as J,b as j,c as o}from"./index-CK2D3iZ1.js";import{n as l}from"./mui-DCr-y2iU.js";import{Fs as N,Ft as q}from"./zeni-epic-state-Cgro3mH-.js";import"./sentry-Dm3bm_ok.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d5479375-29f9-42be-9141-189934579520",e._sentryDebugIdIdentifier="sentry-dbid-d5479375-29f9-42be-9141-189934579520")}catch{}})();const n={sectionRowGap:new d(o[4],o[8],o[8]),lastSectionPaddingBottom:new d(o[7],o[10],o[10]),iconWidthHeight:new d(20,o[4]),subtitleSectionWidth:new d(343,580,1200)},ue=({billpayApprovalView:e,remiApproverView:a,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:I,onSetupApprovalRulesRemiSectionClick:z})=>{const r=F(),i=U(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:T}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:C}=a,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:L}=B,{reimbursementSetup:W}=M,{setUp:s}=A,_=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",v=r.mode==="light"?new x(r.colors.brandColorJadeLight):new x(r.colors.brandColorJadeDark),D=N(c,u.loggedInUserRoleMap),H=q(c,u.loggedInUserRoleMap);return t.jsxs(Q,{children:[t.jsx(E,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:P}),t.jsx(X,{windowSize:i,children:_?t.jsx(Y,{children:t.jsx(G,{size:"ExtraLarge",start:!0})}):t.jsxs(O,{children:[t.jsx(K,{windowSize:i,children:t.jsx(ee,{windowSize:i,children:w.infoText.approvalRules})}),t.jsxs(Z,{windowSize:i,children:[D===!0&&t.jsx(b,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:L.approvalSubTitle,header:y.bills,icon:{element:t.jsx(S,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:v},onClick:I,status:m.length>0?T:void 0}),H===!0&&t.jsx(b,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:W.approvalSubTitle,header:y.reimbursements,icon:{element:t.jsx(S,{height:n.iconWidthHeight.valuePx(i)}),color:v},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:z,status:f.length>0?C:void 0})]})]})})]})},O=l.div`
1
+ import{d as F,q as U,av as V,F as p,aS as x,V as t,bz as E,m as G,fp as b,dC as S,y as d,o as k,al as J,b as j,c as o}from"./index-BoDHThmj.js";import{n as l}from"./mui-DjUnBv6N.js";import{Fs as N,Ft as q}from"./zeni-epic-state-BO46e_7F.js";import"./sentry-CAa_RBiQ.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d5479375-29f9-42be-9141-189934579520",e._sentryDebugIdIdentifier="sentry-dbid-d5479375-29f9-42be-9141-189934579520")}catch{}})();const n={sectionRowGap:new d(o[4],o[8],o[8]),lastSectionPaddingBottom:new d(o[7],o[10],o[10]),iconWidthHeight:new d(20,o[4]),subtitleSectionWidth:new d(343,580,1200)},ue=({billpayApprovalView:e,remiApproverView:a,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:I,onSetupApprovalRulesRemiSectionClick:z})=>{const r=F(),i=U(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:T}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:C}=a,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:L}=B,{reimbursementSetup:W}=M,{setUp:s}=A,_=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",v=r.mode==="light"?new x(r.colors.brandColorJadeLight):new x(r.colors.brandColorJadeDark),D=N(c,u.loggedInUserRoleMap),H=q(c,u.loggedInUserRoleMap);return t.jsxs(Q,{children:[t.jsx(E,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:P}),t.jsx(X,{windowSize:i,children:_?t.jsx(Y,{children:t.jsx(G,{size:"ExtraLarge",start:!0})}):t.jsxs(O,{children:[t.jsx(K,{windowSize:i,children:t.jsx(ee,{windowSize:i,children:w.infoText.approvalRules})}),t.jsxs(Z,{windowSize:i,children:[D===!0&&t.jsx(b,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:L.approvalSubTitle,header:y.bills,icon:{element:t.jsx(S,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:v},onClick:I,status:m.length>0?T:void 0}),H===!0&&t.jsx(b,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:W.approvalSubTitle,header:y.reimbursements,icon:{element:t.jsx(S,{height:n.iconWidthHeight.valuePx(i)}),color:v},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:z,status:f.length>0?C:void 0})]})]})})]})},O=l.div`
2
2
  width: 100%;
3
3
  margin: auto;
4
4
  display: flex;