@zeniai/web-cockpit-ui 1.14.12-prod → 1.14.13-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 (250) hide show
  1. package/dist/assets/ACHDetailsPage-DVi_fb5U-BWoXmLUY.js +21 -0
  2. package/dist/assets/{AIPerformancePage-C459GJxs-DDVbkYhC.js → AIPerformancePage-C-orwzaK-DOCKSZSl.js} +44 -44
  3. package/dist/assets/{AccountInfoPage-DWqJj9l6-Cbq_B2Gd.js → AccountInfoPage-DvhQOLM6-C0wQ6YRZ.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-Ca328DM4-BoBBm2eT.js → AccountInfoPageContent-B1BJnQNd-Dywp_u_s.js} +18 -18
  5. package/dist/assets/{AccountReconDetailsDrawerPage-BqIo4mya-8jnme6Tg.js → AccountReconDetailsDrawerPage-C8EtTwZE-BoEh8Ely.js} +13 -13
  6. package/dist/assets/{AccountRow-Bk3xWobY-B9GPlHQB.js → AccountRow-m3N4T8ro-CB7I5u10.js} +27 -27
  7. package/dist/assets/{AccountsPromoCardStack-Co90dxxm-DJwvfgg4.js → AccountsPromoCardStack-DGHAcZ7D-BqYytjsB.js} +28 -28
  8. package/dist/assets/{AddAddressForCardDrawer-XNGsKMvs-CVOvZj44.js → AddAddressForCardDrawer-B_1jj1h7-Cu6_XTQ0.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-BiQWQXvz-Dja3V_rU.js → AddToWalletPage-DL1Bk4bd-ClBCUS3g.js} +21 -21
  10. package/dist/assets/{AgingReportsPage-ClR6ctjm-Cfdqgqs-.js → AgingReportsPage-DQ4P7iSR-BaDY7W1-.js} +8 -8
  11. package/dist/assets/{AllUserItems-RFWkNfw--CjDEoogo.js → AllUserItems-BSWk_1pR-BC2mjTTt.js} +13 -13
  12. package/dist/assets/{ApAgingDetailPage-F-pd4-We-DEfvotPI.js → ApAgingDetailPage-0i8K1czh-BtF7tRtB.js} +2 -2
  13. package/dist/assets/{AppBasePage-B9-FGKn--hgna65ij.js → AppBasePage-CV3kU-Ax-HUIuRSgH.js} +7 -7
  14. package/dist/assets/{AppDrawerContent-C6P8rk3y-Da2OtBCB.js → AppDrawerContent-DA8q-1_m-Ip7rRN25.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-CPNEEGTF-C0zXmi9a.js → ApprovalRulesSettingsPage-CRlqbhea-CnWEhcBd.js} +7 -7
  16. package/dist/assets/{ArAgingChart-D9qmMVoC-C7_7BRFM.js → ArAgingChart-CiJNNObG-DOT8YGoK.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-DMuZM6P_-ClopoFOj.js → ArAgingDetailPage-2I9R_J97-CEWBavmC.js} +1 -1
  18. package/dist/assets/{AttachmentView-B2ZOED0q-ee9lrIw2.js → AttachmentView-D0naVbDk-BMIJVqWj.js} +7 -7
  19. package/dist/assets/{BankAccountSection-C8G4yj75-DdOLLfNd.js → BankAccountSection-CYYTnOEW-ta40gqBk.js} +6 -6
  20. package/dist/assets/BankAccountWarningSection--b6oxmO3-bf21H1-K.js +51 -0
  21. package/dist/assets/{BankConnectionsSettingsPage-B5IQ5w6f-DMsLVdXW.js → BankConnectionsSettingsPage-BzwCu93j-CCEpUgq7.js} +49 -49
  22. package/dist/assets/{BillDetailPage-B-PMkZ44-bIK6xUHc.js → BillDetailPage-OzI0RkQ_-Bav1HJG-.js} +16 -16
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-CdLKENJ--RLdpGq9U.js → BillPayApprovalRuleDetailPage-DIQW7KY9-C0xmBCct.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-BueljBn0-Bf7hfEuS.js → BillPayApprovalRulesPage-BMmJ4cuT-CLahxDlm.js} +9 -9
  25. package/dist/assets/{BillPayPromoPage-WXntEliq-D_QROeBX.js → BillPayPromoPage-CN5LKQzn-T_t_dz_s.js} +8 -8
  26. package/dist/assets/{BillPaySetUpPage-By7rYetf-CeRSgDq5.js → BillPaySetUpPage-DMKmupPw-CmltaH2A.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-D-XtlyVU-Cx-l00Il.js → BillingSettingsPage-Bt_0mrqR-CgkXOlNp.js} +8 -8
  28. package/dist/assets/{BillsBulkReviewDrawerPage-P8siJ8lO-DdRAIHzS.js → BillsBulkReviewDrawerPage-GFME_IXw-CmxfCt6F.js} +1 -1
  29. package/dist/assets/{BoxItem-Bcy7IYuZ-BKqgXMbg.js → BoxItem-nvtPdCwS-CiJFmSMj.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-_E3jrLwS-D28zK5AA.js +140 -0
  31. package/dist/assets/{CardNumberSubText-VsMOF0Xv-BXhxDioS.js → CardNumberSubText-DBpF1pjJ-BDHubHrk.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DNbRs50r-DGmDyCg3.js → CashbackDetailPage-DrdbDPXK-BHacfWCb.js} +30 -30
  33. package/dist/assets/{ChargeCardDetailPage-BSDS8Kqb-U4i4-RaN.js → ChargeCardDetailPage-DvY3CSB4-DTju6vUj.js} +54 -54
  34. package/dist/assets/{ChargeCardListPage-Bzr8qMC0-IbAzxN57.js → ChargeCardListPage-BE5yGbg8-B5XQaFqy.js} +14 -14
  35. package/dist/assets/{ChargeCardListTable-CTp6TFBR-CeVbldJj.js → ChargeCardListTable-B-scLCAt-DWKxrdfC.js} +37 -37
  36. package/dist/assets/ChargeCardPromoPage-2OheDHbA-BAFEqKdK.js +222 -0
  37. package/dist/assets/{ChargeCardSetupPage-B1wzJjgH-BBhf5rqO.js → ChargeCardSetupPage-FNCK1n4W-DRpaATuu.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-CePfbLPp-iDyGSKYa.js → ChargeCardStatementsPage-1fuIth_h-DUYP62lN.js} +9 -9
  39. package/dist/assets/{ChargeCardUtils-DC2v2EHU-CC66ls3Y.js → ChargeCardUtils-CErWBcYS-DYGG4Kg0.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-B-Sx71yo-Thk2BACZ.js → ChaseOverlay-9_ms5LgM-DLbFcFUT.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-DEFEMwuI-FYtd8ETj.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-mEqm05fp-CUcsGi4N.js → CollapsableReportTable-DX-FpwE7-MJq_0H8T.js} +59 -59
  43. package/dist/assets/CompanyOfficerDetailsSection-BEgNqg-b-BZkAjfXP.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-Ct6tCZqT-5nR77uHb.js → CompanyPassportCard-BZXE3iJL-D0vVN1yd.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-D9NQ4bXl-CsJ1uZgg.js → CompanyPassportPage-BYZC3G4H-Dyir7GPA.js} +22 -22
  46. package/dist/assets/CompleteProfile-mCKLQjGe-D37b51yU.js +52 -0
  47. package/dist/assets/{ConfettiBurst-DqSwVGBC-BVzEX0ox.js → ConfettiBurst-BEoFHjQ0-BZkigu9v.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-D27A1926-Bj04MSDS.js → CreateOrEditVendorPage-6sohsdle-DulmpRQu.js} +11 -11
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BI37dSwx-BipcUtpo.js → CreditCardPaymentDrawerPage-6oVDS3D8-BG57VbJ5.js} +21 -21
  50. package/dist/assets/{CreditCardPaymentPlgSection-CAsn4Ae6-KEtkArBz.js → CreditCardPaymentPlgSection-DX1BieKp-CaB1ZnNz.js} +11 -12
  51. package/dist/assets/{CurrencySelectField-5uG4FfJ9-8SqcpktO.js → CurrencySelectField-F2P1iCLk-DqZUsNYq.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-Be-GrAiK-B75Mje9v.js → CustomerOnboardingActivationPage-CNJkyjta-BXFLHGd8.js} +8 -8
  53. package/dist/assets/CustomerOnboardingContainerPage-D6yeERaX-CnXYVWPD.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DhGp71bj-hz8cq6ev.js → CustomerOnboardingDetailPageSkeleton-B_MgUg-5-Bgdn7kSU.js} +12 -12
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CdOGTNXC-C9i5EKaE.js → CustomerOnboardingNoStepsPage-B49-4wZk-KyTxoYIy.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-ClPsywa3-CeQwicZf.js → CustomerOnboardingPage-4FPXG220-Bhtz8R34.js} +7 -7
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-pnHglqXq-8KyJVU1M.js → CustomerOnboardingProductSuitePage-cJPPvh-5-CdfdHVAA.js} +9 -9
  58. package/dist/assets/{Dashboard-avtbjFLf-BsfTTLt8.js → Dashboard-BBy_mQ8p-zBP8Z7QF.js} +260 -242
  59. package/dist/assets/{DashboardReportPage-CqJAu5WP-CSiSRP9H.js → DashboardReportPage-DYttySr4-ICoa42Db.js} +6 -6
  60. package/dist/assets/{DepositAccTransactionItem-Da0GWYei-DaDMj8eg.js → DepositAccTransactionItem-PNTL0e8v-Bf5t1weD.js} +6 -6
  61. package/dist/assets/DepositAccTransactionListPage-DUwVnkwy-91dKQsy5.js +66 -0
  62. package/dist/assets/{DomesticWireDetailsPage-DGcVKriv-CAGyxOGA.js → DomesticWireDetailsPage-BhwTfZwI-lG3b6Dqd.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-BdGiqnp7-DStgGthq.js → DownloadOverlay-CUbv29mo-Cm7YvHGd.js} +21 -21
  64. package/dist/assets/{DrawerPage-DCfm1BVs-BjLjeoWD.js → DrawerPage-2_QOgQ1m-jFj08QrD.js} +11 -11
  65. package/dist/assets/EditPeoplePage-CtTYiqg3-C_rRpXUg.js +55 -0
  66. package/dist/assets/{EditReimbursementDetailPage-C-nYgUua-C1qTcfcR.js → EditReimbursementDetailPage-C_jRh7w0-BjxLHuhj.js} +61 -61
  67. package/dist/assets/{EntityDetailPage-4HX_rHUf-xDLdueS9.js → EntityDetailPage-BhQsnCgQ-BJqshBB_.js} +3 -3
  68. package/dist/assets/{EntitySummarySection-C9VeOBpT-BTsQfMwI.js → EntitySummarySection-CKkXzM76-JNV3nj4B.js} +12 -12
  69. package/dist/assets/{ExpenseAutomationOverviewPage-8jTkscWa-bIf05Fhx.js → ExpenseAutomationOverviewPage-ZuB3Aiv2-g-beRD6J.js} +26 -26
  70. package/dist/assets/{ExpenseAutomationPage-D1wcc9GW-BZm22R7G.js → ExpenseAutomationPage-BUic8zfk-CY9AnIj2.js} +41 -41
  71. package/dist/assets/{ExpressPayPage-Cj6cvMwQ-BJmICkVH.js → ExpressPayPage-DEkJ_H0W-D2MJYEqV.js} +12 -12
  72. package/dist/assets/FeaturePreviewPage-CtK7L5vk-zb1RibOL.js +11 -0
  73. package/dist/assets/{FollowStepsSection-DjfnVH8N-B5jFIUn7.js → FollowStepsSection-CWw764ZM-BMjBkJvU.js} +9 -9
  74. package/dist/assets/{GlobalReviewListPage-CEOzc0We-D9YAcarq.js → GlobalReviewListPage-CZctHM7r-C-SmU9tc.js} +12 -12
  75. package/dist/assets/{HelpButton-BdhMFvtG-C54ST6PE.js → HelpButton-Dpx0Yoel-1C4sAmaf.js} +4 -4
  76. package/dist/assets/{InformationCardStack-DFOumIBr-gjF_ZQhk.js → InformationCardStack-BGpHl4yb-D2VMsFIF.js} +5 -5
  77. package/dist/assets/InsightsCardStack-BbMJEahw-XjHe58kA.js +79 -0
  78. package/dist/assets/InsightsSection-CYkuQHcj-B18a-FIC.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-DF-jcHzr-WMJTJEtS.js → IntegrationsSettingsPage-CMjSCRm_-C9xmqHS7.js} +8 -8
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BFMqW1oQ-CdCE1RD1.js → InternationalWireSwiftDetailsPage-BTbTUt8U-DHwEWLr_.js} +15 -15
  81. package/dist/assets/{InternationalWireVerificationPage-Cq7swzrt-C0L5yCuY.js → InternationalWireVerificationPage-DAW2eMTg-BGhWwB2B.js} +22 -22
  82. package/dist/assets/{InviteFormPage-DXl2sEn9-B2Ez35Mj.js → InviteFormPage-CCbyacPR-DUt2JWiG.js} +20 -20
  83. package/dist/assets/{InvitePageListView-B5fRPcOg-CjFdA4G8.js → InvitePageListView-mHkALr5o-BpwevZSI.js} +62 -62
  84. package/dist/assets/InvitePeoplePage-r6PLBiEv-CRU1obhZ.js +12 -0
  85. package/dist/assets/{InvoiceUploadSection-opkVsXZH-CXWs7XL1.js → InvoiceUploadSection-BsjeicP1-CxRipy2m.js} +41 -41
  86. package/dist/assets/{IssueChargeCardPage-CZU1qbHO-BdEtPimR.js → IssueChargeCardPage-C3esnkQg-Bt2ncw32.js} +33 -33
  87. package/dist/assets/{LabeledAddressValue-CCd3y8zQ-BJNbO-Fn.js → LabeledAddressValue-CeeoKoY4-C81fNRY2.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-XuFlx-oK-BMP_E_ys.js → LabeledAddressValueField-B6eeRCSM-BGM6iGCs.js} +3 -3
  89. package/dist/assets/{LabeledControlledCheckBoxField-CCQn4-_S-C2xp_EVs.js → LabeledControlledCheckBoxField-CK8YBqJ7-dH7h4-c9.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-uQKngCdt-DJ4lsiO3.js → LabeledCreatableSingleSelectField-BSKL8pA3-y22U9yzT.js} +6 -6
  91. package/dist/assets/LabeledDocumentField-BEyArLK3-Bbt820GM.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BrUNxsKy-B8W5l8Iz.js → LabeledDropDownFormattedTextField-DikXPnxD-3H5194hi.js} +7 -7
  93. package/dist/assets/{LabeledText-ByqI7uq0-BqhwXzjW.js → LabeledText-qSjyNZO1-BMO1teu9.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg1Lpwl0-D5r53n-D.js → LabeledUserSingleSelectWithSubtitlesField-x87S_Azj-BPP3i4wb.js} +16 -16
  95. package/dist/assets/{LabeledZeniRolesDropDownField-DZL4GZtE-Bl91YXKB.js → LabeledZeniRolesDropDownField-nm5bG2up-B-C-v8v9.js} +17 -17
  96. package/dist/assets/{LinkJETransactionPage-CJlBllrr-RkOKGfby.js → LinkJETransactionPage-p7wdZbtp-BamvjpR7.js} +13 -13
  97. package/dist/assets/{LowBalancePopup-BEvuAR0Z-D9Mm46kU.js → LowBalancePopup-DHk6xd2B-V5eEOh0a.js} +7 -7
  98. package/dist/assets/{MagicLinkACHDetailsPage-DloX1GWg-BSJJfYX3.js → MagicLinkACHDetailsPage-DRQ8oej8-B79oZw1R.js} +1 -1
  99. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DewjvM4v-CjyLi2R0.js → MagicLinkDomesticWireDetailsPage-BxXU9Opg-BdNHmjDj.js} +1 -1
  100. package/dist/assets/{MagicLinkInternationalWireDetailsPage-CVhazlxQ-CdUPSdVq.js → MagicLinkInternationalWireDetailsPage-DYN1baIc-DT4ZdIcR.js} +1 -1
  101. package/dist/assets/MagicLinkSuccessPage-CX3bJ5_B-Bgn3-P2S.js +31 -0
  102. package/dist/assets/{MagicLinkTitleSection-d1edBt3w-BuhlKpVM.js → MagicLinkTitleSection-K2cZQVzq-CIEidPVy.js} +4 -4
  103. package/dist/assets/MailingDetailsSection--zHyCquq-Cn3SWfKt.js +21 -0
  104. package/dist/assets/{MeetingCalenderPopup-MtSyJ1AS-BwRcYCw3.js → MeetingCalenderPopup-DbFlQ8Km-9ZxBnjo6.js} +1 -1
  105. package/dist/assets/{Menu-BV79l8xf-CT05aLZH.js → Menu-LLL9taEz-CtH4c9eF.js} +2 -2
  106. package/dist/assets/{MyBankConnectionsSettingsPage-D-xDtURG-a5WJJsgd.js → MyBankConnectionsSettingsPage-BfDsHVZw-aWZVlaCb.js} +15 -15
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-VEhml0PW-C7lDm9On.js → MyPendingActivationChargeCardListPage-vag56A65-DvFj3aDV.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-DPJ0fJdQ-BVaOzJZE.js → MyProfileSettingsPage-DCKqWh-p-Ca4URKq-.js} +8 -8
  109. package/dist/assets/NavBarWithPicker-Cvi89wZV-3CVqu6ha.js +30 -0
  110. package/dist/assets/{NavigationArrow-BwXNdvOg-Bw7XRwN0.js → NavigationArrow-CHmddDC--CUC3t4BZ.js} +2 -2
  111. package/dist/assets/NavigationDots-1wpj484Z-By9SVfKB.js +15 -0
  112. package/dist/assets/{NewGlobalMerchantPage-IeE86L-X-C4OUiP9X.js → NewGlobalMerchantPage-B0FywA12-BRuJ6OhE.js} +13 -13
  113. package/dist/assets/{NoDataChart-C9yfE8vY-D5FBma0Z.js → NoDataChart-D43mhDJW-B9CXfEvp.js} +1 -1
  114. package/dist/assets/{NoDataTable-DF9QNT4a-DSZJ4vGD.js → NoDataTable-BOfUxs9D-8iqVCaVk.js} +1 -1
  115. package/dist/assets/{NotFoundPage-DSaizJve-BAhgScCF.js → NotFoundPage-DFioH5Rt-BQR0ORs3.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-DeAeFHmj-CaUz1tWX.js → NotificationSettingsPage-y4g1rAal-BJEuhBam.js} +13 -13
  117. package/dist/assets/{NotificationsListConfig-DuzDckh--BqtRxON_.js → NotificationsListConfig-sybPesiv-FmaZBisq.js} +1 -1
  118. package/dist/assets/{NotificationsPage-B7ZC7ezP-DEJagd6q.js → NotificationsPage-C88YOjuY-Ds4zz6jH.js} +31 -32
  119. package/dist/assets/{OpExByVendorPage-DzODetHf-DB9TWTaj.js → OpExByVendorPage-qBWbJhv9-Cs148Yzz.js} +7 -7
  120. package/dist/assets/{OverlayContainerPage-GWXnlbZH-CXhqDEmM.js → OverlayContainerPage-Dres4Grh-BoM1wcb9.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-FEi5USqF-Cvmw-ezu.js → PandLWithForecastPage-uiaHrci6-ClUgwvyo.js} +8 -8
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BbL4x5pQ-CQ4mDWcj.js → PaymentAccountSetupBillingAddressSection-BepDUdA0-DvE7tkJU.js} +11 -11
  123. package/dist/assets/{PeoplePage-B35T31YZ-DghEF7WY.js → PeoplePage-oF6C1uyM-DLFAgG_p.js} +20 -20
  124. package/dist/assets/{PortfolioAllocationFormPage-D3FP_MRr-DOEDYQct.js → PortfolioAllocationFormPage-C5O3GLqz-BYzrfMTu.js} +4 -4
  125. package/dist/assets/{PortfolioDetails-Dtz3YEPu-BMRrMf3q.js → PortfolioDetails-BkGNpmoO-B3KzDtEL.js} +31 -31
  126. package/dist/assets/{ProductsCarousel-DIlEuuqg-DrIeQsxl.js → ProductsCarousel-C_tmo4EA-BDn6T3LG.js} +6 -6
  127. package/dist/assets/{PromoBaseCards-DTsaas8S-CPDQ_Ck-.js → PromoBaseCards-Bq5-q2ew-oeM6E2Gs.js} +5 -5
  128. package/dist/assets/{QBOConnectionDialog-Cvt38cmU-p0xTPV2f.js → QBOConnectionDialog-BXNWjeYB-CT3y8ZPP.js} +9 -9
  129. package/dist/assets/QBOSetupSection-D3sIWrh1-Dt8ceji3.js +79 -0
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-ClgCUbVP-DfTW4OAe.js +26 -0
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BG8uMxNw-D1uyrGH4.js → ReimbursementApprovalRulesPage-hjja5JFq-1dF9j3jn.js} +8 -8
  132. package/dist/assets/{ReimbursementDetailPage-Cs7XeZrC-OHz7BSRY.js → ReimbursementDetailPage-sXYC_aoR-CngyEl5D.js} +19 -19
  133. package/dist/assets/{ReimbursementPromoPage-CKITZNUc-79ijnfiq.js → ReimbursementPromoPage-C9zs7VRV-DY_b0K3o.js} +24 -24
  134. package/dist/assets/{ReimbursementSetUpPage-DD5P181p-CxWIYZnN.js → ReimbursementSetUpPage-Ban56LOC-Cen4aYhY.js} +11 -11
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0eORL7o-iqE8m4Np.js → ReimbursementsBulkReviewDrawerPage-CsRwI-rl-KeeGuW4E.js} +1 -1
  136. package/dist/assets/{ReloadCard-CZ4IXHy1-Dtuzk5Rl.js → ReloadCard-EBXtqdt5-e0DLVF2o.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-Do0yQJxY-BXH3sbob.js → ReportTableViewSelector-Ae5lGopA-CZicNwDg.js} +10 -10
  138. package/dist/assets/{ReportsPage-BUi475EG-CQaz0teT.js → ReportsPage-Dh3DhbEK-DCmUMwXx.js} +5 -5
  139. package/dist/assets/{RevenueChart-DPNqxQ4n-mVhaMXTb.js → RevenueChart-C5qfXMEg-D1BQhist.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-DTCC2C0D-C6Ojy72F.js → ReviewDetailsPage-DjcJd2VM-CMmXdVTb.js} +17 -17
  141. package/dist/assets/{ReviewOverlay-CPN-RHG--BufZJNs3.js → ReviewOverlay-Dmrea9EK-DOxs4FI1.js} +14 -14
  142. package/dist/assets/RoleWithToolTip-CqeM8Bh0-BSEMOUZO.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BSz5BdJ4-BcAVniZz.js → ScheduleDetailsFixedAssetsPage-CQGRrdSx-BKHIJc5L.js} +8 -8
  144. package/dist/assets/{ScheduleDetailsPage-DKVlaW9e-ChemaS_v.js → ScheduleDetailsPage-D5OBZ80r-BSViQYwc.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-BhpHoReF-DVT0PeVe.js → ScheduleSequenceTable-fgV8zz4I-B96Fw2cP.js} +49 -49
  146. package/dist/assets/{ScreenRoutes-CUNOProC.js → ScreenRoutes-Bs8GRIgm.js} +62 -62
  147. package/dist/assets/{SetUpAccountSection-Blh-Vipv-Ec9w8zf3.js → SetUpAccountSection-4-gtB3I4-CmDUZ7Ps.js} +24 -24
  148. package/dist/assets/{SetUpDefaultSection-DsyZbNsv-BcyPPYMa.js → SetUpDefaultSection-DSslQOgJ-y5lEHYNN.js} +12 -12
  149. package/dist/assets/{SignIn-DehOoUba-_IFKRKFV.js → SignIn-CgXxIawW-DSrGSPuV.js} +17 -17
  150. package/dist/assets/{SignInScreen-BXQkh3gn.js → SignInScreen-DSt7uixJ.js} +1 -1
  151. package/dist/assets/{SpendManagementListViewPage-C23fDDXZ-e5NI-MjJ.js → SpendManagementListViewPage-SkhzkIYZ-CI28gjhv.js} +11 -11
  152. package/dist/assets/{SpendManagementPerTabPage-Cx0sB3qO-C92A_6wt.js → SpendManagementPerTabPage-CofY1YYQ-C9YpxBTZ.js} +55 -55
  153. package/dist/assets/{SpendManagementSection-DbZYpbtO-DTrbPW3G.js → SpendManagementSection-DbC93chQ-CmYHf5ne.js} +13 -13
  154. package/dist/assets/{SpendMgmtSetupAccountSection-BkUIdz9m-ClfpmeIa.js → SpendMgmtSetupAccountSection-_8G7bMAw-CYWZUz0n.js} +22 -22
  155. package/dist/assets/{StatementItem-BF8L0fc_-DkDCxyQq.js → StatementItem-7ezfuDl--CcU7F4Hj.js} +5 -5
  156. package/dist/assets/{StatementsPage-96e3ZbSU-BP5FaF_u.js → StatementsPage-C4ziRzkU-Cl2Heiw2.js} +6 -6
  157. package/dist/assets/{StatusSwitcher-jwpQ49F7-BGzqIV7p.js → StatusSwitcher-0rVfFE-a-CheRZPfP.js} +7 -7
  158. package/dist/assets/{SubTabSwitcher-B8H6McwL-CAGUZLqm.js → SubTabSwitcher-aoWbkCmT-CaMIdf8x.js} +1 -1
  159. package/dist/assets/{SummaryCard-Bv4ja9yJ-BQ3Vm3Ml.js → SummaryCard-6V1G-Yln-AkNgJPj0.js} +1 -1
  160. package/dist/assets/{TaskManagementPage-D7tD4WRl-D829_k0m.js → TaskManagementPage-DjQma5Cr-DLhPVic-.js} +18 -18
  161. package/dist/assets/{TimeRangeSwitcher-Cr-ObvZ9-BpkXiM1i.js → TimeRangeSwitcher-DeIRg5zY-Bi--_Fx4.js} +5 -5
  162. package/dist/assets/{TimeframeSwitcher-YkFxZedG-C9WakH79.js → TimeframeSwitcher-Cop4G4gx-DupejW9U.js} +5 -5
  163. package/dist/assets/TimeframeSwitcherWithToggle-BhoniKOB-DuZjqpvb.js +31 -0
  164. package/dist/assets/{TopExCard-DtrsuLFD-rsSVK-ay.js → TopExCard-BKirBv7q-BKzGhACE.js} +6 -6
  165. package/dist/assets/{TopExDetailPage-HMRdJt_a-Cuky-W3B.js → TopExDetailPage-DcVunE8d-BJAugcNm.js} +11 -11
  166. package/dist/assets/{TransactionDetailPage-CkWEdpTW-BX9Cs2dn.js → TransactionDetailPage-TJf3D0K6-ChXVy1nH.js} +26 -26
  167. package/dist/assets/{TransactionList-8rOZr8BD-DZQflEIq.js → TransactionList-fn6VXYIJ-XKKmCfLI.js} +4 -4
  168. package/dist/assets/{TransactionListBig-DGx1qy2c-WusOBIcK.js → TransactionListBig-B_hNDFjS-Bc3M6sby.js} +25 -25
  169. package/dist/assets/{TransactionListPage-CnbufCaM-Crj6dxSk.js → TransactionListPage-BbXZWbie-DmTuImVR.js} +6 -6
  170. package/dist/assets/{TransactionVendorDetailPage-UpZX_EgR-Mzs4hwfT.js → TransactionVendorDetailPage-C6qJ5ncL-DRKEGbRL.js} +6 -6
  171. package/dist/assets/TransferDrawerPage-BtYoqKi--BK8jkNir.js +362 -0
  172. package/dist/assets/{TreasuryOverviewPage-DoPe6v4O-dHNFdpx5.js → TreasuryOverviewPage-DOV8Hanc-BzuaF_Oy.js} +53 -53
  173. package/dist/assets/{TreasuryPromoPage-Db20FO_G-DajsAZcT.js → TreasuryPromoPage-C9O7G72q-D0fVcP3x.js} +30 -29
  174. package/dist/assets/TreasurySetupPage-CNzkkEjw-Dh78QFWy.js +146 -0
  175. package/dist/assets/{TreasuryStatementsPage-BONCF7O1-C2wksa5Y.js → TreasuryStatementsPage-Ts6D6F-l-CQAmEMl1.js} +5 -5
  176. package/dist/assets/{TreasuryTaxLetterPage-NCZ0Y4yr-8hmlID6w.js → TreasuryTaxLetterPage-CM93_rS4-CfzYhIka.js} +5 -5
  177. package/dist/assets/TreasuryTransferOrReviewPage-C8-tbCUQ-DHGOUHuT.js +506 -0
  178. package/dist/assets/{TrendChart-DQXhBbqy-u2beI5NW.js → TrendChart-BXjPAYgk-DjYRl65V.js} +5 -5
  179. package/dist/assets/{TrendWithTransactions-Du-a-c_9-Um_fvL6F.js → TrendWithTransactions-BlGX9aVa-DUrKUprM.js} +8 -8
  180. package/dist/assets/{UncategorizedAccountsMappingPage-mSPC4LpU-DSNIKC_z.js → UncategorizedAccountsMappingPage--PnxDLIj-DgyLI8TV.js} +12 -12
  181. package/dist/assets/{UnitIntegrationPage-B5O9G4QH-y6cPvP8r.js → UnitIntegrationPage-D5mzaVVL-B87wl-C8.js} +4 -4
  182. package/dist/assets/{UploadAdditionalDocumentOverlay-CnjzAGYo-CBf_BQlS.js → UploadAdditionalDocumentOverlay-BXS2l5kF-4XXbIdgY.js} +1 -1
  183. package/dist/assets/{Vendor2FAPopup-CYcCB8tr-CtNb2at2.js → Vendor2FAPopup-jXN-6kcB-WQjywdob.js} +1 -1
  184. package/dist/assets/{VendorACHDetailsPage-C6EuQBcH-DtIAcatA.js → VendorACHDetailsPage-CHfX_7tk-CseZDy3t.js} +1 -1
  185. package/dist/assets/{VendorDetailPage-CnSXWVCg-BL1omixq.js → VendorDetailPage-CZuQaTCe-00z-DC1U.js} +13 -13
  186. package/dist/assets/{VendorDomesticWireDetailsPage-CVTkzHFB-BOarRjTv.js → VendorDomesticWireDetailsPage-dBmyAkGL-BzziQHyn.js} +1 -1
  187. package/dist/assets/{VendorFiling1099EditablePage-TJb9mpk0-qwt68m34.js → VendorFiling1099EditablePage-C6KWbHaM-FdVjec5X.js} +7 -7
  188. package/dist/assets/{VendorFirstReviewPage-gBLVMddY-3lz9ZyKl.js → VendorFirstReviewPage-DLaCXLH8-Bp3HVWXV.js} +30 -30
  189. package/dist/assets/{VendorInternationalWireDetailsPage-Bhm7j6HC-C_fJSHjY.js → VendorInternationalWireDetailsPage-DgCH9Rad-DD-YZWBN.js} +10 -10
  190. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-MgN7VFET-JLytJhuc.js → VendorInternationalWireSwiftDetailsPage-CprymE3v-BXc-3kQm.js} +1 -1
  191. package/dist/assets/{VendorsAccountsSection-Cn-8Yemv-QU3Ugu9k.js → VendorsAccountsSection-CpkfwFDJ-DeHCyl4j.js} +15 -15
  192. package/dist/assets/VerifyDevice-CSIkEBig-DzQ9uYAN.js +67 -0
  193. package/dist/assets/{WarningsDrawerPage-Cc_Rty0A-CiWJTjUM.js → WarningsDrawerPage-DeqbJ2Le-CygSrVz8.js} +12 -12
  194. package/dist/assets/{ZeniAccountDetailPage-BU2TTiDP-Caxfo2QU.js → ZeniAccountDetailPage-kwKoeRAb-yy2D4Oyh.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-DbcnkYvX-ai9PY1nW.js → ZeniAccountListViewPage-15LxhIiI-3EkZXZhB.js} +19 -19
  196. package/dist/assets/ZeniAccountNavBarPieces-C0pq95hS-D_BEJJwy.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-D-5ArrRO-yroK6L0e.js → ZeniAccountPromoPage-DvlAb5YA-BxPQZ-TN.js} +33 -33
  198. package/dist/assets/{ZeniAccountSetupPage-DXYR0Ipo-69zJLoPG.js → ZeniAccountSetupPage-BjpvTfF5-DJqm4qSs.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-DPd1ifIT-CsDQSNsH.js → ZeniCopyright-BYJFIZ_X-DJl-W8Ni.js} +1 -1
  200. package/dist/assets/ZeniTransferAmountSlider-Did4Chpj-CHnHwXGw.js +63 -0
  201. package/dist/assets/{analyticsHelper-DrNmU0vn-cbtpMVPt.js → analyticsHelper-BRyA7WLX-Ch8yhvbw.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DYztlfoV.js → analyticsHelper-DEjyvXKA.js} +1 -1
  203. package/dist/assets/{chartTypes-YTQv3tre-BaZWty8J.js → chartTypes-CWEoqL4g-Bo1GQ9Y0.js} +1 -1
  204. package/dist/assets/{commonDimensions-BtmBVXgZ-DngS5_m0.js → commonDimensions-UvndzJjv-DkCvzihA.js} +1 -1
  205. package/dist/assets/{detailCommon-hHyz3hj3-CgkqfxsC.js → detailCommon-C3ymS8dg-BusgYXoD.js} +2 -2
  206. package/dist/assets/{downloadPdf-CDvgLzWC-C6NI1uz3.js → downloadPdf-CHwWcCR1-BQYdnkG1.js} +1 -1
  207. package/dist/assets/{index-CVo0uMzO.js → index-DYVNUtTS.js} +4129 -3984
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BfoqmoAq-n6edsobL.js → mapLoadingInProgressToTreeNode-BV9ky97n-C6-bn_qJ.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BjtxR9iQ-qzW1C6Un.js → mapSectionWithAcOnlyToTreeNode-WivyN4Y7-DeEMrm9i.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-D8o529OP-C6pXOMvN.js → mapSpacerToTreeNode-AXNRptLX-B0rl0_Lw.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-BirMnIzY-C4aRbhHq.js → mapTimeframeBalancesToTreeNode-DUac2vK4-jK2oIVF4.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-NA69l84M-PrspUuQP.js → mapTimeframeBalancesToTreeNode-JTl35sFx-B-SNtaen.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BCqRt8GN-Bw8svqkv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DtkeOXnf-Dl0F4JWH.js} +1 -1
  214. package/dist/assets/{play-icon-DyIc5aGx-CIOaxH3w.js → play-icon-HSIOzxQm-DtUz8FwI.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-2jQJLb8S-DW8RIFP8.js → toCOABalancesWithID-CkjYSysY-DF7YtxZI.js} +1 -1
  216. package/dist/assets/{toChartData-Dsjd8dGe-B64jG2hW.js → toChartData-BhKlnyso-CKLUlraQ.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-EG8VpBia-DN3Bvuhd.js → treasuryColorHelper-yIAXBrrM-D_iAl7kS.js} +1 -1
  218. package/dist/assets/{uploadAttachment-CVUM4FN--B0G4nXtQ.js → uploadAttachment-CWaYLqwb-DAXv_gFj.js} +32 -32
  219. package/dist/assets/{uploadReceipts-D80JLNY4-CvtBPjYq.js → uploadReceipts-C6Ld_WLK-CscO-OGr.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ACHDetailsPage-BQBpkHfF-BwEQR3Ry.js +0 -21
  223. package/dist/assets/BankAccountWarningSection-CWXa-X6f-Bo2YdlXb.js +0 -51
  224. package/dist/assets/BusinessVerificationPage-BoSLJbyU-BJPGiqTw.js +0 -140
  225. package/dist/assets/ChargeCardPromoPage-dIg8OIlx-I5SeyfVO.js +0 -219
  226. package/dist/assets/CheckDepositDrawerPage-uABg3PMN-BdzopMYU.js +0 -206
  227. package/dist/assets/CompanyOfficerDetailsSection-BzYsDrr2-uFzN5DGM.js +0 -232
  228. package/dist/assets/CompleteProfile-CN_hAW-2-D9tT8MoO.js +0 -36
  229. package/dist/assets/CustomerOnboardingContainerPage-B9qcJNx5-UVumagoc.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-Db90ITIq-oTkCmI07.js +0 -66
  231. package/dist/assets/DocumentSecurityBanner-Bxg3ctYZ-39503B9W.js +0 -29
  232. package/dist/assets/EditPeoplePage-CBPmCcoG-DAdjecZc.js +0 -55
  233. package/dist/assets/FeaturePreviewPage-BBkfKvIu-CqzyD_TL.js +0 -11
  234. package/dist/assets/InsightsCardStack-rByhzgji-FDbIdVTC.js +0 -79
  235. package/dist/assets/InsightsSection-jnWJ877y-CXGce558.js +0 -27
  236. package/dist/assets/InvitePeoplePage-DvGON1va-BYLNeXQs.js +0 -12
  237. package/dist/assets/LabeledDocumentField-TFmz23mS-CYnZhFdz.js +0 -41
  238. package/dist/assets/MagicLinkSuccessPage-dxBSlbub-CRDPtPi_.js +0 -31
  239. package/dist/assets/MailingDetailsSection-CsK09X11-DZ9sqO1E.js +0 -21
  240. package/dist/assets/NavBarWithPicker-CuJe05iJ-BuKAIj_v.js +0 -30
  241. package/dist/assets/NavigationDots-BQfoX9p0-BmnKz8T-.js +0 -14
  242. package/dist/assets/QBOSetupSection-Dijb03ZX-CFOO-p_z.js +0 -79
  243. package/dist/assets/ReimbursementApprovalRuleDetailPage-bkJIpwyU-DTXj9skr.js +0 -26
  244. package/dist/assets/RoleWithToolTip-Bst2IdUy-DaFvOxA_.js +0 -22
  245. package/dist/assets/TimeframeSwitcherWithToggle-4h9WX4z9-DfbkXFml.js +0 -31
  246. package/dist/assets/TransferDrawerPage-cUyg27nq-DoY6rZbB.js +0 -362
  247. package/dist/assets/TreasurySetupPage-BoVhd65r-DAl3tLzo.js +0 -152
  248. package/dist/assets/TreasuryTransferOrReviewPage-DAmZboLO-qe3kHbZ0.js +0 -506
  249. package/dist/assets/ZeniAccountNavBarPieces-CeJHAl4O-D-T_tdRo.js +0 -14
  250. package/dist/assets/ZeniTransferAmountSlider-di46G5TN-D3ij5oCv.js +0 -63
@@ -1,23 +1,23 @@
1
- import{w as me,u as z,X as v,a2 as de,l as D,M as F,j as e,_ as c,aV as pe,K as g,i as m,o as s,Z as xe,c0 as he,a6 as K,m as ue,C as ge,g as j,c2 as we,a7 as je,ap as be,q as fe}from"./index-CVo0uMzO.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-MtSyJ1AS-BwRcYCw3.js";import{f as ke,C as N}from"./play-icon-DyIc5aGx-CIOaxH3w.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const X="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(fe[5],44)},ze=t.div`
1
+ import{Y as me,u as z,X as v,a2 as de,l as D,B as N,j as e,$ as c,aW as pe,i as g,b as m,o as r,Z as xe,c4 as he,a6 as V,M as ue,C as ge,d as j,c6 as we,a7 as je,ap as be,s as fe}from"./index-DYVNUtTS.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-DbFlQ8Km-9ZxBnjo6.js";import{f as ke,C as X}from"./play-icon-HSIOzxQm-DtUz8FwI.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Y="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",G="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(fe[5],44)},ze=t.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
5
5
  flex-direction: column;
6
6
  background-color: ${i=>i.theme.colors.grey4};
7
7
  `,ve=t.div`
8
- padding: ${i=>i.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
8
+ padding: ${i=>i.windowSize==="small"?`${r.sp0} ${r.sp3}`:`${r.sp0} ${r.sp8}`};
9
9
  text-align: center;
10
10
  `,Ce=t(he)`
11
11
  max-width: 648px;
12
12
  margin: auto;
13
- padding: ${s.sp7} ${s.sp0};
13
+ padding: ${r.sp7} ${r.sp0};
14
14
  color: ${i=>i.theme.colors.primary};
15
15
  `,Te=t(xe)`
16
16
  max-width: 600px;
17
17
  margin: auto;
18
- padding: ${s.sp5} ${s.sp0};
18
+ padding: ${r.sp5} ${r.sp0};
19
19
  color: ${i=>i.theme.colors.primary};
20
- `,G=t.div`
20
+ `,J=t.div`
21
21
  display: flex;
22
22
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
23
23
  align-items: center;
@@ -48,9 +48,9 @@ import{w as me,u as z,X as v,a2 as de,l as D,M as F,j as e,_ as c,aV as pe,K as
48
48
  100% {
49
49
  transform: scale(100%)
50
50
  }
51
- `,H=t.div`
52
- width: ${s.sp9};
53
- height: ${s.sp9};
51
+ `,Q=t.div`
52
+ width: ${r.sp9};
53
+ height: ${r.sp9};
54
54
  background: ${i=>i.theme.colors.playButtonBackGroundColor};
55
55
  display: flex;
56
56
  align-items: center;
@@ -60,7 +60,7 @@ import{w as me,u as z,X as v,a2 as de,l as D,M as F,j as e,_ as c,aV as pe,K as
60
60
  color: ${j.backgroundThemeLight};
61
61
  cursor: pointer;
62
62
  animation: ${Re} 1s ease infinite;
63
- `,J=t.div`
63
+ `,W=t.div`
64
64
  width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
65
65
  overflow: hidden;
66
66
  max-width: 712px;
@@ -68,20 +68,20 @@ import{w as me,u as z,X as v,a2 as de,l as D,M as F,j as e,_ as c,aV as pe,K as
68
68
  align-content: center;
69
69
  justify-content: center;
70
70
  align-items: center;
71
- `,Q=t.div`
72
- margin-left: ${i=>i.windowSize==="small"?s.sp0:s.sp6};
73
- margin-bottom: ${i=>i.windowSize==="small"?s.sp4:s.sp0};
71
+ `,q=t.div`
72
+ margin-left: ${i=>i.windowSize==="small"?r.sp0:r.sp6};
73
+ margin-bottom: ${i=>i.windowSize==="small"?r.sp4:r.sp0};
74
74
  background: ${i=>i.theme.colors.grey3};
75
75
  border-radius: 12px;
76
76
  border: ${i=>`1px solid ${i.theme.colors.grey3}`};
77
77
  padding: 15px;
78
78
  `,d=t.div`
79
- border-radius: ${s.sp12};
79
+ border-radius: ${r.sp12};
80
80
  border: ${i=>`1px solid ${i.theme.colors.grey2}`};
81
- padding: ${i=>i.windowSize==="small"?`${s.sp2} ${s.sp4} ${s.sp2} ${s.sp0}`:`${s.sp3} ${s.sp5} ${s.sp3} ${s.sp0}`};
81
+ padding: ${i=>i.windowSize==="small"?`${r.sp2} ${r.sp4} ${r.sp2} ${r.sp0}`:`${r.sp3} ${r.sp5} ${r.sp3} ${r.sp0}`};
82
82
  background: ${i=>i.theme.colors.grey5};
83
83
  position: relative;
84
- margin-bottom: ${s.sp3};
84
+ margin-bottom: ${r.sp3};
85
85
  display: flex;
86
86
  align-items: center;
87
87
  text-align: start;
@@ -90,23 +90,23 @@ import{w as me,u as z,X as v,a2 as de,l as D,M as F,j as e,_ as c,aV as pe,K as
90
90
  color: ${i=>i.theme.colors.champion};
91
91
  `,y=t(je)`
92
92
  color: ${i=>i.theme.colors.champion};
93
- `,k=t(K)`
93
+ `,k=t(V)`
94
94
  color: ${i=>i.theme.colors.champion};
95
95
  `,S=t(we)`
96
96
  color: ${i=>i.theme.colors.champion};
97
97
  `,p=t.div``,x=t.div`
98
- padding-left: ${s.sp3};
99
- `,E=t(K)`
100
- margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
98
+ padding-left: ${r.sp3};
99
+ `,E=t(V)`
100
+ margin: ${i=>i.windowSize==="small"?r.sp1:`auto ${r.sp5}`};
101
101
  color: ${i=>i.theme.colors.grey1};
102
- `,W=t(C)`
102
+ `,H=t(C)`
103
103
  color: ${j.graphColor16Dark};
104
- `,Y=t(C)`
104
+ `,K=t(C)`
105
105
  color: ${j.graphColor09Dark};
106
106
  `,_=t(C)`
107
107
  color: ${j.success};
108
- `,V=t(ue)`
109
- margin: ${s.sp3} auto;
108
+ `,F=t(ue)`
109
+ margin: ${r.sp3} auto;
110
110
  max-width: 772px;
111
111
  color: ${i=>i.theme.colors.hero};
112
- `,r=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(J,{windowSize:o,children:[e.jsx(H,{onClick:i,children:e.jsx(N,{})}),e.jsx(Q,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(O,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(W,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(k,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Y,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(k,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(k,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(O,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(W,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.simplestText.bold}),e.jsx($,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Y,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx($,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx($,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsxs(J,{windowSize:o,children:[e.jsx(H,{onClick:i,children:e.jsx(N,{})}),e.jsx(Q,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:q,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},qe=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:re,onBackClick:se,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=f.useState(!1),[ne,I]=f.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),b=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=b?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;f.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:r.title,backgroundColor:le.colors.grey4,onBackClick:se,showBackButton:!b,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:b?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:re,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(V,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(V,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{qe as default};
112
+ `,s=N.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=N.getLocalizedStrings().commonSetUp.businessVerification.terms,Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(J,{windowSize:o,children:[e.jsxs(W,{windowSize:o,children:[e.jsx(Q,{onClick:i,children:e.jsx(X,{})}),e.jsx(q,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:G,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:Y,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(O,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(H,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.simplestText.bold}),e.jsx(k,{children:s.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(K,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.aiPoweredText.bold}),e.jsx(k,{children:s.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.multiLevelApprovalText.bold}),e.jsx(k,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(J,{windowSize:o,children:[e.jsxs(O,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(H,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx($,{children:s.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(K,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx($,{children:s.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx($,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsxs(W,{windowSize:o,children:[e.jsx(Q,{onClick:i,children:e.jsx(X,{})}),e.jsx(q,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:G,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:Y,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},Ge=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:se,onBackClick:re,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=f.useState(!1),[ne,B]=f.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,I=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),b=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=b?U?s.employeeAcceptPromoText:s.employeePendingPromoText:s.promoText;f.useEffect(()=>{I==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[I,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),B(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{B(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:s.title,backgroundColor:le.colors.grey4,onBackClick:re,showBackButton:!b,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Be,{onImageClick:M}):e.jsx(Ie,{onImageClick:M}),e.jsx(Pe,{children:b?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:s.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:s.orText}),e.jsx(g,{variant:"primary",label:s.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:se,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(F,{children:[s.terms.createTerms1,e.jsx(m,{href:s.terms.tosUrl,linkText:s.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),s.terms.terms2,e.jsx(m,{href:s.terms.privacyPolicyUrl,linkText:s.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),s.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:s.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:s.orText}),e.jsx(g,{variant:"primary",label:s.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(F,{children:[s.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,s.terms.terms3]})]})})]})]})};export{Ge as default};
@@ -1,4 +1,4 @@
1
- import{u as Ee,X as Ve,a2 as N,a as qe,c3 as Ge,M as Te,l as Ke,a8 as be,j as t,cI as Ze,g as K,C as r,aV as Je,c as Qe,F as Xe,c_ as Ye,aR as et,c$ as tt,a4 as it,o as a,q as n,bH as nt,cg as ot,co as at,eY as ve,eZ as ke,fH as lt,K as rt,_ as $e,Q as Pe,bc as st,v as ct,aO as dt}from"./index-CVo0uMzO.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{D as ut}from"./HelpButton-BdhMFvtG-C54ST6PE.js";import{K as je}from"./SetUpDefaultSection-DsyZbNsv-BcyPPYMa.js";import{f as mt}from"./SpendMgmtSetupAccountSection-BkUIdz9m-ClfpmeIa.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CnjzAGYo-CBf_BQlS.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-MtSyJ1AS-BwRcYCw3.js";import"./ChargeCardUtils-DC2v2EHU-CC66ls3Y.js";import"./CreditCardPaymentPlgSection-CAsn4Ae6-KEtkArBz.js";import"./ChaseOverlay-B-Sx71yo-Thk2BACZ.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:J},trigger:Q}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(J,E),{localData:c,updateStatus:F,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Te.getLocalizedStrings(),{reimbursement:ee}=Y,[S,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Q(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
1
+ import{u as Ee,X as Ve,a2 as N,a as Je,c7 as qe,B as Le,l as Ge,a8 as be,j as t,cM as Ze,d as G,C as r,aW as Qe,h as Ke,F as Xe,d2 as Ye,aS as et,d3 as tt,a4 as it,o as a,s as n,bL as nt,ck as ot,cs as at,e$ as ve,f0 as ke,fK as lt,i as rt,$ as $e,J as Pe,bd as st,w as ct,aP as dt}from"./index-DYVNUtTS.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{D as ut}from"./HelpButton-Dpx0Yoel-1C4sAmaf.js";import{J as je}from"./SetUpDefaultSection-DSslQOgJ-y5lEHYNN.js";import{f as mt}from"./SpendMgmtSetupAccountSection-_8G7bMAw-CYWZUz0n.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BXS2l5kF-4XXbIdgY.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DbFlQ8Km-9ZxBnjo6.js";import"./ChargeCardUtils-CErWBcYS-DYGG4Kg0.js";import"./CreditCardPaymentPlgSection-DX1BieKp-CaB1ZnNz.js";import"./ChaseOverlay-9_ms5LgM-DLbFcFUT.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:K}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Q,E),{localData:c,updateStatus:F,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Le.getLocalizedStrings(),{reimbursement:ee}=Y,[C,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||F.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:L=>L!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Tt,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:L=>{L.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Lt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -11,10 +11,10 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c3 as Ge,M as Te,l as Ke,a8 as be,j as t,
11
11
  justify-content: flex-start;
12
12
  `,yt=i.div`
13
13
  display: flex;
14
- `,Ct=i.div`
14
+ `,St=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
16
- color: ${e=>e.isError===!0?K.important:e.theme.colors.primary};
17
- `,St=i(ct)`
16
+ color: ${e=>e.isError===!0?G.important:e.theme.colors.primary};
17
+ `,Ct=i(ct)`
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-start;
@@ -33,7 +33,7 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c3 as Ge,M as Te,l as Ke,a8 as be,j as t,
33
33
  border-radius: ${a.sp11};
34
34
  width: fit-content;
35
35
  height: fit-content;
36
- color: ${e=>e.isDarkMode?K.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
36
+ color: ${e=>e.isDarkMode?G.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
37
37
  max-width: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
38
38
  max-height: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
39
39
  margin-right: ${e=>h.iconContainerMarginRight.valuePx(e.windowSize)};
@@ -82,19 +82,19 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c3 as Ge,M as Te,l as Ke,a8 as be,j as t,
82
82
  height: ${a.sp6};
83
83
  width: 100%;
84
84
  position: relative;
85
- `,Tt=i.label`
85
+ `,Lt=i.label`
86
86
  display: flex;
87
87
  padding-left: ${e=>h.infoLabelPaddingLeft.valuePx(e.size)};
88
- color: ${e=>e.hasError===!0?K.important:e.additionalInfoTextColor??e.theme.colors.hero};
88
+ color: ${e=>e.hasError===!0?G.important:e.additionalInfoTextColor??e.theme.colors.hero};
89
89
  ${e=>`${ge.infoLabel.style(e.size)}`};
90
90
  margin-top: ${a.sp1};
91
- `,It=i.div`
91
+ `,Tt=i.div`
92
92
  display: flex;
93
93
  position: absolute;
94
94
  top: 50%;
95
95
  transform: translateY(-50%);
96
96
  right: ${a.sp3};
97
- `,Lt=i(dt)`
97
+ `,It=i(dt)`
98
98
  width: ${a.sp3};
99
99
  height: ${a.sp3};
100
100
  cursor: ${e=>e.isDisabled==null?"pointer":"default"};
@@ -103,7 +103,7 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c3 as Ge,M as Te,l as Ke,a8 as be,j as t,
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:J,onBusinessVerificationSectionClick:Q,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(L.fetchState),ye=N(re.fetchState),Ce=N(se.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Ce==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Ce,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),S()}),He=async(P,R)=>{const m=R[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const w=R[G];C(w)}};o.useEffect(()=>{const P=z.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>He(m,R))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,we,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Se,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Ke.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?I(!0):Q?.()};return t.jsxs(zt,{children:[t.jsx(Ze,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:K.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Je,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:J,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Qe,{size:"ExtraLarge",start:!0})}):t.jsx(Xe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ye,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Re}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
106
+ `,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",J="remiAccount",q="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Q,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:L})=>{const W=Ee(),u=Ve(),[B,T]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:I,accountUpdateStatus:Te,plaidConnectionDetails:le,allBankAccounts:Ie,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(I.fetchState),ye=N(re.fetchState),Se=N(se.fetchState),z=Je({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&T(!0),B&&_==="In-Progress"&&v==="Completed"&&T(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Se==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Se,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),C()}),He=async(P,R)=>{const m=R[J];if(P.includes(J)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(q)){const w=R[q];S(w)}};o.useEffect(()=>{const P=z.watch((R,{name:m})=>{m!=null&&R!=null&&qe(()=>He(m,R))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&I.fetchState==="Completed"&&V()},[V,we,I.fetchState]);const{commonSetUp:Ce,spendManagement:We}=Le.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Ge.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?T(!0):K?.()};return t.jsxs(zt,{children:[t.jsx(Ze,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>T(!1),style:{backgroundColor:G.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:I,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>T(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Qe,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Q,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ke,{size:"ExtraLarge",start:!0})}):t.jsx(Xe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ye,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Re}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Ie,allFundingAccounts:he,sectionId:J,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:L,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:q,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:I.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -137,4 +137,4 @@ import{u as Ee,X as Ve,a2 as N,a as qe,c3 as Ge,M as Te,l as Ke,a8 as be,j as t,
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  row-gap: ${e=>p.sectionRowGap.valuePx(e.windowSize)};
140
- `,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[q]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(s=>({label:s.accountName,value:s.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{ni as default,De as uniqueName};
140
+ `,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[J]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(s=>({label:s.accountName,value:s.accountId}))}},[q]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{ni as default,De as uniqueName};
@@ -1 +1 @@
1
- import{M as N,j as b,bO as z,bQ as V,bR as W,jl as q,ab as G,l as Q}from"./index-CVo0uMzO.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-CPN-RHG--BufZJNs3.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=N.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,h,l)),[x,P]=f.useState(h),[B,H]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Q.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Z(p,S,E,x),C=e.fetchState==="Completed"&&S===0,O=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:O,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(z,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:G("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
1
+ import{B as M,j as b,bS as V,bU as W,bV as q,jp as z,ab as G,l as K}from"./index-DYVNUtTS.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-Dmrea9EK-DOxs4FI1.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(P(e,h,l)),[x,R]=f.useState(h),[k,H]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(k===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,l)),()=>{clearInterval(I)}),[m.length,k,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,$=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},F={onOkClick:u=>{a(!1);const T=e.remisForReview.map(B=>B.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,K.getRemiListUniqueType(T.map(B=>B?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:U,description:L}=Z(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:$,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(q,{children:y.title}),descriptionComponent:b.jsx(W,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:U,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:G("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?j.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
@@ -1,8 +1,8 @@
1
- import{u as h,j as r,W as a,_ as m,ai as j,M as C,a5 as l,aY as x,v as g,o as c,aj as f}from"./index-CVo0uMzO.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{u as h,j as r,_ as a,$ as m,ai as j,B as w,a5 as l,aZ as x,w as g,o as c,aj as C}from"./index-DYVNUtTS.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
- `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
3
+ `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function R({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:i,width:n})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
5
- `,v=s.div`
5
+ `,$=s.div`
6
6
  height: ${c.sp10};
7
7
  width: ${c.sp10};
8
8
  background: ${e=>e.theme.colors.background};
@@ -21,6 +21,6 @@ import{u as h,j as r,W as a,_ as m,ai as j,M as C,a5 as l,aY as x,v as g,o as c,
21
21
  }
22
22
  `,b=s(g)`
23
23
  color: ${e=>e.theme.colors.champion};
24
- `,$=s(g)`
24
+ `,v=s(g)`
25
25
  color: ${e=>e.theme.colors.hero};
26
- `,L=s(y)``;function S({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs(b,{children:[i??j(o)," "]}),r.jsx(v,{children:r.jsx(L,{})}),r.jsx($,{children:C.getLocalizedStrings().card.failedText})]})})}export{T as E,M as I,S as T};
26
+ `,B=s(y)``;function S({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs(b,{children:[i??j(o)," "]}),r.jsx($,{children:r.jsx(B,{})}),r.jsx(v,{children:w.getLocalizedStrings().card.failedText})]})})}export{T as E,R as I,S as T};
@@ -1,4 +1,4 @@
1
- import{u as Z,X as ie,bC as me,a as fe,j as o,p as ge,M as Q,bD as ee,F as xe,C as P,a4 as be,o as n,bE as ye,bF as _e,bG as we,bH as $e,bI as ve,m as ce,bJ as Ce,q as p,v as ke,H as X,aY as je,a8 as Ne,e as Se,b0 as Ie}from"./index-CVo0uMzO.js";import{b as f,f as de,n as d}from"./vendor-CnQcJ2Lu.js";import{W as D,R as Pe}from"./CollapsableReportTable-mEqm05fp-CUcsGi4N.js";const z=Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,De=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Oe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:De(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Fe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=Q.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Oe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=_e(h.headers,t.defaultFileName),y=await h.arrayBuffer();we(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Ee=d.div`
1
+ import{u as X,X as ie,bG as me,a as fe,j as o,r as ge,B as Q,bH as ee,F as xe,C as P,a4 as be,o as n,bI as ye,bJ as we,bK as _e,bL as $e,bM as ve,M as ce,bN as Ce,s as p,w as ke,K as Z,aZ as je,a8 as Ne,m as Se,b1 as Ie}from"./index-DYVNUtTS.js";import{b as f,f as de,n as d}from"./vendor-CnQcJ2Lu.js";import{W as O,R as Pe}from"./CollapsableReportTable-DX-FpwE7-MJq_0H8T.js";const z=Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Fe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=Q.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -9,7 +9,7 @@ import{u as Z,X as ie,bC as me,a as fe,j as o,p as ge,M as Q,bD as ee,F as xe,C
9
9
  position: relative;
10
10
  height: ${n.sp8};
11
11
  cursor: pointer;
12
- `,Be=d(Se)`
12
+ `,Ee=d(Se)`
13
13
  color: ${e=>e.theme.colors.primary};
14
14
  margin-top: -2px;
15
15
  `,Le=d(Ie)`
@@ -20,13 +20,13 @@ import{u as Z,X as ie,bC as me,a as fe,j as o,p as ge,M as Q,bD as ee,F as xe,C
20
20
  :hover {
21
21
  color: ${e=>e.theme.colors.primary};
22
22
  }
23
- `,Ae=e=>{const{value:c,onClick:a}=e,t=Z();return o.jsxs(Ee,{onClick:a,children:[o.jsx(Be,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=D("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=D("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(F=>he({nestedClass:F,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},ze=d.div`
23
+ `,Ae=e=>{const{value:c,onClick:a}=e,t=X();return o.jsxs(Be,{onClick:a,children:[o.jsx(Ee,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=O("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=O("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(D=>he({nestedClass:D,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},ze=d.div`
24
24
  height: ${e=>e.height}px;
25
25
  width: 100%;
26
- `,He=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:F,onNodeCollapseToggled:U,onToggleCheck:O})=>{const H=Z(),Y=ie(),[$,j]=f.useState(void 0),[T,_]=f.useState(!1),[M,E]=f.useState({}),[g,W]=f.useState(void 0),[B,v]=f.useState(r),V="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{_(!0),E(i),O?.(i,l,r==="account_group"?!0:void 0),w(i,l)},w=(i,l)=>{const m=G(i);for(const C of m.children)O?.(C.classId,l),w(C.classId,l)},G=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=G(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?O?.(l.classId,!0):O?.(l.classId,!1),E(l.classId)}};f.useEffect(()=>{T&&q(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:V,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!X(g,a)||!X(B,r)||T===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[J,K]=f.useState(5),A=i=>{const l=i+p[6];K(l)};return $!=null?o.jsx(ze,{height:J,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Ne(H.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(Y),right:oe.contentPaddingRight.value(Y)},scrollPosition:b,onScroll:y,nodeOpenStatus:F,onNodeCollapseToggled:U,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},Ye=d.div`
26
+ `,He=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:F})=>{const H=X(),V=ie(),[$,j]=f.useState(void 0),[T,w]=f.useState(!1),[M,B]=f.useState({}),[g,W]=f.useState(void 0),[E,v]=f.useState(r),Y="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{w(!0),B(i),F?.(i,l,r==="account_group"?!0:void 0),_(i,l)},_=(i,l)=>{const m=G(i);for(const C of m.children)F?.(C.classId,l),_(C.classId,l)},G=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},U=i=>{if(i.length>1){const l=G(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?F?.(l.classId,!0):F?.(l.classId,!1),B(l.classId)}};f.useEffect(()=>{T&&U(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:Y,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!Z(g,a)||!Z(E,r)||T===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[J,K]=f.useState(5),A=i=>{const l=i+p[6];K(l)};return $!=null?o.jsx(ze,{height:J,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Ne(H.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(V),right:oe.contentPaddingRight.value(V)},scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},Ve=d.div`
27
27
  position: relative;
28
28
  pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
- `,Ve=d.div`
29
+ `,Ye=d.div`
30
30
  display: flex;
31
31
  flex-direction: column;
32
32
  width: ${e=>k.containerWidth.valuePx(e.windowSize)};
@@ -47,7 +47,7 @@ import{u as Z,X as ie,bC as me,a as fe,j as o,p as ge,M as Q,bD as ee,F as xe,C
47
47
  gap: ${n.sp2};
48
48
  margin-top: 12px;
49
49
  align-items: center;
50
- `,qe=d(ve)`
50
+ `,Ue=d(ve)`
51
51
  color: ${e=>e.theme.colors.hero};
52
52
  width: ${n.sp4};
53
53
  height: ${n.sp4};
@@ -104,7 +104,7 @@ import{u as Z,X as ie,bC as me,a as fe,j as o,p as ge,M as Q,bD as ee,F as xe,C
104
104
  display: flex;
105
105
  justify-content: center;
106
106
  align-items: center;
107
- `,Ue=d.div`
107
+ `,qe=d.div`
108
108
  display: flex;
109
109
  flex-wrap: wrap;
110
110
  justify-content: flex-start;
@@ -123,7 +123,7 @@ import{u as Z,X as ie,bC as me,a as fe,j as o,p as ge,M as Q,bD as ee,F as xe,C
123
123
  `,ae=d.label`
124
124
  color: ${e=>e.theme.colors.primary};
125
125
  cursor: ${e=>e.disabled===!0?"default":"pointer"};
126
- `,Xe=d(ce)`
126
+ `,Ze=d(ce)`
127
127
  display: flex;
128
128
  align-items: center;
129
129
  column-gap: ${n.sp2};
@@ -133,7 +133,7 @@ import{u as Z,X as ie,bC as me,a as fe,j as o,p as ge,M as Q,bD as ee,F as xe,C
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.primary};
135
135
  }
136
- `,Ze=d.div`
136
+ `,Xe=d.div`
137
137
  display: flex;
138
138
  flex: 1;
139
139
  width: inherit;
@@ -147,4 +147,4 @@ import{u as Z,X as ie,bC as me,a as fe,j as o,p as ge,M as Q,bD as ee,F as xe,C
147
147
  margin-left: ${n.sp5};
148
148
  margin-top: -12px;
149
149
  color: ${e=>e.theme.colors.hero};
150
- `,{reportViewSelector:I,common:{footer:ne}}=Q.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:F,isClassViewDisabled:U,downloadPage:O,showAccountGroups:H=!0,onResyncReports:Y,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=Z(),_=ie(),[M,E]=f.useState(!1),[g,W]=f.useState(r),[B,v]=f.useState({}),V=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=V(x.children,u)}),u),L=V(a,[]),[N,w]=f.useState(g==="classes"?h:L),G=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:H===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),K=J.handleSubmit(()=>{E(!1),g==="classes"?F?.("classes",N):F?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),w([]);else{w(L);let u={};a.forEach(x=>{const S=D("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),E(!M);let s={};a.forEach(u=>{const x=D("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),w(L)),u===!0){const S=D("checkbox_and_name_only",[],s[0]);B[S]=!0,v(B),w(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=D("checkbox_and_name_only",[],s[0]);B[S]=!1,N.find(R=>R[0]===s[0])===void 0&&w(R=>[...R,s])}},m=()=>{E(!1),W(r),w(h)},C=()=>{$===!1&&Y?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=D("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(Ye,{isDisabled:U??!1,children:[O===!0?o.jsx(Te,{value:q(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ve,{windowSize:_,children:[o.jsxs(Ge,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Xe,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Qe,{})]})}):null]}),M?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:K,children:o.jsxs(Je,{width:k.width.value(_),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:H===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Ze,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:B,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(_),height:k.height.value(_),animated:!0})]}),o.jsx(Ke,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},isLoading:!1,isDisabled:G,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(He,X);export{no as c,ro as h};
150
+ `,{reportViewSelector:I,common:{footer:ne}}=Q.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:q,downloadPage:F,showAccountGroups:H=!0,onResyncReports:V,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=X(),w=ie(),[M,B]=f.useState(!1),[g,W]=f.useState(r),[E,v]=f.useState({}),Y=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=Y(x.children,u)}),u),L=Y(a,[]),[N,_]=f.useState(g==="classes"?h:L),G=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const U=s=>s==="classes"?I.classes.label:H===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),K=J.handleSubmit(()=>{B(!1),g==="classes"?D?.("classes",N):D?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),_([]);else{_(L);let u={};a.forEach(x=>{const S=O("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),B(!M);let s={};a.forEach(u=>{const x=O("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),_(L)),u===!0){const S=O("checkbox_and_name_only",[],s[0]);E[S]=!0,v(E),_(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=O("checkbox_and_name_only",[],s[0]);E[S]=!1,N.find(R=>R[0]===s[0])===void 0&&_(R=>[...R,s])}},m=()=>{B(!1),W(r),_(h)},C=()=>{$===!1&&V?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=O("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(Ve,{isDisabled:q??!1,children:[F===!0?o.jsx(Te,{value:U(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ye,{windowSize:w,children:[o.jsxs(Ge,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(Ue,{className:"dropdownIcon"}),U(r)]}),r==="classes"?o.jsx(Ze,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Qe,{})]})}):null]}),M?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:K,children:o.jsxs(Je,{width:k.width.value(w),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:H===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Xe,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(qe,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:E,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(w),height:k.height.value(w),animated:!0})]}),o.jsx(Ke,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:G,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(He,Z);export{no as c,ro as h};