@zeniai/web-cockpit-ui 1.14.35-qa → 1.14.36-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 (244) hide show
  1. package/dist/assets/{ACHDetailsPage-MP6kdpXK-BAG6ONUf.js → ACHDetailsPage-3oKbHC1_-Qn9d1Xyv.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BhOaFmfv-DJPCQGme.js → AIPerformancePage-Cn2skpeY-BNc-HLpr.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-D9Ft_CT9-Co34pWp7.js → AccountInfoPage-Dxnr3s2C-ByHNSUfv.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DvWx52e0-JoBHhmtJ.js → AccountInfoPageContent-CMT1vJ_n-DgA1oKva.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-B1_3C1ER-CsXXKJaZ.js → AccountLockedInfoModal-2GuYlOQJ-Cb5egJeS.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D9e7qhm0-DJD0R9bB.js → AccountReconDetailsDrawerPage-Cu_lsw9T-Ct4NG0ON.js} +13 -13
  7. package/dist/assets/{AccountRow-CiIWoLq3-BYr2bUH2.js → AccountRow-BcSPuOPF-R9MJWqpQ.js} +14 -14
  8. package/dist/assets/{AccountsPromoCardStack-CC72plKm-Matqa_MR.js → AccountsPromoCardStack-Ch88Cvn8-B36ZrxM-.js} +30 -30
  9. package/dist/assets/{AddAddressForCardDrawer-CIj76DoU-B9TffAvk.js → AddAddressForCardDrawer-Df4OROTJ-Ccg4Z6Tb.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B3vdkyWl-VZV_7F8R.js → AddToWalletPage-DgVLkIkz-CQF3I5rp.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-CbkMxxO_-BABl_foK.js → AgingReportsPage-M1xr5QPt-DB06_ukJ.js} +15 -15
  12. package/dist/assets/{AllUserItems-DJo9kLSI-CnxvFofk.js → AllUserItems-CzMARJS5-DMwRKAgK.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-DcAh6DLg-COmx3rdg.js → ApAgingDetailPage-C3YN724_-CRhegmmd.js} +3 -3
  14. package/dist/assets/{AppBasePage-DztnPkfs-C6ROiaUG.js → AppBasePage-CP4BX_QO-B6mlxKAR.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-DDmKn21i-B0r6j2g7.js → AppDrawerContent-Dc3UorVz-DdpZ1z1h.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-Di8tAJ8K-sRJdWOYr.js → ApprovalRulesSettingsPage-DHw_cGEb-DsqpcHH3.js} +1 -1
  17. package/dist/assets/ArAgingChart-D6396NAQ-B7eZ8sbL.js +24 -0
  18. package/dist/assets/{ArAgingDetailPage-B3JQ08nH-yWZ4Q_gU.js → ArAgingDetailPage-BU6gubOU-BkAN4ZrM.js} +1 -1
  19. package/dist/assets/{AttachmentView-p8mBqYjm-DXZMkL5k.js → AttachmentView-Cjq9bT2R-B9cOvAgG.js} +6 -6
  20. package/dist/assets/{BankAccountSection-AuQLRvdb-C_Pp6K1g.js → BankAccountSection-DcBAe_nk-Cj8Y52AW.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-HvUMABu0-7weYEdUg.js → BankAccountWarningSection-CgdNj2lq-DoFj2r_M.js} +19 -19
  22. package/dist/assets/{BankConnectionsSettingsPage-D61w90F9-DfyisqdH.js → BankConnectionsSettingsPage-DN-l_MKN-CZ9NiTex.js} +10 -10
  23. package/dist/assets/{BillDetailPage-nqHoph6T-DVUv4kUT.js → BillDetailPage-DSNj9dZa-GtcAJ7zm.js} +11 -11
  24. package/dist/assets/BillPayApprovalRuleDetailPage-Bn_93mxC-PbuiMjZ5.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-Bd87v4ca-Bux_Krxh.js → BillPayApprovalRulesPage-3E7Zb7Tv-8xvci8F-.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-CNiTD_mM-BuGb7q9e.js → BillPayPromoPage-iqi-3PsJ-BJG1XRwv.js} +32 -32
  27. package/dist/assets/{BillPaySetUpPage-BUSwkzqv-DIcHGcbo.js → BillPaySetUpPage-DkBnCNVT-DuhN0B9J.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-aPRvtlqA-CvfD2Y8F.js → BillingSettingsPage-Bxl_rTxp-CiR8VS-8.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BU3VuxEm-VUKCHen3.js → BillsBulkReviewDrawerPage-BAQfge2H-BRM7aN30.js} +1 -1
  30. package/dist/assets/{BoxItem-CZKWkdxd-B5o_Xoj8.js → BoxItem-BiXktaUJ-Cfy2EaaH.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CeDGi-RH-xh2K8rbM.js → BusinessVerificationPage-BvtQdbIO-BG9aG986.js} +7 -7
  32. package/dist/assets/CardNumberSubText-usoiubBx-JT9ehyHX.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-V-W_U5k1-DPPyNC8_.js → CashbackDetailPage-CKSxtvZL-C5tKHPnX.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-BP-zAMYI-C3fXrPWG.js → ChargeCardDetailPage-Dwb3MwPx-DGZ2FMyW.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-DORW9YE4-V1Xd3RQj.js → ChargeCardListPage-CQ3lUqTC-ClOjN4Tj.js} +27 -27
  36. package/dist/assets/{ChargeCardListTable-C32mZrwY-BKVvlwyx.js → ChargeCardListTable-B2MUmgfU-D_6CnuuE.js} +14 -14
  37. package/dist/assets/{ChargeCardPromoPage-CE4kH4Js-DA3SyzWk.js → ChargeCardPromoPage-DNZ_qrk1-Ckodpm9A.js} +14 -14
  38. package/dist/assets/{ChargeCardSetupPage-CumpB2GQ-CLFpKwEI.js → ChargeCardSetupPage-DX4VlcBt-9AzPA1m8.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DPIAjww0-B4pg53DT.js → ChargeCardStatementsPage-DlVfCfY8-Ciq-TW-L.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-i4In9Us5-BeJKYV4x.js +1 -0
  41. package/dist/assets/{ChaseOverlay-BGZfbx0H-CY_E45BY.js → ChaseOverlay-DYQYE0RM-Cl7PDEtm.js} +8 -8
  42. package/dist/assets/{CheckDepositDrawerPage-Bl52b4SW-CZzuzj_7.js → CheckDepositDrawerPage-C653BICE-BliVsvVN.js} +11 -11
  43. package/dist/assets/{CollapsableReportTable-B0wI9SM1-DyxRAEGL.js → CollapsableReportTable-KGZROyWO-BB5JbMLM.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-DyOVRvtQ-qzbkNJ8X.js → CompanyOfficerDetailsSection-WlKm-fM0-DT0aWaVM.js} +30 -30
  45. package/dist/assets/{CompanyPassportCard-C_YUK3R3-BmAXdeyi.js → CompanyPassportCard-BXQt77bL-CgrFJoow.js} +5 -5
  46. package/dist/assets/{CompanyPassportPage-QFJ0G7X7-usFLRy-E.js → CompanyPassportPage-CdM9x1g7-DHJ-ptII.js} +29 -29
  47. package/dist/assets/{CompleteProfile-DVE16v3y-CMtnbQZR.js → CompleteProfile-g0ErQlZA-BaxE51VT.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-BA8BvtO--w2UtNkAF.js → ConfettiBurst-Cu0ce9ZQ-B47uGNY_.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-ncBGwfXK-BUe0tXGP.js → CreateOrEditVendorPage-Zn--1Mu0-xtwEugAO.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DqEVQgMx-DFK6MZ6X.js → CreditCardPaymentDrawerPage-BSS4YcVE-BNPDfaX6.js} +19 -19
  51. package/dist/assets/{CreditCardPaymentPlgSection-vmErttTD-CytN37qx.js → CreditCardPaymentPlgSection-QKLSnyR5-DUyvaz3Z.js} +8 -8
  52. package/dist/assets/{CurrencySelectField-BEb19UaA-BoldRT0Z.js → CurrencySelectField-DxrwSaJK-Cu5VbUzb.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-L4l1ybmh-B2kuCczW.js → CustomerOnboardingActivationPage-BbfI4g9k-bQf7ee-N.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-DkXWw44M-DCp1xd8r.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D3Zm658F-BuH9tDfF.js → CustomerOnboardingDetailPageSkeleton-DyIeAi4x-Ciojhx6k.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-BXsJFpEX-DgMgRgZi.js → CustomerOnboardingNoStepsPage-BbHZQvuH-pcu4RngU.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-D3zpI1df-COxdjvpq.js → CustomerOnboardingPage-BGKjRruK-C_-kvbjL.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-DjVZfC2C-9VLKFifa.js → CustomerOnboardingProductSuitePage-Cmwfbh1x-D3ospPa7.js} +1 -1
  59. package/dist/assets/{Dashboard-wY0FneRs-CscNuWPH.js → Dashboard-DCbGYUNO-CggBXce9.js} +114 -114
  60. package/dist/assets/{DashboardReportPage-CMgr0CSc-DFK7qDD5.js → DashboardReportPage-7sacscjb-CCrnEMLn.js} +19 -19
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-B73UBY5T-CojDVgPF.js → DashboardSidebarBackgroundAnimation-CcQR2lMq-Cf2eLsVD.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-DrqBG940-BL30cPZ9.js → DepositAccTransactionItem-u7kiVxu3-Cq_mC_h_.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-BTMDl7KO-CkFA5sso.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-vRHD5DmW-CB41e-Go.js → DomesticWireDetailsPage-CjliTPRp-Cxo45rzx.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-D_UoB4Xy-CXZqPF3W.js → DownloadOverlay-LzyYQ7X7-Cqsz6Go0.js} +1 -1
  66. package/dist/assets/{DrawerPage-ijHe0bCp-DiEqZBob.js → DrawerPage-DVu3OGym-ELFavZIA.js} +5 -5
  67. package/dist/assets/{EditPeoplePage-BehcmP1s-B0OWtRsu.js → EditPeoplePage-COZuksUu-BAJ712Zd.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-Cz82Vz26-BRJ7TMrj.js → EditReimbursementDetailPage-P7gybbTe-DhmHzkez.js} +59 -59
  69. package/dist/assets/{EntityDetailPage-CN-ewzjy-BWpB3zGM.js → EntityDetailPage-CMAFiXng-EHp1vVUv.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-B4ozhtlU-Bh59rhzI.js → EntitySummarySection-BezHSTT7-CA4YQ14w.js} +5 -5
  71. package/dist/assets/{ExpenseAutomationOverviewPage-BmNuSoUs-u9wwMA7C.js → ExpenseAutomationOverviewPage-CX5wpbbp-BxzSM0jW.js} +17 -17
  72. package/dist/assets/ExpenseAutomationPage-CaeVli6J-DwDyMFlL.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-CgrGtZ4F-DhVG-NpX.js → ExpressPayPage-KpzY-AC4-B3x4TcSO.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-Dk_c37Rm-DmGR9BMT.js → FeaturePreviewPage-T7VgNi57-XquGM-uR.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-BVi7m38_-DCvEuFsi.js → FollowStepsSection-BffVXexb-Wb7yroWy.js} +23 -23
  76. package/dist/assets/{GlobalReviewListPage-DiZGC9B1-DVmZQU9C.js → GlobalReviewListPage-DPJug-7p-FbhUXbzf.js} +14 -14
  77. package/dist/assets/{HelpButton-DiIoYeXn-B1h-JEp9.js → HelpButton-BkxT0f9t-DltO0YWd.js} +4 -4
  78. package/dist/assets/{InformationCardStack-C8-4dhWR-CkAP-hMp.js → InformationCardStack-CiO7p4bX-Ca7THwnz.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-BKm0dSeJ-BPY6fmB5.js → InsightsCardStack-CCx4eRv0-BoXCNjZt.js} +9 -9
  80. package/dist/assets/{InsightsSection-C9MHOCQd-CxH8mnp9.js → InsightsSection-CQRpIy9c-BVaWF-TR.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-4qlL5Dsx-pk08ZRqz.js → IntegrationsSettingsPage-CDHIF3ky-BZdWjiMh.js} +3 -3
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-DqCtPykV-RePKT-cw.js → InternationalWireSwiftDetailsPage-BTB0YTLP-Fw5hYyJd.js} +13 -13
  83. package/dist/assets/{InternationalWireVerificationPage-Cl-p0inO-N3ibBM1E.js → InternationalWireVerificationPage-DZAa5CXK-CShVs05a.js} +10 -10
  84. package/dist/assets/{InviteFormPage-L6j0rOBW-BljG3gyG.js → InviteFormPage-CVIA_4cc-xvdMmRWy.js} +20 -20
  85. package/dist/assets/{InvitePageListView-KYjMIc4q-BvLSTtNP.js → InvitePageListView-BapkK9dR-CMoNigd7.js} +40 -40
  86. package/dist/assets/InvitePeoplePage-ChM26gAd-3PSfXhTf.js +12 -0
  87. package/dist/assets/{InvoiceUploadSection-DZC4oscG-qxWcqOIO.js → InvoiceUploadSection-CfoxMKse-CDgcPY9V.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DMdZCfqA-CZcxwjMQ.js → IssueChargeCardPage-DoNxoxCV-BuHBJdzr.js} +22 -22
  89. package/dist/assets/{LabeledAddressValue-CBOrzSsG-nee1vU4U.js → LabeledAddressValue-DzKLuwO0-Dbmo8xwC.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-C-fJPbDr-BL1p3tu1.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-BoXsUqpR-oiIFvQRa.js → LabeledControlledCheckBoxField-BsXmJGaz-B9D7gdxU.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CQPkrdRe-DDLZPwbC.js → LabeledCreatableSingleSelectField-CNcoKtBi-DbNXS5w-.js} +2 -2
  93. package/dist/assets/{LabeledDocumentField-DEeeTuVw-uCiSHKoS.js → LabeledDocumentField-DB-XX9hy-ARW_yKHV.js} +3 -3
  94. package/dist/assets/{LabeledDropDownFormattedTextField-DYRkxlY--Bk-7Qy7i.js → LabeledDropDownFormattedTextField-ChF-tfZl-CoOdklmM.js} +3 -3
  95. package/dist/assets/{LabeledText-DQiR_FIX-Cq-hk8XI.js → LabeledText-DQjY46zj-CJXj8rFi.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-BgLjIn8p.js → LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-BII3s1HZ.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-azPB8idg-Dod-yMmJ.js → LabeledZeniRolesDropDownField-qeHXm7K1-iR_szjxt.js} +6 -6
  98. package/dist/assets/{LinkJETransactionPage-Ct0HcxvN-CoVcew-v.js → LinkJETransactionPage-DWq96C-C-BScn3NVF.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-Zvy2iURT-CKL7oXqu.js → LowBalancePopup-DIu4EJtv-FHHWLFWk.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-BY6pEieF-CMSi32Px.js → MagicLinkACHDetailsPage-0uTQmYPp-CFGb5gZH.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BK5RZSiS-BptWrimx.js → MagicLinkDomesticWireDetailsPage-CtkSDg_U-DqPdzilp.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-hK5cNiNB-WwKIYKSe.js → MagicLinkInternationalWireDetailsPage-qNEvVVcm-C2m2KEe0.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-Drn_p982-Dd9Y_AlA.js → MagicLinkSuccessPage-D4C3XF4W-EgVx2lLe.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DRMHVOzF-BonTYr-V.js → MagicLinkTitleSection-DXZCLfIM-2GWQnCnZ.js} +9 -9
  105. package/dist/assets/{MailingDetailsSection-DgdAYgpS-CFXayn-8.js → MailingDetailsSection-7_w5PfFQ-C9R3FLGa.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-CAh7iae0-CIOK3_iA.js → MeetingCalenderPopup-2P6uhLqh-CkyOJaM-.js} +1 -1
  107. package/dist/assets/{Menu-bleLgSLu-DaNN7jzz.js → Menu-Ya9EH9T1-XEx08cqQ.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DRxmQCbq-Bx9nexN4.js → MyBankConnectionsSettingsPage-Bz9BP12B-B0raEGfA.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-BYLhb47G-pes3OjvP.js → MyPendingActivationChargeCardListPage-BxFFCBYU-CmVzmveh.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-eVfCRTfx-C1C2MWMx.js → MyProfileSettingsPage-BRTEYBf1-BuzCCWQu.js} +11 -11
  111. package/dist/assets/{NavBarWithPicker-BE2MW7hB-C2Q1UUPB.js → NavBarWithPicker-Cx1ldzdT-ByHGGAzI.js} +4 -4
  112. package/dist/assets/{NavigationArrow-eEaMttBX-dVTivT8M.js → NavigationArrow-Cic_S7sL-CafjbEnx.js} +1 -1
  113. package/dist/assets/{NavigationDots-CNwL0a7I-eyaik967.js → NavigationDots-BnqdhDar-BHuykGzD.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CSWqCqAC-3LX-Lnzn.js → NewGlobalMerchantPage-BMLnV68V-Df2U2-Pi.js} +11 -11
  115. package/dist/assets/{NoDataChart-DNmdY5gQ-CMwiaxGm.js → NoDataChart-CyIzcvzb-CVVPhPRo.js} +3 -3
  116. package/dist/assets/{NoDataTable-DW2wAX3o-7ZoMqIrJ.js → NoDataTable-Cf9Qv-ms-BIxVQmVT.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BMJTG-tj-BCL9lImd.js → NotFoundPage-BP2jA51O-DvlpUk9Z.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-Vd3UvdLu-S0VOV4Ql.js → NotificationSettingsPage-Bhj72XzL-DgHNUBYw.js} +17 -17
  119. package/dist/assets/NotificationsListConfig-BcRqz3T--CwofCBLm.js +1 -0
  120. package/dist/assets/{NotificationsPage-BaekDEw7-Cs7zF3k-.js → NotificationsPage-DEQ0muyV-AFyu-A1B.js} +29 -29
  121. package/dist/assets/{OpExByVendorPage-DNyTA9nx-D6E7lJvv.js → OpExByVendorPage-BPvIdjMh-GjqInlE8.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-DQ82QsuS.js → OverlayContainerPage-Bmu909Fo-B4CijHVT.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-DbP4ybN4-DeKOl1Oc.js → PandLWithForecastPage-CgMYDel--CrwH5GHU.js} +6 -6
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Dd4Aen8j-Ctc3Ha-y.js → PaymentAccountSetupBillingAddressSection-CfUpfrt6-DiMg5_6V.js} +12 -12
  125. package/dist/assets/{PeoplePage-B3n7ek2h-uuc0_T22.js → PeoplePage-BrL4O-03-BHA1i9-R.js} +18 -18
  126. package/dist/assets/{PortfolioAllocationFormPage-CzA_c7hR-D4H-GZTH.js → PortfolioAllocationFormPage-C24sa7Lv-D7dV2koR.js} +7 -7
  127. package/dist/assets/{PortfolioDetails-Drgv4Osg-Wtx195rT.js → PortfolioDetails-wAtPiO4w-C8Xq6LTb.js} +23 -23
  128. package/dist/assets/{ProductsCarousel-BnnfJR0o-1ucX8gqh.js → ProductsCarousel-B8KxzJsX-BAeIItJs.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-BGHJivI8-QTKlmjbr.js → PromoBaseCards-DKu8lmMb-CbitZiAU.js} +3 -3
  130. package/dist/assets/{QBOConnectionDialog-uiW9eeZu-CJhmYtAn.js → QBOConnectionDialog-CSRVcpvB-DsmFVlUU.js} +9 -9
  131. package/dist/assets/{QBOSetupSection-DPb0VAii-CLt6Rb6_.js → QBOSetupSection-CwO2OwTA-DfOK3FQy.js} +10 -10
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-DWAgRWah-DAeIJHt1.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-C1AFF_DM-vNX_0PWy.js → ReimbursementApprovalRulesPage-CWZIqbqf-2nP7no61.js} +32 -32
  134. package/dist/assets/{ReimbursementDetailPage-Du6R1zje-DfmTmZh3.js → ReimbursementDetailPage-DaiOed8i-t4bX9i7-.js} +8 -8
  135. package/dist/assets/{ReimbursementPromoPage-CW9eyjp9-hg5pl-np.js → ReimbursementPromoPage-CTpCa9C7-WAySoU1n.js} +6 -6
  136. package/dist/assets/{ReimbursementSetUpPage-CbPwgIqt-DlHsYtWb.js → ReimbursementSetUpPage-Cd0w6zdZ-CapxuQlm.js} +3 -3
  137. package/dist/assets/ReimbursementsBulkReviewDrawerPage-D_IG6Yzl-B2GWCVK0.js +1 -0
  138. package/dist/assets/{ReloadCard-Dvn17Oxl-DzvJVrId.js → ReloadCard-D8XT-nw--BGnVgOtj.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-C5_qr5qe-ClZSH2bH.js → ReportTableViewSelector-kf12PTIw-_koMJS6q.js} +10 -10
  140. package/dist/assets/{ReportsPage-BNcymVwf-C0BED4Ok.js → ReportsPage-D0dEACVc-CgqzQVRZ.js} +9 -9
  141. package/dist/assets/{RevenueChart-DILkui6c-DnsmI5K2.js → RevenueChart-D67Egnoj-B0BJYpf4.js} +14 -14
  142. package/dist/assets/{ReviewDetailsPage-ZYzvK95X-KVKmpgCn.js → ReviewDetailsPage-DX3JdY2D-BVW8q6gp.js} +5 -5
  143. package/dist/assets/{ReviewOverlay-DhUFI1ES-r1eu-OFz.js → ReviewOverlay-BUmIoEZp-D3xvXshe.js} +4 -4
  144. package/dist/assets/{RoleWithToolTip-_W95JBwt-C0fe2sAV.js → RoleWithToolTip-QUDWRgyn-DzrP2xLD.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-iQXV-V_H-BhZNXgbs.js → ScheduleDetailsFixedAssetsPage-ffFbqWqR-mWiNohG4.js} +4 -4
  146. package/dist/assets/{ScheduleDetailsPage-KgHwQGrw-B2V1iuf9.js → ScheduleDetailsPage-Btyinpxx-TW4CABi6.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-Bixq8Q7W-N1kxr5zg.js → ScheduleSequenceTable-nubG9ZPF-CmzJbQeN.js} +17 -17
  148. package/dist/assets/{ScreenRoutes-65j87oC2.js → ScreenRoutes-BC18Q4eZ.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-C9PPpmcc-puvAr14h.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-CI0mxu3H-JpA1rufD.js → SetUpDefaultSection-D54P9sLQ-DIoImqvg.js} +9 -9
  151. package/dist/assets/{SignIn-DslenepV-m8WTqnO1.js → SignIn-DQERofSd-BPkKMSDj.js} +11 -11
  152. package/dist/assets/{SignInScreen-Bs1sd9WX.js → SignInScreen-BbeWg9hl.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-D7SzmCmM-DsyAjyVx.js → SpendManagementListViewPage-B9iJVZhK-Dd5zS51l.js} +10 -10
  154. package/dist/assets/{SpendManagementPerTabPage-DKaDr4mu-CQG-8bWa.js → SpendManagementPerTabPage-DiduNPFx-BvN2qFiJ.js} +12 -12
  155. package/dist/assets/{SpendManagementSection-Ddfq2u6H-DjhY5rM_.js → SpendManagementSection-BPJDk9AQ-DNTgKL_h.js} +5 -5
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CPnNzjr--CVGBUj7h.js → SpendMgmtSetupAccountSection-BVOwbOVv-BbEelpUf.js} +6 -6
  157. package/dist/assets/StatementItem-DPiBruWm-BTp46EGg.js +31 -0
  158. package/dist/assets/{StatementsPage-o7MvNKvd-D45F8BwH.js → StatementsPage-BzG0fWr9-B7zKsVpb.js} +6 -6
  159. package/dist/assets/{StatusSwitcher-kWLQCCwS-B1OCqMuJ.js → StatusSwitcher-aZiGS6I4-CW57CAir.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-BKm9FxhL-x8uzq0sl.js → SubTabSwitcher-BPzCR9_G-CKWRfEmM.js} +1 -1
  161. package/dist/assets/{SummaryCard-DBMfNfN2-CzWqfaGl.js → SummaryCard-DE3DiW4z-DCcTNI78.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-D_wjK-S2-5FRXGPBR.js → TaskManagementPage-bmYzZzlx-BQOYF4T3.js} +14 -14
  163. package/dist/assets/{TimeRangeSwitcher-2vDR_AEV-BCS0yx4E.js → TimeRangeSwitcher-D10b_iT0-B6MHaMu9.js} +3 -3
  164. package/dist/assets/{TimeframeSwitcher-BB3_i5V0-_2lvvQWN.js → TimeframeSwitcher-w4308CL0-B-m8rZcD.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-CdP0ViK8-Blh3jpmT.js → TimeframeSwitcherWithToggle-DP7dCTZ--Dr3OM9sZ.js} +1 -1
  166. package/dist/assets/{TopExCard-BGgGFzmK-CseYSNZP.js → TopExCard-C9Dwe5gi-HuLCC_VB.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-CbzYG54M-Cn_cL4Fl.js → TopExDetailPage-Ch4gEAFc-CW6a2lM7.js} +14 -14
  168. package/dist/assets/TransactionDetailPage-y3Jwxln6-CGGNkWbu.js +912 -0
  169. package/dist/assets/{TransactionList-C0xK6_zI-DXurFqrv.js → TransactionList-Dy4LSOLF-DLQzM8h7.js} +5 -5
  170. package/dist/assets/{TransactionListBig-CIX6CdX--k6cdfuui.js → TransactionListBig-BOmqcsRt-CoBJs1L1.js} +13 -13
  171. package/dist/assets/{TransactionListPage-B7ppBJig-Cw4vRsI1.js → TransactionListPage-D1XobIP_-CQ1XF-sO.js} +4 -4
  172. package/dist/assets/TransactionVendorDetailPage-DNbFFCAy-DiSmfMU1.js +80 -0
  173. package/dist/assets/{TransferDrawerPage-DerGmul8-CuVOWq-U.js → TransferDrawerPage-DEK-tLwC-CMAkImaq.js} +19 -19
  174. package/dist/assets/{TreasuryOverviewPage-DW2gZwip-BnPT0qco.js → TreasuryOverviewPage-Bv8YOcOu-DgYbKZRI.js} +45 -45
  175. package/dist/assets/TreasuryPromoPage-BpJ4G2tW-wrKqn45d.js +477 -0
  176. package/dist/assets/{TreasurySetupPage-Bo0HQeeU-CiRulceo.js → TreasurySetupPage-DmXhUnJ2-CTKxmbjB.js} +2 -2
  177. package/dist/assets/{TreasuryStatementsPage-DS_VK4WN-Cnn4qXHn.js → TreasuryStatementsPage-iOhX7bQX-C-86zNAp.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-DgwqyL6v-BEtv0yga.js → TreasuryTaxLetterPage-SKYFef4J-CxXJUgOP.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-ZrSACgLJ-B-C18Uw6.js → TreasuryTransferOrReviewPage-BAQy6UbF-5smN8wwG.js} +42 -42
  180. package/dist/assets/{TrendChart-D07k3uRr-DX_P6NGJ.js → TrendChart-DrNmAOxp-D32D_fQx.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-ibwuOssC-wAxC5G58.js → TrendWithTransactions-CFapbjqF-Tluomzgb.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-D1m2Ok2e-Bc7XjWkf.js → UncategorizedAccountsMappingPage-BjyEIyD--q-mXglLO.js} +15 -15
  183. package/dist/assets/{UnitIntegrationPage-BJxRjjfK-CSfDNJiC.js → UnitIntegrationPage-CMRuNXKH-W-172t0m.js} +2 -2
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-DI_GZA8A-D7qH6H92.js → UploadAdditionalDocumentOverlay-BJNFsBN7-CW3s6tmn.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-80vvc7gE-DfCBbxkB.js → Vendor2FAPopup-Dk_XUHkP-BfvRXa0R.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-CQcuiNPr-CceAJ-hu.js → VendorACHDetailsPage-DS1-IldK-BBUTN6DM.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-Dx_yfZDH-CdV4fZHt.js → VendorDetailPage-CzECD1Tt-BxCeFQBa.js} +8 -8
  188. package/dist/assets/{VendorDomesticWireDetailsPage-DN5x3F_Z-Bq-suC9S.js → VendorDomesticWireDetailsPage-Bd-dOP2Q-B1c_niFG.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-8Jz187lD-DiuMGs7f.js → VendorFiling1099EditablePage-C7D_fWCV-ar_0EIM_.js} +14 -14
  190. package/dist/assets/{VendorFirstReviewPage-CokvYaRq-C8O10dnC.js → VendorFirstReviewPage-B4YffYJO-BW-F4-km.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireDetailsPage-lo9l2Q88-BNP_VZvO.js → VendorInternationalWireDetailsPage-D1i4RwUe-BBAccWWe.js} +7 -7
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CPj3zrDk-Gct01KpS.js → VendorInternationalWireSwiftDetailsPage-QqA8DADQ-CetqwMx2.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-BqoW4DlP-BublwzKM.js → VendorsAccountsSection-C8qo0vKx-DOST9l3F.js} +2 -2
  194. package/dist/assets/{VerifyDevice-D8iPRJ3k-CjjdiKnG.js → VerifyDevice-Cku9_tdW-BTj-mHAb.js} +1 -1
  195. package/dist/assets/VideoPlayer-DqxblGWn-BXG0P4e3.js +38 -0
  196. package/dist/assets/VideoPopup-8253nBrT-DoJHFZMN.js +31 -0
  197. package/dist/assets/{WarningsDrawerPage-qYWFsE3s-zj7-7ffo.js → WarningsDrawerPage-B08Au4yQ-B9IzdYhz.js} +7 -7
  198. package/dist/assets/{ZeniAccountDetailPage-BL2a5Dmz-B_6wvsrQ.js → ZeniAccountDetailPage-Dx-w2w6D-4cfDv73S.js} +16 -16
  199. package/dist/assets/{ZeniAccountListViewPage-CWqzDWcO-DwWqzBYy.js → ZeniAccountListViewPage-DH4BnQ7k-CHjigIuG.js} +13 -13
  200. package/dist/assets/ZeniAccountNavBarPieces-ce5jAGIl-DVfSolpZ.js +14 -0
  201. package/dist/assets/{ZeniAccountPromoPage-CBm3w0kN-DJjJeczH.js → ZeniAccountPromoPage-D4J2Yoil-BDHpq4Eb.js} +9 -9
  202. package/dist/assets/{ZeniAccountSetupPage-C5VzT9lH-Cdnhgc2k.js → ZeniAccountSetupPage-DTkO1ASr-1XYqtTaw.js} +3 -3
  203. package/dist/assets/{ZeniCopyright-BUctH39C-C_feHk3O.js → ZeniCopyright-BiSq0yhI-CQbT1WRc.js} +1 -1
  204. package/dist/assets/ZeniTransferAmountSlider-B-iWjIM--_5mAEjc_.js +63 -0
  205. package/dist/assets/{analyticsHelper-B3uAu0es-CqogBTHJ.js → analyticsHelper-Dc3DtVTm-Y5fPzPLq.js} +1 -1
  206. package/dist/assets/{analyticsHelper-B34YX2ij.js → analyticsHelper-lnjVamrT.js} +1 -1
  207. package/dist/assets/{chartTypes-CJmQ6FtI-TiHHrGYV.js → chartTypes-C7uaeRCc-CtqAquQd.js} +1 -1
  208. package/dist/assets/{commonDimensions-WRL2ZVK_-CxdZfQVs.js → commonDimensions-MaxjMSVa-n5Ul9FT7.js} +1 -1
  209. package/dist/assets/{detailCommon-Dfxas1Kf-D_ZxAMOH.js → detailCommon-OK9JA2hc-EAouVA2X.js} +6 -6
  210. package/dist/assets/{downloadPdf-B1f0mDl2-BZJtGTOh.js → downloadPdf-QtapKpnq-D53WP2BZ.js} +1 -1
  211. package/dist/assets/{index-LQh-jIrB.js → index-4y_mNX1u.js} +3415 -3415
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-BG784RuM-B-LxqW1w.js → mapLoadingInProgressToTreeNode-pvoDlh5w-BH0I_ZXQ.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DPeWjfgv.js → mapSectionWithAcOnlyToTreeNode-CVUpGQKE-B2Y7wF15.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-CcgVbOH5-TVZJ590D.js → mapSpacerToTreeNode-P_HzYMUQ-T8bNyKbZ.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-CU583ICK-CZ9bt-pf.js → mapTimeframeBalancesToTreeNode-B8xJouuF-0J2xTAj5.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-DTlwFauL-CZ3n-orV.js → mapTimeframeBalancesToTreeNode-CB6RE8w9-CAzsziRN.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-Bh46qWxB.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BAAatv-Y-C-hpmEKv.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-DTfegixr-3BrKm7V-.js → toCOABalancesWithID-JkvOa9nR-BuY_FDkW.js} +1 -1
  219. package/dist/assets/{toChartData-CH5DcWUY-CCr3PEX8.js → toChartData-CEfu5Lvp-ztIWW0aM.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-BdPkQoh7-2QT0NfKg.js → treasuryColorHelper-Bvcahv9r-CJj1lXeK.js} +1 -1
  221. package/dist/assets/{uploadAttachment-COwu5Mqo-D1mpbLnD.js → uploadAttachment-DNrYcaTL-7XpOhOp_.js} +14 -14
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-BSggA-oy.js → uploadReceipts-dxsKhm9I-Dv2hG-YC.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/ArAgingChart-tm5ZiNuY-4-nNFTyo.js +0 -24
  226. package/dist/assets/BillPayApprovalRuleDetailPage-fZnmOmyN-R8AfUVmE.js +0 -27
  227. package/dist/assets/CardNumberSubText-1BRQQyfd-JE07s-Fs.js +0 -21
  228. package/dist/assets/ChargeCardUtils-Wp4Ko18L-GTVU2RZO.js +0 -1
  229. package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-C0-g-aXs.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-2xDjOUwm-DDOM6-AH.js +0 -66
  231. package/dist/assets/ExpenseAutomationPage-Cz3JsW-E-BrcVbkfQ.js +0 -1650
  232. package/dist/assets/InvitePeoplePage-CbZqVsTp-ByvmG5mg.js +0 -12
  233. package/dist/assets/LabeledAddressValueField-YuLcra47-Cc5nlJue.js +0 -45
  234. package/dist/assets/NotificationsListConfig-DbHYPEWZ-DjqGq2mH.js +0 -1
  235. package/dist/assets/ReimbursementApprovalRuleDetailPage-Cvok7KBA-C0WmzojS.js +0 -26
  236. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DmRIywf6-C6sXIYK8.js +0 -1
  237. package/dist/assets/SetUpAccountSection-D8FMVhkL--eJk_Euq.js +0 -378
  238. package/dist/assets/StatementItem-B2uPIFUk-jLxVfDq5.js +0 -31
  239. package/dist/assets/TransactionDetailPage-C-CfEtCO-B6iRDC7J.js +0 -912
  240. package/dist/assets/TransactionVendorDetailPage---HGdQiZ-B2-rEsH7.js +0 -80
  241. package/dist/assets/TreasuryPromoPage-DzqdEmPJ-Cgk-JJnE.js +0 -439
  242. package/dist/assets/VideoPopup-SdlRHLkM-agneM1Zx.js +0 -31
  243. package/dist/assets/ZeniAccountNavBarPieces-C0MyICK2-Bjp8UANv.js +0 -14
  244. package/dist/assets/ZeniTransferAmountSlider-q37z6XvR-omF-65ky.js +0 -63
@@ -1,4 +1,4 @@
1
- import{e as te,fp as ie,u as fe,Y as ge,fq as be,a as ye,O as xe,l as z,cb as we,ca as Pe,B as re,j as l,fr as ve,aX as $e,F as De,a4 as Se,o as s,fs as ne,ft as de,fu as ce,c5 as ue,C as L,n as me,v as je,J as Oe,X as le,cm as Re,cd as Ce,fv as q,cj as Le,ch as Te,fw as Ie,af as Ve,q as _}from"./index-LQh-jIrB.js";import{b as v,n as m}from"./vendor-rkTZJa59.js";import{C as Be}from"./LabeledAddressValueField-YuLcra47-Cc5nlJue.js";import{X as ke}from"./LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-BgLjIn8p.js";import{C as Fe,j as ze}from"./LabeledZeniRolesDropDownField-azPB8idg-Dod-yMmJ.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./RoleWithToolTip-_W95JBwt-C0fe2sAV.js";const b=(e,i)=>`${e}.${i}`,F={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(_[2],_[3]),toolTipWidth:new L(215,237),notePadding:new L(_[3],_[4]),noteGap:new L(_[0],6)},{peoplePage:a,common:{settings:se,labels:X,placeholder:k,errorMessage:Ae},dateFormat:Ne}=re.getLocalizedStrings(),Me=({myProfileView:e,isZeniFinopsRolesUser:i,sectionId:t,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:$,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:x})=>{const n=te(),{person:r,managersList:A,classList:N,manager:G,department:g,controllersList:M,myProfileLocalData:W,addressData:J}=e,H=e.person.user?.birthday!=null?"readonly":void 0,D=F.largeLabelWidth.value(n),I=F.largeLabelWidth.value(n),Y=v.useMemo(()=>ie(y,p,o,f,$,T,h),[y,p,o,f,$,T,h]),{firstController:w,restControllerEmailsStr:S}=v.useMemo(()=>{const c=le(M),j=c.splice(0,1),O=c.reduce((V,B)=>V.concat(`${B.email},`),"");return{firstController:j,restControllerEmailsStr:O}},[M]),K=v.useMemo(()=>le(ue.roles),[]),d=z.hasInvestorBankerLevelAccess(r.userRole!=null?r.userRole.userRoles:[]),E=v.useMemo(()=>N.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[N]);return l.jsxs(Ue,{windowSize:n,children:[l.jsx(Re,{isDisabled:u,label:{label:X.name,width:I},nameField:{name:b(t,"name"),placeHolder:{firstName:k.firstNamePlaceholder,lastName:k.lastNamePlaceholder,name:k.namePlaceholder},showFullNameError:!0},errorInfoLabel:Ae.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(C,{}),l.jsx(Ce,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(t,"email"),placeholder:q(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${F.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Le,{label:{label:X.dateOfBirth,width:I},style:{width:"auto"},isDisabled:H,dateField:{name:b(t,"dateOfBirth"),placeholder:k.datePlaceholder,defaultValue:W.dateOfBirth,dateFormat:Ne.visual.defaultInput,autoComplete:"off",maxDate:z.dateNow().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(Be,{label:{label:X.mailingAddress,width:I},addressValueField:{name:b(t,"mailingAddress"),placeholder:k.addressPlaceholder,defaultValue:J?.addressToCreate,onClick:()=>{x("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Te,{label:{label:X.phone,width:I},text:{name:b(t,"phone"),placeholder:k.phonePlaceholder,defaultValue:W.phone,autoComplete:"off"},showVerified:W.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),i?l.jsx(Fe,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(t,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:K},registerOptions:{required:!0},placeholderLabel:q(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(ze,{label:{label:a.invitePage.role,width:D},rolesDropDownField:{name:b(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,$)},productsByUserRole:ne(r.userRole?.userRoles??[],Y)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(ke,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:F.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:b(t,"manager"),value:{allUsers:d?[]:A,selectedUser:d?void 0:G?.userId},valueToSubtitle:c=>{const j=A.findIndex(O=>O.userId===c);if(j!==-1){const O=A[j],V=N.find(Q=>Q.classId===O.userRole.accountingClassIDs[0]),B=[];return V!=null&&B.push(V.className),B}else return[]},placeholderLabel:d?a.notApplicable:q(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(C,{}),l.jsx(Ie,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(t,"department"),defaultValue:{allOptions:d?[]:E,selectedOption:d?void 0:E.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:q(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),i?null:l.jsxs(_e,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Ee,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(Ze,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Ve,{className:"arrowIcon"})]}):null]})]})]})},We=()=>a.invitePage.managerTooltipText,Ue=m.div`
1
+ import{e as te,fq as ie,u as fe,Y as ge,fr as be,a as xe,L as ye,l as z,cb as we,ca as Pe,M as re,j as l,fs as ve,aX as $e,F as De,a4 as Se,o as s,ft as ne,fu as de,fv as ce,c5 as ue,C as L,B as me,v as je,J as Re,W as le,cm as Ce,cd as Oe,fw as q,cj as Le,ch as Te,fx as Ie,af as Ve,r as Z}from"./index-4y_mNX1u.js";import{b as v,n as m}from"./vendor-rkTZJa59.js";import{C as Be}from"./LabeledAddressValueField-C-fJPbDr-BL1p3tu1.js";import{X as Fe}from"./LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-BII3s1HZ.js";import{C as ke,j as ze}from"./LabeledZeniRolesDropDownField-qeHXm7K1-iR_szjxt.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./RoleWithToolTip-QUDWRgyn-DzrP2xLD.js";const b=(e,i)=>`${e}.${i}`,k={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(Z[2],Z[3]),toolTipWidth:new L(215,237),notePadding:new L(Z[3],Z[4]),noteGap:new L(Z[0],6)},{peoplePage:a,common:{settings:se,labels:X,placeholder:F,errorMessage:Ae},dateFormat:Ne}=re.getLocalizedStrings(),Me=({myProfileView:e,isZeniFinopsRolesUser:i,sectionId:t,isDisabled:u,isReimbursementDisabled:x,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:$,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:y})=>{const n=te(),{person:r,managersList:A,classList:N,manager:G,department:g,controllersList:M,myProfileLocalData:W,addressData:H}=e,J=e.person.user?.birthday!=null?"readonly":void 0,D=k.largeLabelWidth.value(n),I=k.largeLabelWidth.value(n),Y=v.useMemo(()=>ie(x,p,o,f,$,T,h),[x,p,o,f,$,T,h]),{firstController:w,restControllerEmailsStr:S}=v.useMemo(()=>{const c=le(M),j=c.splice(0,1),R=c.reduce((V,B)=>V.concat(`${B.email},`),"");return{firstController:j,restControllerEmailsStr:R}},[M]),Q=v.useMemo(()=>le(ue.roles),[]),d=z.hasInvestorBankerLevelAccess(r.userRole!=null?r.userRole.userRoles:[]),_=v.useMemo(()=>N.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[N]);return l.jsxs(Ue,{windowSize:n,children:[l.jsx(Ce,{isDisabled:u,label:{label:X.name,width:I},nameField:{name:b(t,"name"),placeHolder:{firstName:F.firstNamePlaceholder,lastName:F.lastNamePlaceholder,name:F.namePlaceholder},showFullNameError:!0},errorInfoLabel:Ae.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(O,{}),l.jsx(Oe,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(t,"email"),placeholder:q(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${k.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(O,{}),l.jsx(Le,{label:{label:X.dateOfBirth,width:I},style:{width:"auto"},isDisabled:J,dateField:{name:b(t,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:W.dateOfBirth,dateFormat:Ne.visual.defaultInput,autoComplete:"off",maxDate:z.dateNow().subtract(18,"year")}}),l.jsx(O,{}),l.jsx(Be,{label:{label:X.mailingAddress,width:I},addressValueField:{name:b(t,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:H?.addressToCreate,onClick:()=>{y("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(O,{}),l.jsx(Te,{label:{label:X.phone,width:I},text:{name:b(t,"phone"),placeholder:F.phonePlaceholder,defaultValue:W.phone,autoComplete:"off"},showVerified:W.isPhoneVerified,style:{width:"auto"}}),l.jsx(O,{}),i?l.jsx(ke,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(t,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:Q},registerOptions:{required:!0},placeholderLabel:q(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(ze,{label:{label:a.invitePage.role,width:D},rolesDropDownField:{name:b(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,$)},productsByUserRole:ne(r.userRole?.userRoles??[],Y)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(O,{}),l.jsx(Fe,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:k.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:b(t,"manager"),value:{allUsers:d?[]:A,selectedUser:d?void 0:G?.userId},valueToSubtitle:c=>{const j=A.findIndex(R=>R.userId===c);if(j!==-1){const R=A[j],V=N.find(K=>K.classId===R.userRole.accountingClassIDs[0]),B=[];return V!=null&&B.push(V.className),B}else return[]},placeholderLabel:d?a.notApplicable:q(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(O,{}),l.jsx(Ie,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(t,"department"),defaultValue:{allOptions:d?[]:_,selectedOption:d?void 0:_.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:q(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),i?null:l.jsxs(Ze,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(_e,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(Ee,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Ve,{className:"arrowIcon"})]}):null]})]})]})},We=()=>a.invitePage.managerTooltipText,Ue=m.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -9,14 +9,14 @@ import{e as te,fp as ie,u as fe,Y as ge,fq as be,a as ye,O as xe,l as z,cb as we
9
9
  .single-select-field__menu {
10
10
  border: ${e=>e.windowSize==="small"?`1px solid ${e.theme.colors.grey3}`:"unset"};
11
11
  }
12
- `,C=m.div`
12
+ `,O=m.div`
13
13
  display: flex;
14
14
  flex: 1;
15
15
  background-color: ${e=>e.theme.colors.grey3};
16
16
  min-height: 1px;
17
17
  max-height: 1px;
18
- `,_e=m(me)`
19
- padding: ${e=>`${s.sp1} ${F.notePadding.valuePx(e.windowSize)}`};
18
+ `,Ze=m(me)`
19
+ padding: ${e=>`${s.sp1} ${k.notePadding.valuePx(e.windowSize)}`};
20
20
  background: ${e=>e.theme.colors.grey4};
21
21
  border-radius: ${s.sp0} ${s.sp0} ${s.sp2} ${s.sp2};
22
22
  text-align: left;
@@ -24,8 +24,8 @@ import{e as te,fp as ie,u as fe,Y as ge,fq as be,a as ye,O as xe,l as z,cb as we
24
24
  display: flex;
25
25
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
26
26
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
27
- gap: ${e=>F.noteGap.valuePx(e.windowSize)};
28
- `,Ee=m.a`
27
+ gap: ${e=>k.noteGap.valuePx(e.windowSize)};
28
+ `,_e=m.a`
29
29
  color: ${e=>e.theme.colors.hero};
30
30
  text-decoration: none;
31
31
  cursor: pointer;
@@ -43,7 +43,7 @@ import{e as te,fp as ie,u as fe,Y as ge,fq as be,a as ye,O as xe,l as z,cb as we
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,Ze=m.span``,pe={sectionWidth:new L(343,580,726),subtitleSectionWidth:new L(343,580,1200)},qe={title:new Oe("standardMedium","largeMedium")},P="userDetails",pl=({myProfileView:e,isReimbursementDisabled:i,isZeniAccountsDisabled:t,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:o,isLiteRoleDisabled:f,onClickMenuIcon:$,onAddressClick:T,updateMyProfileLocalData:h,onCancelClick:x,onGetOtp:n,onResendOtp:r,onSaveClick:A,onVerifyOtp:N,onVerifyOtpSuccess:G})=>{const g=te(),M=v.useMemo(()=>ie(i,t,u,p,o,f,y),[i,t,u,p,o,f,y]),[W,J]=v.useState(!1),[H,D]=v.useState(!1),I=fe(),Y=ge(),w=be(Y),S=ye({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:oe(e,w,M,p,o),values:oe(e,w,M,p,o)}),K=e.myProfileLocalData.dateOfBirth!=null&&e.person.user?.birthday!=null&&!e.myProfileLocalData.dateOfBirth.isSame(e.person.user?.birthday)||e.myProfileLocalData.dateOfBirth!=null&&e.person.user?.birthday==null,d=e.myProfileLocalData.phone!==e.person.user?.phone,E=e.addressData?.addressToCreate!=null&&e.person.address!=null&&!xe(z.getFormattedAddress(e.addressData?.addressToCreate),z.getFormattedAddress(e.person.address))||e.addressData?.addressToCreate!=null&&e.person.address==null,c=K||d||E,j=Object.keys(S.formState.errors).length===0,O=we(S.formState.dirtyFields),V=j&&(O||c),B=async(ee,Z)=>{if(ee!=null){const R={...Z},he={...e.myProfileLocalData,phone:R[P].phone,isPhoneVerified:R[P].phone!==e.person.user?.phone?!1:e.person.user?.isPhoneVerified??!1,dateOfBirth:R[P].dateOfBirth!=null?z.zeniDate(R[P].dateOfBirth.toString()):void 0};h(he)}};v.useEffect(()=>{const ee=S.watch((Z,{name:R})=>{R!=null&&Z!=null&&Pe(()=>B(R,Z))});return()=>{ee.unsubscribe()}});const Q=S.handleSubmit(()=>{j&&(e.myProfileLocalData.phone!=null&&(e.myProfileLocalData.isPhoneVerified==null||e.myProfileLocalData.isPhoneVerified===!1)?n(e.myProfileLocalData.phone):A())}),{common:U}=re.getLocalizedStrings();return l.jsxs(Xe,{children:[l.jsx(ve,{showOtpPopup:W,phoneNumberPopupDescription:"show something",showPhoneNumberPopup:H,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.myProfileLocalData.phone,onVerifyOtp:N,onVerifyOtpSuccess:G,setShowOtpPopup:J,onResendOtp:r,setShowPhoneNumberPopup:D,onGetOtp:n}),l.jsx($e,{source:"MyProfileSettingsPage",title:U.settings.title.myProfile,backgroundColor:I.colors.grey4,showBackButton:!1,showMenuIcon:g==="medium-compact"||g==="small",onClickMenuIcon:$}),l.jsxs(Ge,{windowSize:g,children:[l.jsx(Je,{windowSize:g,children:l.jsx(He,{windowSize:g,children:U.settings.infoText.myProfile})}),l.jsx(De,{...S,children:l.jsxs("form",{id:ae(P),onSubmit:Q,children:[l.jsx(Ye,{windowSize:g,children:l.jsx(Ke,{windowSize:g,children:U.settings.subtitle.myProfile})}),l.jsx(Me,{myProfileView:e,isZeniFinopsRolesUser:w,isDisabled:"readonly",isReimbursementDisabled:i,sectionId:P,isZeniAccountsDisabled:t,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:o,isLiteRoleDisabled:f,onAddressClick:T})]})})]}),V?l.jsx(Se,{style:{zIndex:1,paddingTop:s.sp3,paddingBottom:s.sp3},formId:ae(P),helperStyle:{paddingTop:s.sp0,paddingBottom:s.sp0},primaryBtn:{label:U.footer.save,isLoading:e.updateProfileStatus.fetchState==="In-Progress",style:{minWidth:103}},cancelBtn:{label:U.cancel,onClick:x,shouldResetOnCancel:!0,style:{minWidth:103}}}):null]})},ae=e=>`${e}_form`,Xe=m.div`
46
+ `,Ee=m.span``,pe={sectionWidth:new L(343,580,726),subtitleSectionWidth:new L(343,580,1200)},qe={title:new Re("standardMedium","largeMedium")},P="userDetails",pl=({myProfileView:e,isReimbursementDisabled:i,isZeniAccountsDisabled:t,isChargeCardDisabled:u,isTreasuryDisabled:x,isBankingOnlyTenant:p,isCardsOnlyTenant:o,isLiteRoleDisabled:f,onClickMenuIcon:$,onAddressClick:T,updateMyProfileLocalData:h,onCancelClick:y,onGetOtp:n,onResendOtp:r,onSaveClick:A,onVerifyOtp:N,onVerifyOtpSuccess:G})=>{const g=te(),M=v.useMemo(()=>ie(i,t,u,p,o,f,x),[i,t,u,p,o,f,x]),[W,H]=v.useState(!1),[J,D]=v.useState(!1),I=fe(),Y=ge(),w=be(Y),S=xe({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:oe(e,w,M,p,o),values:oe(e,w,M,p,o)}),Q=e.myProfileLocalData.dateOfBirth!=null&&e.person.user?.birthday!=null&&!e.myProfileLocalData.dateOfBirth.isSame(e.person.user?.birthday)||e.myProfileLocalData.dateOfBirth!=null&&e.person.user?.birthday==null,d=e.myProfileLocalData.phone!==e.person.user?.phone,_=e.addressData?.addressToCreate!=null&&e.person.address!=null&&!ye(z.getFormattedAddress(e.addressData?.addressToCreate),z.getFormattedAddress(e.person.address))||e.addressData?.addressToCreate!=null&&e.person.address==null,c=Q||d||_,j=Object.keys(S.formState.errors).length===0,R=we(S.formState.dirtyFields),V=j&&(R||c),B=async(ee,E)=>{if(ee!=null){const C={...E},he={...e.myProfileLocalData,phone:C[P].phone,isPhoneVerified:C[P].phone!==e.person.user?.phone?!1:e.person.user?.isPhoneVerified??!1,dateOfBirth:C[P].dateOfBirth!=null?z.zeniDate(C[P].dateOfBirth.toString()):void 0};h(he)}};v.useEffect(()=>{const ee=S.watch((E,{name:C})=>{C!=null&&E!=null&&Pe(()=>B(C,E))});return()=>{ee.unsubscribe()}});const K=S.handleSubmit(()=>{j&&(e.myProfileLocalData.phone!=null&&(e.myProfileLocalData.isPhoneVerified==null||e.myProfileLocalData.isPhoneVerified===!1)?n(e.myProfileLocalData.phone):A())}),{common:U}=re.getLocalizedStrings();return l.jsxs(Xe,{children:[l.jsx(ve,{showOtpPopup:W,phoneNumberPopupDescription:"show something",showPhoneNumberPopup:J,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.myProfileLocalData.phone,onVerifyOtp:N,onVerifyOtpSuccess:G,setShowOtpPopup:H,onResendOtp:r,setShowPhoneNumberPopup:D,onGetOtp:n}),l.jsx($e,{source:"MyProfileSettingsPage",title:U.settings.title.myProfile,backgroundColor:I.colors.grey4,showBackButton:!1,showMenuIcon:g==="medium-compact"||g==="small",onClickMenuIcon:$}),l.jsxs(Ge,{windowSize:g,children:[l.jsx(He,{windowSize:g,children:l.jsx(Je,{windowSize:g,children:U.settings.infoText.myProfile})}),l.jsx(De,{...S,children:l.jsxs("form",{id:ae(P),onSubmit:K,children:[l.jsx(Ye,{windowSize:g,children:l.jsx(Qe,{windowSize:g,children:U.settings.subtitle.myProfile})}),l.jsx(Me,{myProfileView:e,isZeniFinopsRolesUser:w,isDisabled:"readonly",isReimbursementDisabled:i,sectionId:P,isZeniAccountsDisabled:t,isChargeCardDisabled:u,isTreasuryDisabled:x,isBankingOnlyTenant:p,isCardsOnlyTenant:o,isLiteRoleDisabled:f,onAddressClick:T})]})})]}),V?l.jsx(Se,{style:{zIndex:1,paddingTop:s.sp3,paddingBottom:s.sp3},formId:ae(P),helperStyle:{paddingTop:s.sp0,paddingBottom:s.sp0},primaryBtn:{label:U.footer.save,isLoading:e.updateProfileStatus.fetchState==="In-Progress",style:{minWidth:103}},cancelBtn:{label:U.cancel,onClick:y,shouldResetOnCancel:!0,style:{minWidth:103}}}):null]})},ae=e=>`${e}_form`,Xe=m.div`
47
47
  display: flex;
48
48
  height: 100vh;
49
49
  width: 100%;
@@ -59,13 +59,13 @@ import{e as te,fp as ie,u as fe,Y as ge,fq as be,a as ye,O as xe,l as z,cb as we
59
59
  overflow-y: auto;
60
60
  flex-direction: column;
61
61
  align-items: center;
62
- `,Je=m(me)`
62
+ `,He=m(me)`
63
63
  display: flex;
64
64
  justify-content: center;
65
65
  align-items: center;
66
66
  width: ${e=>pe.subtitleSectionWidth.valuePx(e.windowSize)};
67
67
  margin-bottom: ${s.sp5};
68
- `,He=m.div`
68
+ `,Je=m.div`
69
69
  display: flex;
70
70
  align-items: center;
71
71
 
@@ -76,10 +76,10 @@ import{e as te,fp as ie,u as fe,Y as ge,fq as be,a as ye,O as xe,l as z,cb as we
76
76
  align-items: center;
77
77
  width: ${e=>pe.sectionWidth.valuePx(e.windowSize)};
78
78
  margin-bottom: ${s.sp3};
79
- `,Ke=m.div`
79
+ `,Qe=m.div`
80
80
  display: flex;
81
81
  align-items: center;
82
82
 
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  ${e=>`${qe.title.style(e.windowSize)}`};
85
- `,oe=(e,i,t,u,y)=>{const{classList:p,person:o,managersList:f,manager:$,department:T,myProfileLocalData:h}=e,x=z.hasInvestorBankerLevelAccess(o.userRole!=null?o.userRole.userRoles:[]),n=p.map(r=>({label:r.fullyQualifiedAccountingClassName,value:r.classId,hoverText:r.accountingClassNumber}));return{[P]:{name:{firstName:o.user?.firstName??"",lastName:o.user?.lastName??""},email:o.user?.email??"",role:i?{allOptions:ue.roles,selectedOptions:o.userRole?.userRoles??[]}:void 0,nonZeniRole:i?void 0:{userRole:{selectedRole:ce(o.userRole?.userRoles??[]),allRootRole:de(u,y)},productsByUserRole:ne(o.userRole?.userRoles??[],t)},manager:{allUsers:x?[]:f,selectedUser:Qe(x,$)},department:{allOptions:x?[]:n,selectedOption:x?void 0:n.find(r=>r.value===T?.classId)},dateOfBirth:h.dateOfBirth?.toDate(),phone:h.phone,syncToken:h?.syncToken,isPhoneVerified:h?.isPhoneVerified,otpChallenge:h?.otpChallenge,mailingAddress:e.addressData?.addressToCreate}}},Qe=(e,i)=>{if(!e)return i!=null?i.userId:"no_manager"};export{pl as default,ae as uniqueFormName};
85
+ `,oe=(e,i,t,u,x)=>{const{classList:p,person:o,managersList:f,manager:$,department:T,myProfileLocalData:h}=e,y=z.hasInvestorBankerLevelAccess(o.userRole!=null?o.userRole.userRoles:[]),n=p.map(r=>({label:r.fullyQualifiedAccountingClassName,value:r.classId,hoverText:r.accountingClassNumber}));return{[P]:{name:{firstName:o.user?.firstName??"",lastName:o.user?.lastName??""},email:o.user?.email??"",role:i?{allOptions:ue.roles,selectedOptions:o.userRole?.userRoles??[]}:void 0,nonZeniRole:i?void 0:{userRole:{selectedRole:ce(o.userRole?.userRoles??[]),allRootRole:de(u,x)},productsByUserRole:ne(o.userRole?.userRoles??[],t)},manager:{allUsers:y?[]:f,selectedUser:Ke(y,$)},department:{allOptions:y?[]:n,selectedOption:y?void 0:n.find(r=>r.value===T?.classId)},dateOfBirth:h.dateOfBirth?.toDate(),phone:h.phone,syncToken:h?.syncToken,isPhoneVerified:h?.isPhoneVerified,otpChallenge:h?.otpChallenge,mailingAddress:e.addressData?.addressToCreate}}},Ke=(e,i)=>{if(!e)return i!=null?i.userId:"no_manager"};export{pl as default,ae as uniqueFormName};
@@ -1,16 +1,16 @@
1
- import{u as p,e as m,j as o,$ as u,bp as g,B as x,o as t,a$ as b,eP as k,by as y,bn as C,v}from"./index-LQh-jIrB.js";import{n as l}from"./vendor-rkTZJa59.js";const $=l.div`
1
+ import{u as p,e as m,j as o,_ as u,bp as g,M as x,o as t,a$ as b,eQ as k,by as y,bn as C,v}from"./index-4y_mNX1u.js";import{n as l}from"./vendor-rkTZJa59.js";const j=l.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  flex: 1 1 auto;
5
5
  justify-content: center;
6
6
  max-width: calc(100% - 36px);
7
7
  margin-left: ${t.sp3};
8
- `,j=({backgroundColor:e,pickerValues:n,valueToLabel:a,selectedValue:i,onPickerSelectionChanged:s,isPickerDisabled:c,titleTextStyle:d,styles:h})=>{const r=p();return o.jsx($,{style:h,children:o.jsx(C,{pickerValues:n,valueToLabel:a,selectedValue:i,onPickerSelectionChanged:s,backgroundColor:e,titleTextStyle:d??v.largeRegular,titleColor:r.colors.primary,selectedOptionColor:r.colors.primary,isDisabled:c})})},{common:{navBar:{back:w}}}=x.getLocalizedStrings(),S={navBarHeight:b},f=l.div`
8
+ `,w=({backgroundColor:e,pickerValues:n,valueToLabel:a,selectedValue:i,onPickerSelectionChanged:s,isPickerDisabled:c,titleTextStyle:d,styles:h})=>{const r=p();return o.jsx(j,{style:h,children:o.jsx(C,{pickerValues:n,valueToLabel:a,selectedValue:i,onPickerSelectionChanged:s,backgroundColor:e,titleTextStyle:d??v.largeRegular,titleColor:r.colors.primary,selectedOptionColor:r.colors.primary,isDisabled:c})})},{common:{navBar:{back:$}}}=x.getLocalizedStrings(),S={navBarHeight:b},f=l.div`
9
9
  display: flex;
10
10
  align-items: center;
11
11
  min-height: ${e=>S.navBarHeight.valuePx(e.windowSize)};
12
12
  background-color: ${e=>e.bgColor};
13
- `,B=l.div``,T=l(y)`
13
+ `,T=l.div``,B=l(y)`
14
14
  cursor: pointer;
15
15
  width: ${t.sp4};
16
16
  height: ${t.sp4};
@@ -27,4 +27,4 @@ import{u as p,e as m,j as o,$ as u,bp as g,B as x,o as t,a$ as b,eP as k,by as y
27
27
  &:hover {
28
28
  color: ${e=>e.theme.colors.primary};
29
29
  }
30
- `;function z({picker:e,backgroundColor:n,showMenuIcon:a,rightSideComponent:i,onBackClick:s,onClickMenuIcon:c}){const d=p(),h=m(),r=n??d.colors.grey5;return o.jsxs(f,{bgColor:r,windowSize:h,children:[a?o.jsx(P,{onClick:c,"data-testid":u("nav-bar-menu-button")}):o.jsx(g,{style:{marginTop:t.sp1,height:t.sp4},title:w,enterDelay:600,placement:"bottom",children:o.jsx(T,{"data-testid":u("nav-bar-back-button"),onClick:s})}),o.jsx(j,{...e,backgroundColor:r}),i!=null?o.jsx(B,{children:i}):null]})}export{z as L};
30
+ `;function V({picker:e,backgroundColor:n,showMenuIcon:a,rightSideComponent:i,onBackClick:s,onClickMenuIcon:c}){const d=p(),h=m(),r=n??d.colors.grey5;return o.jsxs(f,{bgColor:r,windowSize:h,children:[a?o.jsx(P,{onClick:c,"data-testid":u("nav-bar-menu-button")}):o.jsx(g,{style:{marginTop:t.sp1,height:t.sp4},title:$,enterDelay:600,placement:"bottom",children:o.jsx(B,{"data-testid":u("nav-bar-back-button"),onClick:s})}),o.jsx(w,{...e,backgroundColor:r}),i!=null?o.jsx(T,{children:i}):null]})}export{V as L};
@@ -1,4 +1,4 @@
1
- import{j as e,o as r,af as i,by as h}from"./index-LQh-jIrB.js";import{j as l,n as s}from"./vendor-rkTZJa59.js";const c=l`
1
+ import{j as e,o as r,af as i,by as h}from"./index-4y_mNX1u.js";import{j as l,n as s}from"./vendor-rkTZJa59.js";const c=l`
2
2
  border-left-style: none;
3
3
  margin-left: -${r.sp3};
4
4
  border-top-right-radius: ${r.sp2};
@@ -1,4 +1,4 @@
1
- import{j as e,$ as v,o as t}from"./index-LQh-jIrB.js";import{n as l}from"./vendor-rkTZJa59.js";const C=l.div`
1
+ import{j as e,_ as v,o as t}from"./index-4y_mNX1u.js";import{n as l}from"./vendor-rkTZJa59.js";const C=l.div`
2
2
  text-align: center;
3
3
  cursor: pointer;
4
4
  `,y=l.div`
@@ -1,4 +1,4 @@
1
- import{e as z,a as A,ca as Y,a2 as Q,j as t,B as T,F as X,a4 as Z,C as i,o as a,a3 as ee,J as _,y as te,go as ae,t as le,cn as O,hB as ne,cf as U,cd as oe,q as l,ao as re,cv as ie,ct as de,cH as se,m as ce,et as me,dj as he,aB as ge,g as V}from"./index-LQh-jIrB.js";import{b as j,n as o,j as be}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const w={width:new i(343,580,726),height:new i(l[6],l[6]),controlHeight:new i(l[6],l[6]),paddingTopBottom:new i(l[2],l[2]),marginRight:new i(l[2],l[2]),labelMarginLeft:new i(l[3],l[4]),labelMarginRight:new i(l[3],l[4]),labelMarginTop:new i(l[2],l[2])},ue={infoLabel:new _("smallRegular","standardRegular")},pe=T.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:b,style:v,toolTip:M,isOptionalLabel:y}){const s=z(),{formState:{errors:d}}=O(),$=ie(d,n.name);return t.jsxs(xe,{windowSize:s,style:v,isDisabled:n.isDisabled!=null,isError:$,children:[t.jsx(de,{isDisabled:n.isDisabled,label:e.label,style:{marginLeft:w.labelMarginLeft.value(s),marginRight:w.labelMarginRight.value(s),marginTop:w.labelMarginTop.value(s),width:e.width??"auto"},showTooltip:M!=null,tooltipTitle:M?.title,toolTipWidth:M?.width,isOptional:y}),t.jsxs(fe,{labelWidth:e.width,children:[t.jsx(se,{...n,style:{...n.style,display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(s),cursor:"inherit"}}),b?.fetchState==="In-Progress"?t.jsx($e,{children:t.jsx(ce,{size:"Standard",start:!0})}):t.jsxs(Se,{children:[t.jsxs(Me,{windowSize:s,isRecommendationVisible:m.length>0,isError:$,children:[h.icon,h.label]}),m.length>0?m.map((u,p)=>t.jsxs(t.Fragment,{children:[t.jsx(me,{isHighlighted:!0,label:{label:u.label},checkBoxField:u.field,defaultChecked:u.field.defaultChecked,isDisabled:u.field.isDisabled!=null},he()),p<m.length-1?t.jsx(ve,{children:pe.common.texts.or}):null]})):null]})]})]})}const xe=o.div`
1
+ import{e as z,a as A,ca as Y,a2 as Q,j as t,M as T,F as X,a4 as Z,C as i,o as a,a3 as ee,J as q,g as te,gp as ae,y as le,cn as J,hC as ne,cf as U,cd as oe,r as l,ao as re,cv as ie,ct as de,cH as se,m as ce,eu as me,dj as he,aB as ge,f as V}from"./index-4y_mNX1u.js";import{b as j,n as o,j as be}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const w={width:new i(343,580,726),height:new i(l[6],l[6]),controlHeight:new i(l[6],l[6]),paddingTopBottom:new i(l[2],l[2]),marginRight:new i(l[2],l[2]),labelMarginLeft:new i(l[3],l[4]),labelMarginRight:new i(l[3],l[4]),labelMarginTop:new i(l[2],l[2])},ue={infoLabel:new q("smallRegular","standardRegular")},pe=T.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:b,style:v,toolTip:M,isOptionalLabel:y}){const s=z(),{formState:{errors:d}}=J(),$=ie(d,n.name);return t.jsxs(fe,{windowSize:s,style:v,isDisabled:n.isDisabled!=null,isError:$,children:[t.jsx(de,{isDisabled:n.isDisabled,label:e.label,style:{marginLeft:w.labelMarginLeft.value(s),marginRight:w.labelMarginRight.value(s),marginTop:w.labelMarginTop.value(s),width:e.width??"auto"},showTooltip:M!=null,tooltipTitle:M?.title,toolTipWidth:M?.width,isOptional:y}),t.jsxs(xe,{labelWidth:e.width,children:[t.jsx(se,{...n,style:{...n.style,display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(s),cursor:"inherit"}}),b?.fetchState==="In-Progress"?t.jsx($e,{children:t.jsx(ce,{size:"Standard",start:!0})}):t.jsxs(Se,{children:[t.jsxs(Me,{windowSize:s,isRecommendationVisible:m.length>0,isError:$,children:[h.icon,h.label]}),m.length>0?m.map((u,p)=>t.jsxs(t.Fragment,{children:[t.jsx(me,{isHighlighted:!0,label:{label:u.label},checkBoxField:u.field,defaultChecked:u.field.defaultChecked,isDisabled:u.field.isDisabled!=null},he()),p<m.length-1?t.jsx(ve,{children:pe.common.texts.or}):null]})):null]})]})]})}const fe=o.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -38,7 +38,7 @@ import{e as z,a as A,ca as Y,a2 as Q,j as t,B as T,F as X,a4 as Z,C as i,o as a,
38
38
  background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?V.importantLight:e.theme.colors.background};
39
39
  }
40
40
  }
41
- `,fe=o.div`
41
+ `,xe=o.div`
42
42
  display: flex;
43
43
  flex-direction: column;
44
44
  width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
@@ -66,7 +66,7 @@ import{e as z,a as A,ca as Y,a2 as Q,j as t,B as T,F as X,a4 as Z,C as i,o as a,
66
66
  gap: ${a.sp3};
67
67
  `,ve=o.div`
68
68
  color: ${e=>e.theme.colors.hero};
69
- `,ye={labelWidth:new i(120,145,160)},Ne=T.getLocalizedStrings(),{common:Ge,vendorReview:{globalReview:W}}=Ne,{sectionTitles:je,labels:R}=Ge,Re=({recommendationFetchState:e,newGlobalMerchantData:n,recommendedGlobalMerchants:h,sectionId:m,isDisabled:b,style:v,fetchRecommendation:M})=>{const y=z(),s=ye.labelWidth.value(y),{formState:d}=O(),$=()=>{n?.globalMerchantName!=null&&n.globalMerchantName.trim().length>2&&d.dirtyFields[m]?.globalMerchantName===!0&&M()},u=[];return h.length>0&&h.forEach((p,D)=>{const G=`recommended${ne(D)}`;u.push({field:{name:k(m,G),defaultChecked:n?.currentSelection===G,isDisabled:b},label:p.globalMerchantName})}),t.jsxs(Ve,{style:v,children:[t.jsx(De,{children:je.vendorDetails}),t.jsxs(Pe,{children:[t.jsx(we,{label:{label:R.name,width:s},textField:{type:"text",name:k(m,"globalMerchantName"),placeholder:U(R.name),defaultValue:n?.globalMerchantName,autoComplete:"off",isDisabled:e.fetchState==="In-Progress"?"readonly":b,registerOptions:{required:!0},onBlur:$,onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),$())}},checkBoxFields:u,fetchState:e,additionalInfo:{label:h.length>0?W.newGlobalMerchant.recommendationText:W.newGlobalMerchant.recommendationInfoText,icon:t.jsx(ke,{children:t.jsx(ze,{})})},style:{width:"auto"}}),t.jsx(oe,{isDisabled:e.fetchState==="In-Progress"?"readonly":b,label:{label:R.websiteURL,width:s},text:{type:"url",name:k(m,"globalMerchantWebsiteUrl"),placeholder:U(R.websiteURL),defaultValue:n?.globalMerchantWebsiteUrl?.toString(),autoComplete:"off",options:{required:!0}},style:{width:"auto"}})]})]})},k=(e,n)=>`${e}.${n}`,Ve=o.div`
69
+ `,ye={labelWidth:new i(120,145,160)},Ne=T.getLocalizedStrings(),{common:Ge,vendorReview:{globalReview:W}}=Ne,{sectionTitles:je,labels:R}=Ge,Re=({recommendationFetchState:e,newGlobalMerchantData:n,recommendedGlobalMerchants:h,sectionId:m,isDisabled:b,style:v,fetchRecommendation:M})=>{const y=z(),s=ye.labelWidth.value(y),{formState:d}=J(),$=()=>{n?.globalMerchantName!=null&&n.globalMerchantName.trim().length>2&&d.dirtyFields[m]?.globalMerchantName===!0&&M()},u=[];return h.length>0&&h.forEach((p,D)=>{const G=`recommended${ne(D)}`;u.push({field:{name:k(m,G),defaultChecked:n?.currentSelection===G,isDisabled:b},label:p.globalMerchantName})}),t.jsxs(Ve,{style:v,children:[t.jsx(De,{children:je.vendorDetails}),t.jsxs(Pe,{children:[t.jsx(we,{label:{label:R.name,width:s},textField:{type:"text",name:k(m,"globalMerchantName"),placeholder:U(R.name),defaultValue:n?.globalMerchantName,autoComplete:"off",isDisabled:e.fetchState==="In-Progress"?"readonly":b,registerOptions:{required:!0},onBlur:$,onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),$())}},checkBoxFields:u,fetchState:e,additionalInfo:{label:h.length>0?W.newGlobalMerchant.recommendationText:W.newGlobalMerchant.recommendationInfoText,icon:t.jsx(ke,{children:t.jsx(ze,{})})},style:{width:"auto"}}),t.jsx(oe,{isDisabled:e.fetchState==="In-Progress"?"readonly":b,label:{label:R.websiteURL,width:s},text:{type:"url",name:k(m,"globalMerchantWebsiteUrl"),placeholder:U(R.websiteURL),defaultValue:n?.globalMerchantWebsiteUrl?.toString(),autoComplete:"off",options:{required:!0}},style:{width:"auto"}})]})]})},k=(e,n)=>`${e}.${n}`,Ve=o.div`
70
70
  display: flex;
71
71
  flex-direction: column;
72
72
  padding-top: ${a.sp3};
@@ -94,7 +94,7 @@ import{e as z,a as A,ca as Y,a2 as Q,j as t,B as T,F as X,a4 as Z,C as i,o as a,
94
94
  color: ${e=>e.theme.colors.brandColorJade};
95
95
  width: ${a.sp3};
96
96
  height: ${a.sp3};
97
- `,S={containerPaddingLeft:new i(l[3],l[3],l[6]),containerPaddingRight:new i(l[3],l[3],l[8]),navbarContainerPaddingTop:new i(l[2],l[3]),navbarContainerPaddingBottom:new i(l[4],l[5]),sectionTitleMarginTop:new i(0,l[3]),sectionTitleMarginLeft:new i(l[3],0)},Te={sectionTitle:new _("h6Regular","h5Regular")},B="newGlobalMerchantPage",f="newGlobalMerchant",Fe=T.getLocalizedStrings(),{common:{footer:I,sectionTitles:Ce},vendorReview:{globalReview:Le}}=Fe,nt=({globalMerchantView:e,analytics:n,tenantMerchant:h,isDisabled:m,updateCreateGlobalMerchantLocalData:b,fetchRecommendation:v,onBackClick:M,onSaveClick:y})=>{const s=z(),d=A({mode:"all",reValidateMode:"onChange",defaultValues:j.useMemo(()=>q(e),[e]),values:j.useMemo(()=>q(e),[e]),resetOptions:{keepDefaultValues:!0,keepDirtyValues:!0}}),$=()=>{if(e.newGlobalMerchantData!=null){const r=h?.tenantName??null,g=e.newGlobalMerchantData.globalMerchantName,c=e.recommendedGlobalMerchants[0]?.globalMerchantName??null;n.trackVendorReviewNewVendorRequested({reviewSource:"global_review",newRequestedVendorName:g,tenantName:r,newRequestedVendorNameSource:r!=null?"text_edit":"new_vendor_button",isVendorNameRecommendationSelected:c===g,recommendedVendorName:c,recommendedVendorReason:e.recommendedGlobalMerchants[0]?.reason??null})}v()},u=()=>{if(e.newGlobalMerchantData!=null){const r=h?.tenantName??null,g=e.newGlobalMerchantData.globalMerchantName,c=e.recommendedGlobalMerchants[0]?.globalMerchantName??null;n.trackVendorReviewNewVendorSaved({reviewSource:"global_review",saveRequestedVendorName:g,tenantName:r,recommendedVendorName:c,saveRequestedVendorSource:r!=null?"text_edit":"new_vendor_button",recommendedVendorReason:e.recommendedGlobalMerchants[0]?.reason??null,isVendorNameRecommendationSelected:c===g})}y()},p=()=>{e.newGlobalMerchantData!=null&&n.trackVendorReviewNewVendorCanceled({reviewSource:"global_review",newRequestedVendorName:e.newGlobalMerchantData.globalMerchantName,tenantName:h?.tenantName??null,recommendedVendorName:e.recommendedGlobalMerchants[0]?.globalMerchantName??null,recommendedVendorReason:e.recommendedGlobalMerchants[0]?.reason??null}),M()},D=()=>{u()},G=async(r,g)=>{const{newGlobalMerchant:{globalMerchantName:c,recommendedFirst:C,recommendedSecond:L,globalMerchantWebsiteUrl:K}}=g;if(r.includes("globalMerchantName")||r.includes("globalMerchantWebsiteUrl")){let P=null;c===e.recommendedGlobalMerchants[0]?.globalMerchantName?P="recommendedFirst":c===e.recommendedGlobalMerchants[1]?.globalMerchantName&&(P="recommendedSecond"),b(c,P,K)}else(r.includes("recommendedFirst")||r.includes("recommendedSecond"))&&(r.includes("recommendedFirst")&&C&&e.recommendedGlobalMerchants[0]?.globalMerchantName?(b(e.recommendedGlobalMerchants[0]?.globalMerchantName,"recommendedFirst",e.recommendedGlobalMerchants[0]?.websiteUrl?.toString()),e.recommendedGlobalMerchants[0]?.websiteUrl!=null&&d.setValue(`${f}.globalMerchantWebsiteUrl`,e.recommendedGlobalMerchants[0].websiteUrl.toString())):r.includes("recommendedSecond")&&L&&e.recommendedGlobalMerchants[1]?.globalMerchantName?(b(e.recommendedGlobalMerchants[1].globalMerchantName,"recommendedSecond",e.recommendedGlobalMerchants[1].websiteUrl?.toString()),e.recommendedGlobalMerchants[1]?.websiteUrl!=null&&d.setValue(`${f}.globalMerchantWebsiteUrl`,e.recommendedGlobalMerchants[1].websiteUrl.toString())):!C&&!L&&(d.resetField(`${f}.globalMerchantName`),d.resetField(`${f}.globalMerchantWebsiteUrl`)))};j.useEffect(()=>{const r=d.watch((g,{name:c})=>{c!=null&&g!=null&&Y(()=>G(c,g))});return()=>{r.unsubscribe()}});const{newGlobalMerchantData:x,fetchState:N,error:H,recommendedGlobalMerchants:J}=e,F=Q(N);return j.useEffect(()=>{F==="In-Progress"&&N==="Completed"&&x?.globalMerchantName!=null&&(d.resetField(`${f}.globalMerchantName`,{defaultValue:x.globalMerchantName}),e.recommendedGlobalMerchants.forEach(r=>{r.globalMerchantName===x.globalMerchantName&&r.websiteUrl!=null&&d.setValue(`${f}.globalMerchantWebsiteUrl`,r.websiteUrl.toString())}))},[F,N,d,x?.globalMerchantName,x?.globalMerchantWebsiteUrl,e.recommendedGlobalMerchants]),t.jsxs(Ue,{windowSize:s,children:[t.jsxs(We,{windowSize:s,children:[t.jsx(Ie,{children:t.jsx(Ee,{onClick:p})}),t.jsx(qe,{windowSize:s,children:Ce.newVendor}),t.jsx(_e,{children:t.jsxs(Oe,{children:[t.jsx(Je,{children:t.jsx(Ke,{})}),t.jsx(He,{children:Le.newGlobalMerchant.tip})]})})]}),t.jsx(Be,{children:t.jsx(X,{...d,children:t.jsx("form",{id:E(B),onSubmit:d.handleSubmit(D),children:t.jsx(Re,{sectionId:f,isDisabled:x?.status.fetchState==="In-Progress"?"readonly":m,newGlobalMerchantData:x,recommendationFetchState:{fetchState:N,error:H},recommendedGlobalMerchants:J,fetchRecommendation:$})})})}),t.jsx(Z,{formId:E(B),primaryBtn:{label:I.save,isLoading:x?.status.fetchState==="In-Progress",isDisabled:N==="In-Progress"},cancelBtn:{label:I.cancel,shouldResetOnCancel:!0,onClick:p}})]})},E=e=>`${e}_form`,q=e=>{const{newGlobalMerchantData:n}=e;return{[f]:{globalMerchantName:n?.globalMerchantName??"",globalMerchantWebsiteUrl:n?.globalMerchantWebsiteUrl?.toString(),recommendedFirst:n?.currentSelection==="recommendedFirst",recommendedSecond:n?.currentSelection==="recommendedSecond",newGlobalMerchantId:n?.newGlobalMerchantId}}},Ue=o.div`
97
+ `,S={containerPaddingLeft:new i(l[3],l[3],l[6]),containerPaddingRight:new i(l[3],l[3],l[8]),navbarContainerPaddingTop:new i(l[2],l[3]),navbarContainerPaddingBottom:new i(l[4],l[5]),sectionTitleMarginTop:new i(0,l[3]),sectionTitleMarginLeft:new i(l[3],0)},Te={sectionTitle:new q("h6Regular","h5Regular")},I="newGlobalMerchantPage",x="newGlobalMerchant",Ce=T.getLocalizedStrings(),{common:{footer:B,sectionTitles:Fe},vendorReview:{globalReview:Le}}=Ce,nt=({globalMerchantView:e,analytics:n,tenantMerchant:h,isDisabled:m,updateCreateGlobalMerchantLocalData:b,fetchRecommendation:v,onBackClick:M,onSaveClick:y})=>{const s=z(),d=A({mode:"all",reValidateMode:"onChange",defaultValues:j.useMemo(()=>_(e),[e]),values:j.useMemo(()=>_(e),[e]),resetOptions:{keepDefaultValues:!0,keepDirtyValues:!0}}),$=()=>{if(e.newGlobalMerchantData!=null){const r=h?.tenantName??null,g=e.newGlobalMerchantData.globalMerchantName,c=e.recommendedGlobalMerchants[0]?.globalMerchantName??null;n.trackVendorReviewNewVendorRequested({reviewSource:"global_review",newRequestedVendorName:g,tenantName:r,newRequestedVendorNameSource:r!=null?"text_edit":"new_vendor_button",isVendorNameRecommendationSelected:c===g,recommendedVendorName:c,recommendedVendorReason:e.recommendedGlobalMerchants[0]?.reason??null})}v()},u=()=>{if(e.newGlobalMerchantData!=null){const r=h?.tenantName??null,g=e.newGlobalMerchantData.globalMerchantName,c=e.recommendedGlobalMerchants[0]?.globalMerchantName??null;n.trackVendorReviewNewVendorSaved({reviewSource:"global_review",saveRequestedVendorName:g,tenantName:r,recommendedVendorName:c,saveRequestedVendorSource:r!=null?"text_edit":"new_vendor_button",recommendedVendorReason:e.recommendedGlobalMerchants[0]?.reason??null,isVendorNameRecommendationSelected:c===g})}y()},p=()=>{e.newGlobalMerchantData!=null&&n.trackVendorReviewNewVendorCanceled({reviewSource:"global_review",newRequestedVendorName:e.newGlobalMerchantData.globalMerchantName,tenantName:h?.tenantName??null,recommendedVendorName:e.recommendedGlobalMerchants[0]?.globalMerchantName??null,recommendedVendorReason:e.recommendedGlobalMerchants[0]?.reason??null}),M()},D=()=>{u()},G=async(r,g)=>{const{newGlobalMerchant:{globalMerchantName:c,recommendedFirst:F,recommendedSecond:L,globalMerchantWebsiteUrl:K}}=g;if(r.includes("globalMerchantName")||r.includes("globalMerchantWebsiteUrl")){let P=null;c===e.recommendedGlobalMerchants[0]?.globalMerchantName?P="recommendedFirst":c===e.recommendedGlobalMerchants[1]?.globalMerchantName&&(P="recommendedSecond"),b(c,P,K)}else(r.includes("recommendedFirst")||r.includes("recommendedSecond"))&&(r.includes("recommendedFirst")&&F&&e.recommendedGlobalMerchants[0]?.globalMerchantName?(b(e.recommendedGlobalMerchants[0]?.globalMerchantName,"recommendedFirst",e.recommendedGlobalMerchants[0]?.websiteUrl?.toString()),e.recommendedGlobalMerchants[0]?.websiteUrl!=null&&d.setValue(`${x}.globalMerchantWebsiteUrl`,e.recommendedGlobalMerchants[0].websiteUrl.toString())):r.includes("recommendedSecond")&&L&&e.recommendedGlobalMerchants[1]?.globalMerchantName?(b(e.recommendedGlobalMerchants[1].globalMerchantName,"recommendedSecond",e.recommendedGlobalMerchants[1].websiteUrl?.toString()),e.recommendedGlobalMerchants[1]?.websiteUrl!=null&&d.setValue(`${x}.globalMerchantWebsiteUrl`,e.recommendedGlobalMerchants[1].websiteUrl.toString())):!F&&!L&&(d.resetField(`${x}.globalMerchantName`),d.resetField(`${x}.globalMerchantWebsiteUrl`)))};j.useEffect(()=>{const r=d.watch((g,{name:c})=>{c!=null&&g!=null&&Y(()=>G(c,g))});return()=>{r.unsubscribe()}});const{newGlobalMerchantData:f,fetchState:N,error:O,recommendedGlobalMerchants:H}=e,C=Q(N);return j.useEffect(()=>{C==="In-Progress"&&N==="Completed"&&f?.globalMerchantName!=null&&(d.resetField(`${x}.globalMerchantName`,{defaultValue:f.globalMerchantName}),e.recommendedGlobalMerchants.forEach(r=>{r.globalMerchantName===f.globalMerchantName&&r.websiteUrl!=null&&d.setValue(`${x}.globalMerchantWebsiteUrl`,r.websiteUrl.toString())}))},[C,N,d,f?.globalMerchantName,f?.globalMerchantWebsiteUrl,e.recommendedGlobalMerchants]),t.jsxs(Ue,{windowSize:s,children:[t.jsxs(We,{windowSize:s,children:[t.jsx(Be,{children:t.jsx(Ee,{onClick:p})}),t.jsx(_e,{windowSize:s,children:Fe.newVendor}),t.jsx(qe,{children:t.jsxs(Je,{children:[t.jsx(He,{children:t.jsx(Ke,{})}),t.jsx(Oe,{children:Le.newGlobalMerchant.tip})]})})]}),t.jsx(Ie,{children:t.jsx(X,{...d,children:t.jsx("form",{id:E(I),onSubmit:d.handleSubmit(D),children:t.jsx(Re,{sectionId:x,isDisabled:f?.status.fetchState==="In-Progress"?"readonly":m,newGlobalMerchantData:f,recommendationFetchState:{fetchState:N,error:O},recommendedGlobalMerchants:H,fetchRecommendation:$})})})}),t.jsx(Z,{formId:E(I),primaryBtn:{label:B.save,isLoading:f?.status.fetchState==="In-Progress",isDisabled:N==="In-Progress"},cancelBtn:{label:B.cancel,shouldResetOnCancel:!0,onClick:p}})]})},E=e=>`${e}_form`,_=e=>{const{newGlobalMerchantData:n}=e;return{[x]:{globalMerchantName:n?.globalMerchantName??"",globalMerchantWebsiteUrl:n?.globalMerchantWebsiteUrl?.toString(),recommendedFirst:n?.currentSelection==="recommendedFirst",recommendedSecond:n?.currentSelection==="recommendedSecond",newGlobalMerchantId:n?.newGlobalMerchantId}}},Ue=o.div`
98
98
  display: flex;
99
99
  flex: 1 1 auto;
100
100
  min-height: 100%;
@@ -112,9 +112,9 @@ import{e as z,a as A,ca as Y,a2 as Q,j as t,B as T,F as X,a4 as Z,C as i,o as a,
112
112
  z-index: 2;
113
113
  padding-top: ${e=>S.navbarContainerPaddingTop.valuePx(e.windowSize)};
114
114
  padding-bottom: ${e=>S.navbarContainerPaddingBottom.valuePx(e.windowSize)};
115
- `,Be=o.div`
116
- flex: 1;
117
115
  `,Ie=o.div`
116
+ flex: 1;
117
+ `,Be=o.div`
118
118
  display: flex;
119
119
  width: 100%;
120
120
  justify-content: flex-end;
@@ -128,28 +128,28 @@ import{e as z,a as A,ca as Y,a2 as Q,j as t,B as T,F as X,a4 as Z,C as i,o as a,
128
128
  &:hover {
129
129
  color: ${e=>e.theme.colors.primary};
130
130
  }
131
- `,qe=o(te)`
131
+ `,_e=o(te)`
132
132
  display: flex;
133
133
  width: 100%;
134
134
  color: ${e=>e.theme.colors.primary};
135
135
  margin-left: ${e=>S.sectionTitleMarginLeft.valuePx(e.windowSize)};
136
136
  margin-top: ${e=>S.sectionTitleMarginTop.valuePx(e.windowSize)};
137
137
  ${e=>`${Te.sectionTitle.style(e.windowSize)}`};
138
- `,_e=o.div`
138
+ `,qe=o.div`
139
139
  display: flex;
140
140
  width: 100%;
141
141
  background-color: transparent;
142
142
  border: 1px solid ${e=>e.theme.colors.grey3};
143
143
  border-radius: ${a.sp2};
144
144
  margin-top: ${a.sp3};
145
- `,Oe=o.div`
145
+ `,Je=o.div`
146
146
  display: flex;
147
147
  padding: ${a.sp3} ${a.sp4} ${a.sp3} ${a.sp4};
148
- `,He=o(le)`
148
+ `,Oe=o(le)`
149
149
  display: flex;
150
150
  flex-grow: 1;
151
151
  color: ${e=>e.theme.colors.hero};
152
- `,Je=o.div`
152
+ `,He=o.div`
153
153
  display: flex;
154
154
  align-items: center;
155
155
  margin-right: ${a.sp2};
@@ -1,4 +1,4 @@
1
- import{e as l,j as t,g as s,o as a,t as r,C as m,u as o}from"./index-LQh-jIrB.js";import{n as i,b as h}from"./vendor-rkTZJa59.js";const v=e=>h.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h.createElement("path",{fill:"#3E4043",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),h.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#3E4043"})),c=e=>h.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h.createElement("path",{fill:"#E9ECF0",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),h.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#E9ECF0"})),d={chartMinHeight:new m(288,360)},z=i.div`
1
+ import{e as l,j as t,f as s,o as h,y as r,C as m,u as o}from"./index-4y_mNX1u.js";import{n as i,b as a}from"./vendor-rkTZJa59.js";const v=e=>a.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"#3E4043",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),a.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#3E4043"})),c=e=>a.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"#E9ECF0",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),a.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#E9ECF0"})),d={chartMinHeight:new m(288,360)},z=i.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -10,7 +10,7 @@ import{e as l,j as t,g as s,o as a,t as r,C as m,u as o}from"./index-LQh-jIrB.js
10
10
  flex-direction: row;
11
11
  align-items: center;
12
12
  justify-content: center;
13
- margin-bottom: ${a.sp8};
13
+ margin-bottom: ${h.sp8};
14
14
  `,x=i.div`
15
15
  display: flex;
16
16
  width: 100%;
@@ -22,5 +22,5 @@ import{e as l,j as t,g as s,o as a,t as r,C as m,u as o}from"./index-LQh-jIrB.js
22
22
  flex-direction: column;
23
23
  `,p=i(r)`
24
24
  color: ${s.alert};
25
- margin: ${a.sp3} ${a.sp0} ${a.sp5} ${a.sp0};
25
+ margin: ${h.sp3} ${h.sp0} ${h.sp5} ${h.sp0};
26
26
  `;function f(){switch(o().mode){case"light":return t.jsx(c,{width:"100%",height:"100%",preserveAspectRatio:"none"});case"dark":default:return t.jsx(v,{width:"100%",height:"100%",preserveAspectRatio:"none"})}}function E({title:e}){const n=l();return t.jsxs(z,{children:[e!=null?t.jsx(p,{children:e}):null,t.jsx(w,{children:t.jsx(x,{windowSize:n,children:t.jsx(f,{})})})]})}export{E as C};
@@ -1,4 +1,4 @@
1
- import{j as e,o as t,u as s}from"./index-LQh-jIrB.js";import{n as i}from"./vendor-rkTZJa59.js";import{r as n,o}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const r=i.div`
1
+ import{j as e,o as t,u as s}from"./index-4y_mNX1u.js";import{n as i}from"./vendor-rkTZJa59.js";import{r as n,o}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const r=i.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  padding: ${t.sp8} ${t.sp0} ${t.sp8} ${t.sp0};
@@ -1,4 +1,4 @@
1
- import{j as o,B as i,bv as s,c7 as l,t as c,g as a,n as d}from"./index-LQh-jIrB.js";import{n as t}from"./vendor-rkTZJa59.js";import{a as h}from"./ZeniCopyright-BUctH39C-C_feHk3O.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const g=t.div`
1
+ import{j as o,M as i,bv as s,c7 as l,y as c,f as a,B as d}from"./index-4y_mNX1u.js";import{n as t}from"./vendor-rkTZJa59.js";import{a as h}from"./ZeniCopyright-BiSq0yhI-CQbT1WRc.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const g=t.div`
2
2
  width: 100%;
3
3
  height: 100vh;
4
4
  position: relative;
@@ -15,7 +15,7 @@ import{j as o,B as i,bv as s,c7 as l,t as c,g as a,n as d}from"./index-LQh-jIrB.
15
15
  `,p=t(d)`
16
16
  height: 74px;
17
17
  color: ${e=>e.theme.colors.grey1};
18
- `,u=t.div`
18
+ `,f=t.div`
19
19
  top: 0;
20
20
  left: 0;
21
21
  width: 100%;
@@ -25,7 +25,7 @@ import{j as o,B as i,bv as s,c7 as l,t as c,g as a,n as d}from"./index-LQh-jIrB.
25
25
  flex-direction: column;
26
26
  justify-content: center;
27
27
  align-items: center;
28
- `,f=t(l)`
28
+ `,u=t(l)`
29
29
  color: ${e=>e.theme.colors.primary};
30
30
  `,j=t(c)`
31
31
  color: ${e=>e.theme.colors.hero};
@@ -43,4 +43,4 @@ import{j as o,B as i,bv as s,c7 as l,t as c,g as a,n as d}from"./index-LQh-jIrB.
43
43
  text-decoration: underline;
44
44
  cursor: pointer;
45
45
  }
46
- `;function w({onGoBack:e,onGoHome:r}){return o.jsxs(g,{children:[o.jsx(v,{children:"404"}),o.jsxs(u,{children:[o.jsx(x,{}),o.jsxs(m,{children:[o.jsx(f,{children:i.getLocalizedStrings().notFoundPage.cantFindText}),o.jsxs(j,{children:[i.getLocalizedStrings().notFoundPage.pleaseText,o.jsx(n,{onClick:e,children:i.getLocalizedStrings().notFoundPage.goBackText}),i.getLocalizedStrings().notFoundPage.startOverText,o.jsx(n,{onClick:r,children:i.getLocalizedStrings().notFoundPage.homePageText})]})]}),o.jsx(p,{children:o.jsx(h,{})})]})]})}export{w as default};
46
+ `;function T({onGoBack:e,onGoHome:r}){return o.jsxs(g,{children:[o.jsx(v,{children:"404"}),o.jsxs(f,{children:[o.jsx(x,{}),o.jsxs(m,{children:[o.jsx(u,{children:i.getLocalizedStrings().notFoundPage.cantFindText}),o.jsxs(j,{children:[i.getLocalizedStrings().notFoundPage.pleaseText,o.jsx(n,{onClick:e,children:i.getLocalizedStrings().notFoundPage.goBackText}),i.getLocalizedStrings().notFoundPage.startOverText,o.jsx(n,{onClick:r,children:i.getLocalizedStrings().notFoundPage.homePageText})]})]}),o.jsx(p,{children:o.jsx(h,{})})]})]})}export{T as default};
@@ -1,4 +1,4 @@
1
- import{j as t,fE as ne,o as i,bg as se,B as I,a6 as re,u as X,e as Y,a as le,ca as ae,l as P,aX as ce,F as de,b as w,a4 as pe,C as M,f9 as me,fF as ue,eG as he,fG as fe,fH as ge,af as xe,q as S,ao as J,w as K,t as Q,n as $e}from"./index-LQh-jIrB.js";import{n as o,b as E}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:be}=I.getLocalizedStrings(),U={notePadding:new M(S[3],S[4]),noteGap:new M(S[0],6)},z=(e,n)=>`${e}.${n}`,ye=o.div`
1
+ import{j as t,fF as ne,o as i,bg as se,M as I,a6 as re,u as Y,e as J,a as le,ca as ae,l as P,aX as ce,F as de,b as w,a4 as pe,C as B,fa as me,fG as ue,eH as he,fH as fe,fI as ge,af as xe,r as S,ao as K,w as Q,y as W,B as $e}from"./index-4y_mNX1u.js";import{n as o,b as E}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:ye}=I.getLocalizedStrings(),U={notePadding:new B(S[3],S[4]),noteGap:new B(S[0],6)},M=(e,n)=>`${e}.${n}`,be=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${i.sp3};
@@ -6,7 +6,7 @@ import{j as t,fE as ne,o as i,bg as se,B as I,a6 as re,u as X,e as Y,a as le,ca
6
6
  display: flex;
7
7
  justify-content: space-between;
8
8
  align-items: center;
9
- `,we=o(J)`
9
+ `,we=o(K)`
10
10
  color: ${e=>e.theme.colors.primary};
11
11
  `,Se=o.div`
12
12
  border-radius: ${i.sp2};
@@ -57,9 +57,9 @@ import{j as t,fE as ne,o as i,bg as se,B as I,a6 as re,u as X,e as Y,a as le,ca
57
57
  }
58
58
  `,F=o.div`
59
59
  flex: 1;
60
- `,q=o(Q)`
60
+ `,A=o(W)`
61
61
  color: ${e=>e.theme.colors.hero};
62
- `,Ee=o(K)`
62
+ `,Ee=o(Q)`
63
63
  color: ${e=>e.theme.colors.primary};
64
64
  flex: 1;
65
65
  width: 120px;
@@ -74,7 +74,7 @@ import{j as t,fE as ne,o as i,bg as se,B as I,a6 as re,u as X,e as Y,a as le,ca
74
74
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
75
75
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
76
76
  gap: ${e=>U.noteGap.valuePx(e.windowSize)};
77
- `,Ce=o.div``,Pe=o.span``;function Oe({sectionId:e,monthEndInsightsNotificationLocalData:n,monthEndInsightsNotificationSettings:s,managersList:a,allUsers:f,classList:m,controllersList:x}){const u=X(),c=Y(),{sectionTitle:$,monthEndInsights:l,mode:b}=be.settings.notifications,h=x[0],O=x.slice(1).reduce((d,r)=>d.concat(`${r.email},`),"");return t.jsxs(ye,{children:[t.jsxs(je,{children:[t.jsx(we,{children:$.monthEndInsights}),t.jsx(Ce,{children:t.jsx(Ee,{children:b.email})})]}),t.jsxs(Se,{children:[t.jsxs(ve,{disabled:s.enabled==null,children:[t.jsx(q,{children:l.labels.notifyMe}),t.jsx(he,{defaultChecked:n.notify,checkBoxValue:z(e,"notify"),name:z(e,"notify"),checkedIconColor:s.enabled==null?u.colors.grey2:void 0})]}),t.jsx(w,{controller:s.enabled!=null,children:t.jsxs(Ie,{children:[t.jsx(F,{children:t.jsx(q,{children:l.labels.notifyOthers})}),t.jsx(F,{children:t.jsx(fe,{hideEmailTooltip:!1,showBackgroundColorIfHasAnySelectedOption:!1,shouldHaveBackgroundColor:!1,value:{allUsers:f,selectedUsers:f.filter(d=>n.recipientEmailIds.includes(d.email)),allNonUsers:[],selectedNonUsers:[]},hideMultiValueOnBlur:!1,valueToSubtitle:d=>{const r=a.findIndex(p=>p.userId===d),y=[];if(r!==-1){const p=a[r],j=ge(p.userRole.userRoles);j.length>0&&y.push(j);const N=m.find(L=>L.classId===p.userRole.accountingClassIDs[0]);return N!=null&&y.push(N.className),y}else return[]},name:z(e,"recipientEmailIds"),placeholderLabel:l.userFieldPlaceholder,customStyleConfig:{valueContainer:(d,{selectProps:r})=>({justifyContent:r.menuIsOpen===!1?"flex-end":"flex-start"}),input:(d,{selectProps:r})=>({display:r.menuIsOpen===!1?"none":"inline-grid"}),control:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),container:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),multiValue:(d,{selectProps:r})=>({outline:r.menuIsOpen===!1?"unset":`1px solid ${u.colors.primary}`})}})})]})}),t.jsx(w,{controller:s.enabled==null,children:t.jsxs(ke,{windowSize:c,children:[l.stopReceivingEmailsText,h?t.jsxs(Ne,{href:`mailto:${h.email}?cc=${O}&subject=${encodeURIComponent(l.stopReceivingMonthEndInsightsSubject)}`,children:[t.jsx(Pe,{children:`${h.firstName} ${h.lastName}`}),t.jsx(xe,{className:"arrowIcon"})]}):null]})})]})]})}const A=(e,n,s)=>`${e}.${n}.${s}`,Le=o.div`
77
+ `,Ce=o.div``,Pe=o.span``;function Oe({sectionId:e,monthEndInsightsNotificationLocalData:n,monthEndInsightsNotificationSettings:s,managersList:a,allUsers:f,classList:m,controllersList:x}){const u=Y(),c=J(),{sectionTitle:$,monthEndInsights:l,mode:y}=ye.settings.notifications,h=x[0],O=x.slice(1).reduce((d,r)=>d.concat(`${r.email},`),"");return t.jsxs(be,{children:[t.jsxs(je,{children:[t.jsx(we,{children:$.monthEndInsights}),t.jsx(Ce,{children:t.jsx(Ee,{children:y.email})})]}),t.jsxs(Se,{children:[t.jsxs(ve,{disabled:s.enabled==null,children:[t.jsx(A,{children:l.labels.notifyMe}),t.jsx(he,{defaultChecked:n.notify,checkBoxValue:M(e,"notify"),name:M(e,"notify"),checkedIconColor:s.enabled==null?u.colors.grey2:void 0})]}),t.jsx(w,{controller:s.enabled!=null,children:t.jsxs(Ie,{children:[t.jsx(F,{children:t.jsx(A,{children:l.labels.notifyOthers})}),t.jsx(F,{children:t.jsx(fe,{hideEmailTooltip:!1,showBackgroundColorIfHasAnySelectedOption:!1,shouldHaveBackgroundColor:!1,value:{allUsers:f,selectedUsers:f.filter(d=>n.recipientEmailIds.includes(d.email)),allNonUsers:[],selectedNonUsers:[]},hideMultiValueOnBlur:!1,valueToSubtitle:d=>{const r=a.findIndex(p=>p.userId===d),b=[];if(r!==-1){const p=a[r],j=ge(p.userRole.userRoles);j.length>0&&b.push(j);const N=m.find(L=>L.classId===p.userRole.accountingClassIDs[0]);return N!=null&&b.push(N.className),b}else return[]},name:M(e,"recipientEmailIds"),placeholderLabel:l.userFieldPlaceholder,customStyleConfig:{valueContainer:(d,{selectProps:r})=>({justifyContent:r.menuIsOpen===!1?"flex-end":"flex-start"}),input:(d,{selectProps:r})=>({display:r.menuIsOpen===!1?"none":"inline-grid"}),control:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),container:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),multiValue:(d,{selectProps:r})=>({outline:r.menuIsOpen===!1?"unset":`1px solid ${u.colors.primary}`})}})})]})}),t.jsx(w,{controller:s.enabled==null,children:t.jsxs(ke,{windowSize:c,children:[l.stopReceivingEmailsText,h?t.jsxs(Ne,{href:`mailto:${h.email}?cc=${O}&subject=${encodeURIComponent(l.stopReceivingMonthEndInsightsSubject)}`,children:[t.jsx(Pe,{children:`${h.firstName} ${h.lastName}`}),t.jsx(xe,{className:"arrowIcon"})]}):null]})})]})]})}const D=(e,n,s)=>`${e}.${n}.${s}`,Le=o.div`
78
78
  display: flex;
79
79
  flex-direction: column;
80
80
  row-gap: ${i.sp3};
@@ -82,23 +82,23 @@ import{j as t,fE as ne,o as i,bg as se,B as I,a6 as re,u as X,e as Y,a as le,ca
82
82
  display: flex;
83
83
  justify-content: space-between;
84
84
  align-items: center;
85
- `,ze=o(J)`
85
+ `,Me=o(K)`
86
86
  color: ${e=>e.theme.colors.primary};
87
- `,D=o.div`
87
+ `,q=o.div`
88
88
  display: flex;
89
- `,V=o(K)`
89
+ `,V=o(Q)`
90
90
  color: ${e=>e.theme.colors.primary};
91
91
  flex: 1;
92
92
  width: 120px;
93
93
  text-align: center;
94
- `,Be=o.div`
94
+ `,ze=o.div`
95
95
  width: 120px;
96
96
  display: flex;
97
- `,Me=o.div`
97
+ `,Be=o.div`
98
98
  width: 120px;
99
99
  display: flex;
100
100
  padding-right: 12px;
101
- `,Te=o(Q)`
101
+ `,Te=o(W)`
102
102
  color: ${e=>e.theme.colors.hero};
103
103
  `,Ue=o.div`
104
104
  border-radius: ${i.sp2};
@@ -118,7 +118,7 @@ import{j as t,fE as ne,o as i,bg as se,B as I,a6 as re,u as X,e as Y,a as le,ca
118
118
  border-bottom-left-radius: ${e=>e.lastElement===!0?i.sp2:i.sp0};
119
119
  border-bottom-right-radius: ${e=>e.lastElement===!0?i.sp2:i.sp0};
120
120
  }
121
- `;function qe({sectionId:e,remindersLocalData:n,reminderNotificationSettings:s}){const{texts:a,settings:f}=I.getLocalizedStrings().common,{notifications:m}=f,x=P.NOTIFICATION_MODES.slice(0,1),u=P.REMINDER_NOTIFICATION_TYPES.filter(c=>s[c]!=null);return t.jsxs(Le,{children:[t.jsxs(Re,{children:[t.jsx(ze,{children:m.sectionTitle.reminders}),t.jsxs(D,{children:[t.jsx(V,{children:a.frequency}),t.jsx(V,{children:m.mode.email})]})]}),t.jsx(Ue,{children:u.map((c,$)=>t.jsxs(Fe,{firstElement:$===0,lastElement:$===u.length-1,children:[t.jsx(Te,{children:m.reminders[c]}),t.jsxs(D,{children:[t.jsx(Me,{children:t.jsx(me,{defaultValue:{allOptions:m.reminderFrequencyOptions,selectedOption:n[c].frequency},name:A(e,c,"frequency")})}),t.jsx(Be,{children:t.jsx(ue,{mode:"always_on",checkBoxes:x.map(l=>({label:"",value:l,defaultChecked:n[c].preferredMode.includes(l),groupLabel:!1})),name:A(e,c,"preferredMode"),style:{flexDirection:"row"},checkBoxContainerStyle:{justifyContent:"center"}})})]})]},c))})]})}const B={contentPadding:new M(S[3],S[8])},g="reminders",v="monthEndInsights",_="notificationSettingsPage",G=e=>`${e}_form`,{settings:Z,reloadPage:Ae}=I.getLocalizedStrings().common,De=e=>{const n=X(),s=Y(),{notificationSettingsView:a,signedInUser:f,onFormDataChange:m,resetUpdateStatus:x,onSave:u,onCancel:c,onClickMenuIcon:$}=e,{notificationSettingsLocalData:l,allUsers:b,notificationSettings:h,classList:O,managersList:d,updateStatus:r,controllersList:y}=a,p=le({defaultValues:W(l,b)}),j=E.useCallback(R=>{m(Xe(R))},[m]),N=p.handleSubmit(()=>{u()}),L=E.useCallback(()=>{p.reset(),c()},[c]);E.useEffect(()=>{a.updateStatus.fetchState==="Completed"&&(p.reset(W(l,b)),x())},[l,a.updateStatus.fetchState,b]),E.useEffect(()=>{const R=p.watch((T,{name:oe})=>{oe!=null&&T!=null&&ae(()=>j(T))});return()=>{R.unsubscribe()}},[p,j]);const ee=Object.keys(p.formState.dirtyFields).length>0,te=f.userEmail!=null?P.isMonthEndNotificationsSectionVisibleOnSettingsPage(h.monthEndInsightsNotificationSettings,f.userEmail):!1,ie=P.isRemindersSectionVisibleOnSettingsPage(h.reminderNotificationSettings);return t.jsxs(t.Fragment,{children:[t.jsxs(Ve,{children:[t.jsx(ce,{source:"NotificationSettingsPage",title:Z.title.notifications,backgroundColor:n.colors.grey4,showBackButton:!1,showMenuIcon:s==="medium-compact"||s==="small",onClickMenuIcon:$}),t.jsx(_e,{windowSize:s,children:t.jsx(de,{...p,children:t.jsx("form",{id:G(_),onSubmit:N,children:t.jsxs(Ge,{children:[t.jsx(w,{controller:ie,children:t.jsx(qe,{reminderNotificationSettings:h.reminderNotificationSettings,remindersLocalData:l.reminders,sectionId:g})}),t.jsx(w,{controller:te,children:t.jsx(Oe,{monthEndInsightsNotificationLocalData:l.monthEndInsights,monthEndInsightsNotificationSettings:h.monthEndInsightsNotificationSettings,sectionId:v,allUsers:b,classList:O,managersList:d,controllersList:y})})]})})})})]}),t.jsx(w,{controller:ee,children:t.jsx(pe,{style:{width:"100%"},formId:G(_),primaryBtn:{label:I.getLocalizedStrings().common.footer.save,isLoading:r.fetchState==="In-Progress",style:{width:"82px"}},cancelBtn:{label:I.getLocalizedStrings().common.footer.cancel,onClick:L,style:{width:"82px"}}})})]})};function nt(e){const{notificationSettingsView:n,onRefresh:s}=e,{fetchState:a}=n;return a==="Not-Started"||a==="In-Progress"?t.jsx(H,{children:t.jsx(ne,{fetchState:a,styles:{margin:i.sp0}})}):a==="Error"?t.jsxs(H,{children:[t.jsx(He,{onClick:s,children:t.jsx(se,{})}),t.jsx(We,{children:Ae.label})]}):t.jsx(De,{...e})}const Ve=o.div`
121
+ `;function Ae({sectionId:e,remindersLocalData:n,reminderNotificationSettings:s}){const{texts:a,settings:f}=I.getLocalizedStrings().common,{notifications:m}=f,x=P.NOTIFICATION_MODES.slice(0,1),u=P.REMINDER_NOTIFICATION_TYPES.filter(c=>s[c]!=null);return t.jsxs(Le,{children:[t.jsxs(Re,{children:[t.jsx(Me,{children:m.sectionTitle.reminders}),t.jsxs(q,{children:[t.jsx(V,{children:a.frequency}),t.jsx(V,{children:m.mode.email})]})]}),t.jsx(Ue,{children:u.map((c,$)=>t.jsxs(Fe,{firstElement:$===0,lastElement:$===u.length-1,children:[t.jsx(Te,{children:m.reminders[c]}),t.jsxs(q,{children:[t.jsx(Be,{children:t.jsx(me,{defaultValue:{allOptions:m.reminderFrequencyOptions,selectedOption:n[c].frequency},name:D(e,c,"frequency")})}),t.jsx(ze,{children:t.jsx(ue,{mode:"always_on",checkBoxes:x.map(l=>({label:"",value:l,defaultChecked:n[c].preferredMode.includes(l),groupLabel:!1})),name:D(e,c,"preferredMode"),style:{flexDirection:"row"},checkBoxContainerStyle:{justifyContent:"center"}})})]})]},c))})]})}const z={contentPadding:new B(S[3],S[8])},g="reminders",v="monthEndInsights",_="notificationSettingsPage",G=e=>`${e}_form`,{settings:Z,reloadPage:De}=I.getLocalizedStrings().common,qe=e=>{const n=Y(),s=J(),{notificationSettingsView:a,signedInUser:f,onFormDataChange:m,resetUpdateStatus:x,onSave:u,onCancel:c,onClickMenuIcon:$}=e,{notificationSettingsLocalData:l,allUsers:y,notificationSettings:h,classList:O,managersList:d,updateStatus:r,controllersList:b}=a,p=le({defaultValues:X(l,y)}),j=E.useCallback(R=>{m(Ye(R))},[m]),N=p.handleSubmit(()=>{u()}),L=E.useCallback(()=>{p.reset(),c()},[c]);E.useEffect(()=>{a.updateStatus.fetchState==="Completed"&&(p.reset(X(l,y)),x())},[l,a.updateStatus.fetchState,y]),E.useEffect(()=>{const R=p.watch((T,{name:oe})=>{oe!=null&&T!=null&&ae(()=>j(T))});return()=>{R.unsubscribe()}},[p,j]);const ee=Object.keys(p.formState.dirtyFields).length>0,te=f.userEmail!=null?P.isMonthEndNotificationsSectionVisibleOnSettingsPage(h.monthEndInsightsNotificationSettings,f.userEmail):!1,ie=P.isRemindersSectionVisibleOnSettingsPage(h.reminderNotificationSettings);return t.jsxs(t.Fragment,{children:[t.jsxs(Ve,{children:[t.jsx(ce,{source:"NotificationSettingsPage",title:Z.title.notifications,backgroundColor:n.colors.grey4,showBackButton:!1,showMenuIcon:s==="medium-compact"||s==="small",onClickMenuIcon:$}),t.jsx(_e,{windowSize:s,children:t.jsx(de,{...p,children:t.jsx("form",{id:G(_),onSubmit:N,children:t.jsxs(Ge,{children:[t.jsx(w,{controller:ie,children:t.jsx(Ae,{reminderNotificationSettings:h.reminderNotificationSettings,remindersLocalData:l.reminders,sectionId:g})}),t.jsx(w,{controller:te,children:t.jsx(Oe,{monthEndInsightsNotificationLocalData:l.monthEndInsights,monthEndInsightsNotificationSettings:h.monthEndInsightsNotificationSettings,sectionId:v,allUsers:y,classList:O,managersList:d,controllersList:b})})]})})})})]}),t.jsx(w,{controller:ee,children:t.jsx(pe,{style:{width:"100%"},formId:G(_),primaryBtn:{label:I.getLocalizedStrings().common.footer.save,isLoading:r.fetchState==="In-Progress",style:{width:"82px"}},cancelBtn:{label:I.getLocalizedStrings().common.footer.cancel,onClick:L,style:{width:"82px"}}})})]})};function nt(e){const{notificationSettingsView:n,onRefresh:s}=e,{fetchState:a}=n;return a==="Not-Started"||a==="In-Progress"?t.jsx(H,{children:t.jsx(ne,{fetchState:a,styles:{margin:i.sp0}})}):a==="Error"?t.jsxs(H,{children:[t.jsx(He,{onClick:s,children:t.jsx(se,{})}),t.jsx(Xe,{children:De.label})]}):t.jsx(qe,{...e})}const Ve=o.div`
122
122
  display: flex;
123
123
  width: 100%;
124
124
  min-height: 100vh;
@@ -135,9 +135,9 @@ import{j as t,fE as ne,o as i,bg as se,B as I,a6 as re,u as X,e as Y,a as le,ca
135
135
  row-gap: ${i.sp3};
136
136
  background-color: ${e=>e.theme.colors.grey4};
137
137
  `,_e=o.div`
138
- padding-left: ${e=>B.contentPadding.valuePx(e.windowSize)};
139
- padding-right: ${e=>B.contentPadding.valuePx(e.windowSize)};
140
- padding-bottom: ${e=>B.contentPadding.valuePx(e.windowSize)};
138
+ padding-left: ${e=>z.contentPadding.valuePx(e.windowSize)};
139
+ padding-right: ${e=>z.contentPadding.valuePx(e.windowSize)};
140
+ padding-bottom: ${e=>z.contentPadding.valuePx(e.windowSize)};
141
141
  `,Ge=o.div`
142
142
  display: flex;
143
143
  flex-direction: column;
@@ -157,7 +157,7 @@ import{j as t,fE as ne,o as i,bg as se,B as I,a6 as re,u as X,e as Y,a as le,ca
157
157
  color: ${e=>e.theme.colors.primary};
158
158
  }
159
159
  }
160
- `,We=o(re)`
160
+ `,Xe=o(re)`
161
161
  margin-top: ${i.sp3};
162
162
  color: ${e=>e.theme.colors.hero};
163
- `;function k(e){const n=Z.notifications.reminderFrequencyOptions;return{preferredMode:e.preferredMode,frequency:{selectedOption:e.frequency,allOptions:n}}}function W(e,n){return{[g]:{missingReceiptNotification:k(e.reminders.missingReceiptNotification),uncategorizedTransactionNotification:k(e.reminders.uncategorizedTransactionNotification),pendingBillApprovalNotification:k(e.reminders.pendingBillApprovalNotification),pendingReimbursementApprovalNotification:k(e.reminders.pendingReimbursementApprovalNotification)},[v]:{notify:e.monthEndInsights.notify,recipientEmailIds:{allNonUsers:[],selectedNonUsers:[],allUsers:n,selectedUsers:n.filter(s=>e.monthEndInsights.recipientEmailIds.includes(s.email))}}}}function C(e){return{preferredMode:e.preferredMode,frequency:e.frequency.selectedOption}}function Xe(e){return{[g]:{missingReceiptNotification:C(e[g].missingReceiptNotification),uncategorizedTransactionNotification:C(e[g].uncategorizedTransactionNotification),pendingBillApprovalNotification:C(e[g].pendingBillApprovalNotification),pendingReimbursementApprovalNotification:C(e[g].pendingReimbursementApprovalNotification)},[v]:{...e[v],recipientEmailIds:e[v].recipientEmailIds.selectedUsers.map(n=>n.email)}}}export{nt as default,G as uniqueName};
163
+ `;function k(e){const n=Z.notifications.reminderFrequencyOptions;return{preferredMode:e.preferredMode,frequency:{selectedOption:e.frequency,allOptions:n}}}function X(e,n){return{[g]:{missingReceiptNotification:k(e.reminders.missingReceiptNotification),uncategorizedTransactionNotification:k(e.reminders.uncategorizedTransactionNotification),pendingBillApprovalNotification:k(e.reminders.pendingBillApprovalNotification),pendingReimbursementApprovalNotification:k(e.reminders.pendingReimbursementApprovalNotification)},[v]:{notify:e.monthEndInsights.notify,recipientEmailIds:{allNonUsers:[],selectedNonUsers:[],allUsers:n,selectedUsers:n.filter(s=>e.monthEndInsights.recipientEmailIds.includes(s.email))}}}}function C(e){return{preferredMode:e.preferredMode,frequency:e.frequency.selectedOption}}function Ye(e){return{[g]:{missingReceiptNotification:C(e[g].missingReceiptNotification),uncategorizedTransactionNotification:C(e[g].uncategorizedTransactionNotification),pendingBillApprovalNotification:C(e[g].pendingBillApprovalNotification),pendingReimbursementApprovalNotification:C(e[g].pendingReimbursementApprovalNotification)},[v]:{...e[v],recipientEmailIds:e[v].recipientEmailIds.selectedUsers.map(n=>n.email)}}}export{nt as default,G as uniqueName};
@@ -0,0 +1 @@
1
+ import{v as e,r as a}from"./index-4y_mNX1u.js";const t=a[5],o=59,i=a[5],l=e.standardRegular.lineHeightValue,n=1,p=1e3;export{l as A,i as E,n as I,p as L,o as a,t};