@zeniai/web-cockpit-ui 1.14.36-dev → 1.14.37-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 (242) hide show
  1. package/dist/assets/{ACHDetailsPage-3oKbHC1_-Qn9d1Xyv.js → ACHDetailsPage-B-YGNgNu-Bmzj5VCx.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Cn2skpeY-BNc-HLpr.js → AIPerformancePage-BtD_7Ftm-Dc6s17nv.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-Dxnr3s2C-ByHNSUfv.js → AccountInfoPage-BtnzwNNq-dHfnRP44.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CMT1vJ_n-DgA1oKva.js → AccountInfoPageContent-B4wK76bm-bje-d7jv.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-2GuYlOQJ-Cb5egJeS.js → AccountLockedInfoModal-4JAQCp4H-oFdcTD1v.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-Cu_lsw9T-Ct4NG0ON.js → AccountReconDetailsDrawerPage-Ddi5U4Ae-yt2cu51z.js} +13 -13
  7. package/dist/assets/{AccountRow-BcSPuOPF-R9MJWqpQ.js → AccountRow-m99usqft-CVwqPSiA.js} +14 -14
  8. package/dist/assets/{AccountsPromoCardStack-Ch88Cvn8-B36ZrxM-.js → AccountsPromoCardStack-D-dhzSE8-DDW4X8m8.js} +30 -30
  9. package/dist/assets/{AddAddressForCardDrawer-Df4OROTJ-Ccg4Z6Tb.js → AddAddressForCardDrawer-Bc7FcxQ9-CPCqNMQu.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DgVLkIkz-CQF3I5rp.js → AddToWalletPage-y4kvtUka-DDEooDf0.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-M1xr5QPt-DB06_ukJ.js → AgingReportsPage-DrNIGwGn-SYUURrNK.js} +15 -15
  12. package/dist/assets/{AllUserItems-CzMARJS5-DMwRKAgK.js → AllUserItems-B7zg_GaP-Be7aIkSs.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-C3YN724_-CRhegmmd.js → ApAgingDetailPage-DnnUrY0w-YKhaNkmF.js} +3 -3
  14. package/dist/assets/{AppBasePage-CP4BX_QO-B6mlxKAR.js → AppBasePage-Bk7AUQvW-DewGDFAI.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-Dc3UorVz-DdpZ1z1h.js → AppDrawerContent-BoIqLCcg-DSqSJb6O.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-DHw_cGEb-DsqpcHH3.js → ApprovalRulesSettingsPage-C9F_rLkj-CMuUFv_Y.js} +1 -1
  17. package/dist/assets/ArAgingChart-DIwVIc---JSQnHbrf.js +24 -0
  18. package/dist/assets/{ArAgingDetailPage-BU6gubOU-BkAN4ZrM.js → ArAgingDetailPage-DxW2xm-N-C3cyEzON.js} +1 -1
  19. package/dist/assets/{AttachmentView-Cjq9bT2R-B9cOvAgG.js → AttachmentView-BlhBiGC5-BQVXVdi4.js} +6 -6
  20. package/dist/assets/{BankAccountSection-DcBAe_nk-Cj8Y52AW.js → BankAccountSection-A8IfSLFo-DZ6IsEkG.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-CgdNj2lq-DoFj2r_M.js → BankAccountWarningSection-DFi3iK9n-Bwv6p1-d.js} +19 -19
  22. package/dist/assets/{BankConnectionsSettingsPage-DN-l_MKN-CZ9NiTex.js → BankConnectionsSettingsPage-CKGG85vp-aivbIsnx.js} +10 -10
  23. package/dist/assets/{BillDetailPage-DSNj9dZa-GtcAJ7zm.js → BillDetailPage-BOVwHvyV-BfaeR7sU.js} +11 -11
  24. package/dist/assets/BillPayApprovalRuleDetailPage-BVdiHMjx-H3-_-QUF.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-3E7Zb7Tv-8xvci8F-.js → BillPayApprovalRulesPage-Dl45oEp5-Bp4yjfcf.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-iqi-3PsJ-BJG1XRwv.js → BillPayPromoPage-CEX8Udbv-Bz1WZJJS.js} +32 -32
  27. package/dist/assets/{BillPaySetUpPage-DkBnCNVT-DuhN0B9J.js → BillPaySetUpPage-CSfEFV18-C8fnmfrq.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-Bxl_rTxp-CiR8VS-8.js → BillingSettingsPage-hu1pz4dA-DIqnmxGS.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BAQfge2H-BRM7aN30.js → BillsBulkReviewDrawerPage-DIY4Aa7i-DWQniSAN.js} +1 -1
  30. package/dist/assets/{BoxItem-BiXktaUJ-Cfy2EaaH.js → BoxItem-BnivUbj--D0CHtSbc.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BvtQdbIO-BG9aG986.js → BusinessVerificationPage-BZB4KFum-B7vFGHC7.js} +7 -7
  32. package/dist/assets/CardNumberSubText-CIysZ6zp-BeRdb8DH.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-CKSxtvZL-C5tKHPnX.js → CashbackDetailPage-C-MPq54h-Di99A_id.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-Dwb3MwPx-DGZ2FMyW.js → ChargeCardDetailPage-CGyuANsu-BXb0v708.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-CQ3lUqTC-ClOjN4Tj.js → ChargeCardListPage-BbzjzgAv-D6IqTZDO.js} +27 -27
  36. package/dist/assets/{ChargeCardListTable-B2MUmgfU-D_6CnuuE.js → ChargeCardListTable-D-wd0edv-Ccs8wgch.js} +14 -14
  37. package/dist/assets/{ChargeCardPromoPage-DNZ_qrk1-Ckodpm9A.js → ChargeCardPromoPage-Cs-Xlghn-TDUeeTRa.js} +14 -14
  38. package/dist/assets/{ChargeCardSetupPage-DX4VlcBt-9AzPA1m8.js → ChargeCardSetupPage-CfCGkFxz-Ba3kpJjD.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DlVfCfY8-Ciq-TW-L.js → ChargeCardStatementsPage-Jc6k_2Gg-C9xm6yF8.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-Vw0LoIey-LQKRCzhH.js +1 -0
  41. package/dist/assets/{ChaseOverlay-DYQYE0RM-Cl7PDEtm.js → ChaseOverlay-Cm-3BKNK-ByPesCFg.js} +8 -8
  42. package/dist/assets/{CheckDepositDrawerPage-C653BICE-BliVsvVN.js → CheckDepositDrawerPage-BAwg3duC-unpJ_-VW.js} +11 -11
  43. package/dist/assets/{CollapsableReportTable-KGZROyWO-BB5JbMLM.js → CollapsableReportTable-C_qcwMWq-DwhvFgWQ.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-WlKm-fM0-DT0aWaVM.js → CompanyOfficerDetailsSection-_m4C7Xgf-B3wASBKA.js} +30 -30
  45. package/dist/assets/{CompanyPassportCard-BXQt77bL-CgrFJoow.js → CompanyPassportCard-BiuPML3b-oaTBtIaM.js} +5 -5
  46. package/dist/assets/{CompanyPassportPage-CdM9x1g7-DHJ-ptII.js → CompanyPassportPage-BHf1pHbJ-Buj_TW7B.js} +29 -29
  47. package/dist/assets/{CompleteProfile-g0ErQlZA-BaxE51VT.js → CompleteProfile-DKEFybHA-C1kFizxR.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-Cu0ce9ZQ-B47uGNY_.js → ConfettiBurst-BvcmPG2b-ZMa2QlEG.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-Zn--1Mu0-xtwEugAO.js → CreateOrEditVendorPage-EpWC9Uuv-Dc0tZPg8.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-BSS4YcVE-BNPDfaX6.js → CreditCardPaymentDrawerPage-DI-za1T2-bRyqVvzT.js} +19 -19
  51. package/dist/assets/{CreditCardPaymentPlgSection-QKLSnyR5-DUyvaz3Z.js → CreditCardPaymentPlgSection-BGu0Am-e-aYbEN-hH.js} +8 -8
  52. package/dist/assets/{CurrencySelectField-DxrwSaJK-Cu5VbUzb.js → CurrencySelectField-DL628Rog-Bmtvp9OQ.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-BbfI4g9k-bQf7ee-N.js → CustomerOnboardingActivationPage-DzuWnPaH-_LvR1atL.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-BLgcij7A-B0ZyZA5y.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DyIeAi4x-Ciojhx6k.js → CustomerOnboardingDetailPageSkeleton-Bx_rpQHj-BvbC0CJP.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-BbHZQvuH-pcu4RngU.js → CustomerOnboardingNoStepsPage-CSI_jqkM-BvTSxYdS.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-BGKjRruK-C_-kvbjL.js → CustomerOnboardingPage-CuS2FfSh--tD5QTKd.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-Cmwfbh1x-D3ospPa7.js → CustomerOnboardingProductSuitePage-B4HtoU9G-k9fDWiOr.js} +1 -1
  59. package/dist/assets/{Dashboard-DCbGYUNO-CggBXce9.js → Dashboard-bFhMc4h1-CwTlVIc3.js} +114 -114
  60. package/dist/assets/{DashboardReportPage-7sacscjb-CCrnEMLn.js → DashboardReportPage-B1pKZHaH-C002ABtg.js} +19 -19
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-CcQR2lMq-Cf2eLsVD.js → DashboardSidebarBackgroundAnimation-CLaTbvuZ-DTILeRgb.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-u7kiVxu3-Cq_mC_h_.js → DepositAccTransactionItem-DnzXR7B4-BzeCDAAx.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-C0F0N3XK-CpXVyO43.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-CjliTPRp-Cxo45rzx.js → DomesticWireDetailsPage-BS3N4ATj-Z9M0LUQc.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-LzyYQ7X7-Cqsz6Go0.js → DownloadOverlay-yXed0RbK-CILknCuS.js} +1 -1
  66. package/dist/assets/{DrawerPage-DVu3OGym-ELFavZIA.js → DrawerPage-LV8__F8R-DnqAUVKa.js} +5 -5
  67. package/dist/assets/{EditPeoplePage-COZuksUu-BAJ712Zd.js → EditPeoplePage-GBNK0lo_-DOfo7pqS.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-P7gybbTe-DhmHzkez.js → EditReimbursementDetailPage-COApDpVm-BQmgcdfZ.js} +59 -59
  69. package/dist/assets/{EntityDetailPage-CMAFiXng-EHp1vVUv.js → EntityDetailPage-DdZmhyPX-DWJHl4Bk.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-BezHSTT7-CA4YQ14w.js → EntitySummarySection-Cn7rnQeI-CBO7wVuQ.js} +5 -5
  71. package/dist/assets/{ExpenseAutomationOverviewPage-CX5wpbbp-BxzSM0jW.js → ExpenseAutomationOverviewPage-ipXT_MCO-bp6l5ftT.js} +17 -17
  72. package/dist/assets/ExpenseAutomationPage-BXyGtnBz-BNGaSmRn.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-KpzY-AC4-B3x4TcSO.js → ExpressPayPage-C0J3X657-nQamsxue.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-T7VgNi57-XquGM-uR.js → FeaturePreviewPage-lIDKDiwy-ByXy-FSZ.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-BffVXexb-Wb7yroWy.js → FollowStepsSection-CtCRMD2R-CbwNNmmr.js} +23 -23
  76. package/dist/assets/{GlobalReviewListPage-DPJug-7p-FbhUXbzf.js → GlobalReviewListPage-DXPuMshX-BcxIk4p1.js} +14 -14
  77. package/dist/assets/{HelpButton-BkxT0f9t-DltO0YWd.js → HelpButton-Dmp2RZDD-B2Rab4OD.js} +4 -4
  78. package/dist/assets/{InformationCardStack-CiO7p4bX-Ca7THwnz.js → InformationCardStack-bpQXbFWJ-Cm38YEZv.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-CCx4eRv0-BoXCNjZt.js → InsightsCardStack-BzyYnnH_-BColy9W-.js} +9 -9
  80. package/dist/assets/{InsightsSection-CQRpIy9c-BVaWF-TR.js → InsightsSection-BVjjBkzp-DdtTOhLh.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-CDHIF3ky-BZdWjiMh.js → IntegrationsSettingsPage-DjMaGIv9-C8FJSTfl.js} +3 -3
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-BTB0YTLP-Fw5hYyJd.js → InternationalWireSwiftDetailsPage-DXYaOaYh-D23V0HqY.js} +13 -13
  83. package/dist/assets/{InternationalWireVerificationPage-DZAa5CXK-CShVs05a.js → InternationalWireVerificationPage-yPrzoGA9-BxdDeF-a.js} +10 -10
  84. package/dist/assets/{InviteFormPage-CVIA_4cc-xvdMmRWy.js → InviteFormPage-xQ6xN_gt-BMpnhTIU.js} +20 -20
  85. package/dist/assets/{InvitePageListView-BapkK9dR-CMoNigd7.js → InvitePageListView-BmkX934z-BfZaFs-7.js} +40 -40
  86. package/dist/assets/InvitePeoplePage-BxxEjVs5-CabY1R7G.js +12 -0
  87. package/dist/assets/{InvoiceUploadSection-CfoxMKse-CDgcPY9V.js → InvoiceUploadSection-BxfSI49h-Brw0wgV3.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DoNxoxCV-BuHBJdzr.js → IssueChargeCardPage-ByK_ayX6-rSu6Sks_.js} +22 -22
  89. package/dist/assets/{LabeledAddressValue-DzKLuwO0-Dbmo8xwC.js → LabeledAddressValue-Bk-opSoh-CfhrR6VE.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-RFI4bpOj-V_HSBjtL.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-BsXmJGaz-B9D7gdxU.js → LabeledControlledCheckBoxField-DtVQoSev-CxGQ4PV5.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CNcoKtBi-DbNXS5w-.js → LabeledCreatableSingleSelectField-BFmP_-GA-Dc6F7WMx.js} +2 -2
  93. package/dist/assets/{LabeledDocumentField-DB-XX9hy-ARW_yKHV.js → LabeledDocumentField-CyW3tPI--BGc7rzmx.js} +3 -3
  94. package/dist/assets/{LabeledDropDownFormattedTextField-ChF-tfZl-CoOdklmM.js → LabeledDropDownFormattedTextField-_b5VDmOJ-XXRUXuQU.js} +3 -3
  95. package/dist/assets/{LabeledText-DQjY46zj-CJXj8rFi.js → LabeledText-Bc8QavrT-DRMQG5Fd.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-BII3s1HZ.js → LabeledUserSingleSelectWithSubtitlesField-CE-MxVSk-Bf2C7jq-.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-qeHXm7K1-iR_szjxt.js → LabeledZeniRolesDropDownField-BqlbDyA1-Z63nBo8a.js} +6 -6
  98. package/dist/assets/{LinkJETransactionPage-DWq96C-C-BScn3NVF.js → LinkJETransactionPage-DE8ch_W7-BbSoAkGH.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-DIu4EJtv-FHHWLFWk.js → LowBalancePopup-DWXEyi2S-BS-B0i1n.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-0uTQmYPp-CFGb5gZH.js → MagicLinkACHDetailsPage-CJ57XAxp-B8DWH8Pe.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CtkSDg_U-DqPdzilp.js → MagicLinkDomesticWireDetailsPage-Ba1gbLAX-C3b71Pt2.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-qNEvVVcm-C2m2KEe0.js → MagicLinkInternationalWireDetailsPage-U3ygf3uO-B8lQWMEo.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-D4C3XF4W-EgVx2lLe.js → MagicLinkSuccessPage-CGjxH6Hl-BGgftVAk.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DXZCLfIM-2GWQnCnZ.js → MagicLinkTitleSection-Dzfctx8H-BBKMnm9G.js} +9 -9
  105. package/dist/assets/{MailingDetailsSection-7_w5PfFQ-C9R3FLGa.js → MailingDetailsSection-N-M1JzkW-CJwTbRpR.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-2P6uhLqh-CkyOJaM-.js → MeetingCalenderPopup-BJgsd-6e-BVSiedfG.js} +1 -1
  107. package/dist/assets/{Menu-Ya9EH9T1-XEx08cqQ.js → Menu-DCl4YiCd-B0YQHXqY.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-Bz9BP12B-B0raEGfA.js → MyBankConnectionsSettingsPage-BZP3Dbes-DmpNjSAQ.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-BxFFCBYU-CmVzmveh.js → MyPendingActivationChargeCardListPage-Cc8Onh73-CbDOi7oK.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-BRTEYBf1-BuzCCWQu.js → MyProfileSettingsPage-7YrgIr-M-ZiI_qPOd.js} +11 -11
  111. package/dist/assets/{NavBarWithPicker-Cx1ldzdT-ByHGGAzI.js → NavBarWithPicker-Bbu7_9sU-Drz87Xca.js} +4 -4
  112. package/dist/assets/{NavigationArrow-Cic_S7sL-CafjbEnx.js → NavigationArrow-DNJkGq5e-CFURJ7Q6.js} +1 -1
  113. package/dist/assets/{NavigationDots-BnqdhDar-BHuykGzD.js → NavigationDots-BDhrBzmw-D1HC0qJi.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-BMLnV68V-Df2U2-Pi.js → NewGlobalMerchantPage-DSyitl-a-Cmd_Uf-_.js} +11 -11
  115. package/dist/assets/{NoDataChart-CyIzcvzb-CVVPhPRo.js → NoDataChart-Bww-GG_z-Bc_skb_f.js} +3 -3
  116. package/dist/assets/{NoDataTable-Cf9Qv-ms-BIxVQmVT.js → NoDataTable-DRSEE7HT-D9jhDjAA.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BP2jA51O-DvlpUk9Z.js → NotFoundPage-BepvWGxk-DxNfmeBZ.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-Bhj72XzL-DgHNUBYw.js → NotificationSettingsPage-CR6XVZlL-wDdA0j9g.js} +17 -17
  119. package/dist/assets/NotificationsListConfig-CBjTcLzj-jvVy89VO.js +1 -0
  120. package/dist/assets/{NotificationsPage-DEQ0muyV-AFyu-A1B.js → NotificationsPage-BgUc61wf-BZgONaPK.js} +29 -29
  121. package/dist/assets/{OpExByVendorPage-BPvIdjMh-GjqInlE8.js → OpExByVendorPage-BkgsQ4lY-7o0GC3_0.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-B4CijHVT.js → OverlayContainerPage-Bmu909Fo-C009NgjC.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-CgMYDel--CrwH5GHU.js → PandLWithForecastPage-B0pUD9U8-DO8PheB4.js} +6 -6
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CfUpfrt6-DiMg5_6V.js → PaymentAccountSetupBillingAddressSection-YvYPpyzH-C8eu7aCq.js} +12 -12
  125. package/dist/assets/{PeoplePage-BrL4O-03-BHA1i9-R.js → PeoplePage-mobCML9r-CoCd3iyK.js} +18 -18
  126. package/dist/assets/{PortfolioAllocationFormPage-C24sa7Lv-D7dV2koR.js → PortfolioAllocationFormPage-CB9lfs6z-DLoszR7s.js} +7 -7
  127. package/dist/assets/{PortfolioDetails-wAtPiO4w-C8Xq6LTb.js → PortfolioDetails-zYYGkoC--vz6_lm4y.js} +23 -23
  128. package/dist/assets/{ProductsCarousel-B8KxzJsX-BAeIItJs.js → ProductsCarousel-B4zdUn5q-DoM0qjnT.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-DKu8lmMb-CbitZiAU.js → PromoBaseCards-CgGg3lpk-Dz6RYIDW.js} +3 -3
  130. package/dist/assets/{QBOConnectionDialog-CSRVcpvB-DsmFVlUU.js → QBOConnectionDialog-BBVBEJWA-dgJxEpfC.js} +9 -9
  131. package/dist/assets/{QBOSetupSection-CwO2OwTA-DfOK3FQy.js → QBOSetupSection-pBOQk_mE-Dd7Gnjqf.js} +10 -10
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-Ck2KbJ_R-BX6Ge_l2.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-CWZIqbqf-2nP7no61.js → ReimbursementApprovalRulesPage-D7LTvUrz-DlssbBj8.js} +32 -32
  134. package/dist/assets/{ReimbursementDetailPage-DaiOed8i-t4bX9i7-.js → ReimbursementDetailPage-CbgWCawo-C7_BdWis.js} +8 -8
  135. package/dist/assets/{ReimbursementPromoPage-CTpCa9C7-WAySoU1n.js → ReimbursementPromoPage-DmV5eoIo-DOkiivOI.js} +6 -6
  136. package/dist/assets/{ReimbursementSetUpPage-Cd0w6zdZ-CapxuQlm.js → ReimbursementSetUpPage-kAlaG5Ag-CleK9Kyi.js} +3 -3
  137. package/dist/assets/ReimbursementsBulkReviewDrawerPage-70qXVn3v-C1moxDIU.js +1 -0
  138. package/dist/assets/{ReloadCard-D8XT-nw--BGnVgOtj.js → ReloadCard-DoOxxK_q-CpkIPzoZ.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-kf12PTIw-_koMJS6q.js → ReportTableViewSelector-7OJVsL-G-DHAAlp0N.js} +10 -10
  140. package/dist/assets/{ReportsPage-D0dEACVc-CgqzQVRZ.js → ReportsPage-29ims7Ks-DeqwxbGw.js} +9 -9
  141. package/dist/assets/{RevenueChart-D67Egnoj-B0BJYpf4.js → RevenueChart-CLtUUYr5-BiKK-4fc.js} +14 -14
  142. package/dist/assets/{ReviewDetailsPage-DX3JdY2D-BVW8q6gp.js → ReviewDetailsPage-DNDzoyA5-DEPI6irg.js} +5 -5
  143. package/dist/assets/{ReviewOverlay-BUmIoEZp-D3xvXshe.js → ReviewOverlay-VleZWRhn-92ozUwMn.js} +4 -4
  144. package/dist/assets/{RoleWithToolTip-QUDWRgyn-DzrP2xLD.js → RoleWithToolTip-DsEos8I_-DRhh0Kxb.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-ffFbqWqR-mWiNohG4.js → ScheduleDetailsFixedAssetsPage-Cv84NP5--DgtnhyGw.js} +4 -4
  146. package/dist/assets/{ScheduleDetailsPage-Btyinpxx-TW4CABi6.js → ScheduleDetailsPage-D4IKW5z6-Dgpd_Bt3.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-nubG9ZPF-CmzJbQeN.js → ScheduleSequenceTable-qHcZL82y-hvYO0uf8.js} +17 -17
  148. package/dist/assets/{ScreenRoutes-BC18Q4eZ.js → ScreenRoutes-BMiRN1n5.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-CjOOpWa2-DlvlGnwo.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-D54P9sLQ-DIoImqvg.js → SetUpDefaultSection-Ax1FuH_A-CyAf_lFy.js} +9 -9
  151. package/dist/assets/{SignIn-DQERofSd-BPkKMSDj.js → SignIn-Bj2czf21-DLn_5Hl2.js} +11 -11
  152. package/dist/assets/{SignInScreen-BbeWg9hl.js → SignInScreen-EkV2uFui.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-B9iJVZhK-Dd5zS51l.js → SpendManagementListViewPage-7oQurX8D-Btm2dsFE.js} +10 -10
  154. package/dist/assets/{SpendManagementPerTabPage-DiduNPFx-BvN2qFiJ.js → SpendManagementPerTabPage-DG8qRSeQ-DkldK9oK.js} +12 -12
  155. package/dist/assets/{SpendManagementSection-BPJDk9AQ-DNTgKL_h.js → SpendManagementSection-CzGLKJ01-CMEY5Je9.js} +5 -5
  156. package/dist/assets/{SpendMgmtSetupAccountSection-BVOwbOVv-BbEelpUf.js → SpendMgmtSetupAccountSection-BSuY_zqo-DgJtGLqh.js} +6 -6
  157. package/dist/assets/StatementItem-teWYG-k5-DINRmcX_.js +31 -0
  158. package/dist/assets/{StatementsPage-BzG0fWr9-B7zKsVpb.js → StatementsPage-Kqug4TjC-i8j_G7aT.js} +6 -6
  159. package/dist/assets/{StatusSwitcher-aZiGS6I4-CW57CAir.js → StatusSwitcher-BXzanE6h-DMj6aTv0.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-BPzCR9_G-CKWRfEmM.js → SubTabSwitcher-Dc78MPYF-BBOjByHP.js} +1 -1
  161. package/dist/assets/{SummaryCard-DE3DiW4z-DCcTNI78.js → SummaryCard-DDpG4vry-B5U4mOGE.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-bmYzZzlx-BQOYF4T3.js → TaskManagementPage-DQXNMGNK-CKRAR0zh.js} +14 -14
  163. package/dist/assets/{TimeRangeSwitcher-D10b_iT0-B6MHaMu9.js → TimeRangeSwitcher-BQL2dhVh-BEcsPUsE.js} +3 -3
  164. package/dist/assets/{TimeframeSwitcher-w4308CL0-B-m8rZcD.js → TimeframeSwitcher-CXvrXTdI-C26WdHZR.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-DP7dCTZ--Dr3OM9sZ.js → TimeframeSwitcherWithToggle-C_hQ5Vj--Bx-1-ivl.js} +1 -1
  166. package/dist/assets/{TopExCard-C9Dwe5gi-HuLCC_VB.js → TopExCard-CmajFYfY-r8AKz4at.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-Ch4gEAFc-CW6a2lM7.js → TopExDetailPage-DNfBQfSC-C7SERVmo.js} +14 -14
  168. package/dist/assets/TransactionDetailPage-DZPHVxna-gW9ty_N8.js +912 -0
  169. package/dist/assets/{TransactionList-Dy4LSOLF-DLQzM8h7.js → TransactionList-DifBTNrV-XDxlPwJi.js} +5 -5
  170. package/dist/assets/{TransactionListBig-BOmqcsRt-CoBJs1L1.js → TransactionListBig-Bjmt3Xib-2_W_aEC_.js} +13 -13
  171. package/dist/assets/{TransactionListPage-D1XobIP_-CQ1XF-sO.js → TransactionListPage-CpFiD4Aw-CR2PsPHW.js} +4 -4
  172. package/dist/assets/TransactionVendorDetailPage-BSZ4IBis-BYhm_gdm.js +80 -0
  173. package/dist/assets/{TransferDrawerPage-DEK-tLwC-CMAkImaq.js → TransferDrawerPage-CiGIqLHQ-D46lOtpY.js} +19 -19
  174. package/dist/assets/{TreasuryOverviewPage-Bv8YOcOu-DgYbKZRI.js → TreasuryOverviewPage-C21g82G6-DYbFAWwM.js} +45 -45
  175. package/dist/assets/{TreasuryPromoPage-BpJ4G2tW-wrKqn45d.js → TreasuryPromoPage-lNMQil_1-N_uS5Aq-.js} +21 -21
  176. package/dist/assets/{TreasurySetupPage-DmXhUnJ2-CTKxmbjB.js → TreasurySetupPage-CHjK0p7r-CRu0aFPY.js} +2 -2
  177. package/dist/assets/{TreasuryStatementsPage-iOhX7bQX-C-86zNAp.js → TreasuryStatementsPage-CKAdFoHY-CmvodGfK.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-SKYFef4J-CxXJUgOP.js → TreasuryTaxLetterPage-DPdcmb53-THnCfe4J.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BAQy6UbF-5smN8wwG.js → TreasuryTransferOrReviewPage-DmGpNvWn-BuegZV7_.js} +42 -42
  180. package/dist/assets/{TrendChart-DrNmAOxp-D32D_fQx.js → TrendChart-BJF_aBUS-9NcnnooQ.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-CFapbjqF-Tluomzgb.js → TrendWithTransactions-DXSMdecG-qeajZlKV.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-BjyEIyD--q-mXglLO.js → UncategorizedAccountsMappingPage-DMiXdRb9-CRgBjITM.js} +15 -15
  183. package/dist/assets/{UnitIntegrationPage-CMRuNXKH-W-172t0m.js → UnitIntegrationPage-Dqakwr1P-QWF0IWfi.js} +2 -2
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-BJNFsBN7-CW3s6tmn.js → UploadAdditionalDocumentOverlay-DOy8Wvxm-COI977Ym.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-Dk_XUHkP-BfvRXa0R.js → Vendor2FAPopup-DR_Uif4s-CCjiwhTD.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DS1-IldK-BBUTN6DM.js → VendorACHDetailsPage-_nmRyuvM-BAqZ8tTf.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-CzECD1Tt-BxCeFQBa.js → VendorDetailPage-DYhBGXTe-B5kyd9_T.js} +8 -8
  188. package/dist/assets/{VendorDomesticWireDetailsPage-Bd-dOP2Q-B1c_niFG.js → VendorDomesticWireDetailsPage-OzrrojiZ-CWHL3BiA.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-C7D_fWCV-ar_0EIM_.js → VendorFiling1099EditablePage-C6i7dipR-DmIuqd6b.js} +14 -14
  190. package/dist/assets/{VendorFirstReviewPage-B4YffYJO-BW-F4-km.js → VendorFirstReviewPage-DrelrPYn-CtZKswhg.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireDetailsPage-D1i4RwUe-BBAccWWe.js → VendorInternationalWireDetailsPage-BglZ4_v2-DWh5FNhJ.js} +7 -7
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-QqA8DADQ-CetqwMx2.js → VendorInternationalWireSwiftDetailsPage-MKHHcDL4-D4F7IynK.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-C8qo0vKx-DOST9l3F.js → VendorsAccountsSection-COwLgrG_-BeiJbKgP.js} +2 -2
  194. package/dist/assets/{VerifyDevice-Cku9_tdW-BTj-mHAb.js → VerifyDevice-FO7331hS-BHG8lbd_.js} +1 -1
  195. package/dist/assets/{VideoPlayer-DqxblGWn-BXG0P4e3.js → VideoPlayer-C7GWTYSG-C3qJA87L.js} +1 -1
  196. package/dist/assets/{VideoPopup-8253nBrT-DoJHFZMN.js → VideoPopup-CB0BXhOA-BgnE8vln.js} +5 -5
  197. package/dist/assets/{WarningsDrawerPage-B08Au4yQ-B9IzdYhz.js → WarningsDrawerPage-B081ksn8-BvnCWJxm.js} +7 -7
  198. package/dist/assets/{ZeniAccountDetailPage-Dx-w2w6D-4cfDv73S.js → ZeniAccountDetailPage-Bbx7ge3Z-BwrSFwiV.js} +16 -16
  199. package/dist/assets/{ZeniAccountListViewPage-DH4BnQ7k-CHjigIuG.js → ZeniAccountListViewPage-CgOxwjk1-Cy-Kh2JX.js} +13 -13
  200. package/dist/assets/ZeniAccountNavBarPieces-BkN8_5Zi-BtKjHrnJ.js +14 -0
  201. package/dist/assets/{ZeniAccountPromoPage-D4J2Yoil-BDHpq4Eb.js → ZeniAccountPromoPage-DrMHkTuM-DZxJwu1v.js} +9 -9
  202. package/dist/assets/{ZeniAccountSetupPage-DTkO1ASr-1XYqtTaw.js → ZeniAccountSetupPage-BCpKadR1-BZqzR_uG.js} +3 -3
  203. package/dist/assets/{ZeniCopyright-BiSq0yhI-CQbT1WRc.js → ZeniCopyright-juRAWlbw-DJRbuiIq.js} +1 -1
  204. package/dist/assets/ZeniTransferAmountSlider-BtI1L6UN-f_1E8Iwf.js +63 -0
  205. package/dist/assets/{analyticsHelper-lnjVamrT.js → analyticsHelper-Bgft_1pJ.js} +1 -1
  206. package/dist/assets/{analyticsHelper-Dc3DtVTm-Y5fPzPLq.js → analyticsHelper-DQQo4LQc-Dpi2pZTl.js} +1 -1
  207. package/dist/assets/{chartTypes-C7uaeRCc-CtqAquQd.js → chartTypes-eqxFaFS5-B43Gm107.js} +1 -1
  208. package/dist/assets/{commonDimensions-MaxjMSVa-n5Ul9FT7.js → commonDimensions-C2hbzHZW-OFUCUhbG.js} +1 -1
  209. package/dist/assets/{detailCommon-OK9JA2hc-EAouVA2X.js → detailCommon-fC811KkH-D6H3c8Ux.js} +6 -6
  210. package/dist/assets/{downloadPdf-QtapKpnq-D53WP2BZ.js → downloadPdf-CgcD1OYw-ZvBiL7F-.js} +1 -1
  211. package/dist/assets/{index-4y_mNX1u.js → index-Du1ejFtI.js} +3415 -3415
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-pvoDlh5w-BH0I_ZXQ.js → mapLoadingInProgressToTreeNode-CM7N02af-DstULqSu.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CVUpGQKE-B2Y7wF15.js → mapSectionWithAcOnlyToTreeNode-MzhgtFpc-aX7osQA1.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-P_HzYMUQ-T8bNyKbZ.js → mapSpacerToTreeNode-C7hklF---Dg7CM6wp.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-CB6RE8w9-CAzsziRN.js → mapTimeframeBalancesToTreeNode-CEJ9v-Q3-B6zmleAa.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-B8xJouuF-0J2xTAj5.js → mapTimeframeBalancesToTreeNode-D36HLTqR-CiOqATy_.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BAAatv-Y-C-hpmEKv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BhdfWhpd-Diyt9jMU.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-JkvOa9nR-BuY_FDkW.js → toCOABalancesWithID-DCFbumLL-BUL3FzIP.js} +1 -1
  219. package/dist/assets/{toChartData-CEfu5Lvp-ztIWW0aM.js → toChartData-Dh9v_zba-IkjT0Y7p.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-Bvcahv9r-CJj1lXeK.js → treasuryColorHelper-ZXa62meg-C9-TrKv9.js} +1 -1
  221. package/dist/assets/{uploadAttachment-DNrYcaTL-7XpOhOp_.js → uploadAttachment-DOhn3y-C-AUYll2HA.js} +14 -14
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-Dv2hG-YC.js → uploadReceipts-dxsKhm9I-Cdyoe2Us.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/ArAgingChart-D6396NAQ-B7eZ8sbL.js +0 -24
  226. package/dist/assets/BillPayApprovalRuleDetailPage-Bn_93mxC-PbuiMjZ5.js +0 -27
  227. package/dist/assets/CardNumberSubText-usoiubBx-JT9ehyHX.js +0 -21
  228. package/dist/assets/ChargeCardUtils-i4In9Us5-BeJKYV4x.js +0 -1
  229. package/dist/assets/CustomerOnboardingContainerPage-DkXWw44M-DCp1xd8r.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-BTMDl7KO-CkFA5sso.js +0 -66
  231. package/dist/assets/ExpenseAutomationPage-CaeVli6J-DwDyMFlL.js +0 -1650
  232. package/dist/assets/InvitePeoplePage-ChM26gAd-3PSfXhTf.js +0 -12
  233. package/dist/assets/LabeledAddressValueField-C-fJPbDr-BL1p3tu1.js +0 -45
  234. package/dist/assets/NotificationsListConfig-BcRqz3T--CwofCBLm.js +0 -1
  235. package/dist/assets/ReimbursementApprovalRuleDetailPage-DWAgRWah-DAeIJHt1.js +0 -26
  236. package/dist/assets/ReimbursementsBulkReviewDrawerPage-D_IG6Yzl-B2GWCVK0.js +0 -1
  237. package/dist/assets/SetUpAccountSection-C9PPpmcc-puvAr14h.js +0 -378
  238. package/dist/assets/StatementItem-DPiBruWm-BTp46EGg.js +0 -31
  239. package/dist/assets/TransactionDetailPage-y3Jwxln6-CGGNkWbu.js +0 -912
  240. package/dist/assets/TransactionVendorDetailPage-DNbFFCAy-DiSmfMU1.js +0 -80
  241. package/dist/assets/ZeniAccountNavBarPieces-ce5jAGIl-DVfSolpZ.js +0 -14
  242. package/dist/assets/ZeniTransferAmountSlider-B-iWjIM--_5mAEjc_.js +0 -63
@@ -1,4 +1,4 @@
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`
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-Du1ejFtI.js";import{b as v,n as m}from"./vendor-rkTZJa59.js";import{C as Be}from"./LabeledAddressValueField-RFI4bpOj-V_HSBjtL.js";import{X as ke}from"./LabeledUserSingleSelectWithSubtitlesField-CE-MxVSk-Bf2C7jq-.js";import{C as Fe,j as ze}from"./LabeledZeniRolesDropDownField-BqlbDyA1-Z63nBo8a.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-DsEos8I_-DRhh0Kxb.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`
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,fq as ie,u as fe,Y as ge,fr as be,a as xe,L as ye,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
- `,O=m.div`
12
+ `,C=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
- `,Ze=m(me)`
19
- padding: ${e=>`${s.sp1} ${k.notePadding.valuePx(e.windowSize)}`};
18
+ `,_e=m(me)`
19
+ padding: ${e=>`${s.sp1} ${F.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,fq as ie,u as fe,Y as ge,fr as be,a as xe,L as ye,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=>k.noteGap.valuePx(e.windowSize)};
28
- `,_e=m.a`
27
+ gap: ${e=>F.noteGap.valuePx(e.windowSize)};
28
+ `,Ee=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,fq as ie,u as fe,Y as ge,fr as be,a as xe,L as ye,l as z,cb as we
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
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`
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`
47
47
  display: flex;
48
48
  height: 100vh;
49
49
  width: 100%;
@@ -59,13 +59,13 @@ 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
59
59
  overflow-y: auto;
60
60
  flex-direction: column;
61
61
  align-items: center;
62
- `,He=m(me)`
62
+ `,Je=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
- `,Je=m.div`
68
+ `,He=m.div`
69
69
  display: flex;
70
70
  align-items: center;
71
71
 
@@ -76,10 +76,10 @@ 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
76
76
  align-items: center;
77
77
  width: ${e=>pe.sectionWidth.valuePx(e.windowSize)};
78
78
  margin-bottom: ${s.sp3};
79
- `,Qe=m.div`
79
+ `,Ke=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,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};
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};
@@ -1,16 +1,16 @@
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`
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-Du1ejFtI.js";import{n as l}from"./vendor-rkTZJa59.js";const $=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
- `,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`
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`
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
- `,T=l.div``,B=l(y)`
13
+ `,B=l.div``,T=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,M as x,o as t,a$ as b,eQ as k,by as y
27
27
  &:hover {
28
28
  color: ${e=>e.theme.colors.primary};
29
29
  }
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};
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};
@@ -1,4 +1,4 @@
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`
1
+ import{j as e,o as r,af as i,by as h}from"./index-Du1ejFtI.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-4y_mNX1u.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-Du1ejFtI.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,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`
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-Du1ejFtI.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`
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,M 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
- `,xe=o.div`
41
+ `,fe=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,M 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}=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`
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`
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,M 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 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`
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`
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,M 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
- `,Ie=o.div`
116
- flex: 1;
117
115
  `,Be=o.div`
116
+ flex: 1;
117
+ `,Ie=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,M 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
- `,_e=o(te)`
131
+ `,qe=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
- `,qe=o.div`
138
+ `,_e=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
- `,Je=o.div`
145
+ `,Oe=o.div`
146
146
  display: flex;
147
147
  padding: ${a.sp3} ${a.sp4} ${a.sp3} ${a.sp4};
148
- `,Oe=o(le)`
148
+ `,He=o(le)`
149
149
  display: flex;
150
150
  flex-grow: 1;
151
151
  color: ${e=>e.theme.colors.hero};
152
- `,He=o.div`
152
+ `,Je=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,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`
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-Du1ejFtI.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`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -10,7 +10,7 @@ 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
10
10
  flex-direction: row;
11
11
  align-items: center;
12
12
  justify-content: center;
13
- margin-bottom: ${h.sp8};
13
+ margin-bottom: ${a.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,f as s,o as h,y as r,C as m,u as o}from"./index-4y_mNX1u.js
22
22
  flex-direction: column;
23
23
  `,p=i(r)`
24
24
  color: ${s.alert};
25
- margin: ${h.sp3} ${h.sp0} ${h.sp5} ${h.sp0};
25
+ margin: ${a.sp3} ${a.sp0} ${a.sp5} ${a.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-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`
1
+ import{j as e,o as t,u as s}from"./index-Du1ejFtI.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,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`
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-Du1ejFtI.js";import{n as t}from"./vendor-rkTZJa59.js";import{a as h}from"./ZeniCopyright-juRAWlbw-DJRbuiIq.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,M as i,bv as s,c7 as l,y as c,f as a,B as d}from"./index-4y_mNX1u.
15
15
  `,p=t(d)`
16
16
  height: 74px;
17
17
  color: ${e=>e.theme.colors.grey1};
18
- `,f=t.div`
18
+ `,u=t.div`
19
19
  top: 0;
20
20
  left: 0;
21
21
  width: 100%;
@@ -25,7 +25,7 @@ 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.
25
25
  flex-direction: column;
26
26
  justify-content: center;
27
27
  align-items: center;
28
- `,u=t(l)`
28
+ `,f=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,M as i,bv as s,c7 as l,y as c,f as a,B as d}from"./index-4y_mNX1u.
43
43
  text-decoration: underline;
44
44
  cursor: pointer;
45
45
  }
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};
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};
@@ -1,4 +1,4 @@
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`
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-Du1ejFtI.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`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${i.sp3};
@@ -6,7 +6,7 @@ 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
6
6
  display: flex;
7
7
  justify-content: space-between;
8
8
  align-items: center;
9
- `,we=o(K)`
9
+ `,we=o(J)`
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,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
57
57
  }
58
58
  `,F=o.div`
59
59
  flex: 1;
60
- `,A=o(W)`
60
+ `,q=o(Q)`
61
61
  color: ${e=>e.theme.colors.hero};
62
- `,Ee=o(Q)`
62
+ `,Ee=o(K)`
63
63
  color: ${e=>e.theme.colors.primary};
64
64
  flex: 1;
65
65
  width: 120px;
@@ -74,7 +74,7 @@ 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
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=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`
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`
78
78
  display: flex;
79
79
  flex-direction: column;
80
80
  row-gap: ${i.sp3};
@@ -82,23 +82,23 @@ 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
82
82
  display: flex;
83
83
  justify-content: space-between;
84
84
  align-items: center;
85
- `,Me=o(K)`
85
+ `,ze=o(J)`
86
86
  color: ${e=>e.theme.colors.primary};
87
- `,q=o.div`
87
+ `,D=o.div`
88
88
  display: flex;
89
- `,V=o(Q)`
89
+ `,V=o(K)`
90
90
  color: ${e=>e.theme.colors.primary};
91
91
  flex: 1;
92
92
  width: 120px;
93
93
  text-align: center;
94
- `,ze=o.div`
94
+ `,Be=o.div`
95
95
  width: 120px;
96
96
  display: flex;
97
- `,Be=o.div`
97
+ `,Me=o.div`
98
98
  width: 120px;
99
99
  display: flex;
100
100
  padding-right: 12px;
101
- `,Te=o(W)`
101
+ `,Te=o(Q)`
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,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
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 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`
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`
122
122
  display: flex;
123
123
  width: 100%;
124
124
  min-height: 100vh;
@@ -135,9 +135,9 @@ 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
135
135
  row-gap: ${i.sp3};
136
136
  background-color: ${e=>e.theme.colors.grey4};
137
137
  `,_e=o.div`
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)};
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)};
141
141
  `,Ge=o.div`
142
142
  display: flex;
143
143
  flex-direction: column;
@@ -157,7 +157,7 @@ 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
157
157
  color: ${e=>e.theme.colors.primary};
158
158
  }
159
159
  }
160
- `,Xe=o(re)`
160
+ `,We=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 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};
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};
@@ -0,0 +1 @@
1
+ import{v as e,q as a}from"./index-Du1ejFtI.js";const r=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,r as t};