@zeniai/web-cockpit-ui 1.14.12-prod → 1.14.13-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/dist/assets/ACHDetailsPage-DVi_fb5U-BWoXmLUY.js +21 -0
  2. package/dist/assets/{AIPerformancePage-C459GJxs-DDVbkYhC.js → AIPerformancePage-C-orwzaK-DOCKSZSl.js} +44 -44
  3. package/dist/assets/{AccountInfoPage-DWqJj9l6-Cbq_B2Gd.js → AccountInfoPage-DvhQOLM6-C0wQ6YRZ.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-Ca328DM4-BoBBm2eT.js → AccountInfoPageContent-B1BJnQNd-Dywp_u_s.js} +18 -18
  5. package/dist/assets/{AccountReconDetailsDrawerPage-BqIo4mya-8jnme6Tg.js → AccountReconDetailsDrawerPage-C8EtTwZE-BoEh8Ely.js} +13 -13
  6. package/dist/assets/{AccountRow-Bk3xWobY-B9GPlHQB.js → AccountRow-m3N4T8ro-CB7I5u10.js} +27 -27
  7. package/dist/assets/{AccountsPromoCardStack-Co90dxxm-DJwvfgg4.js → AccountsPromoCardStack-DGHAcZ7D-BqYytjsB.js} +28 -28
  8. package/dist/assets/{AddAddressForCardDrawer-XNGsKMvs-CVOvZj44.js → AddAddressForCardDrawer-B_1jj1h7-Cu6_XTQ0.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-BiQWQXvz-Dja3V_rU.js → AddToWalletPage-DL1Bk4bd-ClBCUS3g.js} +21 -21
  10. package/dist/assets/{AgingReportsPage-ClR6ctjm-Cfdqgqs-.js → AgingReportsPage-DQ4P7iSR-BaDY7W1-.js} +8 -8
  11. package/dist/assets/{AllUserItems-RFWkNfw--CjDEoogo.js → AllUserItems-BSWk_1pR-BC2mjTTt.js} +13 -13
  12. package/dist/assets/{ApAgingDetailPage-F-pd4-We-DEfvotPI.js → ApAgingDetailPage-0i8K1czh-BtF7tRtB.js} +2 -2
  13. package/dist/assets/{AppBasePage-B9-FGKn--hgna65ij.js → AppBasePage-CV3kU-Ax-HUIuRSgH.js} +7 -7
  14. package/dist/assets/{AppDrawerContent-C6P8rk3y-Da2OtBCB.js → AppDrawerContent-DA8q-1_m-Ip7rRN25.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-CPNEEGTF-C0zXmi9a.js → ApprovalRulesSettingsPage-CRlqbhea-CnWEhcBd.js} +7 -7
  16. package/dist/assets/{ArAgingChart-D9qmMVoC-C7_7BRFM.js → ArAgingChart-CiJNNObG-DOT8YGoK.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-DMuZM6P_-ClopoFOj.js → ArAgingDetailPage-2I9R_J97-CEWBavmC.js} +1 -1
  18. package/dist/assets/{AttachmentView-B2ZOED0q-ee9lrIw2.js → AttachmentView-D0naVbDk-BMIJVqWj.js} +7 -7
  19. package/dist/assets/{BankAccountSection-C8G4yj75-DdOLLfNd.js → BankAccountSection-CYYTnOEW-ta40gqBk.js} +6 -6
  20. package/dist/assets/BankAccountWarningSection--b6oxmO3-bf21H1-K.js +51 -0
  21. package/dist/assets/{BankConnectionsSettingsPage-B5IQ5w6f-DMsLVdXW.js → BankConnectionsSettingsPage-BzwCu93j-CCEpUgq7.js} +49 -49
  22. package/dist/assets/{BillDetailPage-B-PMkZ44-bIK6xUHc.js → BillDetailPage-OzI0RkQ_-Bav1HJG-.js} +16 -16
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-CdLKENJ--RLdpGq9U.js → BillPayApprovalRuleDetailPage-DIQW7KY9-C0xmBCct.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-BueljBn0-Bf7hfEuS.js → BillPayApprovalRulesPage-BMmJ4cuT-CLahxDlm.js} +9 -9
  25. package/dist/assets/{BillPayPromoPage-WXntEliq-D_QROeBX.js → BillPayPromoPage-CN5LKQzn-T_t_dz_s.js} +8 -8
  26. package/dist/assets/{BillPaySetUpPage-By7rYetf-CeRSgDq5.js → BillPaySetUpPage-DMKmupPw-CmltaH2A.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-D-XtlyVU-Cx-l00Il.js → BillingSettingsPage-Bt_0mrqR-CgkXOlNp.js} +8 -8
  28. package/dist/assets/{BillsBulkReviewDrawerPage-P8siJ8lO-DdRAIHzS.js → BillsBulkReviewDrawerPage-GFME_IXw-CmxfCt6F.js} +1 -1
  29. package/dist/assets/{BoxItem-Bcy7IYuZ-BKqgXMbg.js → BoxItem-nvtPdCwS-CiJFmSMj.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-_E3jrLwS-D28zK5AA.js +140 -0
  31. package/dist/assets/{CardNumberSubText-VsMOF0Xv-BXhxDioS.js → CardNumberSubText-DBpF1pjJ-BDHubHrk.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DNbRs50r-DGmDyCg3.js → CashbackDetailPage-DrdbDPXK-BHacfWCb.js} +30 -30
  33. package/dist/assets/{ChargeCardDetailPage-BSDS8Kqb-U4i4-RaN.js → ChargeCardDetailPage-DvY3CSB4-DTju6vUj.js} +54 -54
  34. package/dist/assets/{ChargeCardListPage-Bzr8qMC0-IbAzxN57.js → ChargeCardListPage-BE5yGbg8-B5XQaFqy.js} +14 -14
  35. package/dist/assets/{ChargeCardListTable-CTp6TFBR-CeVbldJj.js → ChargeCardListTable-B-scLCAt-DWKxrdfC.js} +37 -37
  36. package/dist/assets/ChargeCardPromoPage-2OheDHbA-BAFEqKdK.js +222 -0
  37. package/dist/assets/{ChargeCardSetupPage-B1wzJjgH-BBhf5rqO.js → ChargeCardSetupPage-FNCK1n4W-DRpaATuu.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-CePfbLPp-iDyGSKYa.js → ChargeCardStatementsPage-1fuIth_h-DUYP62lN.js} +9 -9
  39. package/dist/assets/{ChargeCardUtils-DC2v2EHU-CC66ls3Y.js → ChargeCardUtils-CErWBcYS-DYGG4Kg0.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-B-Sx71yo-Thk2BACZ.js → ChaseOverlay-9_ms5LgM-DLbFcFUT.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-DEFEMwuI-FYtd8ETj.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-mEqm05fp-CUcsGi4N.js → CollapsableReportTable-DX-FpwE7-MJq_0H8T.js} +59 -59
  43. package/dist/assets/CompanyOfficerDetailsSection-BEgNqg-b-BZkAjfXP.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-Ct6tCZqT-5nR77uHb.js → CompanyPassportCard-BZXE3iJL-D0vVN1yd.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-D9NQ4bXl-CsJ1uZgg.js → CompanyPassportPage-BYZC3G4H-Dyir7GPA.js} +22 -22
  46. package/dist/assets/CompleteProfile-mCKLQjGe-D37b51yU.js +52 -0
  47. package/dist/assets/{ConfettiBurst-DqSwVGBC-BVzEX0ox.js → ConfettiBurst-BEoFHjQ0-BZkigu9v.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-D27A1926-Bj04MSDS.js → CreateOrEditVendorPage-6sohsdle-DulmpRQu.js} +11 -11
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BI37dSwx-BipcUtpo.js → CreditCardPaymentDrawerPage-6oVDS3D8-BG57VbJ5.js} +21 -21
  50. package/dist/assets/{CreditCardPaymentPlgSection-CAsn4Ae6-KEtkArBz.js → CreditCardPaymentPlgSection-DX1BieKp-CaB1ZnNz.js} +11 -12
  51. package/dist/assets/{CurrencySelectField-5uG4FfJ9-8SqcpktO.js → CurrencySelectField-F2P1iCLk-DqZUsNYq.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-Be-GrAiK-B75Mje9v.js → CustomerOnboardingActivationPage-CNJkyjta-BXFLHGd8.js} +8 -8
  53. package/dist/assets/CustomerOnboardingContainerPage-D6yeERaX-CnXYVWPD.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DhGp71bj-hz8cq6ev.js → CustomerOnboardingDetailPageSkeleton-B_MgUg-5-Bgdn7kSU.js} +12 -12
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CdOGTNXC-C9i5EKaE.js → CustomerOnboardingNoStepsPage-B49-4wZk-KyTxoYIy.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-ClPsywa3-CeQwicZf.js → CustomerOnboardingPage-4FPXG220-Bhtz8R34.js} +7 -7
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-pnHglqXq-8KyJVU1M.js → CustomerOnboardingProductSuitePage-cJPPvh-5-CdfdHVAA.js} +9 -9
  58. package/dist/assets/{Dashboard-avtbjFLf-BsfTTLt8.js → Dashboard-BBy_mQ8p-zBP8Z7QF.js} +260 -242
  59. package/dist/assets/{DashboardReportPage-CqJAu5WP-CSiSRP9H.js → DashboardReportPage-DYttySr4-ICoa42Db.js} +6 -6
  60. package/dist/assets/{DepositAccTransactionItem-Da0GWYei-DaDMj8eg.js → DepositAccTransactionItem-PNTL0e8v-Bf5t1weD.js} +6 -6
  61. package/dist/assets/DepositAccTransactionListPage-DUwVnkwy-91dKQsy5.js +66 -0
  62. package/dist/assets/{DomesticWireDetailsPage-DGcVKriv-CAGyxOGA.js → DomesticWireDetailsPage-BhwTfZwI-lG3b6Dqd.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-BdGiqnp7-DStgGthq.js → DownloadOverlay-CUbv29mo-Cm7YvHGd.js} +21 -21
  64. package/dist/assets/{DrawerPage-DCfm1BVs-BjLjeoWD.js → DrawerPage-2_QOgQ1m-jFj08QrD.js} +11 -11
  65. package/dist/assets/EditPeoplePage-CtTYiqg3-C_rRpXUg.js +55 -0
  66. package/dist/assets/{EditReimbursementDetailPage-C-nYgUua-C1qTcfcR.js → EditReimbursementDetailPage-C_jRh7w0-BjxLHuhj.js} +61 -61
  67. package/dist/assets/{EntityDetailPage-4HX_rHUf-xDLdueS9.js → EntityDetailPage-BhQsnCgQ-BJqshBB_.js} +3 -3
  68. package/dist/assets/{EntitySummarySection-C9VeOBpT-BTsQfMwI.js → EntitySummarySection-CKkXzM76-JNV3nj4B.js} +12 -12
  69. package/dist/assets/{ExpenseAutomationOverviewPage-8jTkscWa-bIf05Fhx.js → ExpenseAutomationOverviewPage-ZuB3Aiv2-g-beRD6J.js} +26 -26
  70. package/dist/assets/{ExpenseAutomationPage-D1wcc9GW-BZm22R7G.js → ExpenseAutomationPage-BUic8zfk-CY9AnIj2.js} +41 -41
  71. package/dist/assets/{ExpressPayPage-Cj6cvMwQ-BJmICkVH.js → ExpressPayPage-DEkJ_H0W-D2MJYEqV.js} +12 -12
  72. package/dist/assets/FeaturePreviewPage-CtK7L5vk-zb1RibOL.js +11 -0
  73. package/dist/assets/{FollowStepsSection-DjfnVH8N-B5jFIUn7.js → FollowStepsSection-CWw764ZM-BMjBkJvU.js} +9 -9
  74. package/dist/assets/{GlobalReviewListPage-CEOzc0We-D9YAcarq.js → GlobalReviewListPage-CZctHM7r-C-SmU9tc.js} +12 -12
  75. package/dist/assets/{HelpButton-BdhMFvtG-C54ST6PE.js → HelpButton-Dpx0Yoel-1C4sAmaf.js} +4 -4
  76. package/dist/assets/{InformationCardStack-DFOumIBr-gjF_ZQhk.js → InformationCardStack-BGpHl4yb-D2VMsFIF.js} +5 -5
  77. package/dist/assets/InsightsCardStack-BbMJEahw-XjHe58kA.js +79 -0
  78. package/dist/assets/InsightsSection-CYkuQHcj-B18a-FIC.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-DF-jcHzr-WMJTJEtS.js → IntegrationsSettingsPage-CMjSCRm_-C9xmqHS7.js} +8 -8
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BFMqW1oQ-CdCE1RD1.js → InternationalWireSwiftDetailsPage-BTbTUt8U-DHwEWLr_.js} +15 -15
  81. package/dist/assets/{InternationalWireVerificationPage-Cq7swzrt-C0L5yCuY.js → InternationalWireVerificationPage-DAW2eMTg-BGhWwB2B.js} +22 -22
  82. package/dist/assets/{InviteFormPage-DXl2sEn9-B2Ez35Mj.js → InviteFormPage-CCbyacPR-DUt2JWiG.js} +20 -20
  83. package/dist/assets/{InvitePageListView-B5fRPcOg-CjFdA4G8.js → InvitePageListView-mHkALr5o-BpwevZSI.js} +62 -62
  84. package/dist/assets/InvitePeoplePage-r6PLBiEv-CRU1obhZ.js +12 -0
  85. package/dist/assets/{InvoiceUploadSection-opkVsXZH-CXWs7XL1.js → InvoiceUploadSection-BsjeicP1-CxRipy2m.js} +41 -41
  86. package/dist/assets/{IssueChargeCardPage-CZU1qbHO-BdEtPimR.js → IssueChargeCardPage-C3esnkQg-Bt2ncw32.js} +33 -33
  87. package/dist/assets/{LabeledAddressValue-CCd3y8zQ-BJNbO-Fn.js → LabeledAddressValue-CeeoKoY4-C81fNRY2.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-XuFlx-oK-BMP_E_ys.js → LabeledAddressValueField-B6eeRCSM-BGM6iGCs.js} +3 -3
  89. package/dist/assets/{LabeledControlledCheckBoxField-CCQn4-_S-C2xp_EVs.js → LabeledControlledCheckBoxField-CK8YBqJ7-dH7h4-c9.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-uQKngCdt-DJ4lsiO3.js → LabeledCreatableSingleSelectField-BSKL8pA3-y22U9yzT.js} +6 -6
  91. package/dist/assets/LabeledDocumentField-BEyArLK3-Bbt820GM.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BrUNxsKy-B8W5l8Iz.js → LabeledDropDownFormattedTextField-DikXPnxD-3H5194hi.js} +7 -7
  93. package/dist/assets/{LabeledText-ByqI7uq0-BqhwXzjW.js → LabeledText-qSjyNZO1-BMO1teu9.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg1Lpwl0-D5r53n-D.js → LabeledUserSingleSelectWithSubtitlesField-x87S_Azj-BPP3i4wb.js} +16 -16
  95. package/dist/assets/{LabeledZeniRolesDropDownField-DZL4GZtE-Bl91YXKB.js → LabeledZeniRolesDropDownField-nm5bG2up-B-C-v8v9.js} +17 -17
  96. package/dist/assets/{LinkJETransactionPage-CJlBllrr-RkOKGfby.js → LinkJETransactionPage-p7wdZbtp-BamvjpR7.js} +13 -13
  97. package/dist/assets/{LowBalancePopup-BEvuAR0Z-D9Mm46kU.js → LowBalancePopup-DHk6xd2B-V5eEOh0a.js} +7 -7
  98. package/dist/assets/{MagicLinkACHDetailsPage-DloX1GWg-BSJJfYX3.js → MagicLinkACHDetailsPage-DRQ8oej8-B79oZw1R.js} +1 -1
  99. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DewjvM4v-CjyLi2R0.js → MagicLinkDomesticWireDetailsPage-BxXU9Opg-BdNHmjDj.js} +1 -1
  100. package/dist/assets/{MagicLinkInternationalWireDetailsPage-CVhazlxQ-CdUPSdVq.js → MagicLinkInternationalWireDetailsPage-DYN1baIc-DT4ZdIcR.js} +1 -1
  101. package/dist/assets/MagicLinkSuccessPage-CX3bJ5_B-Bgn3-P2S.js +31 -0
  102. package/dist/assets/{MagicLinkTitleSection-d1edBt3w-BuhlKpVM.js → MagicLinkTitleSection-K2cZQVzq-CIEidPVy.js} +4 -4
  103. package/dist/assets/MailingDetailsSection--zHyCquq-Cn3SWfKt.js +21 -0
  104. package/dist/assets/{MeetingCalenderPopup-MtSyJ1AS-BwRcYCw3.js → MeetingCalenderPopup-DbFlQ8Km-9ZxBnjo6.js} +1 -1
  105. package/dist/assets/{Menu-BV79l8xf-CT05aLZH.js → Menu-LLL9taEz-CtH4c9eF.js} +2 -2
  106. package/dist/assets/{MyBankConnectionsSettingsPage-D-xDtURG-a5WJJsgd.js → MyBankConnectionsSettingsPage-BfDsHVZw-aWZVlaCb.js} +15 -15
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-VEhml0PW-C7lDm9On.js → MyPendingActivationChargeCardListPage-vag56A65-DvFj3aDV.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-DPJ0fJdQ-BVaOzJZE.js → MyProfileSettingsPage-DCKqWh-p-Ca4URKq-.js} +8 -8
  109. package/dist/assets/NavBarWithPicker-Cvi89wZV-3CVqu6ha.js +30 -0
  110. package/dist/assets/{NavigationArrow-BwXNdvOg-Bw7XRwN0.js → NavigationArrow-CHmddDC--CUC3t4BZ.js} +2 -2
  111. package/dist/assets/NavigationDots-1wpj484Z-By9SVfKB.js +15 -0
  112. package/dist/assets/{NewGlobalMerchantPage-IeE86L-X-C4OUiP9X.js → NewGlobalMerchantPage-B0FywA12-BRuJ6OhE.js} +13 -13
  113. package/dist/assets/{NoDataChart-C9yfE8vY-D5FBma0Z.js → NoDataChart-D43mhDJW-B9CXfEvp.js} +1 -1
  114. package/dist/assets/{NoDataTable-DF9QNT4a-DSZJ4vGD.js → NoDataTable-BOfUxs9D-8iqVCaVk.js} +1 -1
  115. package/dist/assets/{NotFoundPage-DSaizJve-BAhgScCF.js → NotFoundPage-DFioH5Rt-BQR0ORs3.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-DeAeFHmj-CaUz1tWX.js → NotificationSettingsPage-y4g1rAal-BJEuhBam.js} +13 -13
  117. package/dist/assets/{NotificationsListConfig-DuzDckh--BqtRxON_.js → NotificationsListConfig-sybPesiv-FmaZBisq.js} +1 -1
  118. package/dist/assets/{NotificationsPage-B7ZC7ezP-DEJagd6q.js → NotificationsPage-C88YOjuY-Ds4zz6jH.js} +31 -32
  119. package/dist/assets/{OpExByVendorPage-DzODetHf-DB9TWTaj.js → OpExByVendorPage-qBWbJhv9-Cs148Yzz.js} +7 -7
  120. package/dist/assets/{OverlayContainerPage-GWXnlbZH-CXhqDEmM.js → OverlayContainerPage-Dres4Grh-BoM1wcb9.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-FEi5USqF-Cvmw-ezu.js → PandLWithForecastPage-uiaHrci6-ClUgwvyo.js} +8 -8
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BbL4x5pQ-CQ4mDWcj.js → PaymentAccountSetupBillingAddressSection-BepDUdA0-DvE7tkJU.js} +11 -11
  123. package/dist/assets/{PeoplePage-B35T31YZ-DghEF7WY.js → PeoplePage-oF6C1uyM-DLFAgG_p.js} +20 -20
  124. package/dist/assets/{PortfolioAllocationFormPage-D3FP_MRr-DOEDYQct.js → PortfolioAllocationFormPage-C5O3GLqz-BYzrfMTu.js} +4 -4
  125. package/dist/assets/{PortfolioDetails-Dtz3YEPu-BMRrMf3q.js → PortfolioDetails-BkGNpmoO-B3KzDtEL.js} +31 -31
  126. package/dist/assets/{ProductsCarousel-DIlEuuqg-DrIeQsxl.js → ProductsCarousel-C_tmo4EA-BDn6T3LG.js} +6 -6
  127. package/dist/assets/{PromoBaseCards-DTsaas8S-CPDQ_Ck-.js → PromoBaseCards-Bq5-q2ew-oeM6E2Gs.js} +5 -5
  128. package/dist/assets/{QBOConnectionDialog-Cvt38cmU-p0xTPV2f.js → QBOConnectionDialog-BXNWjeYB-CT3y8ZPP.js} +9 -9
  129. package/dist/assets/QBOSetupSection-D3sIWrh1-Dt8ceji3.js +79 -0
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-ClgCUbVP-DfTW4OAe.js +26 -0
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BG8uMxNw-D1uyrGH4.js → ReimbursementApprovalRulesPage-hjja5JFq-1dF9j3jn.js} +8 -8
  132. package/dist/assets/{ReimbursementDetailPage-Cs7XeZrC-OHz7BSRY.js → ReimbursementDetailPage-sXYC_aoR-CngyEl5D.js} +19 -19
  133. package/dist/assets/{ReimbursementPromoPage-CKITZNUc-79ijnfiq.js → ReimbursementPromoPage-C9zs7VRV-DY_b0K3o.js} +24 -24
  134. package/dist/assets/{ReimbursementSetUpPage-DD5P181p-CxWIYZnN.js → ReimbursementSetUpPage-Ban56LOC-Cen4aYhY.js} +11 -11
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0eORL7o-iqE8m4Np.js → ReimbursementsBulkReviewDrawerPage-CsRwI-rl-KeeGuW4E.js} +1 -1
  136. package/dist/assets/{ReloadCard-CZ4IXHy1-Dtuzk5Rl.js → ReloadCard-EBXtqdt5-e0DLVF2o.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-Do0yQJxY-BXH3sbob.js → ReportTableViewSelector-Ae5lGopA-CZicNwDg.js} +10 -10
  138. package/dist/assets/{ReportsPage-BUi475EG-CQaz0teT.js → ReportsPage-Dh3DhbEK-DCmUMwXx.js} +5 -5
  139. package/dist/assets/{RevenueChart-DPNqxQ4n-mVhaMXTb.js → RevenueChart-C5qfXMEg-D1BQhist.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-DTCC2C0D-C6Ojy72F.js → ReviewDetailsPage-DjcJd2VM-CMmXdVTb.js} +17 -17
  141. package/dist/assets/{ReviewOverlay-CPN-RHG--BufZJNs3.js → ReviewOverlay-Dmrea9EK-DOxs4FI1.js} +14 -14
  142. package/dist/assets/RoleWithToolTip-CqeM8Bh0-BSEMOUZO.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BSz5BdJ4-BcAVniZz.js → ScheduleDetailsFixedAssetsPage-CQGRrdSx-BKHIJc5L.js} +8 -8
  144. package/dist/assets/{ScheduleDetailsPage-DKVlaW9e-ChemaS_v.js → ScheduleDetailsPage-D5OBZ80r-BSViQYwc.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-BhpHoReF-DVT0PeVe.js → ScheduleSequenceTable-fgV8zz4I-B96Fw2cP.js} +49 -49
  146. package/dist/assets/{ScreenRoutes-CUNOProC.js → ScreenRoutes-Bs8GRIgm.js} +62 -62
  147. package/dist/assets/{SetUpAccountSection-Blh-Vipv-Ec9w8zf3.js → SetUpAccountSection-4-gtB3I4-CmDUZ7Ps.js} +24 -24
  148. package/dist/assets/{SetUpDefaultSection-DsyZbNsv-BcyPPYMa.js → SetUpDefaultSection-DSslQOgJ-y5lEHYNN.js} +12 -12
  149. package/dist/assets/{SignIn-DehOoUba-_IFKRKFV.js → SignIn-CgXxIawW-DSrGSPuV.js} +17 -17
  150. package/dist/assets/{SignInScreen-BXQkh3gn.js → SignInScreen-DSt7uixJ.js} +1 -1
  151. package/dist/assets/{SpendManagementListViewPage-C23fDDXZ-e5NI-MjJ.js → SpendManagementListViewPage-SkhzkIYZ-CI28gjhv.js} +11 -11
  152. package/dist/assets/{SpendManagementPerTabPage-Cx0sB3qO-C92A_6wt.js → SpendManagementPerTabPage-CofY1YYQ-C9YpxBTZ.js} +55 -55
  153. package/dist/assets/{SpendManagementSection-DbZYpbtO-DTrbPW3G.js → SpendManagementSection-DbC93chQ-CmYHf5ne.js} +13 -13
  154. package/dist/assets/{SpendMgmtSetupAccountSection-BkUIdz9m-ClfpmeIa.js → SpendMgmtSetupAccountSection-_8G7bMAw-CYWZUz0n.js} +22 -22
  155. package/dist/assets/{StatementItem-BF8L0fc_-DkDCxyQq.js → StatementItem-7ezfuDl--CcU7F4Hj.js} +5 -5
  156. package/dist/assets/{StatementsPage-96e3ZbSU-BP5FaF_u.js → StatementsPage-C4ziRzkU-Cl2Heiw2.js} +6 -6
  157. package/dist/assets/{StatusSwitcher-jwpQ49F7-BGzqIV7p.js → StatusSwitcher-0rVfFE-a-CheRZPfP.js} +7 -7
  158. package/dist/assets/{SubTabSwitcher-B8H6McwL-CAGUZLqm.js → SubTabSwitcher-aoWbkCmT-CaMIdf8x.js} +1 -1
  159. package/dist/assets/{SummaryCard-Bv4ja9yJ-BQ3Vm3Ml.js → SummaryCard-6V1G-Yln-AkNgJPj0.js} +1 -1
  160. package/dist/assets/{TaskManagementPage-D7tD4WRl-D829_k0m.js → TaskManagementPage-DjQma5Cr-DLhPVic-.js} +18 -18
  161. package/dist/assets/{TimeRangeSwitcher-Cr-ObvZ9-BpkXiM1i.js → TimeRangeSwitcher-DeIRg5zY-Bi--_Fx4.js} +5 -5
  162. package/dist/assets/{TimeframeSwitcher-YkFxZedG-C9WakH79.js → TimeframeSwitcher-Cop4G4gx-DupejW9U.js} +5 -5
  163. package/dist/assets/TimeframeSwitcherWithToggle-BhoniKOB-DuZjqpvb.js +31 -0
  164. package/dist/assets/{TopExCard-DtrsuLFD-rsSVK-ay.js → TopExCard-BKirBv7q-BKzGhACE.js} +6 -6
  165. package/dist/assets/{TopExDetailPage-HMRdJt_a-Cuky-W3B.js → TopExDetailPage-DcVunE8d-BJAugcNm.js} +11 -11
  166. package/dist/assets/{TransactionDetailPage-CkWEdpTW-BX9Cs2dn.js → TransactionDetailPage-TJf3D0K6-ChXVy1nH.js} +26 -26
  167. package/dist/assets/{TransactionList-8rOZr8BD-DZQflEIq.js → TransactionList-fn6VXYIJ-XKKmCfLI.js} +4 -4
  168. package/dist/assets/{TransactionListBig-DGx1qy2c-WusOBIcK.js → TransactionListBig-B_hNDFjS-Bc3M6sby.js} +25 -25
  169. package/dist/assets/{TransactionListPage-CnbufCaM-Crj6dxSk.js → TransactionListPage-BbXZWbie-DmTuImVR.js} +6 -6
  170. package/dist/assets/{TransactionVendorDetailPage-UpZX_EgR-Mzs4hwfT.js → TransactionVendorDetailPage-C6qJ5ncL-DRKEGbRL.js} +6 -6
  171. package/dist/assets/TransferDrawerPage-BtYoqKi--BK8jkNir.js +362 -0
  172. package/dist/assets/{TreasuryOverviewPage-DoPe6v4O-dHNFdpx5.js → TreasuryOverviewPage-DOV8Hanc-BzuaF_Oy.js} +53 -53
  173. package/dist/assets/{TreasuryPromoPage-Db20FO_G-DajsAZcT.js → TreasuryPromoPage-C9O7G72q-D0fVcP3x.js} +30 -29
  174. package/dist/assets/TreasurySetupPage-CNzkkEjw-Dh78QFWy.js +146 -0
  175. package/dist/assets/{TreasuryStatementsPage-BONCF7O1-C2wksa5Y.js → TreasuryStatementsPage-Ts6D6F-l-CQAmEMl1.js} +5 -5
  176. package/dist/assets/{TreasuryTaxLetterPage-NCZ0Y4yr-8hmlID6w.js → TreasuryTaxLetterPage-CM93_rS4-CfzYhIka.js} +5 -5
  177. package/dist/assets/TreasuryTransferOrReviewPage-C8-tbCUQ-DHGOUHuT.js +506 -0
  178. package/dist/assets/{TrendChart-DQXhBbqy-u2beI5NW.js → TrendChart-BXjPAYgk-DjYRl65V.js} +5 -5
  179. package/dist/assets/{TrendWithTransactions-Du-a-c_9-Um_fvL6F.js → TrendWithTransactions-BlGX9aVa-DUrKUprM.js} +8 -8
  180. package/dist/assets/{UncategorizedAccountsMappingPage-mSPC4LpU-DSNIKC_z.js → UncategorizedAccountsMappingPage--PnxDLIj-DgyLI8TV.js} +12 -12
  181. package/dist/assets/{UnitIntegrationPage-B5O9G4QH-y6cPvP8r.js → UnitIntegrationPage-D5mzaVVL-B87wl-C8.js} +4 -4
  182. package/dist/assets/{UploadAdditionalDocumentOverlay-CnjzAGYo-CBf_BQlS.js → UploadAdditionalDocumentOverlay-BXS2l5kF-4XXbIdgY.js} +1 -1
  183. package/dist/assets/{Vendor2FAPopup-CYcCB8tr-CtNb2at2.js → Vendor2FAPopup-jXN-6kcB-WQjywdob.js} +1 -1
  184. package/dist/assets/{VendorACHDetailsPage-C6EuQBcH-DtIAcatA.js → VendorACHDetailsPage-CHfX_7tk-CseZDy3t.js} +1 -1
  185. package/dist/assets/{VendorDetailPage-CnSXWVCg-BL1omixq.js → VendorDetailPage-CZuQaTCe-00z-DC1U.js} +13 -13
  186. package/dist/assets/{VendorDomesticWireDetailsPage-CVTkzHFB-BOarRjTv.js → VendorDomesticWireDetailsPage-dBmyAkGL-BzziQHyn.js} +1 -1
  187. package/dist/assets/{VendorFiling1099EditablePage-TJb9mpk0-qwt68m34.js → VendorFiling1099EditablePage-C6KWbHaM-FdVjec5X.js} +7 -7
  188. package/dist/assets/{VendorFirstReviewPage-gBLVMddY-3lz9ZyKl.js → VendorFirstReviewPage-DLaCXLH8-Bp3HVWXV.js} +30 -30
  189. package/dist/assets/{VendorInternationalWireDetailsPage-Bhm7j6HC-C_fJSHjY.js → VendorInternationalWireDetailsPage-DgCH9Rad-DD-YZWBN.js} +10 -10
  190. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-MgN7VFET-JLytJhuc.js → VendorInternationalWireSwiftDetailsPage-CprymE3v-BXc-3kQm.js} +1 -1
  191. package/dist/assets/{VendorsAccountsSection-Cn-8Yemv-QU3Ugu9k.js → VendorsAccountsSection-CpkfwFDJ-DeHCyl4j.js} +15 -15
  192. package/dist/assets/VerifyDevice-CSIkEBig-DzQ9uYAN.js +67 -0
  193. package/dist/assets/{WarningsDrawerPage-Cc_Rty0A-CiWJTjUM.js → WarningsDrawerPage-DeqbJ2Le-CygSrVz8.js} +12 -12
  194. package/dist/assets/{ZeniAccountDetailPage-BU2TTiDP-Caxfo2QU.js → ZeniAccountDetailPage-kwKoeRAb-yy2D4Oyh.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-DbcnkYvX-ai9PY1nW.js → ZeniAccountListViewPage-15LxhIiI-3EkZXZhB.js} +19 -19
  196. package/dist/assets/ZeniAccountNavBarPieces-C0pq95hS-D_BEJJwy.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-D-5ArrRO-yroK6L0e.js → ZeniAccountPromoPage-DvlAb5YA-BxPQZ-TN.js} +33 -33
  198. package/dist/assets/{ZeniAccountSetupPage-DXYR0Ipo-69zJLoPG.js → ZeniAccountSetupPage-BjpvTfF5-DJqm4qSs.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-DPd1ifIT-CsDQSNsH.js → ZeniCopyright-BYJFIZ_X-DJl-W8Ni.js} +1 -1
  200. package/dist/assets/ZeniTransferAmountSlider-Did4Chpj-CHnHwXGw.js +63 -0
  201. package/dist/assets/{analyticsHelper-DrNmU0vn-cbtpMVPt.js → analyticsHelper-BRyA7WLX-Ch8yhvbw.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DYztlfoV.js → analyticsHelper-DEjyvXKA.js} +1 -1
  203. package/dist/assets/{chartTypes-YTQv3tre-BaZWty8J.js → chartTypes-CWEoqL4g-Bo1GQ9Y0.js} +1 -1
  204. package/dist/assets/{commonDimensions-BtmBVXgZ-DngS5_m0.js → commonDimensions-UvndzJjv-DkCvzihA.js} +1 -1
  205. package/dist/assets/{detailCommon-hHyz3hj3-CgkqfxsC.js → detailCommon-C3ymS8dg-BusgYXoD.js} +2 -2
  206. package/dist/assets/{downloadPdf-CDvgLzWC-C6NI1uz3.js → downloadPdf-CHwWcCR1-BQYdnkG1.js} +1 -1
  207. package/dist/assets/{index-CVo0uMzO.js → index-DYVNUtTS.js} +4129 -3984
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BfoqmoAq-n6edsobL.js → mapLoadingInProgressToTreeNode-BV9ky97n-C6-bn_qJ.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BjtxR9iQ-qzW1C6Un.js → mapSectionWithAcOnlyToTreeNode-WivyN4Y7-DeEMrm9i.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-D8o529OP-C6pXOMvN.js → mapSpacerToTreeNode-AXNRptLX-B0rl0_Lw.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-BirMnIzY-C4aRbhHq.js → mapTimeframeBalancesToTreeNode-DUac2vK4-jK2oIVF4.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-NA69l84M-PrspUuQP.js → mapTimeframeBalancesToTreeNode-JTl35sFx-B-SNtaen.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BCqRt8GN-Bw8svqkv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DtkeOXnf-Dl0F4JWH.js} +1 -1
  214. package/dist/assets/{play-icon-DyIc5aGx-CIOaxH3w.js → play-icon-HSIOzxQm-DtUz8FwI.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-2jQJLb8S-DW8RIFP8.js → toCOABalancesWithID-CkjYSysY-DF7YtxZI.js} +1 -1
  216. package/dist/assets/{toChartData-Dsjd8dGe-B64jG2hW.js → toChartData-BhKlnyso-CKLUlraQ.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-EG8VpBia-DN3Bvuhd.js → treasuryColorHelper-yIAXBrrM-D_iAl7kS.js} +1 -1
  218. package/dist/assets/{uploadAttachment-CVUM4FN--B0G4nXtQ.js → uploadAttachment-CWaYLqwb-DAXv_gFj.js} +32 -32
  219. package/dist/assets/{uploadReceipts-D80JLNY4-CvtBPjYq.js → uploadReceipts-C6Ld_WLK-CscO-OGr.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ACHDetailsPage-BQBpkHfF-BwEQR3Ry.js +0 -21
  223. package/dist/assets/BankAccountWarningSection-CWXa-X6f-Bo2YdlXb.js +0 -51
  224. package/dist/assets/BusinessVerificationPage-BoSLJbyU-BJPGiqTw.js +0 -140
  225. package/dist/assets/ChargeCardPromoPage-dIg8OIlx-I5SeyfVO.js +0 -219
  226. package/dist/assets/CheckDepositDrawerPage-uABg3PMN-BdzopMYU.js +0 -206
  227. package/dist/assets/CompanyOfficerDetailsSection-BzYsDrr2-uFzN5DGM.js +0 -232
  228. package/dist/assets/CompleteProfile-CN_hAW-2-D9tT8MoO.js +0 -36
  229. package/dist/assets/CustomerOnboardingContainerPage-B9qcJNx5-UVumagoc.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-Db90ITIq-oTkCmI07.js +0 -66
  231. package/dist/assets/DocumentSecurityBanner-Bxg3ctYZ-39503B9W.js +0 -29
  232. package/dist/assets/EditPeoplePage-CBPmCcoG-DAdjecZc.js +0 -55
  233. package/dist/assets/FeaturePreviewPage-BBkfKvIu-CqzyD_TL.js +0 -11
  234. package/dist/assets/InsightsCardStack-rByhzgji-FDbIdVTC.js +0 -79
  235. package/dist/assets/InsightsSection-jnWJ877y-CXGce558.js +0 -27
  236. package/dist/assets/InvitePeoplePage-DvGON1va-BYLNeXQs.js +0 -12
  237. package/dist/assets/LabeledDocumentField-TFmz23mS-CYnZhFdz.js +0 -41
  238. package/dist/assets/MagicLinkSuccessPage-dxBSlbub-CRDPtPi_.js +0 -31
  239. package/dist/assets/MailingDetailsSection-CsK09X11-DZ9sqO1E.js +0 -21
  240. package/dist/assets/NavBarWithPicker-CuJe05iJ-BuKAIj_v.js +0 -30
  241. package/dist/assets/NavigationDots-BQfoX9p0-BmnKz8T-.js +0 -14
  242. package/dist/assets/QBOSetupSection-Dijb03ZX-CFOO-p_z.js +0 -79
  243. package/dist/assets/ReimbursementApprovalRuleDetailPage-bkJIpwyU-DTXj9skr.js +0 -26
  244. package/dist/assets/RoleWithToolTip-Bst2IdUy-DaFvOxA_.js +0 -22
  245. package/dist/assets/TimeframeSwitcherWithToggle-4h9WX4z9-DfbkXFml.js +0 -31
  246. package/dist/assets/TransferDrawerPage-cUyg27nq-DoY6rZbB.js +0 -362
  247. package/dist/assets/TreasurySetupPage-BoVhd65r-DAl3tLzo.js +0 -152
  248. package/dist/assets/TreasuryTransferOrReviewPage-DAmZboLO-qe3kHbZ0.js +0 -506
  249. package/dist/assets/ZeniAccountNavBarPieces-CeJHAl4O-D-T_tdRo.js +0 -14
  250. package/dist/assets/ZeniTransferAmountSlider-di46G5TN-D3ij5oCv.js +0 -63
@@ -1,4 +1,4 @@
1
- import{X as V,u as Y,j as o,_ as w,M as J,dr as u,o as i,C as a,eY as D,eZ as j,g as C,e_ as ee,Q as ie,bc as oe,q as l,p as te,a6 as B,b4 as se,v as E,af as re,m as ne,b0 as le,f2 as ae}from"./index-CVo0uMzO.js";import{b as de,n as t}from"./vendor-CnQcJ2Lu.js";const n={sectionWidth:new a(343,580,726),descriptionMarginBottom:new a(12,l[3]),iconContainerMaxWidthHeight:new a(l[6],l[7]),iconContainerMarginRight:new a(12,l[3]),iconPadding:new a(10,12),rowGap:new a(l[2],l[3]),containerPadding:new a(l[3],l[4]),navIconLeftMargin:new a(12,l[4]),tagIconContainerDivMarginTop:new a(l[2],l[0])},_={title:new ie("standardSemiBold","largeSemiBold")},{commonSetUp:{setUp:S}}=J.getLocalizedStrings(),ce=t(le)`
1
+ import{X as V,u as Y,j as o,$ as w,B as Z,dv as u,o as i,C as a,e$ as D,f0 as j,d as C,f1 as ee,J as ie,bd as oe,s as l,r as te,a6 as B,b5 as se,w as E,af as re,M as ne,b1 as le,f5 as ae}from"./index-DYVNUtTS.js";import{b as de,n as t}from"./vendor-CnQcJ2Lu.js";const n={sectionWidth:new a(343,580,726),descriptionMarginBottom:new a(12,l[3]),iconContainerMaxWidthHeight:new a(l[6],l[7]),iconContainerMarginRight:new a(12,l[3]),iconPadding:new a(10,12),rowGap:new a(l[2],l[3]),containerPadding:new a(l[3],l[4]),navIconLeftMargin:new a(12,l[4]),tagIconContainerDivMarginTop:new a(l[2],l[0])},I={title:new ie("standardSemiBold","largeSemiBold")},{commonSetUp:{setUp:S}}=Z.getLocalizedStrings(),ce=t(le)`
2
2
  margin-left: 6px;
3
3
  width: 12px;
4
4
  height: 12px;
@@ -39,7 +39,7 @@ import{X as V,u as Y,j as o,_ as w,M as J,dr as u,o as i,C as a,eY as D,eZ as j,
39
39
  border-bottom-right-radius: ${i.sp0};
40
40
  border-bottom-left-radius: ${i.sp0};
41
41
  `}
42
- `,we=({windowSize:e,title:P,isError:p,isCardPaymentMethod:$=!1,showAddPaymentMethodDropDown:f=!1,addPaymentMethodDropdownOpen:r,isDisabled:m,updateCardPaymentModalState:x,setAddPaymentMethodDropdownOpen:d,openPlaidDialog:y,productType:h,setEventSourceType:v,referrer:M,analytics:b})=>{const z=()=>{r===!0&&d!=null&&d(!1)};return o.jsxs(pe,{children:[o.jsx(ve,{windowSize:e,isDisabled:m,isError:p,children:P}),f?o.jsxs(he,{"data-testid":w("add-payment-method-wrapper",h),children:[o.jsx(ce,{"data-testid":w("add-payment-method",h),onClick:g=>{g.stopPropagation(),d?.(!(r??!1))}}),r===!0?o.jsx(te,{onClickAway:z,children:o.jsxs(ge,{children:[o.jsx(me,{}),o.jsx(ue,{onClick:g=>{g.stopPropagation(),$&&x!=null?(x(!0),v!=null&&b!=null&&h!=null&&(v("link_new_credit_card"),b.trackCreditCardConnect(h,"link_new_credit_card",M))):y?.(g,"link_new_bank_account"),d?.(!1)},"data-testid":w("add-card",h),children:$?S.addNewCard:S.linkNewAccount})]})}):null]}):null]})};function Qe({style:e,header:P,footNote:p,title:$,subTitle:f,status:r,statusInfoIcon:m,icon:x,isActive:d=!0,isDisabled:y=!1,isClickable:h=!0,isCompleted:v=!1,showCompletedIcon:M=!1,isError:b,hasError:z=!1,subTitleIcon:g,isLoading:c,isTagLoading:A,isActiveWhileLoading:W=!1,shouldHover:I=!0,showRightArrow:N=!0,onClick:H,showAddPaymentMethodDropDown:G=!1,updateCardPaymentModalState:K,openPlaidDialog:O,isCardPaymentMethod:R,analytics:F,productType:k,referrer:Q,setEventSourceType:U,additionalInfo:L}){const s=V(),X=Y(),[Z,q]=de.useState(!1);return o.jsxs($e,{windowSize:s,style:e,isActive:d&&!y,isLoading:c??!1,isActiveWhileLoading:W,"data-testid":w("setup-default-section",k),children:[o.jsxs(Ae,{children:[M===!0?o.jsx(_e,{children:v?o.jsx(We,{}):o.jsx(Ie,{})}):null,o.jsxs(Le,{windowSize:s,children:[P,d===!1?o.jsx(Be,{children:S.comingSoon}):null]})]}),o.jsxs(ze,{windowSize:s,width:e?.width,shouldHover:I,isClickable:h,children:[o.jsxs(xe,{isFootNoteAvailable:p!=null,children:[o.jsxs(ke,{windowSize:s,width:e?.width,isfootNoteAvailable:p!=null,onClick:d&&!y?H:void 0,"data-testid":w("setup-approval-section-elements",k),children:[o.jsxs(fe,{children:[o.jsx(u,{isLoading:c??!1,customStyle:{width:i.sp7,height:i.sp7,borderRadius:"50%",marginRight:i.sp3},children:o.jsx(Me,{iconColor:x.color,windowSize:s,isDarkMode:X.mode==="dark",children:x.element})}),o.jsxs(De,{children:[o.jsxs(Te,{children:[o.jsx(u,{isLoading:c??!1,customStyle:{width:"200px",height:i.sp4,marginBottom:`${n.descriptionMarginBottom.valuePx(s)}`,marginTop:i.sp2},children:o.jsx(we,{windowSize:s,title:$,isError:b,showAddPaymentMethodDropDown:G,setAddPaymentMethodDropdownOpen:q,addPaymentMethodDropdownOpen:Z,updateCardPaymentModalState:K,isCardPaymentMethod:R??!1,openPlaidDialog:O,analytics:F,productType:k,referrer:Q,setEventSourceType:U})}),f.length>0?o.jsx(be,{children:o.jsx(u,{isLoading:c??!1,customStyle:{width:i.sp12,height:`${i.sp4}`,marginBottom:`${n.descriptionMarginBottom.valuePx(s)}`},children:o.jsxs(je,{children:[f,g!=null?o.jsx(Se,{children:g.element}):null]})})}):null]}),r!=null&&s==="small"?o.jsx(u,{isLoading:c??!1,customStyle:{width:i.sp12,height:i.sp4,marginBottom:`${n.descriptionMarginBottom.valuePx(s)}`},children:o.jsxs(T,{windowSize:s,children:[m??m,o.jsx(D,{style:{width:"max-content",padding:0},tagTitle:r.name,textColor:j(r.code),showLoader:A})]})}):null,c===!1&&L!=null?o.jsxs(He,{children:[o.jsx(Ge,{statusColor:r!=null?j(r.code).color:void 0}),o.jsx(Ke,{statusColor:r!=null?j(r.code).color:void 0,children:L})]}):null]})]}),o.jsxs(ye,{children:[r!=null&&s!=="small"?o.jsxs(T,{windowSize:s,children:[o.jsx(Ne,{children:m??m}),o.jsx(u,{isLoading:c??!1,customStyle:{width:i.sp12,height:`${i.sp4}`,marginBottom:`${n.descriptionMarginBottom.valuePx(s)}`},children:o.jsx(D,{style:{width:"max-content",padding:0},tagTitle:r.name,textColor:j(r.code),showLoader:A})})]}):null,N===!0?o.jsx(Ce,{windowSize:s,children:o.jsx(Pe,{width:i.sp4,height:i.sp4})}):null]})]}),z?o.jsx(Oe,{children:S.bankAccountLinkingError}):null]}),o.jsx(u,{isLoading:c??!1,customStyle:{marginTop:n.rowGap.valuePx(s),width:"48%",height:i.sp3,marginBottom:i.sp2,marginLeft:i.sp3},children:typeof p=="string"?o.jsx(Ee,{children:p}):p})]})]})}const $e=t.div`
42
+ `,we=({windowSize:e,title:P,isError:p,isCardPaymentMethod:$=!1,showAddPaymentMethodDropDown:f=!1,addPaymentMethodDropdownOpen:r,isDisabled:m,updateCardPaymentModalState:x,setAddPaymentMethodDropdownOpen:d,openPlaidDialog:y,productType:h,setEventSourceType:v,referrer:M,analytics:b})=>{const z=()=>{r===!0&&d!=null&&d(!1)};return o.jsxs(pe,{children:[o.jsx(ve,{windowSize:e,isDisabled:m,isError:p,children:P}),f?o.jsxs(he,{"data-testid":w("add-payment-method-wrapper",h),children:[o.jsx(ce,{"data-testid":w("add-payment-method",h),onClick:g=>{g.stopPropagation(),d?.(!(r??!1))}}),r===!0?o.jsx(te,{onClickAway:z,children:o.jsxs(ge,{children:[o.jsx(me,{}),o.jsx(ue,{onClick:g=>{g.stopPropagation(),$&&x!=null?(x(!0),v!=null&&b!=null&&h!=null&&(v("link_new_credit_card"),b.trackCreditCardConnect(h,"link_new_credit_card",M))):y?.(g,"link_new_bank_account"),d?.(!1)},"data-testid":w("add-card",h),children:$?S.addNewCard:S.linkNewAccount})]})}):null]}):null]})};function Ke({style:e,header:P,footNote:p,title:$,subTitle:f,status:r,statusInfoIcon:m,icon:x,isActive:d=!0,isDisabled:y=!1,isClickable:h=!0,isCompleted:v=!1,showCompletedIcon:M=!1,isError:b,hasError:z=!1,subTitleIcon:g,isLoading:c,isTagLoading:A,isActiveWhileLoading:N=!1,shouldHover:W=!0,showRightArrow:_=!0,onClick:H,showAddPaymentMethodDropDown:J=!1,updateCardPaymentModalState:R,openPlaidDialog:G,isCardPaymentMethod:O,analytics:F,productType:k,referrer:K,setEventSourceType:U,additionalInfo:L}){const s=V(),X=Y(),[q,Q]=de.useState(!1);return o.jsxs($e,{windowSize:s,style:e,isActive:d&&!y,isLoading:c??!1,isActiveWhileLoading:N,"data-testid":w("setup-default-section",k),children:[o.jsxs(Ae,{children:[M===!0?o.jsx(Ie,{children:v?o.jsx(Ne,{}):o.jsx(We,{})}):null,o.jsxs(Le,{windowSize:s,children:[P,d===!1?o.jsx(Be,{children:S.comingSoon}):null]})]}),o.jsxs(ze,{windowSize:s,width:e?.width,shouldHover:W,isClickable:h,children:[o.jsxs(xe,{isFootNoteAvailable:p!=null,children:[o.jsxs(ke,{windowSize:s,width:e?.width,isfootNoteAvailable:p!=null,onClick:d&&!y?H:void 0,"data-testid":w("setup-approval-section-elements",k),children:[o.jsxs(fe,{children:[o.jsx(u,{isLoading:c??!1,customStyle:{width:i.sp7,height:i.sp7,borderRadius:"50%",marginRight:i.sp3},children:o.jsx(Me,{iconColor:x.color,windowSize:s,isDarkMode:X.mode==="dark",children:x.element})}),o.jsxs(De,{children:[o.jsxs(Te,{children:[o.jsx(u,{isLoading:c??!1,customStyle:{width:"200px",height:i.sp4,marginBottom:`${n.descriptionMarginBottom.valuePx(s)}`,marginTop:i.sp2},children:o.jsx(we,{windowSize:s,title:$,isError:b,showAddPaymentMethodDropDown:J,setAddPaymentMethodDropdownOpen:Q,addPaymentMethodDropdownOpen:q,updateCardPaymentModalState:R,isCardPaymentMethod:O??!1,openPlaidDialog:G,analytics:F,productType:k,referrer:K,setEventSourceType:U})}),f.length>0?o.jsx(be,{children:o.jsx(u,{isLoading:c??!1,customStyle:{width:i.sp12,height:`${i.sp4}`,marginBottom:`${n.descriptionMarginBottom.valuePx(s)}`},children:o.jsxs(je,{children:[f,g!=null?o.jsx(Se,{children:g.element}):null]})})}):null]}),r!=null&&s==="small"?o.jsx(u,{isLoading:c??!1,customStyle:{width:i.sp12,height:i.sp4,marginBottom:`${n.descriptionMarginBottom.valuePx(s)}`},children:o.jsxs(T,{windowSize:s,children:[m??m,o.jsx(D,{style:{width:"max-content",padding:0},tagTitle:r.name,textColor:j(r.code),showLoader:A})]})}):null,c===!1&&L!=null?o.jsxs(He,{children:[o.jsx(Je,{statusColor:r!=null?j(r.code).color:void 0}),o.jsx(Re,{statusColor:r!=null?j(r.code).color:void 0,children:L})]}):null]})]}),o.jsxs(ye,{children:[r!=null&&s!=="small"?o.jsxs(T,{windowSize:s,children:[o.jsx(_e,{children:m??m}),o.jsx(u,{isLoading:c??!1,customStyle:{width:i.sp12,height:`${i.sp4}`,marginBottom:`${n.descriptionMarginBottom.valuePx(s)}`},children:o.jsx(D,{style:{width:"max-content",padding:0},tagTitle:r.name,textColor:j(r.code),showLoader:A})})]}):null,_===!0?o.jsx(Ce,{windowSize:s,children:o.jsx(Pe,{width:i.sp4,height:i.sp4})}):null]})]}),z?o.jsx(Ge,{children:S.bankAccountLinkingError}):null]}),o.jsx(u,{isLoading:c??!1,customStyle:{marginTop:n.rowGap.valuePx(s),width:"48%",height:i.sp3,marginBottom:i.sp2,marginLeft:i.sp3},children:typeof p=="string"?o.jsx(Ee,{children:p}):p})]})]})}const $e=t.div`
43
43
  display: flex;
44
44
  flex-direction: column;
45
45
  pointer-events: ${e=>(e.isLoading===!0||e.isActive===!1)&&e.isActiveWhileLoading===!1?"none":"initial"};
@@ -58,7 +58,7 @@ import{X as V,u as Y,j as o,_ as w,M as J,dr as u,o as i,C as a,eY as D,eZ as j,
58
58
  margin-top: ${e=>n.tagIconContainerDivMarginTop.valuePx(e.windowSize)};
59
59
  gap: ${i.sp2};
60
60
  `,ve=t.div`
61
- ${e=>`${_.title.style(e.windowSize)}`};
61
+ ${e=>`${I.title.style(e.windowSize)}`};
62
62
  color: ${e=>e.isError===!0?C.important:e.isDisabled===!0?e.theme.colors.grey1:e.theme.colors.primary};
63
63
  `,be=t.div`
64
64
  display: flex;
@@ -124,7 +124,7 @@ import{X as V,u as Y,j as o,_ as w,M as J,dr as u,o as i,C as a,eY as D,eZ as j,
124
124
  display: flex;
125
125
  align-items: center;
126
126
  color: ${e=>e.theme.colors.primary};
127
- ${e=>`${_.title.style(e.windowSize)}`};
127
+ ${e=>`${I.title.style(e.windowSize)}`};
128
128
  `,De=t.div`
129
129
  display: flex;
130
130
  flex-direction: column;
@@ -139,18 +139,18 @@ import{X as V,u as Y,j as o,_ as w,M as J,dr as u,o as i,C as a,eY as D,eZ as j,
139
139
  box-sizing: border-box;
140
140
  text-align: center;
141
141
  color: ${e=>e.theme.colors.grey1};
142
- `,_e=t.div`
142
+ `,Ie=t.div`
143
143
  margin-right: ${i.sp2};
144
- `,We=t(ee)`
144
+ `,Ne=t(ee)`
145
145
  width: ${i.sp3};
146
146
  height: ${i.sp3};
147
147
  color: ${C.success};
148
- `,Ie=t.div`
148
+ `,We=t.div`
149
149
  height: 14px;
150
150
  width: 14px;
151
151
  border: 1px solid ${e=>e.theme.colors.primary};
152
152
  border-radius: 50%;
153
- `,Ne=t.div`
153
+ `,_e=t.div`
154
154
  width: ${i.sp3};
155
155
  height: ${i.sp3};
156
156
  margin: auto;
@@ -159,16 +159,16 @@ import{X as V,u as Y,j as o,_ as w,M as J,dr as u,o as i,C as a,eY as D,eZ as j,
159
159
  align-items: center;
160
160
  gap: ${i.sp1};
161
161
  margin-top: ${i.sp1};
162
- `,Ge=t(se)`
162
+ `,Je=t(se)`
163
163
  width: ${i.sp3};
164
164
  height: ${i.sp3};
165
165
  color: ${e=>e.statusColor!=null?e.statusColor.toString():e.theme.colors.grey1};
166
- `,Ke=t(E)`
166
+ `,Re=t(E)`
167
167
  color: ${e=>e.statusColor!=null?e.statusColor.toString():e.theme.colors.grey1};
168
- `,Oe=t(E)`
168
+ `,Ge=t(E)`
169
169
  display: flex;
170
170
  color: ${C.important};
171
171
  margin-left: 88px;
172
172
  margin-bottom: ${i.sp3};
173
173
  border-radius: ${i.sp1};
174
- `;export{we as $,Qe as K,Ee as T};
174
+ `;export{we as $,Ke as J,Ee as L};
@@ -1,4 +1,4 @@
1
- import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i as le,C,$ as qe,Q as ae,h as ke,g as c,k as Xe,O as Qe,v as Se,r as be,b as Ye,l as de,c as Ke,d as ei,K as je,e as ye,f as M,Y as ii,n as oi,m as ve,p as ni,q as L,Z as ri,s as ti,x as si,t as li}from"./index-CVo0uMzO.js";import{b as r,n,f as ai,k as ze,j as di}from"./vendor-CnQcJ2Lu.js";import{i as ci}from"./ZeniCopyright-DPd1ifIT-CsDQSNsH.js";import{S as gi}from"./ProductsCarousel-DIlEuuqg-DrIeQsxl.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const pi=e=>r.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M5.49686 0.437846C3.50884 1.1044 1.81485 2.56223 0.871312 4.40709C0.542169 5.04355 0.305187 5.71871 0.160364 6.41967C-0.199498 8.15702 0.0506501 10.0105 0.866923 11.593C1.39794 12.6251 2.16155 13.5454 3.08315 14.2636C3.95647 14.943 4.97023 15.4505 6.04982 15.73C7.41028 16.0869 8.8585 16.0783 10.2277 15.773C11.4653 15.4935 12.6371 14.9129 13.5718 14.07C14.5592 13.1799 15.2658 12.0102 15.6388 10.7502C16.047 9.37833 16.0996 7.9119 15.8451 6.50138C13.2866 6.50138 10.7236 6.50138 8.16511 6.50138C8.16511 7.54207 8.16511 8.58276 8.16511 9.62345C9.64844 9.62345 11.1318 9.62345 12.6151 9.62345C12.444 10.6211 11.8383 11.5328 10.9826 12.0962C10.4428 12.4531 9.82399 12.681 9.18326 12.7928C8.54253 12.9003 7.87546 12.9132 7.23473 12.7885C6.58084 12.6595 5.96205 12.3929 5.41787 12.0188C4.54893 11.421 3.88626 10.548 3.54834 9.56325C3.20164 8.56126 3.19725 7.44746 3.54834 6.44977C3.7941 5.74451 4.19784 5.09515 4.73325 4.56191C5.39153 3.89965 6.24731 3.42661 7.17329 3.23309C7.96323 3.06968 8.79706 3.09978 9.56945 3.3277C10.2277 3.52122 10.8334 3.87815 11.3293 4.34259C11.8296 3.85235 12.3299 3.3621 12.8302 2.87186C13.0935 2.60954 13.3699 2.35581 13.6245 2.08489C12.8653 1.39683 11.97 0.842081 10.9957 0.48945C9.24031 -0.147006 7.26545 -0.159907 5.49686 0.437846Z",fill:"white"}),r.createElement("path",{d:"M5.49686 0.43784C7.26106 -0.159913 9.2403 -0.147012 10.9957 0.485144C11.97 0.837775 12.8609 1.38822 13.6245 2.08058C13.3699 2.35151 13.0935 2.60523 12.8302 2.86755C12.3299 3.3578 11.8296 3.84804 11.3293 4.33828C10.8334 3.87384 10.2277 3.52121 9.56945 3.32339C8.79706 3.09547 7.96323 3.06107 7.17329 3.22879C6.25169 3.4223 5.39592 3.89534 4.73325 4.5576C4.19784 5.08655 3.79409 5.74021 3.54833 6.44547C2.65745 5.76601 1.76657 5.09085 0.871307 4.41139C1.81485 2.56223 3.50884 1.1044 5.49686 0.43784Z",fill:"#EA4335"}),r.createElement("path",{d:"M0.164771 6.41539C0.309594 5.71873 0.546576 5.03927 0.875719 4.40282C1.7666 5.08228 2.65748 5.75744 3.55274 6.4369C3.20166 7.43888 3.20166 8.55268 3.55274 9.55037C2.66186 10.2298 1.77099 10.9093 0.880107 11.5844C0.0550569 10.0062 -0.195091 8.15275 0.164771 6.41539Z",fill:"#FBBC05"}),r.createElement("path",{d:"M8.16515 6.49707C10.7237 6.49707 13.2866 6.49707 15.8451 6.49707C16.0997 7.90329 16.0426 9.36972 15.6389 10.7458C15.2659 12.0059 14.5593 13.1756 13.5719 14.0657C12.7073 13.4078 11.8428 12.7498 10.9782 12.0919C11.834 11.5285 12.4396 10.6168 12.6108 9.61914C11.1274 9.61914 9.6441 9.61914 8.16077 9.61914C8.16516 8.57845 8.16515 7.53776 8.16515 6.49707Z",fill:"#4285F4"}),r.createElement("path",{d:"M0.871338 11.5887C1.76222 10.9135 2.6531 10.2341 3.54397 9.55461C3.88628 10.5394 4.54457 11.4124 5.4135 12.0101C5.95769 12.3843 6.58086 12.6509 7.23037 12.7799C7.8711 12.9089 8.53377 12.8917 9.17889 12.7842C9.81962 12.6724 10.4384 12.4445 10.9782 12.0875C11.8428 12.7455 12.7073 13.4034 13.5718 14.0614C12.6371 14.9086 11.4653 15.4848 10.2278 15.7644C8.85853 16.0697 7.4103 16.0783 6.04985 15.7214C4.97026 15.4418 3.9565 14.9387 3.08317 14.2549C2.16596 13.5411 1.40235 12.6208 0.871338 11.5887Z",fill:"#34A853"})),hi=e=>r.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M0 0H7.58546V7.58546H0V0Z",fill:"#F25022"}),r.createElement("path",{d:"M8.37742 0H15.9629V7.58546H8.37742V0Z",fill:"#7FBA00"}),r.createElement("path",{d:"M0 8.37741H7.58546V15.9629H0V8.37741Z",fill:"#00A4EF"}),r.createElement("path",{d:"M8.41454 8.41454H16V16H8.41454V8.41454Z",fill:"#FFB900"})),mi=n.div`
1
+ import{X as q,A as Ue,a as Je,B as k,j as i,T as E,G as We,F as Ge,P as Ne,o,b as le,C,c as qe,J as ae,g as ke,d as c,k as Xe,Q as Qe,w as Se,p as be,e as Ye,l as de,h as Ke,f as ei,i as je,m as ye,v as M,n as ii,q as oi,M as ve,r as ni,s as L,Z as ri,t as ti,x as si,y as li}from"./index-DYVNUtTS.js";import{b as r,n,f as ai,k as ze,j as di}from"./vendor-CnQcJ2Lu.js";import{i as ci}from"./ZeniCopyright-BYJFIZ_X-DJl-W8Ni.js";import{S as gi}from"./ProductsCarousel-C_tmo4EA-BDn6T3LG.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const pi=e=>r.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M5.49686 0.437846C3.50884 1.1044 1.81485 2.56223 0.871312 4.40709C0.542169 5.04355 0.305187 5.71871 0.160364 6.41967C-0.199498 8.15702 0.0506501 10.0105 0.866923 11.593C1.39794 12.6251 2.16155 13.5454 3.08315 14.2636C3.95647 14.943 4.97023 15.4505 6.04982 15.73C7.41028 16.0869 8.8585 16.0783 10.2277 15.773C11.4653 15.4935 12.6371 14.9129 13.5718 14.07C14.5592 13.1799 15.2658 12.0102 15.6388 10.7502C16.047 9.37833 16.0996 7.9119 15.8451 6.50138C13.2866 6.50138 10.7236 6.50138 8.16511 6.50138C8.16511 7.54207 8.16511 8.58276 8.16511 9.62345C9.64844 9.62345 11.1318 9.62345 12.6151 9.62345C12.444 10.6211 11.8383 11.5328 10.9826 12.0962C10.4428 12.4531 9.82399 12.681 9.18326 12.7928C8.54253 12.9003 7.87546 12.9132 7.23473 12.7885C6.58084 12.6595 5.96205 12.3929 5.41787 12.0188C4.54893 11.421 3.88626 10.548 3.54834 9.56325C3.20164 8.56126 3.19725 7.44746 3.54834 6.44977C3.7941 5.74451 4.19784 5.09515 4.73325 4.56191C5.39153 3.89965 6.24731 3.42661 7.17329 3.23309C7.96323 3.06968 8.79706 3.09978 9.56945 3.3277C10.2277 3.52122 10.8334 3.87815 11.3293 4.34259C11.8296 3.85235 12.3299 3.3621 12.8302 2.87186C13.0935 2.60954 13.3699 2.35581 13.6245 2.08489C12.8653 1.39683 11.97 0.842081 10.9957 0.48945C9.24031 -0.147006 7.26545 -0.159907 5.49686 0.437846Z",fill:"white"}),r.createElement("path",{d:"M5.49686 0.43784C7.26106 -0.159913 9.2403 -0.147012 10.9957 0.485144C11.97 0.837775 12.8609 1.38822 13.6245 2.08058C13.3699 2.35151 13.0935 2.60523 12.8302 2.86755C12.3299 3.3578 11.8296 3.84804 11.3293 4.33828C10.8334 3.87384 10.2277 3.52121 9.56945 3.32339C8.79706 3.09547 7.96323 3.06107 7.17329 3.22879C6.25169 3.4223 5.39592 3.89534 4.73325 4.5576C4.19784 5.08655 3.79409 5.74021 3.54833 6.44547C2.65745 5.76601 1.76657 5.09085 0.871307 4.41139C1.81485 2.56223 3.50884 1.1044 5.49686 0.43784Z",fill:"#EA4335"}),r.createElement("path",{d:"M0.164771 6.41539C0.309594 5.71873 0.546576 5.03927 0.875719 4.40282C1.7666 5.08228 2.65748 5.75744 3.55274 6.4369C3.20166 7.43888 3.20166 8.55268 3.55274 9.55037C2.66186 10.2298 1.77099 10.9093 0.880107 11.5844C0.0550569 10.0062 -0.195091 8.15275 0.164771 6.41539Z",fill:"#FBBC05"}),r.createElement("path",{d:"M8.16515 6.49707C10.7237 6.49707 13.2866 6.49707 15.8451 6.49707C16.0997 7.90329 16.0426 9.36972 15.6389 10.7458C15.2659 12.0059 14.5593 13.1756 13.5719 14.0657C12.7073 13.4078 11.8428 12.7498 10.9782 12.0919C11.834 11.5285 12.4396 10.6168 12.6108 9.61914C11.1274 9.61914 9.6441 9.61914 8.16077 9.61914C8.16516 8.57845 8.16515 7.53776 8.16515 6.49707Z",fill:"#4285F4"}),r.createElement("path",{d:"M0.871338 11.5887C1.76222 10.9135 2.6531 10.2341 3.54397 9.55461C3.88628 10.5394 4.54457 11.4124 5.4135 12.0101C5.95769 12.3843 6.58086 12.6509 7.23037 12.7799C7.8711 12.9089 8.53377 12.8917 9.17889 12.7842C9.81962 12.6724 10.4384 12.4445 10.9782 12.0875C11.8428 12.7455 12.7073 13.4034 13.5718 14.0614C12.6371 14.9086 11.4653 15.4848 10.2278 15.7644C8.85853 16.0697 7.4103 16.0783 6.04985 15.7214C4.97026 15.4418 3.9565 14.9387 3.08317 14.2549C2.16596 13.5411 1.40235 12.6208 0.871338 11.5887Z",fill:"#34A853"})),hi=e=>r.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M0 0H7.58546V7.58546H0V0Z",fill:"#F25022"}),r.createElement("path",{d:"M8.37742 0H15.9629V7.58546H8.37742V0Z",fill:"#7FBA00"}),r.createElement("path",{d:"M0 8.37741H7.58546V15.9629H0V8.37741Z",fill:"#00A4EF"}),r.createElement("path",{d:"M8.41454 8.41454H16V16H8.41454V8.41454Z",fill:"#FFB900"})),mi=n.div`
2
2
  margin-left: ${o.sp3};
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  font-family: ${li.Roboto};
@@ -36,7 +36,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
36
36
  `,fi=n(hi)`
37
37
  height: ${o.sp3};
38
38
  width: ${o.sp3};
39
- `;function Ie({type:e,titleText:g,disabled:a,loadingIndication:m,onClick:h}){const d=q(),x=i.jsxs(wi,{children:[e==="Google"?i.jsx(xi,{}):i.jsx(fi,{}),i.jsx(mi,{windowSize:d,children:g})]});return i.jsx(ui,{windowSize:d,disabled:a===!0,onClick:a===!0?void 0:h,children:m===!0?i.jsx(Ke,{size:"Standard",start:m===!0}):x})}const $i=({inProgress:e,disabled:g,onSuccess:a,onSignedInCallback:m,getSignedInUser:h,onError:d})=>{const x=Ye({onSuccess:a,flow:"auth-code",onError:d}),w=()=>{if(h()!=null){m();return}x()};return i.jsx(Ie,{onClick:w,disabled:g,type:"Google",titleText:k.getLocalizedStrings().signIn.signInGoogleButton,loadingIndication:e})},Ci=e=>{const{clientId:g,scopes:a,getSignedInUser:m,onSignedInCallback:h,render:d,onSuccess:x,onFailure:w,disabled:_}=e;let{responseType:$,responseMode:S,prompt:v,redirectUri:z}=e,P,s;const I="https://login.microsoftonline.com/common/oauth2/v2.0/authorize",F=["openid","profile"];$=$??"code",S=S??"fragment",v=v??"consent",ai.useEffect(()=>{const u=de.toZeniUrl(window.location[S==="fragment"?"hash":"search"],!0).query;(window.location.search||window.location.hash)&&(u.code!=null||u.access_token!=null||u.error!=null)&&Z()},[]);const T=()=>{const u=encodeURIComponent((a??F).join(" "));return z=z??window.location.origin+window.location.pathname,`${I}?client_id=${g}&response_type=${$}&redirect_uri=${encodeURIComponent(z)}&scope=${u}&prompt=${v}&response_mode=${S}`},Z=()=>{window.opener?.authScope.authCompletedCB(de.toZeniUrl(window.location[S==="fragment"?"hash":"search"],!0).query),window.close()};return d({onClick:()=>{if(m()!=null){h();return}P=!1;const u=(p,O)=>{const V=window.screen.width/2-287.5,B=window.screen.height/2-600/2,H=window.open(p,O,`toolbar=0,status=0, width=575, height=600, top=${B}, left=${V}`);s=setInterval(()=>{H.closed&&!P&&(w({error:k.getLocalizedStrings().signIn.signInError,errorDetail:{reason:"Signin popup window was closed"}}),clearInterval(s))},500)};window.authScope={authCompletedCB:p=>{P=!0,clearInterval(s),$==="code"&&p.code?x({code:p.code}):$==="token"&&p.access_token?x({accessToken:p.access_token,tokenType:p.token_type,scope:p.scope}):p.error==="access_denied"?w({error:k.getLocalizedStrings().signIn.signInAuthError,errorDetail:p}):w({error:k.getLocalizedStrings().signIn.signInError,errorDetail:p})}},u(T(),"Microsoft Sign In")},disabled:_})},ki=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M14.4966 8.6752L11.3135 9.72133C11.0597 9.80325 10.7843 9.78641 10.5423 9.67418C10.3004 9.56195 10.1096 9.36259 10.0082 9.1159C9.90679 8.86922 9.90213 8.59335 9.99519 8.34338C10.0882 8.09341 10.2721 7.88773 10.5102 7.76741L13.5941 6.22588C13.8572 6.09531 14.1441 6.01959 14.4373 6.00333C14.7305 5.98706 15.024 6.03059 15.2999 6.13126L19.8522 7.78259V14.0308L14.4912 15.0493",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M4.67786 14.0308H6.90938L10.1138 17.6227C10.2769 17.812 10.4939 17.9469 10.7359 18.0093C10.9778 18.0716 11.2331 18.0584 11.4673 17.9714C11.7015 17.8845 11.9035 17.7279 12.0461 17.5227C12.1887 17.3175 12.2651 17.0736 12.265 16.8238V16.2623L12.4248 16.3266C12.6541 16.4182 12.9023 16.4522 13.1477 16.4257C13.3932 16.3991 13.6284 16.3129 13.8328 16.1744C14.0372 16.036 14.2046 15.8496 14.3203 15.6315C14.436 15.4134 14.4965 15.1703 14.4965 14.9234H14.9428C15.1915 14.9234 15.4352 14.8542 15.6468 14.7234C15.8583 14.5927 16.0292 14.4057 16.1404 14.1833C16.2516 13.9609 16.2987 13.7119 16.2763 13.4643C16.254 13.2166 16.1632 12.9801 16.014 12.7812L13.1576 9.12146",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M10.9725 7.53178L10.6458 7.264C10.3838 7.06988 10.0765 6.94592 9.75318 6.9039C9.42981 6.86187 9.10106 6.90318 8.79813 7.02389L4.67786 8.67521",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M2 6.89001H3.78522C4.02195 6.89001 4.24899 6.98406 4.41638 7.15145C4.58378 7.31885 4.67782 7.54589 4.67782 7.78262V14.0309C4.67782 14.2676 4.58378 14.4946 4.41638 14.662C4.24899 14.8294 4.02195 14.9235 3.78522 14.9235H2",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M22.53 14.9235H20.7448C20.508 14.9235 20.281 14.8294 20.1136 14.662C19.9462 14.4946 19.8522 14.2676 19.8522 14.0309V7.78262C19.8522 7.54589 19.9462 7.31885 20.1136 7.15145C20.281 6.98406 20.508 6.89001 20.7448 6.89001H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12.265 16.2624L11.3724 15.3698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M13.1576 13.5846L14.4965 14.9235",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),A={width:new C(343,572,572),containerTop:new C(17,25,25)},{signIn:{emailNotFoundPopup:D},common:{gotIt:Si}}=k.getLocalizedStrings();function bi({signInError:e,onClose:g}){const a=q(),[m,h]=r.useState(!1),d=e?.email;return i.jsx(ji,{windowSize:a,role:"presentation",style:{background:c.overlayDark},children:i.jsx(ni,{onClickAway:()=>{h(!0),g()},children:i.jsxs(zi,{windowSize:a,className:m?"containerClass fade":"containerClass",fade:m,children:[i.jsxs(Ii,{children:[D.title,i.jsx(Pi,{children:d})]}),i.jsxs(Ti,{children:[i.jsxs(N,{children:[i.jsx(J,{children:i.jsx(Ei,{})}),i.jsx(G,{windowSize:a,children:D.confirmEmail})]}),i.jsxs(N,{children:[i.jsx(J,{children:i.jsx(Mi,{})}),i.jsx(G,{windowSize:a,children:D.checkAccess})]}),i.jsxs(N,{children:[i.jsx(J,{children:i.jsx(Li,{})}),i.jsx(G,{windowSize:a,children:D.contactZeni})]})]}),i.jsx(je,{label:Si,variant:"primary",onClick:()=>{h(!0),g()}})]})})})}const ji=n.div`
39
+ `;function Ie({type:e,titleText:g,disabled:a,loadingIndication:m,onClick:h}){const d=q(),x=i.jsxs(wi,{children:[e==="Google"?i.jsx(xi,{}):i.jsx(fi,{}),i.jsx(mi,{windowSize:d,children:g})]});return i.jsx(ui,{windowSize:d,disabled:a===!0,onClick:a===!0?void 0:h,children:m===!0?i.jsx(Ke,{size:"Standard",start:m===!0}):x})}const $i=({inProgress:e,disabled:g,onSuccess:a,onSignedInCallback:m,getSignedInUser:h,onError:d})=>{const x=Ye({onSuccess:a,flow:"auth-code",onError:d}),w=()=>{if(h()!=null){m();return}x()};return i.jsx(Ie,{onClick:w,disabled:g,type:"Google",titleText:k.getLocalizedStrings().signIn.signInGoogleButton,loadingIndication:e})},Ci=e=>{const{clientId:g,scopes:a,getSignedInUser:m,onSignedInCallback:h,render:d,onSuccess:x,onFailure:w,disabled:F}=e;let{responseType:$,responseMode:S,prompt:v,redirectUri:z}=e,P,s;const I="https://login.microsoftonline.com/common/oauth2/v2.0/authorize",V=["openid","profile"];$=$??"code",S=S??"fragment",v=v??"consent",ai.useEffect(()=>{const u=de.toZeniUrl(window.location[S==="fragment"?"hash":"search"],!0).query;(window.location.search||window.location.hash)&&(u.code!=null||u.access_token!=null||u.error!=null)&&Z()},[]);const T=()=>{const u=encodeURIComponent((a??V).join(" "));return z=z??window.location.origin+window.location.pathname,`${I}?client_id=${g}&response_type=${$}&redirect_uri=${encodeURIComponent(z)}&scope=${u}&prompt=${v}&response_mode=${S}`},Z=()=>{window.opener?.authScope.authCompletedCB(de.toZeniUrl(window.location[S==="fragment"?"hash":"search"],!0).query),window.close()};return d({onClick:()=>{if(m()!=null){h();return}P=!1;const u=(p,B)=>{const _=window.screen.width/2-287.5,O=window.screen.height/2-600/2,H=window.open(p,B,`toolbar=0,status=0, width=575, height=600, top=${O}, left=${_}`);s=setInterval(()=>{H.closed&&!P&&(w({error:k.getLocalizedStrings().signIn.signInError,errorDetail:{reason:"Signin popup window was closed"}}),clearInterval(s))},500)};window.authScope={authCompletedCB:p=>{P=!0,clearInterval(s),$==="code"&&p.code?x({code:p.code}):$==="token"&&p.access_token?x({accessToken:p.access_token,tokenType:p.token_type,scope:p.scope}):p.error==="access_denied"?w({error:k.getLocalizedStrings().signIn.signInAuthError,errorDetail:p}):w({error:k.getLocalizedStrings().signIn.signInError,errorDetail:p})}},u(T(),"Microsoft Sign In")},disabled:F})},ki=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M14.4966 8.6752L11.3135 9.72133C11.0597 9.80325 10.7843 9.78641 10.5423 9.67418C10.3004 9.56195 10.1096 9.36259 10.0082 9.1159C9.90679 8.86922 9.90213 8.59335 9.99519 8.34338C10.0882 8.09341 10.2721 7.88773 10.5102 7.76741L13.5941 6.22588C13.8572 6.09531 14.1441 6.01959 14.4373 6.00333C14.7305 5.98706 15.024 6.03059 15.2999 6.13126L19.8522 7.78259V14.0308L14.4912 15.0493",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M4.67786 14.0308H6.90938L10.1138 17.6227C10.2769 17.812 10.4939 17.9469 10.7359 18.0093C10.9778 18.0716 11.2331 18.0584 11.4673 17.9714C11.7015 17.8845 11.9035 17.7279 12.0461 17.5227C12.1887 17.3175 12.2651 17.0736 12.265 16.8238V16.2623L12.4248 16.3266C12.6541 16.4182 12.9023 16.4522 13.1477 16.4257C13.3932 16.3991 13.6284 16.3129 13.8328 16.1744C14.0372 16.036 14.2046 15.8496 14.3203 15.6315C14.436 15.4134 14.4965 15.1703 14.4965 14.9234H14.9428C15.1915 14.9234 15.4352 14.8542 15.6468 14.7234C15.8583 14.5927 16.0292 14.4057 16.1404 14.1833C16.2516 13.9609 16.2987 13.7119 16.2763 13.4643C16.254 13.2166 16.1632 12.9801 16.014 12.7812L13.1576 9.12146",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M10.9725 7.53178L10.6458 7.264C10.3838 7.06988 10.0765 6.94592 9.75318 6.9039C9.42981 6.86187 9.10106 6.90318 8.79813 7.02389L4.67786 8.67521",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M2 6.89001H3.78522C4.02195 6.89001 4.24899 6.98406 4.41638 7.15145C4.58378 7.31885 4.67782 7.54589 4.67782 7.78262V14.0309C4.67782 14.2676 4.58378 14.4946 4.41638 14.662C4.24899 14.8294 4.02195 14.9235 3.78522 14.9235H2",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M22.53 14.9235H20.7448C20.508 14.9235 20.281 14.8294 20.1136 14.662C19.9462 14.4946 19.8522 14.2676 19.8522 14.0309V7.78262C19.8522 7.54589 19.9462 7.31885 20.1136 7.15145C20.281 6.98406 20.508 6.89001 20.7448 6.89001H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12.265 16.2624L11.3724 15.3698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M13.1576 13.5846L14.4965 14.9235",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),D={width:new C(343,572,572),containerTop:new C(17,25,25)},{signIn:{emailNotFoundPopup:A},common:{gotIt:Si}}=k.getLocalizedStrings();function bi({signInError:e,onClose:g}){const a=q(),[m,h]=r.useState(!1),d=e?.email;return i.jsx(ji,{windowSize:a,role:"presentation",style:{background:c.overlayDark},children:i.jsx(ni,{onClickAway:()=>{h(!0),g()},children:i.jsxs(zi,{windowSize:a,className:m?"containerClass fade":"containerClass",fade:m,children:[i.jsxs(Ii,{children:[A.title,i.jsx(Pi,{children:d})]}),i.jsxs(Ti,{children:[i.jsxs(N,{children:[i.jsx(W,{children:i.jsx(Ei,{})}),i.jsx(G,{windowSize:a,children:A.confirmEmail})]}),i.jsxs(N,{children:[i.jsx(W,{children:i.jsx(Mi,{})}),i.jsx(G,{windowSize:a,children:A.checkAccess})]}),i.jsxs(N,{children:[i.jsx(W,{children:i.jsx(Li,{})}),i.jsx(G,{windowSize:a,children:A.contactZeni})]})]}),i.jsx(je,{label:Si,variant:"primary",onClick:()=>{h(!0),g()}})]})})})}const ji=n.div`
40
40
  position: fixed;
41
41
  top: 0;
42
42
  left: 0;
@@ -55,11 +55,11 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
55
55
  top: 100%;
56
56
  }
57
57
  100% {
58
- top: ${A.containerTop.valuePercentage(e)};
58
+ top: ${D.containerTop.valuePercentage(e)};
59
59
  }
60
60
  `,vi=({windowSize:e})=>ze`
61
61
  0% {
62
- top: ${A.containerTop.valuePercentage(e)};
62
+ top: ${D.containerTop.valuePercentage(e)};
63
63
  }
64
64
  100% {
65
65
  top: 100%;
@@ -73,9 +73,9 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
73
73
  background: ${e=>e.theme.colors.grey5};
74
74
  border-radius: ${o.sp2};
75
75
  position: relative;
76
- top: ${e=>e.fade?"100%":A.containerTop.valuePercentage(e.windowSize)};
76
+ top: ${e=>e.fade?"100%":D.containerTop.valuePercentage(e.windowSize)};
77
77
  padding: ${o.sp5} ${o.sp0};
78
- width: ${e=>A.width.valuePx(e.windowSize)};
78
+ width: ${e=>D.width.valuePx(e.windowSize)};
79
79
  animation: ${e=>yi(e)} 0.25s linear;
80
80
  box-shadow: ${c.Elevation2Dark};
81
81
  overflow: hidden;
@@ -99,7 +99,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
99
99
  margin-bottom: ${o.sp6};
100
100
  color: ${c.important};
101
101
  padding: ${o.sp0} ${o.sp6};
102
- `,J=n.div`
102
+ `,W=n.div`
103
103
  margin-right: 12px;
104
104
  height: ${o.sp7};
105
105
  width: ${o.sp7};
@@ -130,7 +130,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
130
130
  word-break: break-all;
131
131
  `,Ti=n.div`
132
132
  padding: ${o.sp0} ${o.sp6};
133
- `,l=k.getLocalizedStrings(),Ee={signInHeading:new ae("h5Regular","h2Regular"),signInMessage:new ae("standardRegular","h6Regular")},y={ZeniLogoContainerLeftMargin:new C(L[0],L[5]),ZeniLogoContainerTopMargin:new C(12,L[3]),headingContainerTopMargin:new C(36,10),signInContainerPaddingTop:new C(L[12],L[4]),emailInputFontSize:new C(M.standardRegular.fontSizeValue,M.extraLargeRegular.fontSizeValue),emailInputVerticalPadding:new C(L[3],12)},Vi=n.div`
133
+ `,l=k.getLocalizedStrings(),Ee={signInHeading:new ae("h5Regular","h2Regular"),signInMessage:new ae("standardRegular","h6Regular")},y={ZeniLogoContainerLeftMargin:new C(L[0],L[5]),ZeniLogoContainerTopMargin:new C(12,L[3]),headingContainerTopMargin:new C(36,10),signInContainerPaddingTop:new C(L[12],L[4]),emailInputFontSize:new C(M.standardRegular.fontSizeValue,M.extraLargeRegular.fontSizeValue),emailInputVerticalPadding:new C(L[3],12)},_i=n.div`
134
134
  background-image: ${e=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/signin-background-${e.windowSize==="small"?"m":"w"}-${e.theme.mode==="light"?"l":"d"}.svg)`};
135
135
 
136
136
  background-color: ${e=>e.theme.colors.background};
@@ -143,7 +143,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
143
143
  background-position: 50px ${o.sp0};
144
144
  background-repeat: no-repeat;
145
145
  overflow-x: hidden;
146
- `,_i=n.div`
146
+ `,Fi=n.div`
147
147
  display: flex;
148
148
  flex: 1 1 auto;
149
149
  padding: ${o.sp0} ${o.sp4} ${o.sp0} ${o.sp4};
@@ -169,7 +169,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
169
169
  margin: ${o.sp1} ${o.sp0} ${o.sp1} ${o.sp0};
170
170
  color: ${e=>e.theme.colors.hero};
171
171
  text-decoration: none;
172
- `,Fi=n(oi)`
172
+ `,Vi=n(oi)`
173
173
  color: ${c.important};
174
174
  text-align: center;
175
175
  white-space: pre;
@@ -179,7 +179,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
179
179
  flex-shrink: 0;
180
180
  position: relative;
181
181
  width: ${e=>e.windowSize==="small"?"100%":"unset"};
182
- `,Oi=n.div`
182
+ `,Bi=n.div`
183
183
  display: flex;
184
184
  flex-direction: row;
185
185
  align-items: center;
@@ -200,7 +200,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
200
200
  border: 1px solid
201
201
  ${e=>e.hasError?c.important:e.theme.colors.primary};
202
202
  }
203
- `,Bi=n(ei,{shouldForwardProp:e=>e!=="isValid"&&e!=="windowSize"})`
203
+ `,Oi=n(ei,{shouldForwardProp:e=>e!=="isValid"&&e!=="windowSize"})`
204
204
  flex: 1;
205
205
 
206
206
  & .MuiOutlinedInput-root {
@@ -250,12 +250,12 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
250
250
  border-radius: 50px;
251
251
  padding: 12px ${o.sp4};
252
252
  box-sizing: border-box;
253
- `,Di=n(be)`
253
+ `,Ai=n(be)`
254
254
  width: ${o.sp3};
255
255
  height: ${o.sp3};
256
256
  color: ${e=>e.theme.colors.brandColorSapphire};
257
257
  flex-shrink: 0;
258
- `,Ai=n.div`
258
+ `,Di=n.div`
259
259
  width: ${o.sp4};
260
260
  height: ${o.sp4};
261
261
  background-color: ${c.neutralGrey5Light};
@@ -286,7 +286,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
286
286
  align-items: center;
287
287
  gap: ${e=>e.showEmailError&&e.showEmailForm?o.sp1:o.sp3};
288
288
  max-width: 100%;
289
- `,Wi=n.div`
289
+ `,Ji=n.div`
290
290
  display: flex;
291
291
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
292
292
  justify-content: center;
@@ -294,7 +294,7 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
294
294
  gap: ${o.sp4};
295
295
  flex-wrap: ${e=>e.windowSize==="small"?"wrap":"nowrap"};
296
296
  width: 100%;
297
- `,Ji=n.div`
297
+ `,Wi=n.div`
298
298
  width: 100%;
299
299
  `,$e=n.div`
300
300
  margin-top: ${e=>y.headingContainerTopMargin.valuePx(e.windowSize)};
@@ -405,4 +405,4 @@ import{X as q,V as Ue,a as We,M as k,j as i,T as E,G as Je,F as Ge,E as Ne,o,i a
405
405
  flex-direction: column;
406
406
  align-items: center;
407
407
  gap: 1px;
408
- `;function wo({googleClientId:e,microsoftClientId:g,fetchState:a,signInError:m={},showEmailLogin:h=!0,sendMagicLinkStatus:d,magicLinkExpired:x,magicLinkExpiredEmail:w,getSignedInUser:_,onSignedInCallback:$,clearSignInError:S,onOAuthSuccess:v,onOAuthError:z,sendMagicLink:P}){const s=q(),{dark:I}=Ue(),F=a==="In-Progress",T=a==="Error",[Z,u]=r.useState(void 0),[p,O]=r.useState(""),[V,B]=r.useState(!1),[H,R]=r.useState(!1),[f,Q]=r.useState(!1),Le=a==="In-Progress"&&p==="google",Me=a==="In-Progress"&&p==="microsoft",Y=We({mode:"onSubmit",defaultValues:{email:""}}),{register:Pe,handleSubmit:Te,formState:{errors:K},setValue:ee,watch:Ve,clearErrors:_e}=Y,ie=Ve("email"),oe=!!K.email||H,ne=!!K.email;r.useEffect(()=>{h&&x===!0&&w!=null&&w.trim()!==""&&(ee("email",w),R(!0),Q(!0))},[h,x,w,ee]);const Fe=t=>{R(!1),t.email.trim()&&P(t.email)},Ze=()=>{R(!1),_e("email")},U=d.fetchState==="Error"&&d.error?.error?.type==="email_not_found",re=T&&m.type==="email_not_found";r.useEffect(()=>{(re||U)&&B(!0)},[U,re]);const Oe=t=>{console.log(JSON.stringify(t)),u(void 0),v(t.code,"google"),O("google")},Be=t=>{const j="Error = "+t?.error+" Error Description = "+t?.error_description;u(j),z?.(JSON.stringify(t),"google")},He=t=>{console.log(JSON.stringify(t)),u(void 0),v(t.code,"microsoft"),O("microsoft")},De=t=>{console.log(JSON.stringify(t)),u(t.error??"Microsoft authorization failed."),z?.(JSON.stringify(t),"microsoft")},Ae=()=>{let t="";return(T||Z!=null)&&V===!1&&(t=Z??l.signIn.signInAuthError),t},te=d.fetchState==="Completed"?l.signIn.confirmationLinkSent:l.signIn.heading,se=l.signIn.message,b=d.fetchState==="Completed",Re=U&&d.error?.error?d.error.error:m;return i.jsxs(Vi,{windowSize:s,children:[i.jsxs(_i,{children:[i.jsxs(qi,{children:[i.jsx(Gi,{windowSize:s,children:i.jsx(Ni,{className:"zeni-logo"})}),i.jsxs($e,{isMagicLinkSent:b,windowSize:s,style:{display:s==="small"?"flex":"none"},children:[i.jsx(ce,{windowSize:s,children:te}),i.jsx(E,{controller:!b,children:i.jsx(ge,{windowSize:s,children:se})}),i.jsx(E,{controller:b,children:i.jsxs(me,{children:[i.jsx(ue,{isDarkTheme:I,children:i.jsx(we,{isDarkTheme:I,children:k.getLocalizedStrings().signIn.magicLinkSent.primaryMessage.split("__email__").map((t,j,W)=>i.jsxs("span",{children:[t,j<W.length-1&&i.jsx(xe,{children:ie})]},j))})}),i.jsx(fe,{children:l.signIn.magicLinkSent.secondaryMessage})]})})]}),i.jsxs($e,{isMagicLinkSent:b,windowSize:s,style:{display:s==="small"?"none":"flex"},children:[i.jsx(ce,{windowSize:s,children:te}),i.jsx(E,{controller:!b,children:i.jsx(ge,{windowSize:s,children:se})}),i.jsx(E,{controller:b,children:i.jsxs(me,{children:[i.jsxs(ue,{isDarkTheme:I,children:[i.jsx(Ai,{children:i.jsx(Di,{})}),i.jsx(we,{isDarkTheme:I,children:k.getLocalizedStrings().signIn.magicLinkSent.primaryMessage.split("__email__").map((t,j,W)=>i.jsxs("span",{children:[t,j<W.length-1&&i.jsx(xe,{children:ie})]},j))})]}),i.jsx(fe,{children:l.signIn.magicLinkSent.secondaryMessage})]})})]}),i.jsx(E,{controller:!b,children:i.jsxs(Ri,{windowSize:s,children:[i.jsxs(Ui,{showEmailError:oe,showEmailForm:f,children:[!f&&i.jsxs(Wi,{windowSize:s,children:[i.jsx(Je,{clientId:e,children:i.jsx($i,{disabled:F,inProgress:Le,getSignedInUser:_,onSuccess:Oe,onSignedInCallback:$,onError:Be})}),i.jsx(Ci,{clientId:g,scopes:["openid","profile","email","offline_access","User.Read"],getSignedInUser:_,prompt:"select_account",responseType:"code",responseMode:"query",render:t=>i.jsx(Ie,{onClick:t.onClick,disabled:F||t.disabled,type:"Microsoft",titleText:l.signIn.signInMicrosoftButton,loadingIndication:Me}),onSignedInCallback:$,onSuccess:He,onFailure:De})]}),h&&f&&i.jsx(Ge,{...Y,children:i.jsxs(Zi,{windowSize:s,children:[i.jsx("form",{onSubmit:Te(Fe),children:i.jsxs(Oi,{windowSize:s,hasError:ne,children:[i.jsx(Bi,{windowSize:s,type:"text",placeholder:l.signIn.workEmailExample,variant:"outlined",fullWidth:!0,isValid:!ne,autoComplete:"off",...Pe("email",{required:l.signIn.invalidEmailMessage,pattern:{value:Ne,message:l.signIn.invalidEmailMessage},onChange:Ze})}),i.jsx(Qi,{variant:"primary",type:"submit",label:l.signIn.signInButton,loading:d.fetchState==="In-Progress"})]})}),oe&&i.jsx(Hi,{children:H?l.signIn.magicLinkExpired:l.signIn.invalidEmailMessage})]})}),h&&i.jsxs(eo,{children:[i.jsxs(Yi,{showEmailForm:f,windowSize:s,children:[i.jsx(Ce,{showEmailForm:f,windowSize:s}),i.jsx(Ki,{children:l.common.texts.or.toUpperCase()}),i.jsx(Ce,{showEmailForm:f,windowSize:s})]}),i.jsxs(no,{children:[i.jsx(io,{onClick:()=>Q(!f),children:f?l.signIn.googleOrMicrosoftLink:l.signIn.workEmailLink}),i.jsx(oo,{isVisible:!f,children:l.signIn.workEmailSubText})]})]})]}),V===!1&&T&&i.jsx(Ji,{children:i.jsx(Fi,{children:Ae()})})]})})]}),i.jsx(E,{controller:s!=="small",children:i.jsx(Xi,{children:i.jsx(gi,{scale:.88,useFixedArrowPosition:!0})})}),i.jsx(pe,{style:{maxWidth:"100%",textAlign:"center",marginBottom:s==="small"?o.sp5:o.sp1},children:i.jsxs(pe,{children:[i.jsxs(he,{children:[l.signIn.termsPrivacyFinePrintPart,l.signIn.agreeWith,i.jsx(le,{href:l.signIn.termsUrl,target:"_Blank",rel:"noopener noreferrer",linkText:l.signIn.termsOfService})," ",l.signIn.and," ",i.jsx(le,{href:l.signIn.privacyPolicyUrl,target:"_Blank",rel:"noopener noreferrer",linkText:l.signIn.privacyPolicy}),"."]}),i.jsx(he,{children:i.jsx(ci,{})})]})})]}),V&&i.jsx(bi,{signInError:Re,onClose:()=>{S(),B(!1)}})]})}export{wo as default};
408
+ `;function wo({googleClientId:e,microsoftClientId:g,fetchState:a,signInError:m={},showEmailLogin:h=!0,sendMagicLinkStatus:d,magicLinkExpired:x,magicLinkExpiredEmail:w,getSignedInUser:F,onSignedInCallback:$,clearSignInError:S,onOAuthSuccess:v,onOAuthError:z,sendMagicLink:P}){const s=q(),{dark:I}=Ue(),V=a==="In-Progress",T=a==="Error",[Z,u]=r.useState(void 0),[p,B]=r.useState(""),[_,O]=r.useState(!1),[H,R]=r.useState(!1),[f,Q]=r.useState(!1),Le=a==="In-Progress"&&p==="google",Me=a==="In-Progress"&&p==="microsoft",Y=Je({mode:"onSubmit",defaultValues:{email:""}}),{register:Pe,handleSubmit:Te,formState:{errors:K},setValue:ee,watch:_e,clearErrors:Fe}=Y,ie=_e("email"),oe=!!K.email||H,ne=!!K.email;r.useEffect(()=>{h&&x===!0&&w!=null&&w.trim()!==""&&(ee("email",w),R(!0),Q(!0))},[h,x,w,ee]);const Ve=t=>{R(!1),t.email.trim()&&P(t.email)},Ze=()=>{R(!1),Fe("email")},U=d.fetchState==="Error"&&d.error?.error?.type==="email_not_found",re=T&&m.type==="email_not_found";r.useEffect(()=>{(re||U)&&O(!0)},[U,re]);const Be=t=>{console.log(JSON.stringify(t)),u(void 0),v(t.code,"google"),B("google")},Oe=t=>{const j="Error = "+t?.error+" Error Description = "+t?.error_description;u(j),z?.(JSON.stringify(t),"google")},He=t=>{console.log(JSON.stringify(t)),u(void 0),v(t.code,"microsoft"),B("microsoft")},Ae=t=>{console.log(JSON.stringify(t)),u(t.error??"Microsoft authorization failed."),z?.(JSON.stringify(t),"microsoft")},De=()=>{let t="";return(T||Z!=null)&&_===!1&&(t=Z??l.signIn.signInAuthError),t},te=d.fetchState==="Completed"?l.signIn.confirmationLinkSent:l.signIn.heading,se=l.signIn.message,b=d.fetchState==="Completed",Re=U&&d.error?.error?d.error.error:m;return i.jsxs(_i,{windowSize:s,children:[i.jsxs(Fi,{children:[i.jsxs(qi,{children:[i.jsx(Gi,{windowSize:s,children:i.jsx(Ni,{className:"zeni-logo"})}),i.jsxs($e,{isMagicLinkSent:b,windowSize:s,style:{display:s==="small"?"flex":"none"},children:[i.jsx(ce,{windowSize:s,children:te}),i.jsx(E,{controller:!b,children:i.jsx(ge,{windowSize:s,children:se})}),i.jsx(E,{controller:b,children:i.jsxs(me,{children:[i.jsx(ue,{isDarkTheme:I,children:i.jsx(we,{isDarkTheme:I,children:k.getLocalizedStrings().signIn.magicLinkSent.primaryMessage.split("__email__").map((t,j,J)=>i.jsxs("span",{children:[t,j<J.length-1&&i.jsx(xe,{children:ie})]},j))})}),i.jsx(fe,{children:l.signIn.magicLinkSent.secondaryMessage})]})})]}),i.jsxs($e,{isMagicLinkSent:b,windowSize:s,style:{display:s==="small"?"none":"flex"},children:[i.jsx(ce,{windowSize:s,children:te}),i.jsx(E,{controller:!b,children:i.jsx(ge,{windowSize:s,children:se})}),i.jsx(E,{controller:b,children:i.jsxs(me,{children:[i.jsxs(ue,{isDarkTheme:I,children:[i.jsx(Di,{children:i.jsx(Ai,{})}),i.jsx(we,{isDarkTheme:I,children:k.getLocalizedStrings().signIn.magicLinkSent.primaryMessage.split("__email__").map((t,j,J)=>i.jsxs("span",{children:[t,j<J.length-1&&i.jsx(xe,{children:ie})]},j))})]}),i.jsx(fe,{children:l.signIn.magicLinkSent.secondaryMessage})]})})]}),i.jsx(E,{controller:!b,children:i.jsxs(Ri,{windowSize:s,children:[i.jsxs(Ui,{showEmailError:oe,showEmailForm:f,children:[!f&&i.jsxs(Ji,{windowSize:s,children:[i.jsx(We,{clientId:e,children:i.jsx($i,{disabled:V,inProgress:Le,getSignedInUser:F,onSuccess:Be,onSignedInCallback:$,onError:Oe})}),i.jsx(Ci,{clientId:g,scopes:["openid","profile","email","offline_access","User.Read"],getSignedInUser:F,prompt:"select_account",responseType:"code",responseMode:"query",render:t=>i.jsx(Ie,{onClick:t.onClick,disabled:V||t.disabled,type:"Microsoft",titleText:l.signIn.signInMicrosoftButton,loadingIndication:Me}),onSignedInCallback:$,onSuccess:He,onFailure:Ae})]}),h&&f&&i.jsx(Ge,{...Y,children:i.jsxs(Zi,{windowSize:s,children:[i.jsx("form",{onSubmit:Te(Ve),children:i.jsxs(Bi,{windowSize:s,hasError:ne,children:[i.jsx(Oi,{windowSize:s,type:"text",placeholder:l.signIn.workEmailExample,variant:"outlined",fullWidth:!0,isValid:!ne,autoComplete:"off",...Pe("email",{required:l.signIn.invalidEmailMessage,pattern:{value:Ne,message:l.signIn.invalidEmailMessage},onChange:Ze})}),i.jsx(Qi,{variant:"primary",type:"submit",label:l.signIn.signInButton,loading:d.fetchState==="In-Progress"})]})}),oe&&i.jsx(Hi,{children:H?l.signIn.magicLinkExpired:l.signIn.invalidEmailMessage})]})}),h&&i.jsxs(eo,{children:[i.jsxs(Yi,{showEmailForm:f,windowSize:s,children:[i.jsx(Ce,{showEmailForm:f,windowSize:s}),i.jsx(Ki,{children:l.common.texts.or.toUpperCase()}),i.jsx(Ce,{showEmailForm:f,windowSize:s})]}),i.jsxs(no,{children:[i.jsx(io,{onClick:()=>Q(!f),children:f?l.signIn.googleOrMicrosoftLink:l.signIn.workEmailLink}),i.jsx(oo,{isVisible:!f,children:l.signIn.workEmailSubText})]})]})]}),_===!1&&T&&i.jsx(Wi,{children:i.jsx(Vi,{children:De()})})]})})]}),i.jsx(E,{controller:s!=="small",children:i.jsx(Xi,{children:i.jsx(gi,{scale:.88,useFixedArrowPosition:!0})})}),i.jsx(pe,{style:{maxWidth:"100%",textAlign:"center",marginBottom:s==="small"?o.sp5:o.sp1},children:i.jsxs(pe,{children:[i.jsxs(he,{children:[l.signIn.termsPrivacyFinePrintPart,l.signIn.agreeWith,i.jsx(le,{href:l.signIn.termsUrl,target:"_Blank",rel:"noopener noreferrer",linkText:l.signIn.termsOfService})," ",l.signIn.and," ",i.jsx(le,{href:l.signIn.privacyPolicyUrl,target:"_Blank",rel:"noopener noreferrer",linkText:l.signIn.privacyPolicy}),"."]}),i.jsx(he,{children:i.jsx(ci,{})})]})})]}),_&&i.jsx(bi,{signInError:Re,onClose:()=>{S(),O(!1)}})]})}export{wo as default};
@@ -1 +1 @@
1
- import{j as d}from"./mui-C5LQ0bMa.js";import{b as S,f as m}from"./vendor-CnQcJ2Lu.js";import{g as f,u as l,f as I}from"./redux-ByjIRbhZ.js";import{ke as u,u as h,l as r,M as w,kd as C,D as E,kL as v,kh as p}from"./index-CVo0uMzO.js";import{f as U}from"./analyticsHelper-DYztlfoV.js";import{a as x,u as y,N as L}from"./routing-Cpaypegg.js";import{c as k}from"./sentry-HDxG13yk.js";import"./analytics-CBL_L82S.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";function T(o){const a=o.tenantState.fetchState,i=o.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:o.tenantState.error?.error,fetchState:a,sendMagicLinkStatus:i,showEmailLogin:!1}}function P(o,a){const{location:i,navigate:s}=a;return console.warn(JSON.stringify(window.location)),{onOAuthError:(t,e)=>{k({message:`OAuth error from provider ${e} with error ${t}`,level:"error",tags:{authProvider:e,errorType:"zeni.login.error"},extra:{error:t,windowLocation:window.location.href}})},onOAuthSuccess:(t,e)=>{const g=e==="google"?window.location.origin:window.location.origin+window.location.pathname;o(r.doSignIn({authCode:t,oauthProvider:e,appType:"web",redirectUri:r.toZeniUrl(g),sourceUri:r.toZeniUrl(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>u.getSignedInUser(),onSignedInCallback:()=>{const t=i.state?.origin;t&&t!=="/"?s(t,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{o(r.resetSignInState())}}}const z=I(T,P)(v),A=m.memo(z);function B(){const o=f(),a=x(),i=u.getSignedInUser(),s=l(n=>n.tenantState.fetchState),t=l(n=>n.tenantState.signInState),e=l(n=>n.tenantState.loggedInUser),g=h().mode,c=y();if(S.useEffect(()=>{if(t==="In-Progress"&&s==="Completed"&&e?.zeniSessionId!=null){u.saveSignedInUserWithSession(e,e.zeniSessionId),r.updateZeniAPIClientConfig(e.userId,e.zeniSessionId),o(r.updateSignInState("Completed")),w.updateAppLocaleID("en"),U(e,g);const n=c.state?.queryParams;setTimeout(()=>{C.trackLogin(E.Event.loginSuccess,e.authProvider??"google",n?.utmSource,n?.utmMedium)},2e3)}},[]),t==="In-Progress"&&s==="Completed"&&e?.zeniSessionId!=null||i!=null){const n=c.state?.origin??"/";return d.jsx(L,{to:n,state:{...c.state,origin:""}})}else return d.jsx(A,{navigate:a,location:c})}export{B as default};
1
+ import{j as d}from"./mui-C5LQ0bMa.js";import{b as S,f as m}from"./vendor-CnQcJ2Lu.js";import{g as f,u as l,f as I}from"./redux-ByjIRbhZ.js";import{kh as u,u as h,l as r,B as w,kg as C,I as E,kO as v,kk as p}from"./index-DYVNUtTS.js";import{f as U}from"./analyticsHelper-DEjyvXKA.js";import{a as k,u as x,N as y}from"./routing-Cpaypegg.js";import{c as L}from"./sentry-HDxG13yk.js";import"./analytics-CBL_L82S.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";function T(o){const a=o.tenantState.fetchState,i=o.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:o.tenantState.error?.error,fetchState:a,sendMagicLinkStatus:i,showEmailLogin:!1}}function P(o,a){const{location:i,navigate:s}=a;return console.warn(JSON.stringify(window.location)),{onOAuthError:(t,e)=>{L({message:`OAuth error from provider ${e} with error ${t}`,level:"error",tags:{authProvider:e,errorType:"zeni.login.error"},extra:{error:t,windowLocation:window.location.href}})},onOAuthSuccess:(t,e)=>{const g=e==="google"?window.location.origin:window.location.origin+window.location.pathname;o(r.doSignIn({authCode:t,oauthProvider:e,appType:"web",redirectUri:r.toZeniUrl(g),sourceUri:r.toZeniUrl(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>u.getSignedInUser(),onSignedInCallback:()=>{const t=i.state?.origin;t&&t!=="/"?s(t,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{o(r.resetSignInState())}}}const z=I(T,P)(v),A=m.memo(z);function F(){const o=f(),a=k(),i=u.getSignedInUser(),s=l(n=>n.tenantState.fetchState),t=l(n=>n.tenantState.signInState),e=l(n=>n.tenantState.loggedInUser),g=h().mode,c=x();if(S.useEffect(()=>{if(t==="In-Progress"&&s==="Completed"&&e?.zeniSessionId!=null){u.saveSignedInUserWithSession(e,e.zeniSessionId),r.updateZeniAPIClientConfig(e.userId,e.zeniSessionId),o(r.updateSignInState("Completed")),w.updateAppLocaleID("en"),U(e,g);const n=c.state?.queryParams;setTimeout(()=>{C.trackLogin(E.Event.loginSuccess,e.authProvider??"google",n?.utmSource,n?.utmMedium)},2e3)}},[]),t==="In-Progress"&&s==="Completed"&&e?.zeniSessionId!=null||i!=null){const n=c.state?.origin??"/";return d.jsx(y,{to:n,state:{...c.state,origin:""}})}else return d.jsx(A,{navigate:a,location:c})}export{F as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SpendManagementPerTabPage-Cx0sB3qO-C92A_6wt.js","assets/index-CVo0uMzO.js","assets/mui-C5LQ0bMa.js","assets/vendor-CnQcJ2Lu.js","assets/analytics-CBL_L82S.js","assets/routing-Cpaypegg.js","assets/sentry-HDxG13yk.js","assets/redux-ByjIRbhZ.js","assets/liveblocks-sSQ9JElv.js","assets/crypto-BURQLTgV.js","assets/index-BAKoUD4u.css","assets/useLongPress-GCK2COYQ-gxLtL5O4.js","assets/StatusSwitcher-jwpQ49F7-BGzqIV7p.js"])))=>i.map(i=>d[i]);
2
- import{u as Ue,w as He,X as z,l as y,M as U,fI as Ge,fK as Je,j as o,g2 as Ve,aV as We,f as qe,o as t,dv as Ke,gh as M,aB as Ye,fT as Qe,C,gi as Xe,fc as Ze,fd as et,g as S,p as tt,q as x,gj as ot,a3 as at,eW as it,e as nt,bH as st,fe as lt,ay as rt,m as ct}from"./index-CVo0uMzO.js";import{b as u,n as r,k as H}from"./vendor-CnQcJ2Lu.js";import{_ as dt}from"./liveblocks-sSQ9JElv.js";import{Y as mt}from"./SpendManagementSection-DbZYpbtO-DTrbPW3G.js";import{K as ut}from"./StatusSwitcher-jwpQ49F7-BGzqIV7p.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const F=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},u.createElement("path",{d:"M22.781 11.8215C22.7883 14.6988 21.6612 17.4629 19.6441 19.5146C17.627 21.5664 14.8825 22.7404 12.0055 22.7822C10.6005 22.8033 9.20515 22.5453 7.90056 22.023C6.59596 21.5008 5.40804 20.7247 4.40567 19.7399C3.40331 18.755 2.60645 17.5809 2.06132 16.2857C1.51619 14.9905 1.23362 13.6 1.23002 12.1948C1.22199 9.31703 2.34875 6.55215 4.36593 4.49975C6.38312 2.44735 9.1281 1.27292 12.0055 1.23117C13.4108 1.21016 14.8063 1.46837 16.111 1.99085C17.4158 2.51332 18.6038 3.28965 19.6061 4.27481C20.6085 5.25996 21.4053 6.43433 21.9503 7.72981C22.4953 9.02529 22.7777 10.4161 22.781 11.8215Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M17.1573 10.374H9.83934C9.05979 10.374 8.31216 10.6766 7.76093 11.2151C7.2097 11.7537 6.90002 12.4841 6.90002 13.2457C6.90002 14.0074 7.2097 14.7378 7.76093 15.2764C8.31216 15.8149 9.05979 16.1175 9.83934 16.1175H11.309",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M14.2151 13.2434L17.1544 10.3717L14.2151 7.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={width:new C(343,545,545),containerTop:new C(17,25,25),containerPaddingLeftRight:new C(x[4],x[7])},pt=r.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SpendManagementPerTabPage-CofY1YYQ-C9YpxBTZ.js","assets/index-DYVNUtTS.js","assets/mui-C5LQ0bMa.js","assets/vendor-CnQcJ2Lu.js","assets/analytics-CBL_L82S.js","assets/routing-Cpaypegg.js","assets/sentry-HDxG13yk.js","assets/redux-ByjIRbhZ.js","assets/liveblocks-sSQ9JElv.js","assets/crypto-BURQLTgV.js","assets/index-BAKoUD4u.css","assets/useLongPress-GCK2COYQ-gxLtL5O4.js","assets/StatusSwitcher-0rVfFE-a-CheRZPfP.js"])))=>i.map(i=>d[i]);
2
+ import{u as Ue,Y as He,X as z,l as y,B as U,fL as Ge,fN as We,j as o,g5 as Ke,aW as Ye,v as Je,o as t,dz as Ve,gl as M,aC as Xe,fW as qe,C,gm as Qe,ff as Ze,fg as et,d as S,r as tt,s as x,gn as ot,a3 as at,bq as it,m as nt,bL as st,fh as lt,az as rt,M as ct}from"./index-DYVNUtTS.js";import{b as u,n as r,k as H}from"./vendor-CnQcJ2Lu.js";import{_ as dt}from"./liveblocks-sSQ9JElv.js";import{Y as mt}from"./SpendManagementSection-DbC93chQ-CmYHf5ne.js";import{K as ut}from"./StatusSwitcher-0rVfFE-a-CheRZPfP.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const F=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},u.createElement("path",{d:"M22.781 11.8215C22.7883 14.6988 21.6612 17.4629 19.6441 19.5146C17.627 21.5664 14.8825 22.7404 12.0055 22.7822C10.6005 22.8033 9.20515 22.5453 7.90056 22.023C6.59596 21.5008 5.40804 20.7247 4.40567 19.7399C3.40331 18.755 2.60645 17.5809 2.06132 16.2857C1.51619 14.9905 1.23362 13.6 1.23002 12.1948C1.22199 9.31703 2.34875 6.55215 4.36593 4.49975C6.38312 2.44735 9.1281 1.27292 12.0055 1.23117C13.4108 1.21016 14.8063 1.46837 16.111 1.99085C17.4158 2.51332 18.6038 3.28965 19.6061 4.27481C20.6085 5.25996 21.4053 6.43433 21.9503 7.72981C22.4953 9.02529 22.7777 10.4161 22.781 11.8215Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M17.1573 10.374H9.83934C9.05979 10.374 8.31216 10.6766 7.76093 11.2151C7.2097 11.7537 6.90002 12.4841 6.90002 13.2457C6.90002 14.0074 7.2097 14.7378 7.76093 15.2764C8.31216 15.8149 9.05979 16.1175 9.83934 16.1175H11.309",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M14.2151 13.2434L17.1544 10.3717L14.2151 7.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),w={width:new C(343,545,545),containerTop:new C(17,25,25),containerPaddingLeftRight:new C(x[4],x[7])},pt=r.div`
3
3
  position: fixed;
4
4
  top: 0;
5
5
  left: 0;
@@ -18,11 +18,11 @@ import{u as Ue,w as He,X as z,l as y,M as U,fI as Ge,fK as Je,j as o,g2 as Ve,aV
18
18
  top: 100%;
19
19
  }
20
20
  100% {
21
- top: ${f.containerTop.valuePercentage(e)};
21
+ top: ${w.containerTop.valuePercentage(e)};
22
22
  }
23
23
  `,bt=({windowSize:e})=>H`
24
24
  0% {
25
- top: ${f.containerTop.valuePercentage(e)};
25
+ top: ${w.containerTop.valuePercentage(e)};
26
26
  }
27
27
  100% {
28
28
  top: 100%;
@@ -36,16 +36,16 @@ import{u as Ue,w as He,X as z,l as y,M as U,fI as Ge,fK as Je,j as o,g2 as Ve,aV
36
36
  background: ${e=>e.theme.colors.grey5};
37
37
  border-radius: ${t.sp2};
38
38
  position: relative;
39
- top: ${e=>e.fade?"100%":f.containerTop.valuePercentage(e.windowSize)};
40
- padding: ${e=>`${t.sp7} ${f.containerPaddingLeftRight.valuePx(e.windowSize)}`};
41
- width: ${e=>f.width.valuePx(e.windowSize)};
39
+ top: ${e=>e.fade?"100%":w.containerTop.valuePercentage(e.windowSize)};
40
+ padding: ${e=>`${t.sp7} ${w.containerPaddingLeftRight.valuePx(e.windowSize)}`};
41
+ width: ${e=>w.width.valuePx(e.windowSize)};
42
42
  animation: ${e=>ht(e)} 0.25s linear;
43
43
  box-shadow: ${S.Elevation2Dark};
44
44
  `,gt=r(it)`
45
45
  margin-bottom: ${t.sp5};
46
46
  color: ${e=>e.theme.colors.primary};
47
47
  word-break: break-word;
48
- `,wt=r.div`
48
+ `,ft=r.div`
49
49
  margin-right: ${t.sp3};
50
50
  height: ${t.sp7};
51
51
  width: ${t.sp7};
@@ -54,7 +54,7 @@ import{u as Ue,w as He,X as z,l as y,M as U,fI as Ge,fK as Je,j as o,g2 as Ve,aV
54
54
  display: flex;
55
55
  align-items: center;
56
56
  justify-content: center;
57
- `,ft=r(nt)`
57
+ `,wt=r(nt)`
58
58
  width: calc(100% - ${t.sp7});
59
59
  color: ${e=>e.theme.colors.primary};
60
60
  text-align: start;
@@ -106,7 +106,7 @@ import{u as Ue,w as He,X as z,l as y,M as U,fI as Ge,fK as Je,j as o,g2 as Ve,aV
106
106
  color: ${e=>e.theme.colors.primary};
107
107
  position: absolute;
108
108
  bottom: 22px;
109
- `,N=U.getLocalizedStrings().common.copyToClipBoard;function Et(e){const p=z(),[,h]=Ze(),[c,d]=u.useState(!0),[i,a]=u.useState(!1),[s,n]=u.useState(!1),{isMobileOrTabletScreen:g}=et(),T=()=>{if(c){const w=e.botEmail;h(w),d(!1)}},v=()=>{a(!0)},k=()=>{a(!1)};return u.useEffect(()=>{c===!1&&setTimeout(()=>{d(!0)},2e3)},[c]),o.jsx(pt,{windowSize:p,role:"presentation",style:{background:S.overlayDark,...e.style},children:o.jsx(tt,{onClickAway:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)},children:o.jsxs(yt,{windowSize:p,className:s?"fade":"",fade:s,children:[o.jsx(It,{onClick:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)}}),o.jsx(gt,{children:e.title}),o.jsx($t,{children:e.descriptionLines.map((w,l)=>o.jsxs(Ct,{children:[o.jsx(wt,{children:w.icon}),o.jsx(ft,{windowSize:p,children:w.text})]},l))}),o.jsxs(xt,{onClick:T,onMouseOver:v,onMouseLeave:k,showCopyIcon:c,showCopyText:i,children:[o.jsx(vt,{showCopyText:i,children:e.botEmail}),c?o.jsx(Tt,{windowSize:p,showCopyText:i&&!g,children:o.jsx(St,{})}):o.jsx(kt,{})]}),o.jsx(Bt,{children:c?i&&!g?N.copy:null:N.copied})]})})})}const G=U.getLocalizedStrings(),m=G.spendManagement,{common:{texts:{comments:At}},collaboration:{threads:{placeholder:{addANewComment:Lt,replyAComment:jt},tooltip:{resolveComment:Rt,unResolveComment:Pt}}}}=G,Ot={drawerSectionPaddingLeftRight:new C(x[4],x[5])},_t=Xe(()=>ot(()=>import("./SpendManagementPerTabPage-Cx0sB3qO-C92A_6wt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),Xt=e=>{const p=Ue(),h=He(),c=z(),{transactionList:d,allSubTabs:i,isAdmin:a,botEmail:s,isEmployee:n=!1,currentTab:g,currentSubTab:T,approvalCount:v,fetchState:k,analytics:w,entity:l,uiState:J,searchText:B,filters:V,vendorSearchAutoCompleteData:W,vendorSearchAutoCompleteActions:q,createdByUserList:K,createdByUserListFetchState:E,downloadParams:Y,downloadState:Q,isDownloadEnabled:X,isShowDeletedBillsEnabled:Z,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:A,isReimbursementCommentingEnabled:L,isDetectInsufficientFundsEnabled:te=!1,updateTabToState:oe,onSubtabChange:j,onReloadTransactions:ae,onTransactionClick:R,onClickSetupIcon:P,onBackClick:ie,onAddTransactionClick:ne,onColumnSortConfigChanged:se,onSearchTextChanged:le,onClickMenuIcon:re,onFiltersChange:ce,updateDownloadStateHandler:de,bulkSubmissionLimit:me=10,isBulkActionAllowed:ue=!1,isRecurringBillInBulkActionList:pe=!1,transactionsSelectedForBulkAction:he=[],allowedBulkActions:be=[],bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:we,onProceedForBulkActionClick:fe}=e,Ce=["draft","pending_approval","scheduled","paid"],xe=b=>{R(b,g)},Se=o.jsx(_t,{botEmail:s,transactionList:d,allSubTabs:i,isAdmin:a,selectedTab:g,selectedSubTab:T,fetchState:k,onSubtabChange:j,onTransactionRowClick:xe,onReloadTransactions:ae,onColumnSortConfigChanged:se,analytics:w,entity:l,uiState:J,searchText:B,isShowDeletedBillsEnabled:Z,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:A,isReimbursementCommentingEnabled:L,bulkSubmissionLimit:me,isBulkActionAllowed:ue,isRecurringBillInBulkActionList:pe,transactionsSelectedForBulkAction:he,isDetectInsufficientFundsEnabled:te,allowedBulkActions:be,bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:we,onProceedForBulkActionClick:fe}),Te=b=>{oe(b),j("all")},ve=y.hasOnlyBillPayAccess(h.loggedInUserRoleMap),[O,ke]=u.useState(!1),[Ie,_]=u.useState(!1),$e=b=>{ke(b)},Be=l==="bill_pay"?y.hasBillPayAdminLevelAccess(h.loggedInUserRoleMap):y.hasReimbursementAdminLevelAccess(h.loggedInUserRoleMap),Ee={entity:l,showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!0,newButtonLabel:"New",isSearchOpen:O,searchPlaceHolder:l==="bill_pay"?m.billPay.billsByTabs.searchPlaceHolder:m.reimbursement.reimbursementByTabs.searchPlaceHolder,searchText:B,searchTextBoxStyle:{right:"204px"},showSettingsIconOnNavbar:Be,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!0,disableDownloadButton:X===!1,downloadParams:Y,downloadState:Q,filters:V,vendorSearchAutoCompleteData:W,vendorSearchAutoCompleteActions:q,createdByUserListLoaded:l==="bill_pay"||y.hideCreatedByFilter(h.loggedInUserRole??[])?!0:E==="Completed"||E==="Error",analytics:w,onNewButtonClick:ne,onSearchOpen:$e,onSearchTextChanged:le,onClickSetupIcon:P,onClickEmailInfoIcon:()=>_(!0),onFiltersChange:ce,getFilterOptions:l==="bill_pay"||l==="reimbursement"?()=>Dt(l,K??[],h.loggedInUserRole??[],[]):void 0,updateDownloadStateHandler:de},Ae=o.jsx(mt,{spendManagementSectionProps:Ee}),[Le,je]=u.useState(null),[Re,I]=u.useState(!1),{setRequestToOpenThread:Pe}=u.useContext(Ge),Oe=`dashboard_${h.currentTenant?.companyId}`,D=l==="bill_pay"?"bill":"reimbursement",{threads:_e}=Je({application:"dashboard",companyId:h.currentTenant?.companyId,tab:D,entityId:Le?.entityId,isGlobalComment:!1},"both",!1),De={openAllThreadsDrawer:b=>{je({...b}),I(!0)}},Me=(b,$)=>{const{companyId:Fe,entityId:Ne,entityType:ze}=b;I(!1),Pe({threadId:$,companyId:Fe,entityType:ze}),R(Ne,g)};return o.jsx(Ve,{sharedItems:{sharedFunctions:{subtreeFunctions:De},sharedRef:void 0},children:o.jsxs(Mt,{children:[o.jsx(We,{source:"SpendManagementListViewPage",title:l==="bill_pay"?m.billPay.billsByTabs.pageTitle:m.reimbursement.reimbursementByTabs.pageTitle,showBackButton:!n&&!ve,showMenuIcon:c==="medium-compact"||c==="small",backgroundColor:p.colors.grey4,style:{zIndex:3,...qe.largeSemiBold.cssObject},onBackClick:ie,rightSideComponent:Ae,onClickMenuIcon:re,isSearchOpen:O}),o.jsxs(Ft,{children:[o.jsx(Nt,{children:o.jsx(ut,{tabIds:Ce,approvalCount:v,selectedTab:g,entity:l,onTabSelectedChange:Te,onClickSetupIcon:P})}),Se]}),Ie?o.jsx(Et,{botEmail:s,onCancelClick:()=>_(!1),title:l==="bill_pay"?m.billPay.billsByTabs.emailInfoTitle:m.reimbursement.reimbursementByTabs.emailInfoTitle,descriptionLines:l==="bill_pay"?[{icon:o.jsx(F,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription1},{icon:o.jsx(Ke,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription2},{icon:o.jsx(M,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription3}]:[{icon:o.jsx(F,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription1},{icon:o.jsx(Ye,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription2},{icon:o.jsx(M,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription3}]}):null,l==="bill_pay"&&A||l==="reimbursement"&&L?o.jsx(dt,{id:Oe,children:o.jsx(Qe,{isDrawerOpen:Re,allowComposer:!1,drawerTitle:At,threads:_e,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:h.currentTenant?.companyId,isGlobalComment:!1,tab:D},isLoading:!1,textOverrides:{composerPlaceholder:Lt,replyComposerPlaceholder:jt,threadResolve:Rt,threadUnResolve:Pt},onThreadClick:(b,$)=>Me(b,$),onCloseAllThreadsDrawer:()=>I(!1),drawerSectionStyle:{width:c==="small"?"100%":"400px",boxSizing:c==="small"?"border-box":"content-box",padding:`${t.sp0} ${Ot.drawerSectionPaddingLeftRight.valuePx(c)}`,backgroundColor:p.colors.background},collapsibleThreadStyle:{width:c==="small"?"100%":"360px"}})}):null]})})},Dt=(e,p,h,c)=>{const d=m.filters.filterOptions;return e==="bill_pay"?y.BILL_PAY_FILTER_CATEGORIES.reduce((i,a)=>{switch(a.value){case"amount":return{...i,[a.value]:d.billAmountOptions};case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:[...d.commonStatusOptions,...d.billStatusOptions]};case"paymentType":return{...i,[a.value]:d.billPaymentTypeOptions};default:return{...i,[a.value]:[]}}},{}):e==="reimbursement"?(y.hideCreatedByFilter(h)?y.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED:y.REIMBURSEMENT_FILTER_CATEGORIES).reduce((i,a)=>{switch(a.value){case"createdBy":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:d.commonStatusOptions};case"amount":return{...i,[a.value]:d.reimbursementAmountOptions};default:return{...i,[a.value]:[]}}},{}):y.TASK_LIST_FILTER_CATEGORIES.reduce((i,a)=>{switch(a.value){case"assignee":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"status":return{...i,[a.value]:[...y.allTaskStatus.map(s=>({label:s.name,value:s.code}))]};case"priority":return{...i,[a.value]:[...y.allTaskPriority.map(s=>({label:s.name,value:s.code}))]};case"tag":return{...i,[a.value]:[...c.map(s=>({label:s.name,value:s.tagId}))]};default:return{...i,[a.value]:[]}}},{})},Mt=r.div`
109
+ `,N=U.getLocalizedStrings().common.copyToClipBoard;function Et(e){const p=z(),[,h]=Ze(),[c,d]=u.useState(!0),[i,a]=u.useState(!1),[s,n]=u.useState(!1),{isMobileOrTabletScreen:g}=et(),T=()=>{if(c){const f=e.botEmail;h(f),d(!1)}},v=()=>{a(!0)},k=()=>{a(!1)};return u.useEffect(()=>{c===!1&&setTimeout(()=>{d(!0)},2e3)},[c]),o.jsx(pt,{windowSize:p,role:"presentation",style:{background:S.overlayDark,...e.style},children:o.jsx(tt,{onClickAway:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)},children:o.jsxs(yt,{windowSize:p,className:s?"fade":"",fade:s,children:[o.jsx(It,{onClick:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)}}),o.jsx(gt,{children:e.title}),o.jsx($t,{children:e.descriptionLines.map((f,l)=>o.jsxs(Ct,{children:[o.jsx(ft,{children:f.icon}),o.jsx(wt,{windowSize:p,children:f.text})]},l))}),o.jsxs(xt,{onClick:T,onMouseOver:v,onMouseLeave:k,showCopyIcon:c,showCopyText:i,children:[o.jsx(vt,{showCopyText:i,children:e.botEmail}),c?o.jsx(Tt,{windowSize:p,showCopyText:i&&!g,children:o.jsx(St,{})}):o.jsx(kt,{})]}),o.jsx(Bt,{children:c?i&&!g?N.copy:null:N.copied})]})})})}const G=U.getLocalizedStrings(),m=G.spendManagement,{common:{texts:{comments:Lt}},collaboration:{threads:{placeholder:{addANewComment:At,replyAComment:jt},tooltip:{resolveComment:Rt,unResolveComment:Pt}}}}=G,Ot={drawerSectionPaddingLeftRight:new C(x[4],x[5])},_t=Qe(()=>ot(()=>import("./SpendManagementPerTabPage-CofY1YYQ-C9YpxBTZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),Qt=e=>{const p=Ue(),h=He(),c=z(),{transactionList:d,allSubTabs:i,isAdmin:a,botEmail:s,isEmployee:n=!1,currentTab:g,currentSubTab:T,approvalCount:v,fetchState:k,analytics:f,entity:l,uiState:W,searchText:B,filters:K,vendorSearchAutoCompleteData:Y,vendorSearchAutoCompleteActions:J,createdByUserList:V,createdByUserListFetchState:E,downloadParams:X,downloadState:q,isDownloadEnabled:Q,isShowDeletedBillsEnabled:Z,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:L,isReimbursementCommentingEnabled:A,isDetectInsufficientFundsEnabled:te=!1,updateTabToState:oe,onSubtabChange:j,onReloadTransactions:ae,onTransactionClick:R,onClickSetupIcon:P,onBackClick:ie,onAddTransactionClick:ne,onColumnSortConfigChanged:se,onSearchTextChanged:le,onClickMenuIcon:re,onFiltersChange:ce,updateDownloadStateHandler:de,bulkSubmissionLimit:me=10,isBulkActionAllowed:ue=!1,isRecurringBillInBulkActionList:pe=!1,transactionsSelectedForBulkAction:he=[],allowedBulkActions:be=[],bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:fe,onProceedForBulkActionClick:we}=e,Ce=["draft","pending_approval","scheduled","paid"],xe=b=>{R(b,g)},Se=o.jsx(_t,{botEmail:s,transactionList:d,allSubTabs:i,isAdmin:a,selectedTab:g,selectedSubTab:T,fetchState:k,onSubtabChange:j,onTransactionRowClick:xe,onReloadTransactions:ae,onColumnSortConfigChanged:se,analytics:f,entity:l,uiState:W,searchText:B,isShowDeletedBillsEnabled:Z,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:L,isReimbursementCommentingEnabled:A,bulkSubmissionLimit:me,isBulkActionAllowed:ue,isRecurringBillInBulkActionList:pe,transactionsSelectedForBulkAction:he,isDetectInsufficientFundsEnabled:te,allowedBulkActions:be,bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:fe,onProceedForBulkActionClick:we}),Te=b=>{oe(b),j("all")},ve=y.hasOnlyBillPayAccess(h.loggedInUserRoleMap),[O,ke]=u.useState(!1),[Ie,_]=u.useState(!1),$e=b=>{ke(b)},Be=l==="bill_pay"?y.hasBillPayAdminLevelAccess(h.loggedInUserRoleMap):y.hasReimbursementAdminLevelAccess(h.loggedInUserRoleMap),Ee={entity:l,showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!0,newButtonLabel:"New",isSearchOpen:O,searchPlaceHolder:l==="bill_pay"?m.billPay.billsByTabs.searchPlaceHolder:m.reimbursement.reimbursementByTabs.searchPlaceHolder,searchText:B,searchTextBoxStyle:{right:"204px"},showSettingsIconOnNavbar:Be,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!0,disableDownloadButton:Q===!1,downloadParams:X,downloadState:q,filters:K,vendorSearchAutoCompleteData:Y,vendorSearchAutoCompleteActions:J,createdByUserListLoaded:l==="bill_pay"||y.hideCreatedByFilter(h.loggedInUserRole??[])?!0:E==="Completed"||E==="Error",analytics:f,onNewButtonClick:ne,onSearchOpen:$e,onSearchTextChanged:le,onClickSetupIcon:P,onClickEmailInfoIcon:()=>_(!0),onFiltersChange:ce,getFilterOptions:l==="bill_pay"||l==="reimbursement"?()=>Dt(l,V??[],h.loggedInUserRole??[],[]):void 0,updateDownloadStateHandler:de},Le=o.jsx(mt,{spendManagementSectionProps:Ee}),[Ae,je]=u.useState(null),[Re,I]=u.useState(!1),{setRequestToOpenThread:Pe}=u.useContext(Ge),Oe=`dashboard_${h.currentTenant?.companyId}`,D=l==="bill_pay"?"bill":"reimbursement",{threads:_e}=We({application:"dashboard",companyId:h.currentTenant?.companyId,tab:D,entityId:Ae?.entityId,isGlobalComment:!1},"both",!1),De={openAllThreadsDrawer:b=>{je({...b}),I(!0)}},Me=(b,$)=>{const{companyId:Fe,entityId:Ne,entityType:ze}=b;I(!1),Pe({threadId:$,companyId:Fe,entityType:ze}),R(Ne,g)};return o.jsx(Ke,{sharedItems:{sharedFunctions:{subtreeFunctions:De},sharedRef:void 0},children:o.jsxs(Mt,{children:[o.jsx(Ye,{source:"SpendManagementListViewPage",title:l==="bill_pay"?m.billPay.billsByTabs.pageTitle:m.reimbursement.reimbursementByTabs.pageTitle,showBackButton:!n&&!ve,showMenuIcon:c==="medium-compact"||c==="small",backgroundColor:p.colors.grey4,style:{zIndex:3,...Je.largeSemiBold.cssObject},onBackClick:ie,rightSideComponent:Le,onClickMenuIcon:re,isSearchOpen:O}),o.jsxs(Ft,{children:[o.jsx(Nt,{children:o.jsx(ut,{tabIds:Ce,approvalCount:v,selectedTab:g,entity:l,onTabSelectedChange:Te,onClickSetupIcon:P})}),Se]}),Ie?o.jsx(Et,{botEmail:s,onCancelClick:()=>_(!1),title:l==="bill_pay"?m.billPay.billsByTabs.emailInfoTitle:m.reimbursement.reimbursementByTabs.emailInfoTitle,descriptionLines:l==="bill_pay"?[{icon:o.jsx(F,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription1},{icon:o.jsx(Ve,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription2},{icon:o.jsx(M,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription3}]:[{icon:o.jsx(F,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription1},{icon:o.jsx(Xe,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription2},{icon:o.jsx(M,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription3}]}):null,l==="bill_pay"&&L||l==="reimbursement"&&A?o.jsx(dt,{id:Oe,children:o.jsx(qe,{isDrawerOpen:Re,allowComposer:!1,drawerTitle:Lt,threads:_e,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:h.currentTenant?.companyId,isGlobalComment:!1,tab:D},isLoading:!1,textOverrides:{composerPlaceholder:At,replyComposerPlaceholder:jt,threadResolve:Rt,threadUnResolve:Pt},onThreadClick:(b,$)=>Me(b,$),onCloseAllThreadsDrawer:()=>I(!1),drawerSectionStyle:{width:c==="small"?"100%":"400px",boxSizing:c==="small"?"border-box":"content-box",padding:`${t.sp0} ${Ot.drawerSectionPaddingLeftRight.valuePx(c)}`,backgroundColor:p.colors.background},collapsibleThreadStyle:{width:c==="small"?"100%":"360px"}})}):null]})})},Dt=(e,p,h,c)=>{const d=m.filters.filterOptions;return e==="bill_pay"?y.BILL_PAY_FILTER_CATEGORIES.reduce((i,a)=>{switch(a.value){case"amount":return{...i,[a.value]:d.billAmountOptions};case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:[...d.commonStatusOptions,...d.billStatusOptions]};case"paymentType":return{...i,[a.value]:d.billPaymentTypeOptions};default:return{...i,[a.value]:[]}}},{}):e==="reimbursement"?(y.hideCreatedByFilter(h)?y.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED:y.REIMBURSEMENT_FILTER_CATEGORIES).reduce((i,a)=>{switch(a.value){case"createdBy":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:d.commonStatusOptions};case"amount":return{...i,[a.value]:d.reimbursementAmountOptions};default:return{...i,[a.value]:[]}}},{}):y.TASK_LIST_FILTER_CATEGORIES.reduce((i,a)=>{switch(a.value){case"assignee":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"status":return{...i,[a.value]:[...y.allTaskStatus.map(s=>({label:s.name,value:s.code}))]};case"priority":return{...i,[a.value]:[...y.allTaskPriority.map(s=>({label:s.name,value:s.code}))]};case"tag":return{...i,[a.value]:[...c.map(s=>({label:s.name,value:s.tagId}))]};default:return{...i,[a.value]:[]}}},{})},Mt=r.div`
110
110
  display: flex;
111
111
  min-height: 100%;
112
112
  flex-direction: column;
@@ -120,4 +120,4 @@ import{u as Ue,w as He,X as z,l as y,M as U,fI as Ge,fK as Je,j as o,g2 as Ve,aV
120
120
  display: flex;
121
121
  margin-top: ${t.sp3};
122
122
  justify-content: center;
123
- `;export{Xt as default,Dt as getDashboardFilterCategoryValues};
123
+ `;export{Qt as default,Dt as getDashboardFilterCategoryValues};