@zeniai/web-cockpit-ui 1.14.91-qa → 1.14.92-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 (318) hide show
  1. package/dist/assets/ACHDetailsPage-B6sY0jN6-BewHWiw_.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BWK9fXrz-rCBrp1JL.js → AIPerformancePage-BWK9fXrz-XnvE7-6d.js} +2 -2
  3. package/dist/assets/{AccountInfoPage-DfT5DDiZ-D0CVlv97.js → AccountInfoPage-DfT5DDiZ-DND7ENQF.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-nUi26Aww-D32CRcv0.js → AccountInfoPageContent-nUi26Aww-Bwa-HIUO.js} +11 -11
  5. package/dist/assets/{AccountLockedInfoModal-BROj4bmE-DFG-AArf.js → AccountLockedInfoModal-BROj4bmE-DDKXU8OA.js} +5 -5
  6. package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-DSRssRwi.js → AccountReconDetailsDrawerPage-C-3FFCQZ-D-TpqzuY.js} +7 -7
  7. package/dist/assets/{AccountRow-BM2kGWyR-CUEabI22.js → AccountRow-BM2kGWyR-CEX7zEFS.js} +10 -10
  8. package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-D2Rks2IH.js → AccountsPromoCardStack-CNCG5uPJ-Y2aCPflf.js} +5 -5
  9. package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-e0LZrU5l.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DyrcWdBZ-BOmGChQh.js → AddToWalletPage-DyrcWdBZ-CkK2fnuE.js} +17 -17
  11. package/dist/assets/{AgingReportsPage-CmluxKG3-CDFaJsCv.js → AgingReportsPage-CmluxKG3-B2hpJNM3.js} +7 -7
  12. package/dist/assets/{AllUserItems-CVZZU-J3-CQYclBqY.js → AllUserItems-CVZZU-J3-Ce2827d_.js} +6 -6
  13. package/dist/assets/{ApAgingDetailPage-CoNxqskm-D1SMh_uB.js → ApAgingDetailPage-CoNxqskm-Bna_-NVA.js} +1 -1
  14. package/dist/assets/{AppBasePage-CTGNzUtN-CsSqlHFb.js → AppBasePage-CTGNzUtN--WSyuM8w.js} +4 -4
  15. package/dist/assets/{AppDrawerContent-59dQVUxu-BK18x8lU.js → AppDrawerContent-59dQVUxu-Bv7_BAFF.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-B6n0n-AH.js → ApprovalRulesSettingsPage-XEW5sdNg-DmNI-bwP.js} +1 -1
  17. package/dist/assets/{ArAgingChart-D3Ym4gVE-BMi6xDeV.js → ArAgingChart-D3Ym4gVE-DmsLk005.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-Cks0yhvG.js → ArAgingDetailPage-BLEJSLJJ-C4CejQvS.js} +1 -1
  19. package/dist/assets/{AttachmentView-DSP80cjm-CgZkBq6h.js → AttachmentView-DSP80cjm-BrHb-fdX.js} +7 -7
  20. package/dist/assets/{BankAccountSection-DRrNcA79-CfWXJkCL.js → BankAccountSection-DRrNcA79-DN0L_Nus.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-pYaBnYwo.js → BankAccountWarningSection-Ub-gsfhE-CWRw85Ya.js} +9 -9
  22. package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-Bmy_bjMC.js → BankConnectionsSettingsPage-BcTtJTbg-Cq7UhfIX.js} +9 -9
  23. package/dist/assets/{BillDetailPage-D7AQyxwr-DdsAIdzy.js → BillDetailPage-D7AQyxwr-C4hQ51aV.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-B3YKN5mU.js → BillPayApprovalRuleDetailPage-BQWGENO8-UqNryn1Y.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-Clw-2wlC.js → BillPayApprovalRulesPage-BbA1Nwqe-8oC6drGE.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DSTS_vBW-CQQQB354.js → BillPayPromoPage-DSTS_vBW-D4bhyD9i.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-CvlVPVCA-NjhuI3UN.js → BillPaySetUpPage-CvlVPVCA-CckOfR6h.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-nKpHtd4C-Dt0uXp5Q.js → BillingSettingsPage-nKpHtd4C-BrQxt-Or.js} +2 -2
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-Cb4kf05q.js → BillsBulkReviewDrawerPage-DNHAoceL-CcLmGKWP.js} +1 -1
  30. package/dist/assets/{BoxItem-Bjv3WNXO-BmJyEo8P.js → BoxItem-Bjv3WNXO-CbkK_BvO.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Bj4D9bX2-BwDZ1SF1.js → BusinessVerificationPage-Bj4D9bX2-CSqpS47f.js} +7 -7
  32. package/dist/assets/CardNumberSubText-BYY-Inxd-B5eDSuWq.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-D9UiTqp9-KfzGeeHg.js → CashbackDetailPage-D9UiTqp9-CYWVGaEH.js} +14 -14
  34. package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-DtWHXqSs.js → ChargeCardDetailPage-C5EdiIyl-BRwuM_9a.js} +24 -24
  35. package/dist/assets/{ChargeCardListPage-DZwz1qoD-DbcJS4HW.js → ChargeCardListPage-DZwz1qoD-CqjW0D5U.js} +14 -14
  36. package/dist/assets/{ChargeCardListTable-D5B05Z1F-CeQiSd9i.js → ChargeCardListTable-D5B05Z1F-D4hpaga1.js} +13 -13
  37. package/dist/assets/{ChargeCardPromoPage-CDJMtGJb-BhpbAa0E.js → ChargeCardPromoPage-CDJMtGJb-hssoPQjs.js} +10 -10
  38. package/dist/assets/{ChargeCardSetupPage-CVV24gS9-DEZ65n_v.js → ChargeCardSetupPage-CVV24gS9-BAOQ2Xly.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-snf3xLLe.js → ChargeCardStatementsPage-CmjBoi5e-DLlPm7j6.js} +3 -3
  40. package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-DksjSdSX.js → CheckDepositDrawerPage-CYOhT5Qz-NvWlDiXp.js} +10 -10
  41. package/dist/assets/{CollapsableReportTable-hL_Ycouc-BeVhCFjP.js → CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js} +32 -32
  42. package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-CRHkdATL.js → CompanyOfficerDetailsSection-DR_6TlQa-SwPBTgrA.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-B4chn7-Q-C5MlH5vF.js → CompanyPassportCard-B4chn7-Q-Bv_vr7JG.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-oT9HnnPQ-Cn_rUM0x.js → CompanyPassportPage-oT9HnnPQ-BroxBLc-.js} +1 -1
  45. package/dist/assets/{CompleteProfile-BgH4v76Z-CMAlYJ7H.js → CompleteProfile-BgH4v76Z-CN661m7_.js} +1 -1
  46. package/dist/assets/ConfettiBurst-Cl6jHJ8H-gdYynPR6.js +1 -0
  47. package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-BbNmJCzp.js → CreateOrEditVendorPage-CW-u7pJU-D_V5jy6j.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-DHMoXleH.js → CreditCardPaymentDrawerPage-D30M7ol4-Cmy98i97.js} +101 -101
  49. package/dist/assets/{CurrencySelectField-DOCEstMc-lt77fvq3.js → CurrencySelectField-DOCEstMc-DLDifnD2.js} +3 -3
  50. package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-Di2Nadj1.js → CustomerOnboardingActivationPage-DMPNjFL_-DXtNUrdA.js} +5 -5
  51. package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTN0ucTw.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-BXbbBAgo.js → CustomerOnboardingDetailPageSkeleton-CBYo4VQn-lNg5MP87.js} +8 -8
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-D_7GUO1D.js → CustomerOnboardingNoStepsPage-EBVRCYfJ-D9C_SyFY.js} +3 -3
  54. package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-C-OnNjx4.js → CustomerOnboardingPage-TJK6s-LM-CoIVtMVm.js} +1 -1
  55. package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-Bg8Yb8JM.js +202 -0
  56. package/dist/assets/{Dashboard-WiE9IRrh-DLy2oEV6.js → Dashboard-WiE9IRrh-DvtSkHmk.js} +14 -14
  57. package/dist/assets/{DashboardReportPage-BKHl_IVD--5FXkbx2.js → DashboardReportPage-BKHl_IVD-CtxBGv_B.js} +11 -11
  58. package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-DOqCN-CI.js +12 -0
  59. package/dist/assets/{DepositAccTransactionItem-C8tChaJS-C2YE4gmN.js → DepositAccTransactionItem-C8tChaJS-BcNs6Wmj.js} +1 -1
  60. package/dist/assets/DepositAccTransactionListPage-B6px7upV-C_h4mZC3.js +66 -0
  61. package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-Cigs9AsB.js +21 -0
  62. package/dist/assets/{DownloadOverlay-DB-qx46O-QQjLHCMg.js → DownloadOverlay-DB-qx46O-Di0XX-7b.js} +1 -1
  63. package/dist/assets/{DrawerPage-Bha9ElcW-DYWZbR7w.js → DrawerPage-Bha9ElcW-tQCg2vNB.js} +6 -6
  64. package/dist/assets/{EditPeoplePage-B6QD5Vld-CisYF3Ng.js → EditPeoplePage-B6QD5Vld-H7oW4yPE.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-D1RbirS3.js → EditReimbursementDetailPage-EplOf2mP-DR3ob0bq.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-5Cu1qehd-D07nT3Te.js → EntityDetailPage-5Cu1qehd-BdCQHbCi.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-D6z6-dM7-DEGQNQVO.js → EntitySummarySection-D6z6-dM7-iY3GcshB.js} +2 -2
  68. package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-NF6HtctB.js → ExpenseAutomationOverviewPage-DkoxczRc-Dj3WEFmv.js} +15 -15
  69. package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-Cmx09CtX.js → ExpenseAutomationPage-Na3XKgcg-DopOn429.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-DWGl_gml-D5XRTVzj.js → ExpressPayPage-DWGl_gml-hFOTsy6y.js} +12 -12
  71. package/dist/assets/{FeaturePreviewPage-BgkpUPMm-DzDv67fj.js → FeaturePreviewPage-BgkpUPMm-BgRBmXUD.js} +3 -3
  72. package/dist/assets/{FollowStepsSection-64oy2OLD-7-LclZyo.js → FollowStepsSection-64oy2OLD-BEGrGMi_.js} +7 -7
  73. package/dist/assets/{GlobalReviewListPage-DHfTyj2C-OAyr9UAc.js → GlobalReviewListPage-DHfTyj2C-C3EEWPiO.js} +12 -12
  74. package/dist/assets/{InformationCardStack-Dw3lhl2I-2Y0pRe_r.js → InformationCardStack-Dw3lhl2I-Bs6_LbeZ.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-BiEswY1Z-CQn7ZFVZ.js → InsightsCardStack-BiEswY1Z-Db6FFDpQ.js} +9 -9
  76. package/dist/assets/{InsightsSection-DvqCilqy-BvIpOsD6.js → InsightsSection-DvqCilqy-BQT_s43S.js} +3 -3
  77. package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-K49nYAJL.js → IntegrationsSettingsPage-DzVYf5ff-DvdqA5Qq.js} +2 -2
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-C8RSfXK9.js → InternationalWireSwiftDetailsPage-DTHcuQsH-B-a9NSLn.js} +11 -11
  79. package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-BPPlgLxU.js → InternationalWireVerificationPage-BzyRqd-m-slndLY5A.js} +7 -7
  80. package/dist/assets/{InviteFormPage-CaJB3ss1-C7CdP0jU.js → InviteFormPage-CaJB3ss1-HHZxjRMu.js} +17 -17
  81. package/dist/assets/{InvitePageListView-8Ltt8tHx-Dpx_AdxA.js → InvitePageListView-8Ltt8tHx-BPR7jVHX.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-A7oKAD7M-BX9kPS5-.js → InvitePeoplePage-A7oKAD7M-DkNn-Tux.js} +2 -2
  83. package/dist/assets/{InvoiceUploadSection-DomquLut-BX54FmZz.js → InvoiceUploadSection-DomquLut-CutCF8wG.js} +5 -5
  84. package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-BN7RzIYF.js → IssueChargeCardPage-DtIQ1Buk-QOM0ijcK.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-B_9lh-_a-DrM7vU1s.js → LabeledAddressValue-B_9lh-_a-B22yf0PW.js} +2 -2
  86. package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-1BY0JFnr.js → LabeledAddressValueField-CC7T3qZQ-5fkS_FuY.js} +2 -2
  87. package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-RHUW6sf_.js +16 -0
  88. package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-TvdaP8Vv.js → LabeledCreatableSingleSelectField-DKD0oEl8-Bqf3gDxT.js} +3 -3
  89. package/dist/assets/{LabeledDocumentField-Dy3jwAiL-CCiYsV9S.js → LabeledDocumentField-Dy3jwAiL-FmwpCOt6.js} +3 -3
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-CluakS-U.js → LabeledDropDownFormattedTextField-DDzM3r6s-CPxa5iPj.js} +1 -1
  91. package/dist/assets/{LabeledText-axaAGyUS-CcC7jZEk.js → LabeledText-axaAGyUS-B-Q4astZ.js} +2 -2
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-BKf09x4e.js → LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-DlTnDPsW.js} +17 -17
  93. package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-OaRP8J18.js → LabeledZeniRolesDropDownField-dpz7g9jK-BDxh4AaM.js} +9 -9
  94. package/dist/assets/{LinkJETransactionPage-CJniqVcu-CEg5TESY.js → LinkJETransactionPage-CJniqVcu-C9nn50Ye.js} +3 -3
  95. package/dist/assets/{LockCardPage-CjO8cr2a-D35PEeDH.js → LockCardPage-CjO8cr2a-C3aOpkLz.js} +12 -12
  96. package/dist/assets/{LowBalancePopup-DVS-w3b7-B-J4NCtT.js → LowBalancePopup-DVS-w3b7-DZeFvNAP.js} +2 -2
  97. package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-BWS1eLIz.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-BkvhGPqZ.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-DYCM1cCk.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-DAAoq3iT-RnQYScep.js → MagicLinkSuccessPage-DAAoq3iT-s_k-As2A.js} +6 -6
  101. package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-Dq0HXyeM.js +17 -0
  102. package/dist/assets/MailingDetailsSection-CiJ5JLA6-ClA0Rhay.js +21 -0
  103. package/dist/assets/Menu-wpP8R1br-BkJyq7Tb.js +17 -0
  104. package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-S9MhwXB4.js → MyBankConnectionsSettingsPage-DIIFgnkE-BpGRsOdm.js} +2 -2
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-CK6YDHgF.js → MyPendingActivationChargeCardListPage-Di_KYRgS-1GEJ-RE_.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-Dsfb8_5o.js → MyProfileSettingsPage-m6vaeGgZ-CBRk31EZ.js} +4 -4
  107. package/dist/assets/{NavBarWithPicker-C_qO8mgD-BXQJ2aBI.js → NavBarWithPicker-C_qO8mgD-DeDCa5cM.js} +4 -4
  108. package/dist/assets/{NavigationArrow-BXYIj6Wz-D0J_smpz.js → NavigationArrow-BXYIj6Wz-CANss6wI.js} +8 -8
  109. package/dist/assets/{NavigationDots-BvKSgdgh-BqXI1Dvt.js → NavigationDots-BvKSgdgh-ChF9WLMp.js} +4 -4
  110. package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-DLsg8Naf.js → NewGlobalMerchantPage-Dc3xEoiZ-BeCQwEx7.js} +2 -2
  111. package/dist/assets/NoDataChart-C5ZP32zB-BxSJ1j_J.js +26 -0
  112. package/dist/assets/NoDataTable-BnBYE8p_-CFZLFfEo.js +8 -0
  113. package/dist/assets/{NotFoundPage-CZ25GWwU-_oSr8iWX.js → NotFoundPage-CZ25GWwU-BICqInbF.js} +4 -4
  114. package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-BdTBQFAp.js → NotificationSettingsPage-DHvgj7Hu-BDiE5wjx.js} +3 -3
  115. package/dist/assets/{NotificationsListConfig-BBLSv0sd-CyiwE-QZ.js → NotificationsListConfig-BBLSv0sd-CBsOo8lP.js} +1 -1
  116. package/dist/assets/{NotificationsPage-CGVEC-Zc-DTkwGX6T.js → NotificationsPage-CGVEC-Zc-CICQW2D8.js} +14 -14
  117. package/dist/assets/{OpExByVendorPage-D55JZne--CJqRGQiy.js → OpExByVendorPage-D55JZne--Cr5n73UL.js} +6 -6
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-DQE32HEH.js → OverlayContainerPage-Daz3A7cI-DLdPkPwc.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-fVmttEKP-BDMz5n2J.js → PandLWithForecastPage-fVmttEKP-aWCR7ttl.js} +11 -11
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-Dbfq-Q5l.js → PaymentAccountSetupBillingAddressSection-BiU8tQnm-CY8MBOF0.js} +5 -5
  121. package/dist/assets/{PeoplePage-QuuuX2AS-BRICHczf.js → PeoplePage-QuuuX2AS-CDxGSCUE.js} +12 -12
  122. package/dist/assets/Preview-D_TLok3M.js +1 -0
  123. package/dist/assets/{ProductsCarousel-zdZkfaiY-_T4nYSYs.js → ProductsCarousel-zdZkfaiY-D8MGFtGX.js} +3 -3
  124. package/dist/assets/{PromoBaseCards-flFtcbIg-m_Kz4ZRp.js → PromoBaseCards-flFtcbIg-C0jZRRzU.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-DhNQ7g0E.js → QBOConnectionDialog-DNB2C1vQ-DPJHlPHX.js} +2 -2
  126. package/dist/assets/{QBOSetupSection-B59etoGz-_sJLDOFX.js → QBOSetupSection-B59etoGz-DxrgQvvQ.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-BCz-fjPF.js → ReimbursementApprovalRuleDetailPage-D7do3o0A-DiBw1aK-.js} +1 -1
  128. package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-CIt97LH3.js → ReimbursementApprovalRulesPage-BJ6GewQ2-CMxGgRQ3.js} +1 -1
  129. package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-CiNVqXoI.js → ReimbursementDetailPage-DKAtYSOy-C1CMn4bM.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-5hV7x373.js → ReimbursementPromoPage-DKcSHlHp-gi8b3D2U.js} +9 -9
  131. package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--D_F0MA0d.js → ReimbursementSetUpPage-Y1e_hna--L4dNaOo2.js} +5 -5
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-VUP64soN.js → ReimbursementsBulkReviewDrawerPage-fgz8s4w9-TK1XJV4S.js} +1 -1
  133. package/dist/assets/{ReloadCard-DjtdPHq5-k80dn-sY.js → ReloadCard-DjtdPHq5-D_RTB189.js} +3 -3
  134. package/dist/assets/{ReportTableViewSelector-C8e6IEWt-C9oSqHHS.js → ReportTableViewSelector-C8e6IEWt-B1X6y91F.js} +1 -1
  135. package/dist/assets/{ReportsPage-BIe0eDLC-BkK5XGLi.js → ReportsPage-BIe0eDLC-DJAgrzKt.js} +3 -3
  136. package/dist/assets/{RevenueChart-Cc0XrxLL-CKhxzTm3.js → RevenueChart-Cc0XrxLL-BSXP5Fpe.js} +30 -30
  137. package/dist/assets/{ReviewDetailsPage-CU1AYWgR-BwWw8nzF.js → ReviewDetailsPage-CU1AYWgR-Aa7a5LiH.js} +17 -17
  138. package/dist/assets/{ReviewOverlay-CruJ9O84-tthxypv2.js → ReviewOverlay-CruJ9O84-C1Nn7-W1.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-fC3byzzv-h3kSlu0j.js → RoleWithToolTip-fC3byzzv-DvgcIN_v.js} +6 -6
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-BF1406RS.js → ScheduleDetailsFixedAssetsPage-CE3tUYhk-COrIX6jB.js} +3 -3
  141. package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-BbWry4yd.js → ScheduleDetailsPage-BhAqJ1Of-aIc3huKD.js} +3 -3
  142. package/dist/assets/{ScheduleSequenceTable-NSt1juSD-B6P-vowS.js → ScheduleSequenceTable-NSt1juSD-DIpN7xpp.js} +21 -21
  143. package/dist/assets/{ScreenRoutes-CPwJf5AY.js → ScreenRoutes-jO5HDDDI.js} +75 -75
  144. package/dist/assets/SetUpAccountSection-C1EnJv1V-BqOATLaf.js +378 -0
  145. package/dist/assets/{SignIn-BhIof_Cm-BQjlVN_5.js → SignIn-BhIof_Cm-BVhCYPyL.js} +1 -1
  146. package/dist/assets/SignInScreen-DYrtrzQo.js +1 -0
  147. package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-LpCmCl9n.js → SpendManagementListViewPage-BEWNNX_Z-DYJVhy13.js} +4 -4
  148. package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-B-R3eaH5.js → SpendManagementPerTabPage-Vs1Eoxgd-BJBD6w0V.js} +20 -20
  149. package/dist/assets/{SpendManagementSection-C38Zpi1z-CSd7Ra1P.js → SpendManagementSection-C38Zpi1z-zTQSB9zV.js} +10 -10
  150. package/dist/assets/{StatementItem-bHInVThd-CvDlOdeO.js → StatementItem-bHInVThd-Bfw9F8uL.js} +2 -2
  151. package/dist/assets/{StatementsPage-CGQhmaXx-R_F9KvHl.js → StatementsPage-CGQhmaXx-BIuU-4wu.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-7fiKLb5g-BflTgrEp.js → StatusSwitcher-7fiKLb5g-IubUY6EX.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-9AnfZiNy-CnEO-V48.js → SubTabSwitcher-9AnfZiNy-DBEVnhtX.js} +3 -3
  154. package/dist/assets/{SummaryCard-DOycYLs1-BBnGU2Uh.js → SummaryCard-DOycYLs1-C5OfLiIW.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-CehyMnY0-DxKz3xjn.js → TaskManagementPage-CehyMnY0-LzT8-CCR.js} +10 -10
  156. package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-BGlD5dTQ.js → TimeRangeSwitcher-Dq2FEgFR-CxbtXrjR.js} +11 -11
  157. package/dist/assets/{TimeframeSwitcher-By3xz_-m-C7-16i-O.js → TimeframeSwitcher-By3xz_-m-4vvkqeCS.js} +6 -6
  158. package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-BNAWd54k.js → TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js} +3 -3
  159. package/dist/assets/{TopExCard-GEQpp_KY-IB_77Mna.js → TopExCard-GEQpp_KY-BsC8DQsa.js} +4 -4
  160. package/dist/assets/{TopExDetailPage-hid1dQYl-kxPti7uc.js → TopExDetailPage-hid1dQYl-o5BnuopY.js} +9 -9
  161. package/dist/assets/{TransactionDetailPage-CX4JW9WM-BDaPm8U3.js → TransactionDetailPage-CX4JW9WM-gkT488m-.js} +3 -3
  162. package/dist/assets/{TransactionList-BixeXh4Y-D5p8k6VE.js → TransactionList-BixeXh4Y-CBLpnxhT.js} +13 -13
  163. package/dist/assets/{TransactionListBig-CGMMJQBd-DtMoV0wS.js → TransactionListBig-CGMMJQBd-Bi6fPPO-.js} +7 -7
  164. package/dist/assets/{TransactionListPage-CBVUTX4y-B8N6WUAF.js → TransactionListPage-CBVUTX4y-DvUQlgTG.js} +5 -5
  165. package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-B5vno7Kx.js → TransactionVendorDetailPage-CEbHH_0r-vhA6GFtl.js} +4 -4
  166. package/dist/assets/{TransferDrawerPage-BFd7uQnF-DiQCCcuy.js → TransferDrawerPage-BFd7uQnF-CdQTDGt-.js} +32 -32
  167. package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-CiIm-PN1.js → TreasuryOverviewPage-Bd58hOy8-DrtmZ_fp.js} +28 -28
  168. package/dist/assets/{TreasuryPromoPage-BvArufHi-H2j749vC.js → TreasuryPromoPage-BvArufHi-zGiWS1XQ.js} +6 -6
  169. package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-CcMOOxjw.js → TreasuryStatementsPage-YLCEBbRh-rIAdAl8t.js} +1 -1
  170. package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-yYkV0iu8.js → TreasuryTaxLetterPage-D_6mgQqi-DYRPEoC2.js} +1 -1
  171. package/dist/assets/{TrendChart-D3dT6hUb-BHuMWYoT.js → TrendChart-D3dT6hUb-DkxaRhLn.js} +3 -3
  172. package/dist/assets/{TrendWithTransactions-Gj-u5KXi-81d3HYcO.js → TrendWithTransactions-Gj-u5KXi-BXQxjthK.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-BVdGDC68.js → UncategorizedAccountsMappingPage-B3eRYolj-CDmprZps.js} +3 -3
  174. package/dist/assets/{UnitIntegrationPage-DpjR9hUu-BLAHxX13.js → UnitIntegrationPage-DpjR9hUu-B-HccwC1.js} +4 -4
  175. package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js +38 -0
  176. package/dist/assets/Vendor2FAPopup-C85mhuSb-CEUsiGHn.js +1 -0
  177. package/dist/assets/VendorACHDetailsPage-DeexeWpV-CWx4yTGx.js +1 -0
  178. package/dist/assets/{VendorDetailPage-BrbKfsL4-DjpTEW-F.js → VendorDetailPage-BrbKfsL4-Cj99XIhO.js} +86 -86
  179. package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-CPIfYbL9.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-BFued49C.js → VendorFiling1099EditablePage-DgBLn3fd-BC-C_gXr.js} +32 -32
  181. package/dist/assets/{VendorFirstReviewPage-jc7-OExI-G9JlI2Cf.js → VendorFirstReviewPage-jc7-OExI-B_u4wn_i.js} +58 -58
  182. package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-jfoBKQiW.js → VendorInternationalWireDetailsPage-c6isgwH2-G6KTzCh7.js} +7 -7
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-BuJYqFug.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection--VfdAF3H-D5xEFwOn.js → VendorsAccountsSection--VfdAF3H-CNAOxlvC.js} +2 -2
  185. package/dist/assets/{VerifyDevice-CaifjdR8-C5gOkIzM.js → VerifyDevice-CaifjdR8-B6dVM-BL.js} +1 -1
  186. package/dist/assets/VideoPlayer-BVR9LPmm-B4UxpKEs.js +78 -0
  187. package/dist/assets/{VideoPopup-BEXc8o78-CVV-ILBt.js → VideoPopup-BEXc8o78-DJiZW-Cs.js} +5 -5
  188. package/dist/assets/{WarningsDrawerPage-CboqfxzC-DFYQ5K3H.js → WarningsDrawerPage-CboqfxzC-gF7sCXHr.js} +4 -4
  189. package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-CqcpFC6J.js → ZeniAccountDetailPage-Dujj0-XC-V9rgFIsn.js} +21 -21
  190. package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-CM-NK1x4.js → ZeniAccountListViewPage--SMJDGvC-CZS6XXwc.js} +1 -1
  191. package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-CkX8FMny.js +14 -0
  192. package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-C-Z-wjK6.js → ZeniAccountPromoPage-BVjJvWsA-B4Bz7FjR.js} +6 -6
  193. package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-DMWDIaa0.js → ZeniAccountSetupPage-Dvxst8RT-Dv9aj6me.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-B88k3pkr-BZVlJOkG.js → ZeniCopyright-B88k3pkr-BvEC_X2s.js} +1 -1
  195. package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-DXZHqv18.js +63 -0
  196. package/dist/assets/add-to-wallet-DgdBD8_G-D178ysGy.js +1 -0
  197. package/dist/assets/{analytics-CHPpxU3b.js → analytics-D090O6Wm.js} +1 -1
  198. package/dist/assets/analyticsHelper-CW9XC1-j.js +1 -0
  199. package/dist/assets/{analyticsHelper-DmujELNG-CREtjHan.js → analyticsHelper-DmujELNG-CdoVsqKC.js} +1 -1
  200. package/dist/assets/arrow-south-east-round-PEovUgvH-Ccxih1KW.js +1 -0
  201. package/dist/assets/auto-transfer-rule-mbafm5D3-CaIDNTCx.js +1 -0
  202. package/dist/assets/{chartTypes-DRiSljvE-CV6dAhnU.js → chartTypes-DRiSljvE-DHGd6p3G.js} +1 -1
  203. package/dist/assets/{commonDimensions-BDftm0gJ-BmGAU2Ka.js → commonDimensions-BDftm0gJ-CtNxdt96.js} +1 -1
  204. package/dist/assets/constants-B1WOPvRN.js +1 -0
  205. package/dist/assets/core-BCGhSsNP.js +62 -0
  206. package/dist/assets/{dash.all.min-Bzta_mrR.js → dash.all.min-DQU9jzwW.js} +1 -1
  207. package/dist/assets/{detailCommon-BGgE4mE3-DcwKCO51.js → detailCommon-BGgE4mE3-BIZKCRTc.js} +3 -3
  208. package/dist/assets/{downloadPdf-DCQ9vVZs-BHlJTitV.js → downloadPdf-DCQ9vVZs-BAK1KQub.js} +1 -1
  209. package/dist/assets/empty-BFpyIT14.js +1 -0
  210. package/dist/assets/empty-Db_Oj0CQ.js +1 -0
  211. package/dist/assets/epic-BhAddVo8.js +2 -0
  212. package/dist/assets/gift-box-Cmt9OgIZ-BVmGGIyo.js +1 -0
  213. package/dist/assets/graphic-no-data-l-DU4J8fDt-BUSuwQOu.js +1 -0
  214. package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-9rVTKZNa.js +1 -0
  215. package/dist/assets/handshake-BPg58FML-DBfm_e1t.js +1 -0
  216. package/dist/assets/{hls-SyH7Grr1.js → hls-DifHSkbp.js} +1 -1
  217. package/dist/assets/{index-DDpxinoY.js → index-BGhFLU7w.js} +582 -582
  218. package/dist/assets/index-BpEXgtW2.js +1 -0
  219. package/dist/assets/index-CrL4860P.js +1 -0
  220. package/dist/assets/index-DOvOS8E_.js +1 -0
  221. package/dist/assets/{index-BG_bOyH4.js → index-DT-oXxhz.js} +3 -3
  222. package/dist/assets/index-DuKH4leN.js +1 -0
  223. package/dist/assets/{index-BiiqfeFx.js → index-RjyLdqZN.js} +1 -1
  224. package/dist/assets/{lexical-dZFDzIA1.js → lexical-CtZYfzDm.js} +1 -1
  225. package/dist/assets/{liveblocks-C2I4vRCJ.js → liveblocks-DjrSQGDL.js} +28 -20
  226. package/dist/assets/lottie-QlMyEFez.js +9 -0
  227. package/dist/assets/{mapLoadingInProgressToTreeNode-CXP8ZZTG-CTGwDEAX.js → mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js} +1 -1
  228. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZSP-VcP-DnxPTr5m.js → mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js} +1 -1
  229. package/dist/assets/{mapSpacerToTreeNode-Bc1S_1ej-CYjFYdJ9.js → mapSpacerToTreeNode-Bc1S_1ej-D8Xyxewi.js} +1 -1
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-ClgcHX26-NiO57h1_.js → mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js} +1 -1
  231. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cwp98PMa-D8SBCace.js → mapTimeframeBalancesToTreeNode-Cwp98PMa-D47kQKR9.js} +1 -1
  232. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-2wcYi7O-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-ExH9IzF0.js} +1 -1
  233. package/dist/assets/mui-8xKzSljO.js +17 -0
  234. package/dist/assets/page-detail-CWX5S47F-DjAUkIIu.js +1 -0
  235. package/dist/assets/radio-default-CiSgisfh-DioVIMbJ.js +1 -0
  236. package/dist/assets/{react-KsUvriAa.js → react-1fNkcXJk.js} +2 -2
  237. package/dist/assets/react-5bc96E7k.js +17 -0
  238. package/dist/assets/{react-PdDuKQQV.js → react-BpMq70Jz.js} +1 -1
  239. package/dist/assets/{react-BuuImry8.js → react-C26MaKuf.js} +1 -1
  240. package/dist/assets/{react-C5CamjHm.js → react-CQVfZdRf.js} +2 -2
  241. package/dist/assets/{react-B2Dtpj08.js → react-CvSzLYZW.js} +2 -2
  242. package/dist/assets/{react-D9gRIIQJ.js → react-DEufTa0Y.js} +2 -2
  243. package/dist/assets/{react-CurU10nF.js → react-euUD_2CS.js} +3 -3
  244. package/dist/assets/recharts-BnXj3KRI.js +73 -0
  245. package/dist/assets/sentry-C9BQzslk.js +515 -0
  246. package/dist/assets/shield-DOlUxcFf-DfgTXsyM.js +1 -0
  247. package/dist/assets/{toCOABalancesWithID--oEGymMJ-DR0b-mdX.js → toCOABalancesWithID--oEGymMJ-DkNt3ShR.js} +1 -1
  248. package/dist/assets/toChartData-CavJzP6f-MNPPYJmI.js +1 -0
  249. package/dist/assets/transaction-placeholder-CpOwZAMG-DvtWJS0D.js +1 -0
  250. package/dist/assets/{uploadAttachment-BuVCsq0Q-zKioks8R.js → uploadAttachment-BuVCsq0Q-S-SyFEfz.js} +7 -7
  251. package/dist/assets/{uploadReceipts-CPw64UYa-C0--mSOy.js → uploadReceipts-CPw64UYa-BH5K-sl5.js} +1 -1
  252. package/dist/assets/url-MazUlenF.js +1 -0
  253. package/dist/assets/{url-RUB1rBsd.js → url-WfClTpIP.js} +1 -1
  254. package/dist/assets/useLongPress-GCK2COYQ-DGIP6WpU.js +1 -0
  255. package/dist/assets/usp-line-BBd1wKwW-CVrOUZlu.js +1 -0
  256. package/dist/assets/{utils-DUsHM-Uc.js → utils-zYB6z_it.js} +19 -19
  257. package/dist/assets/{zeni-epic-state-CQt4n3Xe.js → zeni-epic-state-D9zDRHOK.js} +34 -34
  258. package/dist/index.html +1 -1
  259. package/package.json +3 -3
  260. package/dist/assets/ACHDetailsPage-B6sY0jN6-QcJjVZLW.js +0 -21
  261. package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-DfK93MR3.js +0 -6
  262. package/dist/assets/CardNumberSubText-BYY-Inxd-BF9mueWC.js +0 -21
  263. package/dist/assets/ConfettiBurst-Cl6jHJ8H-CSCZc3Am.js +0 -1
  264. package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-BcjiZZxB.js +0 -1
  265. package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-DYmoezK0.js +0 -202
  266. package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-DmY76tPV.js +0 -12
  267. package/dist/assets/DepositAccTransactionListPage-B6px7upV-Cv-bpsAZ.js +0 -66
  268. package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-Dc980arD.js +0 -21
  269. package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-LBs1AfJr.js +0 -16
  270. package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-C1Uh1KWH.js +0 -1
  271. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-DlGiUpRU.js +0 -1
  272. package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-BJ6bmenf.js +0 -1
  273. package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-Cd8bErwn.js +0 -17
  274. package/dist/assets/MailingDetailsSection-CiJ5JLA6-Cv8N5toW.js +0 -21
  275. package/dist/assets/Menu-wpP8R1br-C8t8BK70.js +0 -17
  276. package/dist/assets/NoDataChart-C5ZP32zB-DUId3_Lj.js +0 -26
  277. package/dist/assets/NoDataTable-BnBYE8p_-3MJZp5mC.js +0 -8
  278. package/dist/assets/Preview-D0lKYz6_.js +0 -1
  279. package/dist/assets/SetUpAccountSection-C1EnJv1V-xzskbN4f.js +0 -378
  280. package/dist/assets/SignInScreen-FZ4QwHzk.js +0 -1
  281. package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-CEOzWsBe.js +0 -38
  282. package/dist/assets/Vendor2FAPopup-C85mhuSb-C6pzaZ31.js +0 -1
  283. package/dist/assets/VendorACHDetailsPage-DeexeWpV-CCXex94-.js +0 -1
  284. package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-eyjP7Ln-.js +0 -1
  285. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-C4ZxXJOV.js +0 -1
  286. package/dist/assets/VideoPlayer-BVR9LPmm-CvUJV07D.js +0 -78
  287. package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-C8FJNePa.js +0 -14
  288. package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-B25HwNSf.js +0 -63
  289. package/dist/assets/add-to-wallet-DgdBD8_G-DvwlYBb0.js +0 -1
  290. package/dist/assets/analyticsHelper-lfrGqA3D.js +0 -1
  291. package/dist/assets/arrow-south-east-round-PEovUgvH-D9klpzRU.js +0 -1
  292. package/dist/assets/auto-transfer-rule-mbafm5D3-CHCjFoIN.js +0 -1
  293. package/dist/assets/constants-B4Ak6U9p.js +0 -1
  294. package/dist/assets/core-CA3j8Axi.js +0 -77
  295. package/dist/assets/empty-CrPfQgao.js +0 -1
  296. package/dist/assets/empty-Dn000SHy.js +0 -1
  297. package/dist/assets/epic-C_I3d-Sx.js +0 -2
  298. package/dist/assets/gift-box-Cmt9OgIZ-eSACml6z.js +0 -1
  299. package/dist/assets/graphic-no-data-l-DU4J8fDt-BzIPOWHn.js +0 -1
  300. package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-CtBcTNoa.js +0 -1
  301. package/dist/assets/handshake-BPg58FML-DvA7MfJg.js +0 -1
  302. package/dist/assets/index-BWZriWwb.js +0 -1
  303. package/dist/assets/index-C-ypGNlB.js +0 -1
  304. package/dist/assets/index-C4-PHmb9.js +0 -1
  305. package/dist/assets/index-C5fdNIhc.js +0 -1
  306. package/dist/assets/lottie-B7mXQ-R-.js +0 -9
  307. package/dist/assets/mui-DpJXlk4t.js +0 -25
  308. package/dist/assets/page-detail-CWX5S47F-Byx36A1h.js +0 -1
  309. package/dist/assets/radio-default-CiSgisfh-HcY1qXLg.js +0 -1
  310. package/dist/assets/react-B7zczQTC.js +0 -17
  311. package/dist/assets/recharts-BGdJnVo5.js +0 -73
  312. package/dist/assets/sentry-BA4piVNf.js +0 -500
  313. package/dist/assets/shield-DOlUxcFf-DciCHlJY.js +0 -1
  314. package/dist/assets/toChartData-CavJzP6f-KkbBsImT.js +0 -1
  315. package/dist/assets/transaction-placeholder-CpOwZAMG-2yCTNaDx.js +0 -1
  316. package/dist/assets/url-Bq2XNMnM.js +0 -1
  317. package/dist/assets/useLongPress-GCK2COYQ-Ch-mrcwO.js +0 -1
  318. package/dist/assets/usp-line-BBd1wKwW-BZdA9pHf.js +0 -1
@@ -1,4 +1,4 @@
1
- import{V as o,C as M,d as T,q as v,aK as A,bz as ne,F as c,n as re,m as ie,y as W,b as ae,o as s,aA as ce,aS as le,D as de,cz as ge,bw as me,c as $,bD as pe,cA as he,aQ as fe,aR as ue,b8 as xe}from"./index-DDpxinoY.js";import{a as F}from"./core-CA3j8Axi.js";import{n as r}from"./mui-DpJXlk4t.js";import{R as we}from"./NavBarWithPicker-C_qO8mgD-BXQJ2aBI.js";import{m as Se}from"./analyticsHelper-DmujELNG-CREtjHan.js";import{M as be}from"./TimeframeSwitcherWithToggle-a3fmbzNR-BNAWd54k.js";import{I as je,a as ye}from"./CollapsableReportTable-hL_Ycouc-BeVhCFjP.js";import{M as E}from"./usp-line-BBd1wKwW-BZdA9pHf.js";import{EY as $e,EZ as Ce}from"./zeni-epic-state-CQt4n3Xe.js";import{D as Pe,T as ke,C as ze}from"./mapSectionWithAcOnlyToTreeNode-BZSP-VcP-DnxPTr5m.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClgcHX26-NiO57h1_.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";import"./TimeframeSwitcher-By3xz_-m-C7-16i-O.js";import"./AccountRow-BM2kGWyR-CUEabI22.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7c244b63-8f56-4a1b-9d10-c5bc841b50b0",e._sentryDebugIdIdentifier="sentry-dbid-7c244b63-8f56-4a1b-9d10-c5bc841b50b0")}catch{}})();const q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
1
+ import{V as o,C as M,d as T,q as v,bz as ne,F as c,n as re,aM as A,m as ie,b as ae,y as W,o as s,aA as ce,aS as le,D as de,cz as ge,bw as me,c as $,cA as pe,aQ as he,aR as fe,b8 as ue,bI as xe}from"./index-BGhFLU7w.js";import{a as F}from"./sentry-C9BQzslk.js";import{n as r}from"./mui-8xKzSljO.js";import{R as we}from"./NavBarWithPicker-C_qO8mgD-DeDCa5cM.js";import{m as Se}from"./analyticsHelper-DmujELNG-CdoVsqKC.js";import{M as je}from"./TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js";import{I as be,a as ye}from"./CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js";import{M as E}from"./usp-line-BBd1wKwW-CVrOUZlu.js";import{EX as $e,EY as Ce}from"./zeni-epic-state-D9zDRHOK.js";import{D as Pe,T as ke,C as ze}from"./mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./TimeframeSwitcher-By3xz_-m-4vvkqeCS.js";import"./AccountRow-BM2kGWyR-CEX7zEFS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7791621a-320f-44ee-8271-5bad3c2da18d",e._sentryDebugIdIdentifier="sentry-dbid-7791621a-320f-44ee-8271-5bad3c2da18d")}catch{}})();const q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -17,17 +17,17 @@ import{V as o,C as M,d as T,q as v,aK as A,bz as ne,F as c,n as re,m as ie,y as
17
17
  margin: auto;
18
18
  padding: ${s.sp5} ${s.sp0};
19
19
  color: ${e=>e.theme.colors.primary};
20
- `,Z=r.div`
20
+ `,Q=r.div`
21
21
  display: flex;
22
22
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
23
23
  align-items: center;
24
24
  justify-content: center;
25
25
  margin-bottom: ${e=>e.windowSize==="small"?s.sp3:s.sp4};
26
- `,Me=r.div``,K=r.div`
26
+ `,Me=r.div``,X=r.div`
27
27
  width: ${e=>e.windowSize==="small"?"auto":"408px"};
28
28
  display: flex;
29
29
  flex-direction: column;
30
- `,Q=r.div`
30
+ `,Z=r.div`
31
31
  width: ${e=>e.windowSize==="small"?"100%":"calc(100% - 408px)"};
32
32
  overflow: hidden;
33
33
  max-width: 712px;
@@ -50,17 +50,17 @@ import{V as o,C as M,d as T,q as v,aK as A,bz as ne,F as c,n as re,m as ie,y as
50
50
  align-items: center;
51
51
  text-align: start;
52
52
  box-sizing: border-box;
53
- `,N=r(xe)`
53
+ `,N=r(ue)`
54
54
  color: ${e=>e.theme.colors.champion};
55
- `,_=r(ue)`
55
+ `,_=r(fe)`
56
56
  color: ${e=>e.theme.colors.champion};
57
- `,B=r(fe)`
57
+ `,B=r(he)`
58
58
  color: ${e=>e.theme.colors.champion};
59
- `,O=r(he)`
59
+ `,O=r(pe)`
60
60
  color: ${e=>e.theme.colors.champion};
61
61
  `,P=r.div``,k=r.div`
62
62
  padding-left: ${s.sp3};
63
- `,X=r(E)`
63
+ `,K=r(E)`
64
64
  color: ${e=>e.theme.colors.graphColor18};
65
65
  `,ee=r(E)`
66
66
  color: ${e=>e.theme.colors.graphColor25};
@@ -70,7 +70,7 @@ import{V as o,C as M,d as T,q as v,aK as A,bz as ne,F as c,n as re,m as ie,y as
70
70
  margin: ${s.sp3} auto;
71
71
  max-width: 422px;
72
72
  color: ${e=>e.theme.colors.hero};
73
- `,Fe=()=>{const e=T(),t=v();return o.jsxs(Z,{windowSize:t,children:[o.jsx(Q,{windowSize:t,children:o.jsx(J,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(X,{})}),o.jsxs(k,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},Ne=()=>{const e=T(),t=v();return o.jsxs(Z,{windowSize:t,children:[o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(X,{})}),o.jsxs(k,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(Q,{windowSize:t,children:o.jsx(J,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},_e=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const a=T(),l=v(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ve,{"data-testid":A("forecast-promo-page"),children:[o.jsx(ne,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:a.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(Le,{"data-testid":A("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Ie,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Te,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Fe,{}):o.jsx(Ne,{}),o.jsxs(Me,{"data-testid":A("forecast-promo-bottom-container"),children:[o.jsx(re,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Ae,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Be(e,t,n=!0){const a=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],p=Y({balances:d,config:t}),m=[];return m.push(p),e.idsInOrder.forEach(i=>{if($e(i)===!0){const u=e.sections[i];if(u==null)return;u.accountGroups.length>0?m.push(Pe({section:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t})):m.push(ke({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}else Ce(i)===!0&&m.push(ze({calculatedSection:e.calculatedSections[i],numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[p]:[],contentNodes:m}}function Oe(e,t,n,a=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=Y({balances:l,config:t,nodeId:e.contentNodes[0].id}),p=e.contentNodes.slice(1);return p.forEach(m=>te(m,t)),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...p]}}function te(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>te(n,t))}const L={contentPaddingLeft:new W($[3],$[3],$[8]),contentPaddingRight:new W($[3],$[3],$[8])},Ee=r.div`
73
+ `,Fe=()=>{const e=T(),t=v();return o.jsxs(Q,{windowSize:t,children:[o.jsx(Z,{windowSize:t,children:o.jsx(J,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(X,{windowSize:t,children:[o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(K,{})}),o.jsxs(k,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},Ne=()=>{const e=T(),t=v();return o.jsxs(Q,{windowSize:t,children:[o.jsxs(X,{windowSize:t,children:[o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(K,{})}),o.jsxs(k,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(Z,{windowSize:t,children:o.jsx(J,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},_e=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const a=T(),l=v(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ve,{"data-testid":A("forecast-promo-page"),children:[o.jsx(ne,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:a.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(Le,{"data-testid":A("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Ie,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Te,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Fe,{}):o.jsx(Ne,{}),o.jsxs(Me,{"data-testid":A("forecast-promo-bottom-container"),children:[o.jsx(re,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Ae,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Be(e,t,n=!0){const a=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],p=Y({balances:d,config:t}),m=[];return m.push(p),e.idsInOrder.forEach(i=>{if($e(i)===!0){const u=e.sections[i];if(u==null)return;u.accountGroups.length>0?m.push(Pe({section:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t})):m.push(ke({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}else Ce(i)===!0&&m.push(ze({calculatedSection:e.calculatedSections[i],numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[p]:[],contentNodes:m}}function Oe(e,t,n,a=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=Y({balances:l,config:t,nodeId:e.contentNodes[0].id}),p=e.contentNodes.slice(1);return p.forEach(m=>te(m,t)),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...p]}}function te(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>te(n,t))}const L={contentPaddingLeft:new W($[3],$[3],$[8]),contentPaddingRight:new W($[3],$[3],$[8])},Ee=r.div`
74
74
  display: flex;
75
75
  flex: 1 1 auto;
76
76
  min-height: 100%;
@@ -104,4 +104,4 @@ import{V as o,C as M,d as T,q as v,aK as A,bz as ne,F as c,n as re,m as ie,y as
104
104
  align-items: center;
105
105
  justify-content: center;
106
106
  margin-bottom: ${s.sp3};
107
- `,Ge=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:p,onBackClick:m,isPandLReportFetching:i,onClickMenuIcon:u})=>{const h=v(),f=[];for(let g=0;g<e.length;++g)f.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:f,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ae.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:m,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},j={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>p?.(g)}};return o.jsxs(De,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(we,{...x}),i?"":o.jsx(We,{children:o.jsx(be,{...j})})]})},Ue=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:p,onTableScroll:m,nodeOpenStatus:i,onNodeCollapseToggled:u})=>{const h=T(),f=v(),[x,j]=F.useState(void 0),[g,z]=F.useState(void 0),y=!(f==="small"||f==="medium-compact"),I=n===!0?"actual_vs_forecast":"none";return F.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:I,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:ye(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:pe()};if(x==null||!ce(g,e)){const w=Be(e,S,y);z(e),j(w)}else{const w=Oe(x,S,e,y);j(w)}},[t,n,e]),x!=null?o.jsx(je,{backgroundColor:new le(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:L.contentPaddingLeft.value(f),right:L.contentPaddingRight.value(f)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:p,onScroll:m,nodeOpenStatus:i,onNodeCollapseToggled:u}):null};function fo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:p,meetingUrl:m,analytics:i,onForecastSelectionChanged:u,onTimeframeChanged:h,onForecastVsActualsCompareToggle:f,onAccountBalanceClick:x,onCompareModeChanged:j,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:I,onBackClick:S,onClickMenuIcon:w}){const V=[a.fetchState,d.fetchState],R=l?.index??-1;return se(V)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(_e,{meetingUrl:m,onBackClick:S,onClickMenuIcon:w}):U([a.fetchState])===!0?o.jsx(G,{fetchState:qe(V)}):o.jsxs(Ee,{children:[o.jsx(Ge,{forecastList:a.forecasts,selectedForecastIndex:R,onForecastSelectionChanged:(b,D)=>{i?.trackForecastSwitch(M.Event.profitAndLossWithForecast,a.forecasts[D].name),u?.(b,D)},vsActualOn:t,onVsActualChanged:b=>{i?.trackForecastVsActualMode(M.Event.profitAndLossWithForecast,a.forecasts[R].name,b),f?.(b)},selectedTimeframe:e,onTimeframeChanged:b=>{i?.trackTimeframeSwitch(Se(b),M.Event.profitAndLossWithForecast),h?.(b)},onBackClick:S,isPandLReportFetching:U([d.fetchState]),onClickMenuIcon:w}),d.fetchState==="In-Progress"?o.jsx(G,{fetchState:"In-Progress"}):o.jsx(Ve,{children:o.jsx(Ue,{report:d,type:p,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:j,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:I})})]})}const Ye=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),se=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),U=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),qe=e=>Ye(e)===!0?"Completed":se(e)===!0?"Error":"In-Progress";export{fo as default,U as isAnyInProgress};
107
+ `,Ge=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:p,onBackClick:m,isPandLReportFetching:i,onClickMenuIcon:u})=>{const h=v(),f=[];for(let g=0;g<e.length;++g)f.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:f,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ae.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:m,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},b={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>p?.(g)}};return o.jsxs(De,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(we,{...x}),i?"":o.jsx(We,{children:o.jsx(je,{...b})})]})},Ue=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:p,onTableScroll:m,nodeOpenStatus:i,onNodeCollapseToggled:u})=>{const h=T(),f=v(),[x,b]=F.useState(void 0),[g,z]=F.useState(void 0),y=!(f==="small"||f==="medium-compact"),I=n===!0?"actual_vs_forecast":"none";return F.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:I,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:ye(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:xe()};if(x==null||!ce(g,e)){const w=Be(e,S,y);z(e),b(w)}else{const w=Oe(x,S,e,y);b(w)}},[t,n,e]),x!=null?o.jsx(be,{backgroundColor:new le(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:L.contentPaddingLeft.value(f),right:L.contentPaddingRight.value(f)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:p,onScroll:m,nodeOpenStatus:i,onNodeCollapseToggled:u}):null};function fo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:p,meetingUrl:m,analytics:i,onForecastSelectionChanged:u,onTimeframeChanged:h,onForecastVsActualsCompareToggle:f,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:I,onBackClick:S,onClickMenuIcon:w}){const V=[a.fetchState,d.fetchState],R=l?.index??-1;return se(V)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(_e,{meetingUrl:m,onBackClick:S,onClickMenuIcon:w}):U([a.fetchState])===!0?o.jsx(G,{fetchState:qe(V)}):o.jsxs(Ee,{children:[o.jsx(Ge,{forecastList:a.forecasts,selectedForecastIndex:R,onForecastSelectionChanged:(j,D)=>{i?.trackForecastSwitch(M.Event.profitAndLossWithForecast,a.forecasts[D].name),u?.(j,D)},vsActualOn:t,onVsActualChanged:j=>{i?.trackForecastVsActualMode(M.Event.profitAndLossWithForecast,a.forecasts[R].name,j),f?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(Se(j),M.Event.profitAndLossWithForecast),h?.(j)},onBackClick:S,isPandLReportFetching:U([d.fetchState]),onClickMenuIcon:w}),d.fetchState==="In-Progress"?o.jsx(G,{fetchState:"In-Progress"}):o.jsx(Ve,{children:o.jsx(Ue,{report:d,type:p,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:I})})]})}const Ye=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),se=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),U=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),qe=e=>Ye(e)===!0?"Completed":se(e)===!0?"Error":"In-Progress";export{fo as default,U as isAnyInProgress};
@@ -1,4 +1,4 @@
1
- import{M as pe,F as le,aN as Ne,b as te,o as u,p as H,q as ue,V as i,bP as Be,d as ke,cO as Fe,aS as ae,y as oe,bu as Ve,bS as qe,ak as Re,aO as He,ad as me,c as Ke,gO as Ge,al as Je,a as Ze}from"./index-DDpxinoY.js";import{S as l,P as p,a as O}from"./core-CA3j8Axi.js";import{n as v}from"./mui-DpJXlk4t.js";import{F as Ye}from"./SetUpAccountSection-C1EnJv1V-xzskbN4f.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c368d7c8-3324-45fd-b360-cc06c0f85d57",t._sentryDebugIdIdentifier="sentry-dbid-c368d7c8-3324-45fd-b360-cc06c0f85d57")}catch{}})();function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(n){Ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function re(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(e){return typeof e}:re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Qe(t,e)||et(t,e)||tt()}function Xe(t){if(Array.isArray(t))return t}function Qe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,c,m;try{for(r=r.call(t);!(a=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(o){s=!0,m=o}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw m}}return n}}function et(t,e){if(t){if(typeof t=="string")return he(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(t,e)}}function he(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{M as pe,aN as Ne,b as te,o as u,p as H,q as le,V as i,bP as Be,d as ke,cO as Fe,aS as ae,F as ue,y as oe,bu as Ve,bS as qe,ak as Re,aO as He,ad as me,c as Ke,gO as Ge,al as Je,a as Ze}from"./index-BGhFLU7w.js";import{S as l,a as O}from"./sentry-C9BQzslk.js";import{n as v}from"./mui-8xKzSljO.js";import{P as p}from"./core-BCGhSsNP.js";import{F as Ye}from"./SetUpAccountSection-C1EnJv1V-BqOATLaf.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="39e69863-a966-4983-b00e-2f0e1580cddb",t._sentryDebugIdIdentifier="sentry-dbid-39e69863-a966-4983-b00e-2f0e1580cddb")}catch{}})();function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(n){Ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function re(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(e){return typeof e}:re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Qe(t,e)||et(t,e)||tt()}function Xe(t){if(Array.isArray(t))return t}function Qe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,c,m;try{for(r=r.call(t);!(a=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(o){s=!0,m=o}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw m}}return n}}function et(t,e){if(t){if(typeof t=="string")return he(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(t,e)}}function he(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=function(e,r,n){var a=!!n,s=l.useRef(n);l.useEffect(function(){s.current=n},[n]),l.useEffect(function(){if(!a||!e)return function(){};var c=function(){s.current&&s.current.apply(s,arguments)};return e.on(r,c),function(){e.off(r,c)}},[a,r,e,s])},se=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},K=function(e){return e!==null&&re(e)==="object"},rt=function(e){return K(e)&&typeof e.then=="function"},nt=function(e){return K(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},ye="[object Object]",at=function t(e,r){if(!K(e)||!K(r))return e===r;var n=Array.isArray(e),a=Array.isArray(r);if(n!==a)return!1;var s=Object.prototype.toString.call(e)===ye,c=Object.prototype.toString.call(r)===ye;if(s!==c)return!1;if(!s&&!n)return e===r;var m=Object.keys(e),o=Object.keys(r);if(m.length!==o.length)return!1;for(var h={},f=0;f<m.length;f+=1)h[m[f]]=!0;for(var x=0;x<o.length;x+=1)h[o[x]]=!0;var g=Object.keys(h);if(g.length!==m.length)return!1;var P=e,w=r,S=function(A){return t(P[A],w[A])};return g.every(S)},Ie=function(e,r,n){return K(e)?Object.keys(e).reduce(function(a,s){var c=!K(r)||!at(e[s],r[s]);return n.includes(s)?(c&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),a):c?ge(ge({},a||{}),{},Ae({},s,e[s])):a},null):null},Oe="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ve=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe;if(e===null||nt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe;if(rt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(a){return ve(a,r)})};var n=ve(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},st=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},ne=l.createContext(null);ne.displayName="ElementsContext";var Ue=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},ze=function(e){var r=e.stripe,n=e.options,a=e.children,s=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(n):null}}),m=$e(c,2),o=m[0],h=m[1];l.useEffect(function(){var g=!0,P=function(S){h(function(j){return j.stripe?j:{stripe:S,elements:S.elements(n)}})};return s.tag==="async"&&!o.stripe?s.stripePromise.then(function(w){w&&g&&P(w)}):s.tag==="sync"&&!o.stripe&&P(s.stripe),function(){g=!1}},[s,o,n]);var f=se(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var x=se(n);return l.useEffect(function(){if(o.elements){var g=Ie(n,x,["clientSecret","fonts"]);g&&o.elements.update(g)}},[n,x,o.elements]),l.useEffect(function(){st(o.stripe)},[o.stripe]),l.createElement(ne.Provider,{value:o},a)};ze.propTypes={stripe:p.any,options:p.object};var it=function(e){var r=l.useContext(ne);return Ue(r,e)},ct=function(){var e=it("calls useElements()"),r=e.elements;return r};p.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var lt=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},ut=l.createContext(null);ut.displayName="CustomCheckoutContext";p.any,p.shape({clientSecret:p.string.isRequired,elementsOptions:p.object}).isRequired;var ie=function(e){var r=l.useContext(_e),n=l.useContext(ne);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?lt(r,e):Ue(n,e)},dt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},C=function(e,r){var n="".concat(dt(e),"Element"),a=function(o){var h=o.id,f=o.className,x=o.options,g=x===void 0?{}:x,P=o.onBlur,w=o.onFocus,S=o.onReady,j=o.onChange,A=o.onEscape,B=o.onClick,F=o.onLoadError,V=o.onLoaderStart,D=o.onNetworksChange,$=o.onConfirm,G=o.onCancel,M=o.onShippingAddressChange,N=o.onShippingRateChange,U=ie("mounts <".concat(n,">")),_="elements"in U?U.elements:null,E="customCheckoutSdk"in U?U.customCheckoutSdk:null,z=l.useState(null),T=$e(z,2),y=T[0],W=T[1],L=l.useRef(null),q=l.useRef(null);k(y,"blur",P),k(y,"focus",w),k(y,"escape",A),k(y,"click",B),k(y,"loaderror",F),k(y,"loaderstart",V),k(y,"networkschange",D),k(y,"confirm",$),k(y,"cancel",G),k(y,"shippingaddresschange",M),k(y,"shippingratechange",N),k(y,"change",j);var J;S&&(e==="expressCheckout"?J=S:J=function(){S(y)}),k(y,"ready",J),l.useLayoutEffect(function(){if(L.current===null&&q.current!==null&&(_||E)){var I=null;E?I=E.createElement(e,g):_&&(I=_.create(e,g)),L.current=I,W(I),I&&I.mount(q.current)}},[_,E,g]);var de=se(g);return l.useEffect(function(){if(L.current){var I=Ie(g,de,["paymentRequest"]);I&&L.current.update(I)}},[g,de]),l.useLayoutEffect(function(){return function(){if(L.current&&typeof L.current.destroy=="function")try{L.current.destroy(),L.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:q})},s=function(o){ie("mounts <".concat(n,">"));var h=o.id,f=o.className;return l.createElement("div",{id:h,className:f})},c=r?s:a;return c.propTypes={id:p.string,className:p.string,onChange:p.func,onBlur:p.func,onFocus:p.func,onReady:p.func,onEscape:p.func,onClick:p.func,onLoadError:p.func,onLoaderStart:p.func,onNetworksChange:p.func,onConfirm:p.func,onCancel:p.func,onShippingAddressChange:p.func,onShippingRateChange:p.func,options:p.object},c.displayName=n,c.__elementType=e,c},b=typeof window>"u",pt=l.createContext(null);pt.displayName="EmbeddedCheckoutProviderContext";var mt=function(){var e=ie("calls useStripe()"),r=e.stripe;return r};C("auBankAccount",b);C("card",b);var Se=C("cardNumber",b),Ce=C("cardExpiry",b),be=C("cardCvc",b);C("fpxBank",b);C("iban",b);C("idealBank",b);C("p24Bank",b);C("epsBank",b);C("payment",b);C("expressCheckout",b);C("paymentRequestButton",b);C("linkAuthentication",b);C("address",b);C("shippingAddress",b);C("paymentMethodMessaging",b);C("affirmMessage",b);C("afterpayClearpayMessage",b);var Te="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var gt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Te,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},xe=function(e){var r="",n=document.createElement("script");n.src="".concat(Te).concat(r);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},Z=null,Q=null,ee=null,yt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},vt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return Z!==null?Z:(Z=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var a=gt();if(!(a&&e)){if(!a)a=xe(e);else if(a&&ee!==null&&Q!==null){var s;a.removeEventListener("load",ee),a.removeEventListener("error",Q),(s=a.parentNode)===null||s===void 0||s.removeChild(a),a=xe(e)}}ee=vt(r,n),Q=yt(n),a.addEventListener("load",ee),a.addEventListener("error",Q)}catch(c){n(c);return}}),Z.catch(function(r){return Z=null,Promise.reject(r)}))},Ct=function(e,r,n){if(e===null)return null;var a=e.apply(void 0,r);return ht(a,n),a},Y,We=!1,De=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return De()}).catch(function(t){We||console.warn(t)});var bt=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];We=!0;var a=Date.now();return De().then(function(s){return Ct(s,r,a)})};const xt={containerHeight:new oe(656,720)},wt=v.div`
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -82,14 +82,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
82
82
  color: ${H.important};
83
83
  width: 434px;
84
84
  text-align: center;
85
- `,{cardPayment:R,common:{footer:Pe}}=le.getLocalizedStrings(),zt=v(Je)`
85
+ `,{cardPayment:R,common:{footer:Pe}}=ue.getLocalizedStrings(),zt=v(Je)`
86
86
  color: ${t=>t.theme.colors.hero};
87
87
  text-align: center;
88
88
  margin-top: ${u.sp2};
89
- `,Ee=t=>`${t}_form`,je="CardPaymentPaymentForm",_t=({cardPaymentView:t,clientSecret:e,cardSetupInProgress:r,handleConfirmCardSetupIntent:n,updateCardPaymentModalState:a,handleAddCardPaymentSource:s,setCardSetupInProgress:c})=>{const m=mt(),o=ct(),[h,f]=O.useState(!1),[x,g]=O.useState(!1),[P,w]=O.useState(!1),[S,j]=O.useState(!1),A=ue(),B=t.cardSetupConfirmStatus.fetchState,F=t.addCardPaymentSourceStatus.fetchState,V=t.cardSetupIntentStatus.fetchState,[D,$]=O.useState(!1),G=async E=>{if(E.preventDefault(),!m||!o)return;const z=o.getElement(Se),T=o.getElement(Ce),y=o.getElement(be);(!z||!T||!y)&&$(!0),j(!0),c(!0),z!=null&&T!=null&&y!=null&&m.confirmCardSetup(e,{payment_method:{card:z}}).then(W=>{j(!1),n(W),W.setupIntent?.id!=null&&s("card","payment_intent",W.setupIntent?.id)}).catch(()=>{j(!1),setTimeout(()=>{c(!1)},2e3)})},M=ke(),N={showIcon:!0,style:{base:{...te.standardRegular.cssObject,color:M.colors.primary,"::placeholder":{color:M.colors.grey2}},invalid:{color:H.important,iconColor:H.important}}},U=B==="In-Progress"||F==="In-Progress"||V==="In-Progress"||S===!0||r===!0,_=h||x||P||B==="In-Progress"||F==="In-Progress"||V==="In-Progress"||S===!0||r===!0;return i.jsx(Lt,{windowSize:A,children:i.jsxs(Pt,{onSubmit:G,id:Ee(je),children:[i.jsxs(At,{children:[i.jsx($t,{children:i.jsx(It,{children:i.jsx(Se,{options:N,onChange:E=>f(!!E.error)})})}),i.jsx(Ot,{children:i.jsxs(kt,{children:[i.jsx(we,{children:R.cardNumber}),i.jsx(Ce,{options:N,onChange:E=>g(!!E.error)})]})}),i.jsx(Ut,{children:i.jsxs(Rt,{children:[i.jsx(we,{children:R.CVC}),i.jsx(be,{options:N,onChange:E=>w(!!E.error)})]})})]}),t.cardSetupConfirmStatus.error||D?i.jsx(Me,{children:R.errorMsg}):null,i.jsx(He,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:Ee(je),primaryBtn:{label:Pe.linkCard,style:{width:"104px",height:u.sp6},isLoading:U,isDisabled:_,type:"submit"},cancelBtn:{label:Pe.cancel,style:{width:"104px",height:u.sp6},onClick:()=>{a(!1)}}}),i.jsxs(zt,{windowSize:A,children:[R.terms.term1,i.jsx(me,{href:R.terms.term2Link,linkText:R.terms.term2}),R.terms.term3,i.jsx(me,{href:R.terms.term4Link,linkText:R.terms.term4})]})]})})},Jt=({isCardPaymentOpen:t,cardPaymentView:e,stripeKey:r,cardSetupInProgress:n,handleConfirmCardSetupIntent:a,updateCardPaymentModalState:s,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:m,handleResetCardPaymentErrorStatuses:o,setCardSetupInProgress:h})=>{const[f,x]=O.useState(""),g=bt(r),P=Ne(e.addCardPaymentSourceStatus.fetchState),w=e.addCardPaymentSourceStatus.fetchState;O.useEffect(()=>(c(["card"]),()=>{s(!1),x(""),o()}),[]),O.useEffect(()=>{o()},[t]),O.useEffect(()=>{P==="In-Progress"&&w==="Error"?(h(!1),setTimeout(()=>{s(!1)},2e3)):P==="In-Progress"&&w==="Completed"&&(c(["card"]),setTimeout(()=>{s(!1),h(!1)},2e3))},[P,w]),O.useEffect(()=>{(e.cardSetupConfirmStatus.error||e.addCardPaymentSourceStatus.error)&&(c(["card"]),setTimeout(()=>{h(!1)},2e3))},[e.cardSetupConfirmStatus.error,e.addCardPaymentSourceStatus.error]),O.useEffect(()=>{e.clientSecret!=null&&x(e.clientSecret)},[e.clientSecret]);const S={theme:"stripe",variables:{borderRadius:u.sp1,fontSizeBase:te.standardRegular.fontSize,fontFamily:te.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${H.neutralGrey3Light}`,borderRadius:u.sp1,padding:"10px",fontSize:te.standardRegular.fontSize}}},j={clientSecret:f,appearance:S},A=ue();return i.jsx(Be,{open:t,children:i.jsxs(wt,{windowSize:A,isError:!!e.cardSetupConfirmStatus.error,children:[i.jsx(Et,{children:R.title}),i.jsx(jt,{children:R.subtitle}),f&&g!=null?i.jsx(ze,{options:j,stripe:g,children:i.jsx(_t,{clientSecret:f,handleConfirmCardSetupIntent:a,updateCardPaymentModalState:s,handleAddCardPaymentSource:m,cardPaymentView:e,cardSetupInProgress:n,setCardSetupInProgress:h})}):i.jsx(Me,{children:R.errorMsg})]})})},{cardBrands:d}=le.getLocalizedStrings().cardPayment,ce={visa:{name:d.visa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/visa.svg"},mastercard:{name:d.mastercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/mastercard.svg"},american_express:{name:d.american_express,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/amex.svg"},discover:{name:d.discover,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/discover-global.svg"},jcb:{name:d.jcb,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/jcb-card.svg"},diners_club:{name:d.diners_club,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dinersclub.svg"},unionpay:{name:d.unionpay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},rupay:{name:d.rupay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/rupay-card.svg"},bancontact:{name:d.bancontact,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cmr_falabella:{name:d.cmr_falabella,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},tarjeta_naranja:{name:d.tarjeta_naranja,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},nativa:{name:d.nativa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cencosud:{name:d.cencosud,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cabal:{name:d.cabal,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},argencard:{name:d.argencard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},elo:{name:d.elo,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/elo-card.svg"},hipercard:{name:d.hipercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/hipercard.svg"},carnet:{name:d.carnet,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/carnet.svg"},maestro:{name:d.maestro,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/maestro.svg"},not_applicable:{name:d.not_applicable,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},eftpos_australia:{name:d.eftpos_australia,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},girocard:{name:d.girocard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},other:{name:d.other,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},unknown:{name:d.unknown,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}},X={sectionWidth:new oe(343,580,726),iconWidthHeight:new oe(20,Ke[4])},Tt={title:new Ze("standardSemiBold","largeSemiBold")},Le=t=>t?ce[t]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Wt=(t,e,r,n)=>({header:t,title:`${pe(ce[n.cardsList[0]?.brand]?.name??"")} ${e}`,subtitle:`${pe(ce[n.cardsList[0]?.brand]?.name??"")} ${r} ${n.cardsList[0]?.last4}`,status:n.cardsList[0]?.status}),Dt=v.img`
89
+ `,Ee=t=>`${t}_form`,je="CardPaymentPaymentForm",_t=({cardPaymentView:t,clientSecret:e,cardSetupInProgress:r,handleConfirmCardSetupIntent:n,updateCardPaymentModalState:a,handleAddCardPaymentSource:s,setCardSetupInProgress:c})=>{const m=mt(),o=ct(),[h,f]=O.useState(!1),[x,g]=O.useState(!1),[P,w]=O.useState(!1),[S,j]=O.useState(!1),A=le(),B=t.cardSetupConfirmStatus.fetchState,F=t.addCardPaymentSourceStatus.fetchState,V=t.cardSetupIntentStatus.fetchState,[D,$]=O.useState(!1),G=async E=>{if(E.preventDefault(),!m||!o)return;const z=o.getElement(Se),T=o.getElement(Ce),y=o.getElement(be);(!z||!T||!y)&&$(!0),j(!0),c(!0),z!=null&&T!=null&&y!=null&&m.confirmCardSetup(e,{payment_method:{card:z}}).then(W=>{j(!1),n(W),W.setupIntent?.id!=null&&s("card","payment_intent",W.setupIntent?.id)}).catch(()=>{j(!1),setTimeout(()=>{c(!1)},2e3)})},M=ke(),N={showIcon:!0,style:{base:{...te.standardRegular.cssObject,color:M.colors.primary,"::placeholder":{color:M.colors.grey2}},invalid:{color:H.important,iconColor:H.important}}},U=B==="In-Progress"||F==="In-Progress"||V==="In-Progress"||S===!0||r===!0,_=h||x||P||B==="In-Progress"||F==="In-Progress"||V==="In-Progress"||S===!0||r===!0;return i.jsx(Lt,{windowSize:A,children:i.jsxs(Pt,{onSubmit:G,id:Ee(je),children:[i.jsxs(At,{children:[i.jsx($t,{children:i.jsx(It,{children:i.jsx(Se,{options:N,onChange:E=>f(!!E.error)})})}),i.jsx(Ot,{children:i.jsxs(kt,{children:[i.jsx(we,{children:R.cardNumber}),i.jsx(Ce,{options:N,onChange:E=>g(!!E.error)})]})}),i.jsx(Ut,{children:i.jsxs(Rt,{children:[i.jsx(we,{children:R.CVC}),i.jsx(be,{options:N,onChange:E=>w(!!E.error)})]})})]}),t.cardSetupConfirmStatus.error||D?i.jsx(Me,{children:R.errorMsg}):null,i.jsx(He,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:Ee(je),primaryBtn:{label:Pe.linkCard,style:{width:"104px",height:u.sp6},isLoading:U,isDisabled:_,type:"submit"},cancelBtn:{label:Pe.cancel,style:{width:"104px",height:u.sp6},onClick:()=>{a(!1)}}}),i.jsxs(zt,{windowSize:A,children:[R.terms.term1,i.jsx(me,{href:R.terms.term2Link,linkText:R.terms.term2}),R.terms.term3,i.jsx(me,{href:R.terms.term4Link,linkText:R.terms.term4})]})]})})},Zt=({isCardPaymentOpen:t,cardPaymentView:e,stripeKey:r,cardSetupInProgress:n,handleConfirmCardSetupIntent:a,updateCardPaymentModalState:s,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:m,handleResetCardPaymentErrorStatuses:o,setCardSetupInProgress:h})=>{const[f,x]=O.useState(""),g=bt(r),P=Ne(e.addCardPaymentSourceStatus.fetchState),w=e.addCardPaymentSourceStatus.fetchState;O.useEffect(()=>(c(["card"]),()=>{s(!1),x(""),o()}),[]),O.useEffect(()=>{o()},[t]),O.useEffect(()=>{P==="In-Progress"&&w==="Error"?(h(!1),setTimeout(()=>{s(!1)},2e3)):P==="In-Progress"&&w==="Completed"&&(c(["card"]),setTimeout(()=>{s(!1),h(!1)},2e3))},[P,w]),O.useEffect(()=>{(e.cardSetupConfirmStatus.error||e.addCardPaymentSourceStatus.error)&&(c(["card"]),setTimeout(()=>{h(!1)},2e3))},[e.cardSetupConfirmStatus.error,e.addCardPaymentSourceStatus.error]),O.useEffect(()=>{e.clientSecret!=null&&x(e.clientSecret)},[e.clientSecret]);const S={theme:"stripe",variables:{borderRadius:u.sp1,fontSizeBase:te.standardRegular.fontSize,fontFamily:te.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${H.neutralGrey3Light}`,borderRadius:u.sp1,padding:"10px",fontSize:te.standardRegular.fontSize}}},j={clientSecret:f,appearance:S},A=le();return i.jsx(Be,{open:t,children:i.jsxs(wt,{windowSize:A,isError:!!e.cardSetupConfirmStatus.error,children:[i.jsx(Et,{children:R.title}),i.jsx(jt,{children:R.subtitle}),f&&g!=null?i.jsx(ze,{options:j,stripe:g,children:i.jsx(_t,{clientSecret:f,handleConfirmCardSetupIntent:a,updateCardPaymentModalState:s,handleAddCardPaymentSource:m,cardPaymentView:e,cardSetupInProgress:n,setCardSetupInProgress:h})}):i.jsx(Me,{children:R.errorMsg})]})})},{cardBrands:d}=ue.getLocalizedStrings().cardPayment,ce={visa:{name:d.visa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/visa.svg"},mastercard:{name:d.mastercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/mastercard.svg"},american_express:{name:d.american_express,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/amex.svg"},discover:{name:d.discover,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/discover-global.svg"},jcb:{name:d.jcb,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/jcb-card.svg"},diners_club:{name:d.diners_club,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dinersclub.svg"},unionpay:{name:d.unionpay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},rupay:{name:d.rupay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/rupay-card.svg"},bancontact:{name:d.bancontact,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cmr_falabella:{name:d.cmr_falabella,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},tarjeta_naranja:{name:d.tarjeta_naranja,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},nativa:{name:d.nativa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cencosud:{name:d.cencosud,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cabal:{name:d.cabal,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},argencard:{name:d.argencard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},elo:{name:d.elo,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/elo-card.svg"},hipercard:{name:d.hipercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/hipercard.svg"},carnet:{name:d.carnet,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/carnet.svg"},maestro:{name:d.maestro,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/maestro.svg"},not_applicable:{name:d.not_applicable,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},eftpos_australia:{name:d.eftpos_australia,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},girocard:{name:d.girocard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},other:{name:d.other,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},unknown:{name:d.unknown,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}},X={sectionWidth:new oe(343,580,726),iconWidthHeight:new oe(20,Ke[4])},Tt={title:new Ze("standardSemiBold","largeSemiBold")},Le=t=>t?ce[t]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Wt=(t,e,r,n)=>({header:t,title:`${pe(ce[n.cardsList[0]?.brand]?.name??"")} ${e}`,subtitle:`${pe(ce[n.cardsList[0]?.brand]?.name??"")} ${r} ${n.cardsList[0]?.last4}`,status:n.cardsList[0]?.status}),Dt=v.img`
90
90
  width: ${t=>t.width}px;
91
91
  height: ${t=>t.height}px;
92
- `,Zt=({paymentAccount:t,plaidConnectionDetails:e,connectedAccountProvider:r,sectionId:n,isDisabled:a,hasError:s=!1,isValid:c,style:m,analytics:o,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:g,onEstablishConnectionSuccess:P,updateCardPaymentModalState:w,cardPaymentView:S,resetCardPaymentViewState:j,cardSetupInProgress:A=!1,googleAPIKey:B,subscriptionBillingAddress:F,subscriptionBillingAddressSectionId:V})=>{const D=ke(),$=ue(),{register:G}=Fe(),M=D.mode==="light"?new ae(D.colors.brandColorJadeLight):new ae(D.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:U,text:_,subText:E},card_payment_method:z}}}=le.getLocalizedStrings(),T=S.cardsList.length>0,y=S.cardsList[0]?.brand??"other",W=S.addCardPaymentSourceStatus.fetchState,L=Wt(z.header,z.titleText,z.protectedCardNo,S);let q;return T&&(q={header:L.header,title:L.title,subtitle:L.subtitle,status:L.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:T===!0,icon:{element:i.jsx(Dt,{src:Le(y).iconURL,width:X.iconWidthHeight.valuePx($),height:X.iconWidthHeight.valuePx($),alt:Le(y).name,loading:"lazy"}),color:new ae(M)},showCompletedIcon:!1,isError:W==="Error",isLoading:W==="In-Progress",isCompleted:!0,showRightArrow:!1}),i.jsxs(Nt,{windowSize:$,children:[i.jsx(Bt,{type:"hidden",...G(`${n}.connected`,{validate:J=>s?J==="true":!0}),value:c?"true":"false"}),i.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:U,sectionTitle:U,defaultSectionTitle:_,defaultSectionSubTitle:E,sectionId:n,isDisabled:a,hasError:s,showZeniAccountSection:!1,isCompleted:t?.providerVerificationStatus?.code?.includes("verified")===!0&&t?.isLoginRequired===!1,showCompletedIcon:$==="small",onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:g,onEstablishConnectionSuccess:P,style:m,icon:{element:i.jsx(Ve,{width:X.iconWidthHeight.valuePx($),height:X.iconWidthHeight.valuePx($)}),color:M},analytics:o,productType:"onboarding",resetCardPaymentViewState:j,cardPaymentSectionValues:q,cardPaymentView:S,updateCardPaymentModalState:w,referrer:"Onboarding",cardSetupInProgress:A}),Mt($,N.headers.billingAddress,V,o,F,B,a)]})},Mt=(t,e,r,n,a,s,c)=>{const m={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return i.jsxs(Vt,{children:[i.jsx(Ft,{windowSize:t,isDisabled:c==="disabled",children:e}),i.jsx(Ge,{googleAPIKey:s??"",addressToEdit:a,sectionId:`${r}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:o=>{if(o.target instanceof HTMLInputElement){const{placeholder:h}=o.target;if(h){const f=m[h];f&&n.trackOnboardingBillingAddress(f)}}}})]})},Nt=v.div`
92
+ `,Yt=({paymentAccount:t,plaidConnectionDetails:e,connectedAccountProvider:r,sectionId:n,isDisabled:a,hasError:s=!1,isValid:c,style:m,analytics:o,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:g,onEstablishConnectionSuccess:P,updateCardPaymentModalState:w,cardPaymentView:S,resetCardPaymentViewState:j,cardSetupInProgress:A=!1,googleAPIKey:B,subscriptionBillingAddress:F,subscriptionBillingAddressSectionId:V})=>{const D=ke(),$=le(),{register:G}=Fe(),M=D.mode==="light"?new ae(D.colors.brandColorJadeLight):new ae(D.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:U,text:_,subText:E},card_payment_method:z}}}=ue.getLocalizedStrings(),T=S.cardsList.length>0,y=S.cardsList[0]?.brand??"other",W=S.addCardPaymentSourceStatus.fetchState,L=Wt(z.header,z.titleText,z.protectedCardNo,S);let q;return T&&(q={header:L.header,title:L.title,subtitle:L.subtitle,status:L.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:T===!0,icon:{element:i.jsx(Dt,{src:Le(y).iconURL,width:X.iconWidthHeight.valuePx($),height:X.iconWidthHeight.valuePx($),alt:Le(y).name,loading:"lazy"}),color:new ae(M)},showCompletedIcon:!1,isError:W==="Error",isLoading:W==="In-Progress",isCompleted:!0,showRightArrow:!1}),i.jsxs(Nt,{windowSize:$,children:[i.jsx(Bt,{type:"hidden",...G(`${n}.connected`,{validate:J=>s?J==="true":!0}),value:c?"true":"false"}),i.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:U,sectionTitle:U,defaultSectionTitle:_,defaultSectionSubTitle:E,sectionId:n,isDisabled:a,hasError:s,showZeniAccountSection:!1,isCompleted:t?.providerVerificationStatus?.code?.includes("verified")===!0&&t?.isLoginRequired===!1,showCompletedIcon:$==="small",onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:g,onEstablishConnectionSuccess:P,style:m,icon:{element:i.jsx(Ve,{width:X.iconWidthHeight.valuePx($),height:X.iconWidthHeight.valuePx($)}),color:M},analytics:o,productType:"onboarding",resetCardPaymentViewState:j,cardPaymentSectionValues:q,cardPaymentView:S,updateCardPaymentModalState:w,referrer:"Onboarding",cardSetupInProgress:A}),Mt($,N.headers.billingAddress,V,o,F,B,a)]})},Mt=(t,e,r,n,a,s,c)=>{const m={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return i.jsxs(Vt,{children:[i.jsx(Ft,{windowSize:t,isDisabled:c==="disabled",children:e}),i.jsx(Ge,{googleAPIKey:s??"",addressToEdit:a,sectionId:`${r}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:o=>{if(o.target instanceof HTMLInputElement){const{placeholder:h}=o.target;if(h){const f=m[h];f&&n.trackOnboardingBillingAddress(f)}}}})]})},Nt=v.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
95
  width: ${t=>X.sectionWidth.valuePx(t.windowSize)};
@@ -104,4 +104,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
104
104
  `,Vt=v.div`
105
105
  margin-top: ${u.sp5};
106
106
  margin-bottom: ${u.sp4};
107
- `;export{Wt as M,Jt as o,Le as r,Zt as s};
107
+ `;export{Wt as M,Zt as o,Le as r,Yt as s};
@@ -1,4 +1,4 @@
1
- import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj as _e,m as K,aQ as Y,ck as we,n as Le,b as be,cl as Ae,aN as Ve,cm as Me,ao as We,cn as He,co as Be,b1 as Ke,aA as H,cp as Ue,y as $,cq as Ee,cr as je,c as b,cs as ee,cb as N,a8 as Fe,ab as Ze,ct as qe,cu as Ge,aH as Je,ag as D,cv as Qe,ak as O,al as te,p as A,cw as Xe,cf as Se,b8 as ie,cx as ke,bJ as Ye,cy as et}from"./index-DDpxinoY.js";import{S as ce,a as v}from"./core-CA3j8Axi.js";import{n as i}from"./mui-DpJXlk4t.js";import{oW as Ie,bh as Q}from"./zeni-epic-state-CQt4n3Xe.js";import{P as Ce}from"./Menu-wpP8R1br-C8t8BK70.js";import{T as Re}from"./RoleWithToolTip-fC3byzzv-h3kSlu0j.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="8b1cad9c-973a-44c3-996f-958077631a1f",e._sentryDebugIdIdentifier="sentry-dbid-8b1cad9c-973a-44c3-996f-958077631a1f")}catch{}})();const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],B=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Je(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:o.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:o.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
1
+ import{d as $e,q as I,F as y,V as t,bz as le,aM as a,bL as De,o as s,ci as Oe,cj as _e,m as U,aQ as Y,ck as we,n as Le,b as be,cl as Ae,aN as Ve,cm as Me,ao as We,cn as He,co as Be,b1 as Ue,aA as H,cp as Ee,y as $,cq as Ke,cr as je,c as b,cs as ee,cb as N,a8 as Fe,ab as Ze,ct as qe,cu as Ge,aG as Je,ag as D,cv as Qe,ak as O,al as te,p as A,cw as Xe,cf as Se,b8 as ie,cx as ke,bJ as Ye,cy as et}from"./index-BGhFLU7w.js";import{S as ce,a as v}from"./sentry-C9BQzslk.js";import{n as i}from"./mui-8xKzSljO.js";import{oV as Ie,bg as Q}from"./zeni-epic-state-D9zDRHOK.js";import{P as Ce}from"./Menu-wpP8R1br-BkJyq7Tb.js";import{T as Re}from"./RoleWithToolTip-fC3byzzv-DvgcIN_v.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e15155e3-0c53-4a69-afb5-18c193b9776a",e._sentryDebugIdIdentifier="sentry-dbid-e15155e3-0c53-4a69-afb5-18c193b9776a")}catch{}})();const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],B=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Je(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:o.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:o.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
@@ -103,7 +103,7 @@ import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj
103
103
  }
104
104
  `,wt=i(D)`
105
105
  color: ${e=>e.theme.colors.hero};
106
- `,{peoplePage:T}=y.getLocalizedStrings(),vt=({peopleData:e,userNameSticky:o,allClasses:l,allManagers:d,onResendInvite:m,onDeleteUser:p,onRowClick:x})=>{const[h,n]=v.useState(!1),r=I(),u=ft(e,d,l),w=e.userRole.userRoles.filter(g=>!Ie(g)),f=()=>{p?.(e)},j=()=>{x?.(e.userId)};return t.jsxs(yt,{windowSize:r,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:j,"data-testid":a("people-list-row",e.userId),children:[t.jsx($t,{wrapperWidth:S[0].width,windowSize:r,userNameSticky:o,children:t.jsxs(jt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(St,{children:[e.user?.firstName?t.jsxs(kt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(Ct,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(It,{wrapperWidth:S[1].width,windowSize:r,children:t.jsx(Re,{roles:w})}),t.jsxs(t.Fragment,{children:[Q(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.manager?t.jsx(ve,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:u.manager})}):t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.noManager})})}),Q(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.department?t.jsx(ve,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:u.department})}):t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.emptyDepartmentPlaceholderText})})})]}),t.jsxs(Rt,{"data-testid":a("last-seen-container",e.userId),wrapperWidth:S[4].width,windowSize:r,children:[e.userRole.invitationStatus==="accepted"?t.jsx(bt,{children:u.lastSeen}):t.jsx(Tt,{children:e.update==="resendInvite"?t.jsx(K,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Pt,{"data-testid":a("resend-invite-text",e.userId),onClick:g=>{g.stopPropagation(),m?.(e.userId)},children:T.resendInvite.label}),t.jsx(Nt,{children:t.jsx(Dt,{children:`${T.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(zt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ce,{menuItems:t.jsxs(Ot,{"data-testid":a("menu-items-container",e.userId),children:[t.jsx(fe,{"data-testid":a("edit-people-list-row"),onClick:()=>{n(!1),j()},children:T.invitePage.editTitle}),t.jsx(fe,{"data-testid":a("delete-people-list-row",e.userId),isDelete:!0,onClick:g=>{g.stopPropagation(),n(!1),f()},children:T.deleteOverlay.title})]}),setIsMenuOpen:n,isMenuOpen:h})})]})]})};function ft(e,o,l){const d=l.find(p=>e.userRole.accountingClassIDs[0]===p.classId),m=o.find(p=>p.userId===e.userRole.managerUserId);return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:Xe},manager:m?.user?`${m?.user?.firstName} ${m?.user?.lastName}`:void 0,department:d?d?.className:void 0,lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const yt=i.div`
106
+ `,{peoplePage:T}=y.getLocalizedStrings(),vt=({peopleData:e,userNameSticky:o,allClasses:l,allManagers:d,onResendInvite:m,onDeleteUser:p,onRowClick:x})=>{const[h,n]=v.useState(!1),r=I(),u=ft(e,d,l),w=e.userRole.userRoles.filter(g=>!Ie(g)),f=()=>{p?.(e)},j=()=>{x?.(e.userId)};return t.jsxs(yt,{windowSize:r,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:j,"data-testid":a("people-list-row",e.userId),children:[t.jsx($t,{wrapperWidth:S[0].width,windowSize:r,userNameSticky:o,children:t.jsxs(jt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(St,{children:[e.user?.firstName?t.jsxs(kt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(Ct,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(It,{wrapperWidth:S[1].width,windowSize:r,children:t.jsx(Re,{roles:w})}),t.jsxs(t.Fragment,{children:[Q(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.manager?t.jsx(ve,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:u.manager})}):t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.noManager})})}),Q(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.department?t.jsx(ve,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:u.department})}):t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.emptyDepartmentPlaceholderText})})})]}),t.jsxs(Rt,{"data-testid":a("last-seen-container",e.userId),wrapperWidth:S[4].width,windowSize:r,children:[e.userRole.invitationStatus==="accepted"?t.jsx(bt,{children:u.lastSeen}):t.jsx(Tt,{children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Pt,{"data-testid":a("resend-invite-text",e.userId),onClick:g=>{g.stopPropagation(),m?.(e.userId)},children:T.resendInvite.label}),t.jsx(Nt,{children:t.jsx(Dt,{children:`${T.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(zt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ce,{menuItems:t.jsxs(Ot,{"data-testid":a("menu-items-container",e.userId),children:[t.jsx(fe,{"data-testid":a("edit-people-list-row"),onClick:()=>{n(!1),j()},children:T.invitePage.editTitle}),t.jsx(fe,{"data-testid":a("delete-people-list-row",e.userId),isDelete:!0,onClick:g=>{g.stopPropagation(),n(!1),f()},children:T.deleteOverlay.title})]}),setIsMenuOpen:n,isMenuOpen:h})})]})]})};function ft(e,o,l){const d=l.find(p=>e.userRole.accountingClassIDs[0]===p.classId),m=o.find(p=>p.userId===e.userRole.managerUserId);return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:Xe},manager:m?.user?`${m?.user?.firstName} ${m?.user?.lastName}`:void 0,department:d?d?.className:void 0,lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const yt=i.div`
107
107
  border: 1px solid ${e=>e.theme.colors.grey3};
108
108
  border-radius: ${s.sp2};
109
109
  display: flex;
@@ -272,7 +272,7 @@ import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj
272
272
  :hover {
273
273
  color: ${e=>e.theme.colors.primary};
274
274
  }
275
- `,_t={width:new $(343,580,726)},{peoplePage:k}=y.getLocalizedStrings(),Lt=({peopleData:e,allClasses:o,allManagers:l,onRowClick:d,onResendInvite:m})=>{const p=I(),x=e.userRole.userRoles.filter(r=>!Ie(r)),h=si(l,e.userRole.managerUserId),n=oi(o,e.userRole.accountingClassIDs);return t.jsxs(At,{windowSize:p,isInviteAccepted:e.userRole.invitationStatus==="accepted","data-testid":a("people-list-row-small",e.userId),onClick:()=>{d?.(e.userId)},children:[t.jsxs(Vt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Wt,{children:t.jsxs(Ht,{children:[t.jsxs(Bt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Kt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Ut,{className:"lastSeen",children:[t.jsx(Et,{className:"lastSeenDateTxt",children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Ft,{children:k.header.lastSeen})]}):t.jsx(Zt,{"data-testid":a("resend-invite-wrapper",e.userId),children:e.update==="resendInvite"?t.jsx(K,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(qt,{"data-testid":a("resend-invite-text",e.userId),onClick:r=>{r.stopPropagation(),m?.(e.userId)},children:k.resendInvite.label}),t.jsx(Gt,{children:t.jsx(Jt,{children:`${k.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Mt,{children:t.jsxs(se,{className:"personDetails",children:[t.jsxs(pe,{children:[t.jsxs(he,{children:[k.header.role,":"]}),t.jsx(oe,{children:t.jsx(Re,{roles:x})})]}),t.jsxs(Qt,{children:[t.jsxs(Yt,{children:[k.header.manager,":"]}),Q(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:h?t.jsx(ti,{children:h}):t.jsx(q,{children:k.noManager})})]}),t.jsxs(Xt,{children:[t.jsxs(ei,{children:[k.header.department,":"]}),Q(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:n?t.jsx(ii,{children:n}):t.jsx(q,{children:k.emptyDepartmentPlaceholderText})})]})]})})]})},At=i.div`
275
+ `,_t={width:new $(343,580,726)},{peoplePage:k}=y.getLocalizedStrings(),Lt=({peopleData:e,allClasses:o,allManagers:l,onRowClick:d,onResendInvite:m})=>{const p=I(),x=e.userRole.userRoles.filter(r=>!Ie(r)),h=si(l,e.userRole.managerUserId),n=oi(o,e.userRole.accountingClassIDs);return t.jsxs(At,{windowSize:p,isInviteAccepted:e.userRole.invitationStatus==="accepted","data-testid":a("people-list-row-small",e.userId),onClick:()=>{d?.(e.userId)},children:[t.jsxs(Vt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Wt,{children:t.jsxs(Ht,{children:[t.jsxs(Bt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ut,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Et,{className:"lastSeen",children:[t.jsx(Kt,{className:"lastSeenDateTxt",children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Ft,{children:k.header.lastSeen})]}):t.jsx(Zt,{"data-testid":a("resend-invite-wrapper",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(qt,{"data-testid":a("resend-invite-text",e.userId),onClick:r=>{r.stopPropagation(),m?.(e.userId)},children:k.resendInvite.label}),t.jsx(Gt,{children:t.jsx(Jt,{children:`${k.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Mt,{children:t.jsxs(se,{className:"personDetails",children:[t.jsxs(pe,{children:[t.jsxs(he,{children:[k.header.role,":"]}),t.jsx(oe,{children:t.jsx(Re,{roles:x})})]}),t.jsxs(Qt,{children:[t.jsxs(Yt,{children:[k.header.manager,":"]}),Q(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:h?t.jsx(ti,{children:h}):t.jsx(q,{children:k.noManager})})]}),t.jsxs(Xt,{children:[t.jsxs(ei,{children:[k.header.department,":"]}),Q(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:n?t.jsx(ii,{children:n}):t.jsx(q,{children:k.emptyDepartmentPlaceholderText})})]})]})})]})},At=i.div`
276
276
  border: 1px solid ${e=>e.theme.colors.grey3};
277
277
  border-radius: ${s.sp2};
278
278
  display: flex;
@@ -326,15 +326,15 @@ import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj
326
326
  flex: 1;
327
327
  `,Ht=i.div``,Bt=i(O)`
328
328
  color: ${e=>e.isInviteAccepted?e.theme.colors.hero:e.theme.colors.grey1};
329
- `,Kt=i(te)`
329
+ `,Ut=i(te)`
330
330
  color: ${e=>e.theme.colors.grey1};
331
331
  `,se=i(te)`
332
332
  color: ${e=>e.theme.colors.grey1};
333
- `,Ut=i(se)`
333
+ `,Et=i(se)`
334
334
  display: flex;
335
335
  flex-direction: column;
336
336
  align-items: flex-end;
337
- `,Et=i.div`
337
+ `,Kt=i.div`
338
338
  color: ${e=>e.theme.colors.hero};
339
339
  `,Ft=i.div``,Zt=i.div`
340
340
  display: flex;
@@ -358,7 +358,7 @@ import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj
358
358
  width: 70%;
359
359
  `,ti=i(oe)``,ii=i(oe)``,q=i(oe)`
360
360
  color: ${e=>e.theme.colors.grey1};
361
- `,si=(e,o)=>{const l=e.find(d=>d.userId===o);return l?.user?`${l?.user?.firstName} ${l?.user?.lastName}`:void 0},oi=(e,o)=>{const l=e.find(d=>o[0]===d.classId);return l?l.className:void 0},ri=e=>I()==="small"?t.jsx(Lt,{...e}):t.jsx(vt,{...e}),G=y.getLocalizedStrings().peoplePage,li=({peopleData:e,userNameSticky:o,onResendInvite:l,onDeleteUser:d,onRowClick:m})=>{const[p,x]=v.useState(!1),h=I(),n=ni(e),r=f=>{const j=[];return f.map(g=>{const R=ke.roles.find(V=>V.value===g);return R!=null&&j.push(R?.label??""),j}),j.length>0?j.join(", "):"-"},u=()=>{d?.(e)},w=()=>{m?.(e.userId)};return t.jsxs(ai,{"data-testid":a("zeni-people-list-row-medium",e.userId),windowSize:h,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:w,children:[t.jsx(di,{wrapperWidth:B[0].width,windowSize:h,userNameSticky:o,children:t.jsxs(pi,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(hi,{children:[e.user?.firstName?t.jsxs(mi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"personNameTxt",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(xi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(ui,{widthNumber:B[1].width,windowSize:h,children:t.jsx(ci,{wrapperWidth:new $(100,100),windowSize:h,children:r(e.userRole.userRoles)})}),t.jsxs(yi,{"data-testid":a("people-list-row-medium-last-seen",e.userId),wrapperWidth:B[2].width,windowSize:h,children:[e.userRole.invitationStatus==="accepted"?t.jsx($i,{children:n.lastSeen}):t.jsx(gi,{"data-testid":a("people-list-row-medium-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(K,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(wi,{"data-testid":a("people-list-row-medium-resend-invite-text",e.userId),onClick:f=>{f.stopPropagation(),l?.(e.userId)},children:G.resendInvite.label}),t.jsx(vi,{children:t.jsx(fi,{children:`${G.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(bi,{"data-testid":a("people-list-row-medium-menu",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ce,{menuItems:t.jsxs(ji,{children:[t.jsx(ye,{"data-testid":a("people-list-row-medium-menu-edit",e.userId),onClick:()=>{x(!1),w()},children:G.invitePage.editTitle}),t.jsx(ye,{"data-testid":a("people-list-row-menu-delete",e.userId),isDelete:!0,onClick:f=>{f.stopPropagation(),x(!1),u()},children:G.deleteOverlay.title})]}),setIsMenuOpen:x,isMenuOpen:p})})]})]})};function ni(e){return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:ke.roles},lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ai=i.div`
361
+ `,si=(e,o)=>{const l=e.find(d=>d.userId===o);return l?.user?`${l?.user?.firstName} ${l?.user?.lastName}`:void 0},oi=(e,o)=>{const l=e.find(d=>o[0]===d.classId);return l?l.className:void 0},ri=e=>I()==="small"?t.jsx(Lt,{...e}):t.jsx(vt,{...e}),G=y.getLocalizedStrings().peoplePage,li=({peopleData:e,userNameSticky:o,onResendInvite:l,onDeleteUser:d,onRowClick:m})=>{const[p,x]=v.useState(!1),h=I(),n=ni(e),r=f=>{const j=[];return f.map(g=>{const R=ke.roles.find(V=>V.value===g);return R!=null&&j.push(R?.label??""),j}),j.length>0?j.join(", "):"-"},u=()=>{d?.(e)},w=()=>{m?.(e.userId)};return t.jsxs(ai,{"data-testid":a("zeni-people-list-row-medium",e.userId),windowSize:h,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:w,children:[t.jsx(di,{wrapperWidth:B[0].width,windowSize:h,userNameSticky:o,children:t.jsxs(pi,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(hi,{children:[e.user?.firstName?t.jsxs(mi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"personNameTxt",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(xi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(ui,{widthNumber:B[1].width,windowSize:h,children:t.jsx(ci,{wrapperWidth:new $(100,100),windowSize:h,children:r(e.userRole.userRoles)})}),t.jsxs(yi,{"data-testid":a("people-list-row-medium-last-seen",e.userId),wrapperWidth:B[2].width,windowSize:h,children:[e.userRole.invitationStatus==="accepted"?t.jsx($i,{children:n.lastSeen}):t.jsx(gi,{"data-testid":a("people-list-row-medium-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(wi,{"data-testid":a("people-list-row-medium-resend-invite-text",e.userId),onClick:f=>{f.stopPropagation(),l?.(e.userId)},children:G.resendInvite.label}),t.jsx(vi,{children:t.jsx(fi,{children:`${G.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(bi,{"data-testid":a("people-list-row-medium-menu",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ce,{menuItems:t.jsxs(ji,{children:[t.jsx(ye,{"data-testid":a("people-list-row-medium-menu-edit",e.userId),onClick:()=>{x(!1),w()},children:G.invitePage.editTitle}),t.jsx(ye,{"data-testid":a("people-list-row-menu-delete",e.userId),isDelete:!0,onClick:f=>{f.stopPropagation(),x(!1),u()},children:G.deleteOverlay.title})]}),setIsMenuOpen:x,isMenuOpen:p})})]})]})};function ni(e){return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:ke.roles},lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ai=i.div`
362
362
  border: 1px solid ${e=>e.theme.colors.grey3};
363
363
  border-radius: ${s.sp2};
364
364
  display: flex;
@@ -509,7 +509,7 @@ import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj
509
509
  :hover {
510
510
  color: ${e=>e.theme.colors.primary};
511
511
  }
512
- `,Si={width:new $(343,580,726)},J=y.getLocalizedStrings().peoplePage,ki=({peopleData:e,onRowClick:o,onResendInvite:l})=>{const d=I();return t.jsxs(Ii,{windowSize:d,"data-testid":a("zeni-people-list-row-small",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:()=>{o?.(e.userId)},children:[t.jsxs(Ci,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(zi,{children:t.jsxs(Ti,{children:[t.jsxs(Pi,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ni,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Li,{className:"lastSeen","data-testid":a("people-list-row-small-last-seen",e.userId),children:[t.jsx(Ai,{className:"lastSeenDateTxt","data-testid":a("people-list-row-small-last-seen-content",e.userId),children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Vi,{children:J.header.lastSeen})]}):t.jsx(Mi,{"data-testid":a("people-list-row-small-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(K,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Wi,{"data-testid":a("people-list-row-small-resend-invite-text",e.userId),onClick:m=>{m.stopPropagation(),l?.(e.userId)},children:J.resendInvite.label}),t.jsx(Hi,{children:t.jsx(Bi,{children:`${J.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Ri,{children:t.jsx(re,{className:"personDetails",children:t.jsxs(Di,{style:{display:"flex"},children:[t.jsxs(Oi,{style:{},children:[J.header.role,":"]}),t.jsx(_i,{children:je(e.userRole.userRoles,"zeni_only")})]})})})]})},Ii=i.div`
512
+ `,Si={width:new $(343,580,726)},J=y.getLocalizedStrings().peoplePage,ki=({peopleData:e,onRowClick:o,onResendInvite:l})=>{const d=I();return t.jsxs(Ii,{windowSize:d,"data-testid":a("zeni-people-list-row-small",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:()=>{o?.(e.userId)},children:[t.jsxs(Ci,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(zi,{children:t.jsxs(Ti,{children:[t.jsxs(Pi,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ni,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Li,{className:"lastSeen","data-testid":a("people-list-row-small-last-seen",e.userId),children:[t.jsx(Ai,{className:"lastSeenDateTxt","data-testid":a("people-list-row-small-last-seen-content",e.userId),children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Vi,{children:J.header.lastSeen})]}):t.jsx(Mi,{"data-testid":a("people-list-row-small-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Wi,{"data-testid":a("people-list-row-small-resend-invite-text",e.userId),onClick:m=>{m.stopPropagation(),l?.(e.userId)},children:J.resendInvite.label}),t.jsx(Hi,{children:t.jsx(Bi,{children:`${J.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Ri,{children:t.jsx(re,{className:"personDetails",children:t.jsxs(Di,{style:{display:"flex"},children:[t.jsxs(Oi,{style:{},children:[J.header.role,":"]}),t.jsx(_i,{children:je(e.userRole.userRoles,"zeni_only")})]})})})]})},Ii=i.div`
513
513
  border: 1px solid ${e=>e.theme.colors.grey3};
514
514
  border-radius: ${s.sp2};
515
515
  display: flex;
@@ -587,7 +587,7 @@ import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj
587
587
  justify-content: flex-end;
588
588
  `,Bi=i(re)`
589
589
  color: ${e=>e.theme.colors.grey1};
590
- `,Ki=e=>I()==="small"?t.jsx(ki,{...e}):t.jsx(li,{...e}),M={overscanCount:1,rowNameLimit:55,listItemHeight:88},ne={peopleListItemHeight:138,zeniPeopleListItemHeight:106,zeniPeopleExtendedListItemHeight:130},X={listItemPaddingRight:new $(b[3],b[8]),listItemPaddingLeft:new $(b[3],b[8]),zeniLastRowHeight:new $(154,136),nonZeniLastRowHeight:new $(200,136)},W=y.getLocalizedStrings().peoplePage,Ui=({peopleView:e,allManagers:o,allClasses:l,analytics:d,onColumnSortConfigChanged:m,onDeleteClick:p,onResendInvite:x,onRowClick:h,isZeniTenant:n})=>{const r=I(),u=v.useRef(null),w=!(r==="small"||r==="medium-compact"),[f,j]=v.useState(!1),[g,R]=v.useState(),V=$e(),z=e.people.findIndex(c=>c.userRole.invitationStatus==="invited"),me=c=>{j(!0),R(c)},ue=v.memo(({index:c,style:C})=>t.jsx(t.Fragment,{children:t.jsxs(Zi,{"data-testid":a("people-list-item",e.people[c].user?.userId),style:{...C,width:"fit-content",minWidth:"100%"},windowSize:r,isFirstResendInviteUser:z===c,className:"people-list-item",children:[z===c?t.jsx(Xi,{}):null,e.uiState.mode==="off"?t.jsx(ri,{allManagers:o,allClasses:l,userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n}):t.jsx(Ki,{userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n})]})}),Ae);ue.displayName="ListItem";const xe=v.forwardRef((c,C)=>{const{children:_,style:E,...F}=c;return t.jsxs("div",{ref:C,style:{...E,width:"auto"},...F,children:[r==="small"?t.jsx(ht,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}):t.jsx(st,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}),t.jsx(qi,{children:_})]})});xe.displayName="People list view inner element type";const ze=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=z===c;return C>M.rowNameLimit?M.listItemHeight+b[5]+(_?b[3]:b[0]):M.listItemHeight+(_?b[3]:b[0])},Te=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=je(e.people[c].userRole.userRoles,e.uiState.mode).length,E=z===c,F=e.uiState.mode==="zeni_only"?_>33?ne.zeniPeopleExtendedListItemHeight:ne.zeniPeopleListItemHeight:ne.peopleListItemHeight;return C>M.rowNameLimit?F+b[5]+(E?b[3]:b[0]):F+(E?b[3]:b[0])},Pe={onOkClick:()=>{const c=g;d?.trackRemoveUserAccess(c.userRole.userRoles,c.userRole.userEmail),p?.(c.userId,c.userRole.userRoleId)},onCancelClick:()=>{j(!1),R(void 0)}},ge=Ve(e.people.find(c=>c.userId===g?.userId)?.update),U=e.people.find(c=>c.userId===g?.userId)?.update,Ne=g!=null?W.deleteOverlay.description.replace("‘_user-name_’",`"${Ei(g)}"`):W.deleteOverlay.description;return v.useEffect(()=>{u.current&&u.current.resetAfterIndex(0)},[e,r]),v.useEffect(()=>{U==null&&ge==="removeUsers"&&(j(!1),R(void 0))},[U,ge]),t.jsxs(Fi,{"data-testid":a("people-list-view-container"),windowSize:r,mode:e.uiState.mode,children:[f===!0?t.jsx(Me,{titleComponent:t.jsx(Be,{children:W.deleteOverlay.title}),descriptionComponent:t.jsx(He,{children:Ne}),primaryButtonText:W.deleteOverlay.remove,secondaryButtonText:W.deleteOverlay.cancel,action:Pe,proceedButtonVariant:"danger",isLoading:U==="removeUsers",isDisabled:U==="removeUsers",style:{background:V.colors.overlayColor},children:g?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Qi,{}),t.jsx(Gi,{children:t.jsx(Ji,{src:g?.user.photo?.toString()??We,alt:g?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(Ke,{children:({height:c,width:C})=>t.jsx(Yi,{height:c,innerElementType:xe,itemCount:e.people.length,itemSize:r==="small"?Te:ze,width:C,ref:u,overscanCount:M.overscanCount,children:ue})})]})},Ei=e=>e.user?.firstName?`${e.user?.firstName} ${e.user?.lastName}`:e.user?.email??"",Fi=i.div`
590
+ `,Ui=e=>I()==="small"?t.jsx(ki,{...e}):t.jsx(li,{...e}),M={overscanCount:1,rowNameLimit:55,listItemHeight:88},ne={peopleListItemHeight:138,zeniPeopleListItemHeight:106,zeniPeopleExtendedListItemHeight:130},X={listItemPaddingRight:new $(b[3],b[8]),listItemPaddingLeft:new $(b[3],b[8]),zeniLastRowHeight:new $(154,136),nonZeniLastRowHeight:new $(200,136)},W=y.getLocalizedStrings().peoplePage,Ei=({peopleView:e,allManagers:o,allClasses:l,analytics:d,onColumnSortConfigChanged:m,onDeleteClick:p,onResendInvite:x,onRowClick:h,isZeniTenant:n})=>{const r=I(),u=v.useRef(null),w=!(r==="small"||r==="medium-compact"),[f,j]=v.useState(!1),[g,R]=v.useState(),V=$e(),z=e.people.findIndex(c=>c.userRole.invitationStatus==="invited"),me=c=>{j(!0),R(c)},ue=v.memo(({index:c,style:C})=>t.jsx(t.Fragment,{children:t.jsxs(Zi,{"data-testid":a("people-list-item",e.people[c].user?.userId),style:{...C,width:"fit-content",minWidth:"100%"},windowSize:r,isFirstResendInviteUser:z===c,className:"people-list-item",children:[z===c?t.jsx(Xi,{}):null,e.uiState.mode==="off"?t.jsx(ri,{allManagers:o,allClasses:l,userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n}):t.jsx(Ui,{userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n})]})}),Ae);ue.displayName="ListItem";const xe=v.forwardRef((c,C)=>{const{children:_,style:K,...F}=c;return t.jsxs("div",{ref:C,style:{...K,width:"auto"},...F,children:[r==="small"?t.jsx(ht,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}):t.jsx(st,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}),t.jsx(qi,{children:_})]})});xe.displayName="People list view inner element type";const ze=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=z===c;return C>M.rowNameLimit?M.listItemHeight+b[5]+(_?b[3]:b[0]):M.listItemHeight+(_?b[3]:b[0])},Te=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=je(e.people[c].userRole.userRoles,e.uiState.mode).length,K=z===c,F=e.uiState.mode==="zeni_only"?_>33?ne.zeniPeopleExtendedListItemHeight:ne.zeniPeopleListItemHeight:ne.peopleListItemHeight;return C>M.rowNameLimit?F+b[5]+(K?b[3]:b[0]):F+(K?b[3]:b[0])},Pe={onOkClick:()=>{const c=g;d?.trackRemoveUserAccess(c.userRole.userRoles,c.userRole.userEmail),p?.(c.userId,c.userRole.userRoleId)},onCancelClick:()=>{j(!1),R(void 0)}},ge=Ve(e.people.find(c=>c.userId===g?.userId)?.update),E=e.people.find(c=>c.userId===g?.userId)?.update,Ne=g!=null?W.deleteOverlay.description.replace("‘_user-name_’",`"${Ki(g)}"`):W.deleteOverlay.description;return v.useEffect(()=>{u.current&&u.current.resetAfterIndex(0)},[e,r]),v.useEffect(()=>{E==null&&ge==="removeUsers"&&(j(!1),R(void 0))},[E,ge]),t.jsxs(Fi,{"data-testid":a("people-list-view-container"),windowSize:r,mode:e.uiState.mode,children:[f===!0?t.jsx(Me,{titleComponent:t.jsx(Be,{children:W.deleteOverlay.title}),descriptionComponent:t.jsx(He,{children:Ne}),primaryButtonText:W.deleteOverlay.remove,secondaryButtonText:W.deleteOverlay.cancel,action:Pe,proceedButtonVariant:"danger",isLoading:E==="removeUsers",isDisabled:E==="removeUsers",style:{background:V.colors.overlayColor},children:g?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Qi,{}),t.jsx(Gi,{children:t.jsx(Ji,{src:g?.user.photo?.toString()??We,alt:g?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(Ue,{children:({height:c,width:C})=>t.jsx(Yi,{height:c,innerElementType:xe,itemCount:e.people.length,itemSize:r==="small"?Te:ze,width:C,ref:u,overscanCount:M.overscanCount,children:ue})})]})},Ki=e=>e.user?.firstName?`${e.user?.firstName} ${e.user?.lastName}`:e.user?.email??"",Fi=i.div`
591
591
  /** Subtract top so list can occupy remaining available height */
592
592
  min-height: ${`calc(100vh - ${s.sp9})`};
593
593
  max-width: 99.9%;
@@ -624,11 +624,11 @@ import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj
624
624
  `,Xi=i.div`
625
625
  padding-top: ${s.sp3};
626
626
  border-top: 1px solid ${e=>e.theme.colors.grey3};
627
- `,Yi=i(Ee)``,es=(e,o)=>{const{user:l,userId:d,userRole:m,update:p}=e,{user:x,userId:h,userRole:n,update:r}=o;return H(l,x)&&H(d,h)&&H(m,n)&&H(p,r)},ts=(e,o)=>{if(e.peopleView.people.length!=o.peopleView.people.length||e.allManagers.length!=o.allManagers.length)return!1;let l=!0;for(let d=0;d<e.peopleView.people.length;++d){const m=e.peopleView.people[d],p=o.peopleView.people[d];if(l=es(m,p),!l)break}return l=l&&H(e.peopleView.invitePeopleState,o.peopleView.invitePeopleState),l=l&&e.peopleView.uiState.sortKey===o.peopleView.uiState.sortKey&&e.peopleView.uiState.sortOrder===o.peopleView.uiState.sortOrder,l},is=v.memo(Ui,ts);function ss({peopleInviteSectionProps:e}){const o=I();return t.jsx(os,{isSearchOpen:e.isSearchOpen&&o==="small",windowsize:o,children:o!=="small"?t.jsxs(t.Fragment,{children:[e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"unset",right:"120px"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen}),t.jsx(Le,{variant:"primary",size:"small","data-testid":a("invite-people-button"),style:{height:"29px",...be.smallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"},label:e.invitePeopleLabel,onClick:e.onInvitePeopleClick})]}):t.jsxs(t.Fragment,{children:[e.hideInviteBtn?null:t.jsx(rs,{"data-testid":a("invite-people-button"),onClick:e.onInvitePeopleClick}),e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"5px",right:o!=="small"?"120px":"unset",top:"44px",width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,"data-testid":a("people-invite-search"),onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0})]})})}const os=i.div`
627
+ `,Yi=i(Ke)``,es=(e,o)=>{const{user:l,userId:d,userRole:m,update:p}=e,{user:x,userId:h,userRole:n,update:r}=o;return H(l,x)&&H(d,h)&&H(m,n)&&H(p,r)},ts=(e,o)=>{if(e.peopleView.people.length!=o.peopleView.people.length||e.allManagers.length!=o.allManagers.length)return!1;let l=!0;for(let d=0;d<e.peopleView.people.length;++d){const m=e.peopleView.people[d],p=o.peopleView.people[d];if(l=es(m,p),!l)break}return l=l&&H(e.peopleView.invitePeopleState,o.peopleView.invitePeopleState),l=l&&e.peopleView.uiState.sortKey===o.peopleView.uiState.sortKey&&e.peopleView.uiState.sortOrder===o.peopleView.uiState.sortOrder,l},is=v.memo(Ei,ts);function ss({peopleInviteSectionProps:e}){const o=I();return t.jsx(os,{isSearchOpen:e.isSearchOpen&&o==="small",windowsize:o,children:o!=="small"?t.jsxs(t.Fragment,{children:[e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"unset",right:"120px"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen}),t.jsx(Le,{variant:"primary",size:"small","data-testid":a("invite-people-button"),style:{height:"29px",...be.smallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"},label:e.invitePeopleLabel,onClick:e.onInvitePeopleClick})]}):t.jsxs(t.Fragment,{children:[e.hideInviteBtn?null:t.jsx(rs,{"data-testid":a("invite-people-button"),onClick:e.onInvitePeopleClick}),e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"5px",right:o!=="small"?"120px":"unset",top:"44px",width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,"data-testid":a("people-invite-search"),onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0})]})})}const os=i.div`
628
628
  display: flex;
629
629
  flex-direction: column;
630
630
  justify-content: ${e=>e.windowsize==="small"?"unset":"center"};
631
- `,rs=i(Ue)`
631
+ `,rs=i(Ee)`
632
632
  height: 20px;
633
633
  width: 20px;
634
634
  color: ${e=>e.theme.colors.hero};
@@ -672,4 +672,4 @@ import{d as $e,q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj
672
672
  `,cs=i(Y)`
673
673
  margin-top: ${s.sp3};
674
674
  color: ${e=>e.theme.colors.hero};
675
- `,ps=()=>t.jsx(ns,{children:t.jsx(K,{size:"ExtraLarge",start:!0})});function hs(e){const o=$e(),l=I(),{mode:d,searchText:m}=e.peopleView.uiState,{fetchState:p}=e.peopleView,{fetchState:x}=e.managersView,{fetchState:h}=e.classList,[n,r]=v.useState(!1),u={isSearchOpen:n,onSearchOpen:z=>{r(z)},onSearchTextChanged:e.personAction.onSearchTextChanged,searchPlaceHolder:y.getLocalizedStrings().peoplePage.searchPlaceHolder,searchText:m,invitePeopleLabel:y.getLocalizedStrings().peoplePage.invitePeopleText,onInvitePeopleClick:e.onInvitePeopleClick,onClickMenuIcon:e.onClickMenuIcon},w=e?.isZeniTenant!==!0&&e?.isZeniAdminUser===!0,f=()=>{const z=d==="off"?"zeni_only":"off";e.personAction.onModeChange?.(z)},j=p==="Completed"?`(${e.peopleView.people.length})`:"",g=`${d==="off"?y.getLocalizedStrings().peoplePage.peopleTitle:y.getLocalizedStrings().peoplePage.zeniPeopleTitle} ${j}`,R=v.useMemo(()=>p==="In-Progress"||p==="Not-Started"||x==="In-Progress"||x==="Not-Started"||e.shouldFetchClasses&&(h==="In-Progress"||h==="Not-Started"),[p,x,e.shouldFetchClasses,h]);function V(){return R?t.jsxs(ae,{"data-testid":a("people-page-loading"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:e.onClickMenuIcon,onZeniLogoClick:f,showZeniLogo:w,zeniLogoVisiblity:d==="zeni_only"?"visible":"hidden",isSearchOpen:n,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsx(ps,{})]}):p==="Error"||h==="Error"||x==="Error"?t.jsxs(ae,{"data-testid":a("people-page-error"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsxs(as,{children:[t.jsx(ds,{"data-testid":a("people-page-error-reload-icon"),onClick:e.personAction.onReloadPeople,children:t.jsx(De,{width:s.sp6,height:s.sp6})}),t.jsx(cs,{children:y.getLocalizedStrings().peoplePage.reloadPage.label})]})]}):t.jsxs(ae,{"data-testid":a("people-page-content-container"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,source:"PeoplePage",backgroundColor:o.colors.grey4}),t.jsx(ls,{"data-testid":a("people-page-content"),windowSize:l,children:e.peopleView.people.length>0?t.jsx(is,{peopleView:e.peopleView,allManagers:e.managersView.users,allClasses:e.classList.classes,onDeleteClick:e.personAction.onPersonDelete,analytics:e.analytics,onResendInvite:e.personAction.onResendInvite,onColumnSortConfigChanged:e.onColumnSortConfigChanged,onRowClick:e.onRowClick,isZeniTenant:e.isZeniTenant}):m!==""?t.jsx(Oe,{emptySearchTextFirstLine:y.getLocalizedStrings().peoplePage.emptySearchTextFirstLine,emptySearchTextSecondLine:y.getLocalizedStrings().peoplePage.emptySearchTextSecondLine}):t.jsx(_e,{message:y.getLocalizedStrings().peoplePage.emptyResultsMessage})})]})}return t.jsx("div",{children:V()})}const de=e=>t.jsx(ss,{peopleInviteSectionProps:e}),Is=ce.memo(hs);export{Is as MemoPeople,hs as default};
675
+ `,ps=()=>t.jsx(ns,{children:t.jsx(U,{size:"ExtraLarge",start:!0})});function hs(e){const o=$e(),l=I(),{mode:d,searchText:m}=e.peopleView.uiState,{fetchState:p}=e.peopleView,{fetchState:x}=e.managersView,{fetchState:h}=e.classList,[n,r]=v.useState(!1),u={isSearchOpen:n,onSearchOpen:z=>{r(z)},onSearchTextChanged:e.personAction.onSearchTextChanged,searchPlaceHolder:y.getLocalizedStrings().peoplePage.searchPlaceHolder,searchText:m,invitePeopleLabel:y.getLocalizedStrings().peoplePage.invitePeopleText,onInvitePeopleClick:e.onInvitePeopleClick,onClickMenuIcon:e.onClickMenuIcon},w=e?.isZeniTenant!==!0&&e?.isZeniAdminUser===!0,f=()=>{const z=d==="off"?"zeni_only":"off";e.personAction.onModeChange?.(z)},j=p==="Completed"?`(${e.peopleView.people.length})`:"",g=`${d==="off"?y.getLocalizedStrings().peoplePage.peopleTitle:y.getLocalizedStrings().peoplePage.zeniPeopleTitle} ${j}`,R=v.useMemo(()=>p==="In-Progress"||p==="Not-Started"||x==="In-Progress"||x==="Not-Started"||e.shouldFetchClasses&&(h==="In-Progress"||h==="Not-Started"),[p,x,e.shouldFetchClasses,h]);function V(){return R?t.jsxs(ae,{"data-testid":a("people-page-loading"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:e.onClickMenuIcon,onZeniLogoClick:f,showZeniLogo:w,zeniLogoVisiblity:d==="zeni_only"?"visible":"hidden",isSearchOpen:n,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsx(ps,{})]}):p==="Error"||h==="Error"||x==="Error"?t.jsxs(ae,{"data-testid":a("people-page-error"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsxs(as,{children:[t.jsx(ds,{"data-testid":a("people-page-error-reload-icon"),onClick:e.personAction.onReloadPeople,children:t.jsx(De,{width:s.sp6,height:s.sp6})}),t.jsx(cs,{children:y.getLocalizedStrings().peoplePage.reloadPage.label})]})]}):t.jsxs(ae,{"data-testid":a("people-page-content-container"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,source:"PeoplePage",backgroundColor:o.colors.grey4}),t.jsx(ls,{"data-testid":a("people-page-content"),windowSize:l,children:e.peopleView.people.length>0?t.jsx(is,{peopleView:e.peopleView,allManagers:e.managersView.users,allClasses:e.classList.classes,onDeleteClick:e.personAction.onPersonDelete,analytics:e.analytics,onResendInvite:e.personAction.onResendInvite,onColumnSortConfigChanged:e.onColumnSortConfigChanged,onRowClick:e.onRowClick,isZeniTenant:e.isZeniTenant}):m!==""?t.jsx(Oe,{emptySearchTextFirstLine:y.getLocalizedStrings().peoplePage.emptySearchTextFirstLine,emptySearchTextSecondLine:y.getLocalizedStrings().peoplePage.emptySearchTextSecondLine}):t.jsx(_e,{message:y.getLocalizedStrings().peoplePage.emptyResultsMessage})})]})}return t.jsx("div",{children:V()})}const de=e=>t.jsx(ss,{peopleInviteSectionProps:e}),Is=ce.memo(hs);export{Is as MemoPeople,hs as default};
@@ -0,0 +1 @@
1
+ import{a as h,S as n}from"./sentry-C9BQzslk.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f93b8fea-342f-46af-9294-f75d3b119450",t._sentryDebugIdIdentifier="sentry-dbid-f93b8fea-342f-46af-9294-f75d3b119450")}catch{}})();const c="64px",f={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),y={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:p&&!l?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:d.shadow,className:"react-player__shadow"},n.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...u?{"aria-label":u}:{}},l?a:null,m||x)};var N=k;export{N as default};
@@ -1,4 +1,4 @@
1
- import{F as I,V as t,a7 as B,o as c,b$ as H,aZ as N,c as U,d4 as Y,ap as G,ak as T,d5 as J,p as v}from"./index-DDpxinoY.js";import{a as $}from"./core-CA3j8Axi.js";import{n as i}from"./mui-DpJXlk4t.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f7a67edc-c333-4586-a614-be3a304fa115",e._sentryDebugIdIdentifier="sentry-dbid-f7a67edc-c333-4586-a614-be3a304fa115")}catch{}})();const u=I.getLocalizedStrings(),w={large:{labelComp:Y,title:G,subtitle:T,seeMoreLink:T}},V={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=V.large,Z=i.div`
1
+ import{F as I,V as t,a7 as B,o as c,b$ as H,aZ as N,c as U,d4 as Y,ap as G,ak as T,d5 as J,p as v}from"./index-BGhFLU7w.js";import{a as $}from"./sentry-C9BQzslk.js";import{n as i}from"./mui-8xKzSljO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4e98b996-382c-4239-8cda-9e07b20cce96",e._sentryDebugIdIdentifier="sentry-dbid-4e98b996-382c-4239-8cda-9e07b20cce96")}catch{}})();const u=I.getLocalizedStrings(),w={large:{labelComp:Y,title:G,subtitle:T,seeMoreLink:T}},V={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=V.large,Z=i.div`
2
2
  width: ${e=>e.scale*r.width}px;
3
3
  height: ${e=>e.scale*r.height}px;
4
4
  overflow: hidden;
@@ -124,7 +124,7 @@ import{F as I,V as t,a7 as B,o as c,b$ as H,aZ as N,c as U,d4 as Y,ap as G,ak as
124
124
  justify-content: center;
125
125
  overflow: visible;
126
126
  perspective: 2000px;
127
- `,fe=i.div`
127
+ `,xe=i.div`
128
128
  position: absolute;
129
129
  top: 50%;
130
130
  left: 50%;
@@ -139,4 +139,4 @@ import{F as I,V as t,a7 as B,o as c,b$ as H,aZ as N,c as U,d4 as Y,ap as G,ak as
139
139
  transform: translate(-50%, -50%) translateX(0px) translateZ(10px) scale(${o})
140
140
  }
141
141
  `}
142
- `,xe=({cards:e,showUpdatePaymentDetailButton:o,stopCarousel:n,scale:a=1})=>{const[h,l]=$.useState(2),[d,p]=$.useState(!1),[y,C]=$.useState(!1),f=e.length,L=B().analytics,M=ce*pe*a/2,S=ge*a+M+de/2,x=$.useCallback(s=>{y||(C(!0),l(g=>(g+s+f)%f),setTimeout(()=>C(!1),1e3))},[y,f]);$.useEffect(()=>{if(d||n||y)return;const s=setInterval(()=>{x(1)},3e3);return()=>clearInterval(s)},[d,n,y,x]);const _=s=>(h+s-b+f)%f,O=s=>{const g=Array.from({length:X},(m,k)=>_(k)).indexOf(s)-b;g!==0&&x(g),o?L.trackOnboardingLandingPageCardClick(e[s].cardTitle):L.trackOnboardingInterimCard(e[s].cardTitle)};return t.jsxs(me,{children:[t.jsx(D,{arrowOffset:S,position:"left",onClick:()=>x(-1),children:t.jsx(ue,{className:"btnsvg"})}),t.jsx(be,{children:e.map((s,g)=>{const m=Array.from({length:X},(ve,A)=>_(A)).indexOf(g);if(m===-1)return null;const{positionX:k,scale:E}=j[m],z=m===b,P=E*a,F=k*a,R=1.02*a;return t.jsx(fe,{isForeFront:z,positionX:F,scale:P,hoverScale:R,onClick:()=>O(g),onMouseEnter:()=>z&&p(!0),onMouseLeave:()=>z&&p(!1),style:{zIndex:m===b?5:5-Math.abs(m-b)},children:t.jsx(le,{label:s.cardTitle,title:s.sectionTitle,subtitle:s.sectionSubTitle,seeMoreLink:s.redirectLink,image:s.imageLink,variant:m===b?"large":m===b-1?"medium":"small"})},g)})}),t.jsx(D,{arrowOffset:S,position:"right",onClick:()=>x(1),children:t.jsx(he,{className:"btnsvg"})})]})},$e=["https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-reimbursements.png","https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-bill-payments.png","https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-ai-bookkeeping.png","https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-business-checking-accounts.png","https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-business-credit-cards.png"],ye=["https://www.zeni.ai/product/employee-reimbursements?utm_source=onboarding_interim","https://www.zeni.ai/product/bill-pay?utm_source=onboarding_interim","https://www.zeni.ai/product/ai-bookkeeping?utm_source=onboarding_interim","https://www.zeni.ai/product/business-checking-accounts?utm_source=onboarding_interim","https://www.zeni.ai/product/business-credit-card?utm_source=onboarding_interim"],je=({scale:e=1,showUpdatePaymentDetailButton:o=!1,stopCarousel:n=!1})=>{const{customerOnboardingPage:a}=I.getLocalizedStrings(),{productSuite:h}=a,l=h.productCard.cards.map((d,p)=>({...d,imageLink:$e[p],redirectLink:ye[p]}));return t.jsx(xe,{cards:l,scale:e,showUpdatePaymentDetailButton:o,stopCarousel:n})};export{je as T};
142
+ `,fe=({cards:e,showUpdatePaymentDetailButton:o,stopCarousel:n,scale:a=1})=>{const[h,l]=$.useState(2),[d,p]=$.useState(!1),[y,C]=$.useState(!1),x=e.length,L=B().analytics,M=ce*pe*a/2,S=ge*a+M+de/2,f=$.useCallback(s=>{y||(C(!0),l(g=>(g+s+x)%x),setTimeout(()=>C(!1),1e3))},[y,x]);$.useEffect(()=>{if(d||n||y)return;const s=setInterval(()=>{f(1)},3e3);return()=>clearInterval(s)},[d,n,y,f]);const _=s=>(h+s-b+x)%x,O=s=>{const g=Array.from({length:X},(m,k)=>_(k)).indexOf(s)-b;g!==0&&f(g),o?L.trackOnboardingLandingPageCardClick(e[s].cardTitle):L.trackOnboardingInterimCard(e[s].cardTitle)};return t.jsxs(me,{children:[t.jsx(D,{arrowOffset:S,position:"left",onClick:()=>f(-1),children:t.jsx(ue,{className:"btnsvg"})}),t.jsx(be,{children:e.map((s,g)=>{const m=Array.from({length:X},(ve,A)=>_(A)).indexOf(g);if(m===-1)return null;const{positionX:k,scale:E}=j[m],z=m===b,P=E*a,F=k*a,R=1.02*a;return t.jsx(xe,{isForeFront:z,positionX:F,scale:P,hoverScale:R,onClick:()=>O(g),onMouseEnter:()=>z&&p(!0),onMouseLeave:()=>z&&p(!1),style:{zIndex:m===b?5:5-Math.abs(m-b)},children:t.jsx(le,{label:s.cardTitle,title:s.sectionTitle,subtitle:s.sectionSubTitle,seeMoreLink:s.redirectLink,image:s.imageLink,variant:m===b?"large":m===b-1?"medium":"small"})},g)})}),t.jsx(D,{arrowOffset:S,position:"right",onClick:()=>f(1),children:t.jsx(he,{className:"btnsvg"})})]})},$e=["https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-reimbursements.png","https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-bill-payments.png","https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-ai-bookkeeping.png","https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-business-checking-accounts.png","https://storage.googleapis.com/zeni-apis.appspot.com/images/zeni-business-credit-cards.png"],ye=["https://www.zeni.ai/product/employee-reimbursements?utm_source=onboarding_interim","https://www.zeni.ai/product/bill-pay?utm_source=onboarding_interim","https://www.zeni.ai/product/ai-bookkeeping?utm_source=onboarding_interim","https://www.zeni.ai/product/business-checking-accounts?utm_source=onboarding_interim","https://www.zeni.ai/product/business-credit-card?utm_source=onboarding_interim"],je=({scale:e=1,showUpdatePaymentDetailButton:o=!1,stopCarousel:n=!1})=>{const{customerOnboardingPage:a}=I.getLocalizedStrings(),{productSuite:h}=a,l=h.productCard.cards.map((d,p)=>({...d,imageLink:$e[p],redirectLink:ye[p]}));return t.jsx(fe,{cards:l,scale:e,showUpdatePaymentDetailButton:o,stopCarousel:n})};export{je as T};
@@ -1,4 +1,4 @@
1
- import{q as c,V as r,d9 as m,da as v,db as y,bv as z,y as a,o as e,p as d,a as b,c as p}from"./index-DDpxinoY.js";import{b as i,n as g,k as f}from"./mui-DpJXlk4t.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="b43ba023-6a34-46b0-8989-f1740e2af88c",o._sentryDebugIdIdentifier="sentry-dbid-b43ba023-6a34-46b0-8989-f1740e2af88c")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new b("extraSmallRegular","largeRegular"),promoBusinessText:new b("tinyLight","tinyLight")},R=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(m,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(m,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
1
+ import{q as m,V as r,d9 as b,da as v,db as y,bv as z,o as e,p as d,y as a,a as c,c as p}from"./index-BGhFLU7w.js";import{c as i,n as g,k as f}from"./mui-8xKzSljO.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="085a904d-3aff-4193-885a-93640eaa7dc0",o._sentryDebugIdIdentifier="sentry-dbid-085a904d-3aff-4193-885a-93640eaa7dc0")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},R=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,4 +1,4 @@
1
- import{q as y,F as r,V as n,bP as b,n as l,y as c,o as i,ap as w,ak as $,ae as P,bt as j,eI as v,c as t}from"./index-DDpxinoY.js";import{n as o}from"./mui-DpJXlk4t.js";import"./core-CA3j8Axi.js";import"./sentry-BA4piVNf.js";import"./zeni-epic-state-CQt4n3Xe.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="02a7409e-66fb-4acd-84f5-10df8f5c5c2c",e._sentryDebugIdIdentifier="sentry-dbid-02a7409e-66fb-4acd-84f5-10df8f5c5c2c")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},_=o.div`
1
+ import{q as b,F as r,V as n,bP as y,n as l,y as c,o as i,ap as w,ak as $,ae as P,bt as j,eI as v,c as t}from"./index-BGhFLU7w.js";import{n as o}from"./mui-8xKzSljO.js";import"./sentry-C9BQzslk.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="63ba6a24-9c66-4302-8bf1-d5ff542e4293",e._sentryDebugIdIdentifier="sentry-dbid-63ba6a24-9c66-4302-8bf1-d5ff542e4293")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},_=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -48,4 +48,4 @@ import{q as y,F as r,V as n,bP as b,n as l,y as c,o as i,ap as w,ak as $,ae as P
48
48
  `,R=o(v)`
49
49
  height: ${i.sp4};
50
50
  color: ${e=>e.theme.colors.primary};
51
- `;function H({companyName:e="",isGoBackAllowed:a,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=y(),u=r.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),f=r.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(b,{open:g,children:n.jsxs(_,{windowSize:x,children:[n.jsxs(S,{children:[n.jsx(k,{children:r.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(z,{children:d?u:f}),n.jsxs(T,{children:[n.jsx(C,{}),n.jsx(D,{}),n.jsx(R,{})]})]}),d||a?n.jsxs(n.Fragment,{children:[n.jsx(L,{}),n.jsxs(B,{children:[a===!0?n.jsx(A,{children:n.jsx(l,{variant:"secondary",label:r.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(I,{children:n.jsx(l,{variant:"primary",label:r.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{H as default};
51
+ `;function H({companyName:e="",isGoBackAllowed:a,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=b(),u=r.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),f=r.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(y,{open:g,children:n.jsxs(_,{windowSize:x,children:[n.jsxs(S,{children:[n.jsx(k,{children:r.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(z,{children:d?u:f}),n.jsxs(T,{children:[n.jsx(C,{}),n.jsx(D,{}),n.jsx(R,{})]})]}),d||a?n.jsxs(n.Fragment,{children:[n.jsx(L,{}),n.jsxs(B,{children:[a===!0?n.jsx(A,{children:n.jsx(l,{variant:"secondary",label:r.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(I,{children:n.jsx(l,{variant:"primary",label:r.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{H as default};
@@ -1,4 +1,4 @@
1
- import{q as I,F as u,V as i,n as O,o,y as a,p as c,fK as k,a as T,ae as _,bt as B,eI as D,fB as E,aS as h,ag as f,c as r}from"./index-DDpxinoY.js";import{n}from"./mui-DpJXlk4t.js";import W from"./QBOConnectionDialog-DNB2C1vQ-DhNQ7g0E.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bc63ef73-da0b-4446-a91c-1ffb87184418",e._sentryDebugIdIdentifier="sentry-dbid-bc63ef73-da0b-4446-a91c-1ffb87184418")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},q={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=I(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(R,{children:d?i.jsx(J,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(M,{windowSize:s,children:[i.jsxs(Q,{children:[i.jsx(V,{}),i.jsx(K,{windowSize:s}),i.jsx(L,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(O,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(N,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(W,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(E,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
1
+ import{q as I,F as u,V as i,n as O,o,y as a,p as c,fK as k,a as T,ae as _,bt as B,eI as D,fB as E,aS as h,ag as f,c as r}from"./index-BGhFLU7w.js";import{n}from"./mui-8xKzSljO.js";import W from"./QBOConnectionDialog-DNB2C1vQ-DPJHlPHX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e16e635d-cc11-4c75-8742-d09cfb00f35c",e._sentryDebugIdIdentifier="sentry-dbid-e16e635d-cc11-4c75-8742-d09cfb00f35c")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},q={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=I(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(R,{children:d?i.jsx(J,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(M,{windowSize:s,children:[i.jsxs(Q,{children:[i.jsx(V,{}),i.jsx(K,{windowSize:s}),i.jsx(L,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(O,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(N,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(W,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(E,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as W,c as D,d as M,q as G,F as U,a8 as H,aN as X,V as r,aH as J,cB as K,bz as Q,ab as Y,aO as Z,o as b,g2 as ee}from"./index-DDpxinoY.js";import{a as B}from"./core-CA3j8Axi.js";import{n as c}from"./mui-DpJXlk4t.js";import{b as ae,f as te,l as T,o as _}from"./FollowStepsSection-64oy2OLD-7-LclZyo.js";import"./sentry-BA4piVNf.js";import"./zeni-epic-state-CQt4n3Xe.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="da8a0fb0-b13d-442a-bbe1-ff5e5955ffe1",e._sentryDebugIdIdentifier="sentry-dbid-da8a0fb0-b13d-442a-bbe1-ff5e5955ffe1")}catch{}})();const $="reimbursementApprovalRuleDetailPage",C="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(D[2],D[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:N,onSaveRuleClick:E,onSaveRuleSuccess:A}){const F=M(),S=G(),l=U.getLocalizedStrings().commonSetUp.approval,w=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:R}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:f}=e;let m=i.length>1?i.length-1:0,v=i.length>0?i[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:n}=f.data;m=i.findIndex(d=>d.approvalRuleId===n),v=m>0?i[m-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{E()}),z=async(n,d)=>{g(d)};return B.useEffect(()=>{const n=y.watch((d,{name:L})=>{if(L!=null&&d!=null){const O=J(d);K(()=>z(L,O))}});return()=>{n.unsubscribe()}}),B.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,u?.fetchState,A]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:k($),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?w.amountPerRemiGreaterLabel:w.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:I,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[I],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:k($),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),o??[])??[],[C]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:T},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),k=e=>`${e}_form`,Re=e=>`${e}`,ie=c.div`
1
+ import{y as W,c as D,d as G,q as M,F as U,a8 as X,aN as H,aG as J,cB as K,V as r,bz as Q,ab as Y,aO as Z,o as b,g2 as ee}from"./index-BGhFLU7w.js";import{a as B}from"./sentry-C9BQzslk.js";import{n as c}from"./mui-8xKzSljO.js";import{b as ae,f as te,o as T,l as _}from"./FollowStepsSection-64oy2OLD-BEGrGMi_.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bfd7b2e5-9ac0-433a-9039-f4c30e90d66f",e._sentryDebugIdIdentifier="sentry-dbid-bfd7b2e5-9ac0-433a-9039-f4c30e90d66f")}catch{}})();const $="reimbursementApprovalRuleDetailPage",C="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(D[2],D[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:N,onSaveRuleClick:E,onSaveRuleSuccess:A}){const F=G(),S=M(),l=U.getLocalizedStrings().commonSetUp.approval,w=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=X({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=H(u?.fetchState),{upperBound:R}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{E()}),z=async(n,d)=>{g(d)};return B.useEffect(()=>{const n=y.watch((d,{name:L})=>{if(L!=null&&d!=null){const O=J(d);K(()=>z(L,O))}});return()=>{n.unsubscribe()}}),B.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,u?.fetchState,A]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:k($),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?w.amountPerRemiGreaterLabel:w.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:I,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[I],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:k($),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),T(e.allAttributes),T(e.filteredAttributes),o??[])??[],[C]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:_},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:_},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),k=e=>`${e}_form`,Re=e=>`${e}`,ie=c.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as N,q as W,F as S,V as t,bz as _,m as E,aK as j,o,y as r,ak as z,aL as k,cm as H,cn as V,co as G,cY as U,c as l,b7 as q,a as T,b6 as F,p as P,cV as J,br as Y,b as K}from"./index-DDpxinoY.js";import{n as i}from"./mui-DpJXlk4t.js";import{a as O}from"./core-CA3j8Axi.js";import"./sentry-BA4piVNf.js";import"./zeni-epic-state-CQt4n3Xe.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="079e0896-28d9-454a-b63d-8ac191c1c1d4",e._sentryDebugIdIdentifier="sentry-dbid-079e0896-28d9-454a-b63d-8ac191c1c1d4")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[x,c]=O.useState(!1),a=W(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:w}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(w)},onCancelClick:()=>{c(!1)}};return t.jsxs(X,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",w),children:[t.jsxs(Z,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(B,{windowSize:a,children:[n.from," ",k("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(I,{}),t.jsx(te,{}),t.jsx(I,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(B,{windowSize:a,children:k("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(w)},"data-testid":j("edit-approval-rule",w)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(L,{children:[t.jsx(C,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(R,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>t.jsxs(L,{children:[t.jsxs(C,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(R,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),x?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},X=i.div`
1
+ import{d as N,q as W,F as S,V as t,bz as _,m as E,aM as j,o,y as r,ak as z,aK as k,cm as H,cn as V,co as G,cY as U,c as l,b7 as q,a as T,b6 as F,p as P,cV as J,br as Y,b as K}from"./index-BGhFLU7w.js";import{n as i}from"./mui-8xKzSljO.js";import{a as O}from"./sentry-C9BQzslk.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="93c1e96a-615c-444f-af7e-1d01c99fcada",e._sentryDebugIdIdentifier="sentry-dbid-93c1e96a-615c-444f-af7e-1d01c99fcada")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[x,c]=O.useState(!1),a=W(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:w}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(w)},onCancelClick:()=>{c(!1)}};return t.jsxs(X,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",w),children:[t.jsxs(Z,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(B,{windowSize:a,children:[n.from," ",k("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(I,{}),t.jsx(te,{}),t.jsx(I,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(B,{windowSize:a,children:k("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(w)},"data-testid":j("edit-approval-rule",w)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(L,{children:[t.jsx(C,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(R,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>t.jsxs(L,{children:[t.jsxs(C,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(R,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),x?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},X=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};