@zeniai/web-cockpit-ui 1.14.3-qa → 1.14.4-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 (223) hide show
  1. package/dist/assets/{ACHDetailsPage-IlicpbsX-CIp9n46M.js → ACHDetailsPage-DuaBM5pi-Bsfl4ipB.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Cg8pnJ1F-CtPPPJRA.js → AIPerformancePage-DNJZld4y-DlnQ624v.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Bo4f6WXu-BabowD88.js → AccountInfoPage-B26iFpUV-COrK5vYd.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CgyoqeY7-BWwklb7h.js → AccountInfoPageContent-D52iIQne-B4z2FhUp.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-X4XAlKXA-1nGPfaAo.js → AccountReconDetailsDrawerPage-CB9vTHCy-kDgz9xNb.js} +1 -1
  6. package/dist/assets/{AccountRow-CmtPvQJV-T7-zfCpt.js → AccountRow-BtJsms16-atISEBaH.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-DSiki31T-DPfnCPYV.js → AccountsPromoCardStack-DxkEUAyX-C6Idipth.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-BPlI1vyY-C2MFOZho.js → AddAddressForCardDrawer-nrwPhSQ7-BL7-bGEF.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-D33swzes-CC2O_WyX.js → AddToWalletPage-U3xQJ0ga-Dcd-0jyv.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-fmZS9DwN-DcoL4nWy.js → AgingReportsPage-C-XPC3Ye-rYvlunDJ.js} +1 -1
  11. package/dist/assets/{AllUserItems-Ah7nd-Zu-i2A0gNkU.js → AllUserItems-D9bUKynh-BFnDPP1t.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-BXFmj8CM-B2ArjfiG.js → ApAgingDetailPage-Ct-dl0QP-DXgQdgKD.js} +1 -1
  13. package/dist/assets/{AppBasePage-A25scWRX-CPv3y2P1.js → AppBasePage-DR85cYP5-CKd2IfUf.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-DDwmivCK-CXedu8pz.js → AppDrawerContent-CEALC8UE-BILKJ-kK.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-CKtm-n4R-DABFOC1v.js → ApprovalRulesSettingsPage-OEXjss85-tD_Jhzeu.js} +1 -1
  16. package/dist/assets/{ArAgingChart-0NSve898-D70FTJak.js → ArAgingChart-CU6nYJDL-CM4ji1yR.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-2P188mhw-CDoWZU2c.js → ArAgingDetailPage-SlPH0ZP_-B2JfdfGL.js} +1 -1
  18. package/dist/assets/{AttachmentView-C4mcX4Zi-BC2RVpg1.js → AttachmentView-B_a5fakI-p04obxYu.js} +1 -1
  19. package/dist/assets/{BankAccountSection-3-6tRy48-TS10UTbU.js → BankAccountSection-CHFSoKtQ-CqSlxhlX.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-DiVd7shS-D-QbVmqB.js → BankAccountWarningSection-BEPUwZxt-C_LY2V1e.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-DORa-BJl-C5zwWcbv.js → BankConnectionsSettingsPage-RqqXRKg2-DAiCkGb4.js} +1 -1
  22. package/dist/assets/{BillDetailPage-CntHvNW--Cf2IFww1.js → BillDetailPage-Cri2O4fW-C0ZK-tRn.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-B2xSwMW8-CkAWmuaE.js → BillPayApprovalRuleDetailPage-CflhMC1k-DSH7D8uO.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-D3zs2AXf-u2Q9vnEw.js → BillPayApprovalRulesPage-B3w9pJTA-orF7dUvE.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-CuRyMElO-T_xD6FvT.js → BillPayPromoPage-DK2kXArZ-BqGVG9s8.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-l5cRtorO-Dwn-Hkh9.js → BillPaySetUpPage-C3pMQJHf-8nsMcIJV.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-CX5yCTyc-C9CjkS3j.js → BillingSettingsPage-B3Z4o1Ju-DzUjBP3P.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-hbvOVMQk-CpH-Sutm.js → BillsBulkReviewDrawerPage-DRFjIKgb-CMXz0HSw.js} +1 -1
  29. package/dist/assets/{BoxItem-D3QYSB_0-C9x18gKc.js → BoxItem-CCvSsuyr-BBXHe_fK.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-BqA2qWYz-DK_rOsw6.js → BusinessVerificationPage-HAKln9TW-BSV3Qs6U.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-DbBXFWnu-jNimgAa6.js → CardNumberSubText-BN0HQsC5-CWEnH6iY.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DmWiLgGr-B-9mUZXA.js → CashbackDetailPage-CWMrI6N5-BxS-Dkms.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-CWsbYZI_-oB5QSppR.js → ChargeCardDetailPage-C7i4P8xn-B3JRdCZ3.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-7OVFjrMz-PjQ4mw5J.js → ChargeCardListPage-rjBPLgqe-BpTrAAxV.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-BHhRhMRt-ByBPFlaU.js → ChargeCardListTable-DZky8Lwh-DgWmlfmu.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-Bz3R_LIK-CxlOOJTr.js → ChargeCardPromoPage-BEzLSyck-BrFXUjQo.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-Cd8IdYSm-B2_y6_A4.js → ChargeCardSetupPage-6yjkxRan-BdrXiky8.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-64aocTjB-B0INJkXO.js → ChargeCardStatementsPage-DbW7AzXa-DYLtBdX7.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-C9viDXeo-DVhXdLg_.js → ChargeCardUtils-KGLTWfKZ-CRECzEnA.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-CIiRuAKM-gfU5B4mN.js → ChaseOverlay-ZotQ5CpW-RSeyMejc.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DjKaXOhO-BIzC_3EL.js → CheckDepositDrawerPage-DmxBu2PA-BnBD1jJD.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-NkWEC75c-DZw2wCrM.js → CollapsableReportTable-CFXAvolG-CQrO1G35.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-ELXdYttn-D3OWHSbL.js → CompanyOfficerDetailsSection-BvZ8RVfx-DY2fXGl1.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-C9oh6f6c-DivctqTX.js → CompanyPassportCard-DoaxcZ7_-Dlt7qVWw.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-DqwIHSwq-DY6ClqfF.js → CompanyPassportPage-DQvFR_RP-2b-NpySm.js} +1 -1
  46. package/dist/assets/{CompleteProfile-BIlg3hln-CQE7_U8m.js → CompleteProfile-Bx56Tens-Bp6BKQMJ.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-DTCsF6tY-Dm8lwDdj.js → ConfettiBurst-DnYSdE1w-C_kRgLNS.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-eK7muw60-DPSx_AOT.js → CreateOrEditVendorPage-DHxKxmOq-6AZoO2-8.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-C5y6Qeh2-C1_FvIxP.js → CreditCardPaymentDrawerPage-C46M2-tK-CyO0OcFI.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-BfHK2O6G-Di_HgTUk.js → CreditCardPaymentPlgSection-DNMXEbs0-CN_Z_iqU.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-Cq-8I5M7-DKoUyolN.js → CurrencySelectField-V5pEFFIR-DxCFsYXe.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-C9-hMQWD-D00HhmKZ.js → CustomerOnboardingActivationPage-T-V2eiKa-BzwOahLR.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DGD2vqOH-Dk1W0Xxd.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CTWkmWXm-J1a7Usib.js → CustomerOnboardingDetailPageSkeleton-BSE7KmYp-DMJVvdjg.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CMsvHUPO-BQU8tRQp.js → CustomerOnboardingNoStepsPage-BukqpZ8B-g9Ys8rck.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-CUUtm6Cl-rIeaL_6G.js → CustomerOnboardingPage-8A2Z3y9v-CQUPonbG.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-pN8y9rAE-Cv5tSLNs.js → CustomerOnboardingProductSuitePage-Dpr8oJNi-BITYzDSc.js} +1 -1
  58. package/dist/assets/{Dashboard-xlal4qqq-DsnGEsUU.js → Dashboard-P0yPNp-4-BauQYqj7.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-CBhxD-B4-CZL3NMVe.js → DashboardReportPage-Bkx6FmDQ-DrOh2ion.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-B2nnVYf9-BvElR6n1.js → DepositAccTransactionItem-Cx08KL0D-NXPGi5St.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-C8rgdc0N-ciM5dUPK.js → DepositAccTransactionListPage-BDExP7eh-C9s7xFTm.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-D-c2msUb-C6TSxjZE.js → DocumentSecurityBanner-omOUa698-BgeIyoJ0.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-racBIxWu-MPFFLVJB.js → DomesticWireDetailsPage-_6h8wT5x-Cjkkj6Kq.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Cvo4oa42-CaXawzKt.js → DownloadOverlay-DPU0VkUu-BD-J-Z9x.js} +1 -1
  65. package/dist/assets/{DrawerPage-ChV5Xh-2-BUaUfKLp.js → DrawerPage-CWKR8Rw5-D35RUrwO.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-CMtniu66-DAL3H0Zg.js → EditPeoplePage-DZaNNyln-Dni-Dy0I.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-Bx4frTSg-DQzrmFcP.js → EditReimbursementDetailPage-CcGcN8w2-DnTWFBTS.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-CZSlVlVM-C8lsQlxT.js → EntityDetailPage-D3LRtQ3C-D1SrxFEt.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-BVcKIen2-DEeP-_X9.js → EntitySummarySection-BWdoghlh-BqXiq7Ak.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-BWGtpYKA-_uIDeM_s.js → ExpenseAutomationOverviewPage-mO5gwQc_-CBD5LQwd.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-PAOsfgJ8-dEK7lDQN.js → ExpenseAutomationPage-DMvlc3hY-CmUekSgZ.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-CwQ5ge-1-CrPScI-k.js → ExpressPayPage-CqqA3yus-GSO-aktT.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-BFHtMaGo-CY4_e4Vn.js → FeaturePreviewPage-DFhnoUW--PEMTGy87.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-d9o0CLQV-CEaEmlgK.js → FollowStepsSection-B788Zc2c-BIRdmDst.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-DDVOPoeM--w5AjyxH.js → GlobalReviewListPage-Dj4hMBFz-BrGnmruD.js} +1 -1
  76. package/dist/assets/{HelpButton-Cms9G_Fp-Dv8NpLNt.js → HelpButton-BDMRH4As-BAeJZ0ZL.js} +1 -1
  77. package/dist/assets/{InformationCardStack--nHJ7Vje-D3ejdc7h.js → InformationCardStack-Ba4PzwbG-BR5xH1h_.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-DogY3RH--CV6EWQ9U.js → InsightsCardStack-4ht4YZWA-BvYBsgG3.js} +1 -1
  79. package/dist/assets/{InsightsSection-BFSU6XTB-DShtd7Ph.js → InsightsSection-0LvR4mZQ-BXvcA3NA.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-CH8yZ1rE-Dxex2JXN.js → IntegrationsSettingsPage-6BJsk-Zu-DYYmlYHf.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-5xZXSwfn-xmLfBznf.js → InternationalWireSwiftDetailsPage-DhOLruXZ-fb8Y8SzP.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-CYE3BuMX-Bk_Ln32T.js → InternationalWireVerificationPage-Dd_gqrju-CkA6_WG9.js} +1 -1
  83. package/dist/assets/{InviteFormPage-CpSZgL3C-BTUAYVlY.js → InviteFormPage-C4UNR9b6-Dbmt2iqv.js} +1 -1
  84. package/dist/assets/{InvitePageListView-CxWgQb_H-GOtzg5oj.js → InvitePageListView-Byp3MA_v-C63JZukW.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-D2dxkMSc-Dc_CJpfu.js → InvitePeoplePage-BiKieQDe-B-mgQ55x.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-CesF-8aw-B0bWXDV1.js → InvoiceUploadSection-DZL57cJT-Cpi14hxt.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-BHoqeA-T-DaiHFfsv.js → IssueChargeCardPage-BtPK5cNg-f0oqEWZi.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-BzK11ds6-CcvV09fi.js → LabeledAddressValue-BSIB8Qf_-CWkXGolG.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-DCYUeYio-BzNzAQJG.js → LabeledAddressValueField-B42nS3_A-CeldxyTV.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-uBDSnSo1-C1YC1O4P.js → LabeledControlledCheckBoxField-C4A2B6vg-Dc5c0RMY.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-DCazn6yx-D-PdItfW.js → LabeledCreatableSingleSelectField-CBDrFWBx-BkSLhEXT.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-Cip0e83a-B6dChm-x.js → LabeledDocumentField-C_-ej9Ow-nTysT8e3.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-BEG28_NH-1ks7eJ38.js → LabeledDropDownFormattedTextField-Cwc0pxm3-DK64hUnP.js} +1 -1
  94. package/dist/assets/{LabeledText-CuwxNLlP-D6m96ynk.js → LabeledText-3TJmm0tF-Ddjx7_cN.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BST69Rvq-wHmY1H-T.js → LabeledUserSingleSelectWithSubtitlesField-BeKUbkvn-BMIMFh_y.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CsBQ5HAf-Cqdgzvlx.js → LabeledZeniRolesDropDownField-Y4xH8vGm-PgpTQQCH.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-Dqx2CF7d-B1D69m-1.js → LinkJETransactionPage-Dx5YK4tN-Dya16_iS.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-B7YSf5nh-C3BwvcCy.js → LowBalancePopup-BEQHyRLg-BWnlcStV.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-Onv3TsOp-BLwhta2f.js → MagicLinkACHDetailsPage-CAfhLmSb-CMNOXNUE.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DyQ47uYn-Iopnjj--.js → MagicLinkDomesticWireDetailsPage-Bmk401kR-C2rBEYlP.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C-AvrrYI-BFQWfPM4.js → MagicLinkInternationalWireDetailsPage-sEXYjLgT-CpYYWmdQ.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-BSHuvzHb-HQ3_pmwV.js → MagicLinkSuccessPage-BJ8DC1kk-CN-ehDSa.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-C7oqHWqv-BNwwIiLY.js → MagicLinkTitleSection-DT1byqwI-DnGCC5VX.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-Cl8HeSLQ-TMINMIFS.js → MailingDetailsSection-iqN9dgmJ-g8n62IAD.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-Crufcivq-W90Cv2mM.js → MeetingCalenderPopup-Ck4DBnLb-CpWe-W42.js} +1 -1
  106. package/dist/assets/{Menu-Bxgksma7-aEZRIsJG.js → Menu-DdDY0xYV-BEvu9l3u.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-CP2msF1X-DmYnpCDE.js → MyBankConnectionsSettingsPage-BssdQbZt-Ds86Lwyb.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-BycRkfNQ-BALMz5fy.js → MyPendingActivationChargeCardListPage-Bk15K6aY-BqVCghWS.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-RuUJD6J4-BG125bzv.js → MyProfileSettingsPage-DXBK98XL-D5oWdQ5y.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-JELo6Q4S-BR5cDCuU.js → NavBarWithPicker-CiTE0-y8-CPt98nkB.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CFSP9IjV-DnL3g903.js → NavigationArrow-DSUT4aub-bld7hpTo.js} +1 -1
  112. package/dist/assets/{NavigationDots-GHAOWiXe-CRiA2FQo.js → NavigationDots-BjzeF34D-DIvAMSYi.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DwEjytGo-CkxpwxN2.js → NewGlobalMerchantPage-Y5YIhEkg-D5RIN3qo.js} +1 -1
  114. package/dist/assets/{NoDataChart-CwAwvz9y-CzhHYB7A.js → NoDataChart-3HE6nhZn-KnvhULUo.js} +1 -1
  115. package/dist/assets/{NoDataTable-BAMPdDP7-D8D-7nU1.js → NoDataTable-BTw1BmAf-D-xHUU6S.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CaEcM3_c-C-7il59U.js → NotFoundPage-tRMR7UW4-B7lUiNIg.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-Bam34Xpg-KkPBDWTj.js → NotificationSettingsPage-CQqmntm6-B8_yJBxG.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-B68mFIbn-CQuTe_QJ.js → NotificationsListConfig-Dm1G55mu-Cc65HnmX.js} +1 -1
  119. package/dist/assets/{NotificationsPage-C5ordrdT-CdxsD243.js → NotificationsPage-Asdeuaqq-DMOj6G-9.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-DY3NOyYr-B3VPbQg2.js → OpExByVendorPage-BLq8Ctj1-DHO-2zH3.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-GWXnlbZH-DSNfvDV7.js → OverlayContainerPage-GWXnlbZH-vRusHYvy.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-BX6aj5Y6-BV-yGtkx.js → PandLWithForecastPage-DwJKEUDv-5-npUXfm.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-f5qsN-3Y-i7KzCiTe.js → PaymentAccountSetupBillingAddressSection-wujd9fIw-BUpA-nlO.js} +1 -1
  124. package/dist/assets/{PeoplePage-BkXdO_eN-ROIkQ9N2.js → PeoplePage-DPfCZF1U-ih22mCnT.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-C_lmPeC9-BhOSuS0f.js → PortfolioAllocationFormPage-D9mZATtO-Cu--vkc1.js} +4 -4
  126. package/dist/assets/PortfolioDetails-Cgq2JdwS-B0wDIzGK.js +218 -0
  127. package/dist/assets/{ProductsCarousel-BP9cI12D-DAhAtplX.js → ProductsCarousel-B77mX5vy-BuRkFwev.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-6W04d7zP-onuAHZ2Y.js → PromoBaseCards-D-19cOmP-CKnOOHiw.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-DjT-h910-GewQlvc4.js → QBOConnectionDialog-Afsdvgkl-Dnac_hvL.js} +1 -1
  130. package/dist/assets/{QBOSetupSection-DXfY8nFt-DSDmrl1V.js → QBOSetupSection-CIINq6G--Cnu25hcY.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-I93XcmAv-CdIOX0Jv.js → ReimbursementApprovalRuleDetailPage-BauwtxXL-DtvNXa98.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-D8mME0QI-Czpvp077.js → ReimbursementApprovalRulesPage-CJ_7q2S5-b-A-IkdZ.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-CsqyYapD-JsyiFfVu.js → ReimbursementDetailPage-BfA-gWiV-Bz1PmPly.js} +1 -1
  134. package/dist/assets/{ReimbursementPromoPage-CjjAZH_R-BGC4qyXm.js → ReimbursementPromoPage-BugyRgus-DwYL_lE_.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-CmENGPDd-00uhbZuu.js → ReimbursementSetUpPage-U56eB_bc-DGWsmH4h.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DodlV376-NIv34nlG.js → ReimbursementsBulkReviewDrawerPage-BF7-BQrP-DrY6-0C1.js} +1 -1
  137. package/dist/assets/{ReloadCard-DCswXdRU-DtBNy5fj.js → ReloadCard-CUwDcZ5d-BVApZyZw.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-CuJjacY9-tUM2kE0S.js → ReportTableViewSelector-DPZiNtOP-DD38m_51.js} +1 -1
  139. package/dist/assets/{ReportsPage-BS1znKom-Bv0qC36S.js → ReportsPage-DG2RyIza-BvPfPFTp.js} +1 -1
  140. package/dist/assets/{RevenueChart-QYZoX_2o-O8bUzT6B.js → RevenueChart-DV12hQwS-s1trcTd0.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-DlcjxoKl-D-5l0Jk8.js → ReviewDetailsPage-C2qnZOx_-C9QZtDTi.js} +1 -1
  142. package/dist/assets/{ReviewOverlay-qo1v9-E4-BYDTspq1.js → ReviewOverlay-B0us5qds-CxXUYzRM.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-7IBT7PpV-D6Bj65qK.js → RoleWithToolTip-KqICk9kG-DmYDkHVn.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-kz4Xwcye-HXBFq5zd.js → ScheduleDetailsFixedAssetsPage-C6OEABHj-BQN5vgw0.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-guEjspG5-DBUGwfI6.js → ScheduleDetailsPage-CrzvMwbJ-CP5_7ojA.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-4Yc3ZRdp-3UM-CU09.js → ScheduleSequenceTable-BUDWyViz-9AsBg7Zc.js} +1 -1
  147. package/dist/assets/{ScreenRoutes-BNDJL6N8.js → ScreenRoutes-DUKbex1c.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-BlokopoC-Bop-jr7-.js → SetUpAccountSection-Imz6rw6K-DioSxUN3.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-CjXLrIH0-BjiqSN9Y.js → SetUpDefaultSection-bAd0d4qo-PUApdyLc.js} +1 -1
  150. package/dist/assets/{SignIn-B4sJUaDd-BaHB37hV.js → SignIn-C1k0afjs-BsJ29JBx.js} +1 -1
  151. package/dist/assets/{SignInScreen-CJ7zegaW.js → SignInScreen-Dia63Br4.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-LA2GQyOi-KDvcAm1D.js → SpendManagementListViewPage-CvjkWB-_-SMCEdzKT.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-BSV94PVx-D97pS7UH.js → SpendManagementPerTabPage-DYq_U4nN-Bt3zwfrs.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-D5lkkIVU-B83SRI-L.js → SpendManagementSection-CHBLAXiF-_awyWpSH.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-B2F0oKk_-Dweq8O9R.js → SpendMgmtSetupAccountSection-C7lpDD5w-_yXLXZJi.js} +1 -1
  156. package/dist/assets/{StatementItem-CfkMZIbO-CJkbQsZc.js → StatementItem-ClfyhiJC-DBO5FYei.js} +1 -1
  157. package/dist/assets/{StatementsPage-DmbLst4p-BMwE15Me.js → StatementsPage-BLtMccZw-DwxygkeE.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-BQK9o7R4-DOr32zYh.js → StatusSwitcher-DrlUYFAO-CEIbzGSQ.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-DWeDSFKx-BRV1s6BY.js → SubTabSwitcher-Dyq1x5SP-GVBqxQwY.js} +1 -1
  160. package/dist/assets/{SummaryCard-egnXlcLU-BTAigjea.js → SummaryCard-CzHp89o2-CnJxg-nf.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-CMRKQ-Ko-DgSysLtq.js → TaskManagementPage-V4Jb53tv-BJIV-q4a.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-OxjJ576j-BfsPu4wi.js → TimeRangeSwitcher-BxJX9ASF-CIlk1Ow0.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcher-DrC9bvMo-D0iWUVmI.js → TimeframeSwitcher-C5xMAnLt-DSHjKIW6.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-C7fCh8tl-BWbS8tru.js → TimeframeSwitcherWithToggle-DMX6o1BS-CjA07rpv.js} +1 -1
  165. package/dist/assets/{TopExCard-wnzLjnaP-DPI8NuqX.js → TopExCard-D6jvucRB-CrTEQZYn.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-BbKGbGU5-DrQnp4xT.js → TopExDetailPage-QpVoLtzq-iFCHXke5.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-DztoB9X4-Bf2YsL4j.js → TransactionDetailPage-3aDWdlUB-B0XsE2gb.js} +1 -1
  168. package/dist/assets/{TransactionList-DmEyc2C4-2LmzZp0a.js → TransactionList-k8YmeJcr-MUQoIUD6.js} +1 -1
  169. package/dist/assets/{TransactionListBig-BK_J4i4g-LxNbi2i2.js → TransactionListBig-vTaTpmta-Cq5jSX6I.js} +1 -1
  170. package/dist/assets/{TransactionListPage-Ca55hjDg-E9NGV6V2.js → TransactionListPage-CYnJEUFj-DqrWZiop.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-7_O3STPw-QlwvCBgP.js → TransactionVendorDetailPage-BdGJYzkn-BavW_ppw.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-CvCsaIq--BwoULVBZ.js → TransferDrawerPage-JhER6Fzb-D43akvxL.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-DIKQKR_u-Boz7_UBI.js → TreasuryOverviewPage-etZMI5qq-DiD9U0db.js} +1 -1
  174. package/dist/assets/{TreasuryPromoPage-BpgRih0--DkzJfX8X.js → TreasuryPromoPage-DMQCUGTI-B2n7b1DJ.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage-CZ1BTHXX-CHCJxM9O.js → TreasurySetupPage-CLLUfgvc-EYd9wl82.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-DgoatXf4-CZ_Wpkc-.js → TreasuryStatementsPage-CbJuuQJf-Y3IHssMy.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-DZsnsmnk-CvMt_sqj.js → TreasuryTaxLetterPage-CNZRB1JA-xJYaD87a.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-BFRIDROn-OgdMzbux.js → TreasuryTransferOrReviewPage-_KQow8xx-83MqpleX.js} +76 -76
  179. package/dist/assets/{TrendChart-BfsNpqPF-BgEax26m.js → TrendChart-DgcS2Qi8-DiEt2rLi.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-CcmSvqVJ-Ct2mISKB.js → TrendWithTransactions-BV5_3PZZ-BJ-il-PK.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-LqkF-E1i-rBHDJi6E.js → UncategorizedAccountsMappingPage-Bsm7bAwr-CUxNTAzV.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-uA8jq1yR-B6L-CUsT.js → UnitIntegrationPage-ChuaH8ac-67iZtJui.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-N0bSxafO-CcK85smH.js → UploadAdditionalDocumentOverlay-Bz_n0Pn3-CI7EeNcG.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-e-xRW6rn-BVJB6GSQ.js → Vendor2FAPopup-R19bkGMS-BNz9_Z6D.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-Cca7Gf4u-DC2Z_rY2.js → VendorACHDetailsPage-C_RgFepi-k1b3Hisb.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-Bk_NbpIs-BhLwvvDk.js → VendorDetailPage-uA1hH2Jz-DSdoHVu-.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-BI35k3uH-B4S0GcWn.js → VendorDomesticWireDetailsPage-9tAj_M02-D-y5y0QJ.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-Cr3OoQa1-Bj31nHn_.js → VendorFiling1099EditablePage-DG0cllTw-tqIqoC2I.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-O82qXI11-BmA5fiVn.js → VendorFirstReviewPage-Bt-yNa1d-CeKmMJ9w.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-a5jqRn0i-CjYbN30q.js → VendorInternationalWireDetailsPage-CgI4LQyI-CnHBKCEY.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CR3nUSIG-y8BSmCa9.js → VendorInternationalWireSwiftDetailsPage-BrMTSUIo-DlQUEivq.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-DUUy43AG-DDhNQEQj.js → VendorsAccountsSection-WaX0Qe7x-zY81ntXq.js} +1 -1
  193. package/dist/assets/{WarningsDrawerPage-ANVg-uR9-D0szyCOh.js → WarningsDrawerPage-Cafo6rCY-Co-TDult.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-DuaoV3nD-Tejdg43i.js → ZeniAccountDetailPage-B7wC3QXT-DjGEfIBK.js} +1 -1
  195. package/dist/assets/{ZeniAccountListViewPage-DJoQlRuS-0v75K9Tz.js → ZeniAccountListViewPage-pAoiX5t8-DOYCD6Jl.js} +1 -1
  196. package/dist/assets/{ZeniAccountNavBarPieces-DciiSI3f-DdOi_CFw.js → ZeniAccountNavBarPieces-DK__bQjs-Cwwi7p69.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-C4TGOls6-CuyT7Co5.js → ZeniAccountPromoPage-DI4EDGF1-Dm33SaFx.js} +1 -1
  198. package/dist/assets/{ZeniAccountSetupPage-CvIAyaFj-Y__elh2o.js → ZeniAccountSetupPage-C7Sl8Kvq-BAfFQNWK.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-9rssOaZJ-CV0roKXf.js → ZeniCopyright-Clbu-tZt-BzfKJCS4.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-0yTtw1XU-BFy78o6-.js → ZeniTransferAmountSlider-CF39KlIc-BCG0SSs3.js} +1 -1
  201. package/dist/assets/{analyticsHelper-BLAu2yM--4MNx61WQ.js → analyticsHelper-BF4C5cfp-CH2DxjTE.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BN526rzC.js → analyticsHelper-DsnuBBTs.js} +1 -1
  203. package/dist/assets/{chartTypes-Br4XSz7W-CqUwzZOS.js → chartTypes-BuFzxmL_-B2IChMB8.js} +1 -1
  204. package/dist/assets/{commonDimensions-DYyjzo8L-Qs3s6l0G.js → commonDimensions-DNp72kDa-Cicm30TI.js} +1 -1
  205. package/dist/assets/{detailCommon-CXtdUvH5-BxRn2hSj.js → detailCommon-ClngFipo-C59qs-Xf.js} +1 -1
  206. package/dist/assets/{downloadPdf-Ceik9x1F-D8Bsv6jW.js → downloadPdf-CvBnJ3dy-Cd8LdAT0.js} +1 -1
  207. package/dist/assets/{index-4pBF5Sdt.js → index-1Afae-x7.js} +5 -5
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-CTk8G3Gw--JO1-eAU.js → mapLoadingInProgressToTreeNode-_i8eyx1f-er3yaSsO.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DSfitd4--NHfTySFt.js → mapSectionWithAcOnlyToTreeNode-CG5X_Lif-C_NtY9qL.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-NDmnO3-w-Cc1vt0E0.js → mapSpacerToTreeNode-C58mhpiy-Byst5W8N.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-CCDxZE7U-BewQyMpE.js → mapTimeframeBalancesToTreeNode-By8Tp-Gv-owcstXxo.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-DxbCC6c3-BAVNQs6t.js → mapTimeframeBalancesToTreeNode-oCLMU9SF-PWyybgFN.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-nb9z_DUI-Be0Hp7lE.js → mapTimeframeHeaderLoadingInProgressToTreeNode-GuK79d7h-CJh54W1Z.js} +1 -1
  214. package/dist/assets/{play-icon-CUEtOPwa-DLyEAfVi.js → play-icon-CIcjP313-CSSPDV3d.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-BuGHg1ur-BdY3n1XR.js → toCOABalancesWithID-C-bTJwi8-NxSrtpOt.js} +1 -1
  216. package/dist/assets/{toChartData-C5QlPh1F-BSGx6jN0.js → toChartData-Cy5VqMOG-C5DMk1vW.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-D1HNtoAk-5WW2qfzw.js → treasuryColorHelper-DAviLn_P-C2Dhk4Qd.js} +1 -1
  218. package/dist/assets/{uploadAttachment-zGYCP5sV-DEZy8HjP.js → uploadAttachment-Xl-SHr7p-Ro9goyXY.js} +1 -1
  219. package/dist/assets/{uploadReceipts-D80JLNY4-DUW52nGK.js → uploadReceipts-D80JLNY4-DxXv1Yav.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/CustomerOnboardingContainerPage-BVOEIC7A-DDv8b4KC.js +0 -1
  223. package/dist/assets/PortfolioDetails-BvN3T8NL-CCXqHdhh.js +0 -218
@@ -1,4 +1,4 @@
1
- import{X as te,fj as ie,u as fe,w as ge,fk as be,a as xe,H as ye,l as z,c4 as we,c3 as Pe,M as re,j as l,fl as ve,aV as $e,F as De,a3 as Se,o as s,fm as ne,fn as de,fo as ce,b_ as ue,C as L,e as me,p as je,Q as Oe,S as le,cf as Re,c6 as Ce,fp as q,cc as Le,ca as Te,fq as Ve,ae as Ie,m as E}from"./index-4pBF5Sdt.js";import{b as v,n as m}from"./vendor-CnQcJ2Lu.js";import{W as ke}from"./LabeledAddressValueField-DCYUeYio-BzNzAQJG.js";import{X as Be}from"./LabeledUserSingleSelectWithSubtitlesField-BST69Rvq-wHmY1H-T.js";import{C as Fe,j as ze}from"./LabeledZeniRolesDropDownField-CsBQ5HAf-Cqdgzvlx.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./RoleWithToolTip-7IBT7PpV-D6Bj65qK.js";const b=(e,i)=>`${e}.${i}`,F={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(E[2],E[3]),toolTipWidth:new L(215,237),notePadding:new L(E[3],E[4]),noteGap:new L(E[0],6)},{peoplePage:a,common:{settings:se,labels:X,placeholder:B,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,Q=e.person.user?.birthday!=null?"readonly":void 0,D=F.largeLabelWidth.value(n),V=F.largeLabelWidth.value(n),J=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),O=c.reduce((I,k)=>I.concat(`${k.email},`),"");return{firstController:j,restControllerEmailsStr:O}},[M]),K=v.useMemo(()=>le(ue.roles),[]),d=z.hasInvestorBankerLevelAccess(r.userRole!=null?r.userRole.userRoles:[]),Z=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:V},nameField:{name:b(t,"name"),placeHolder:{firstName:B.firstNamePlaceholder,lastName:B.lastNamePlaceholder,name:B.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:V},style:{width:"auto"},isDisabled:Q,dateField:{name:b(t,"dateOfBirth"),placeholder:B.datePlaceholder,defaultValue:W.dateOfBirth,dateFormat:Ne.visual.defaultInput,autoComplete:"off",maxDate:z.dateNow().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(ke,{label:{label:X.mailingAddress,width:V},addressValueField:{name:b(t,"mailingAddress"),placeholder:B.addressPlaceholder,defaultValue:H?.addressToCreate,onClick:()=>{y("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:V},text:{name:b(t,"phone"),placeholder:B.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??[],J)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Be,{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],I=N.find(Y=>Y.classId===O.userRole.accountingClassIDs[0]),k=[];return I!=null&&k.push(I.className),k}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(Ve,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(t,"department"),defaultValue:{allOptions:d?[]:Z,selectedOption:d?void 0:Z.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(Ee,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Ze,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(_e,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Ie,{className:"arrowIcon"})]}):null]})]})]})},We=()=>a.invitePage.managerTooltipText,Ue=m.div`
1
+ import{X as te,fj as ie,u as fe,w as ge,fk as be,a as xe,H as ye,l as z,c4 as we,c3 as Pe,M as re,j as l,fl as ve,aV as $e,F as De,a3 as Se,o as s,fm as ne,fn as de,fo as ce,b_ as ue,C as L,e as me,p as je,Q as Oe,S as le,cf as Re,c6 as Ce,fp as q,cc as Le,ca as Te,fq as Ve,ae as Ie,m as E}from"./index-1Afae-x7.js";import{b as v,n as m}from"./vendor-CnQcJ2Lu.js";import{W as ke}from"./LabeledAddressValueField-B42nS3_A-CeldxyTV.js";import{X as Be}from"./LabeledUserSingleSelectWithSubtitlesField-BeKUbkvn-BMIMFh_y.js";import{C as Fe,j as ze}from"./LabeledZeniRolesDropDownField-Y4xH8vGm-PgpTQQCH.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./RoleWithToolTip-KqICk9kG-DmYDkHVn.js";const b=(e,i)=>`${e}.${i}`,F={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(E[2],E[3]),toolTipWidth:new L(215,237),notePadding:new L(E[3],E[4]),noteGap:new L(E[0],6)},{peoplePage:a,common:{settings:se,labels:X,placeholder:B,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,Q=e.person.user?.birthday!=null?"readonly":void 0,D=F.largeLabelWidth.value(n),V=F.largeLabelWidth.value(n),J=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),O=c.reduce((I,k)=>I.concat(`${k.email},`),"");return{firstController:j,restControllerEmailsStr:O}},[M]),K=v.useMemo(()=>le(ue.roles),[]),d=z.hasInvestorBankerLevelAccess(r.userRole!=null?r.userRole.userRoles:[]),Z=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:V},nameField:{name:b(t,"name"),placeHolder:{firstName:B.firstNamePlaceholder,lastName:B.lastNamePlaceholder,name:B.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:V},style:{width:"auto"},isDisabled:Q,dateField:{name:b(t,"dateOfBirth"),placeholder:B.datePlaceholder,defaultValue:W.dateOfBirth,dateFormat:Ne.visual.defaultInput,autoComplete:"off",maxDate:z.dateNow().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(ke,{label:{label:X.mailingAddress,width:V},addressValueField:{name:b(t,"mailingAddress"),placeholder:B.addressPlaceholder,defaultValue:H?.addressToCreate,onClick:()=>{y("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:V},text:{name:b(t,"phone"),placeholder:B.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??[],J)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Be,{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],I=N.find(Y=>Y.classId===O.userRole.accountingClassIDs[0]),k=[];return I!=null&&k.push(I.className),k}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(Ve,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(t,"department"),defaultValue:{allOptions:d?[]:Z,selectedOption:d?void 0:Z.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(Ee,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Ze,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(_e,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Ie,{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};
@@ -1,4 +1,4 @@
1
- import{u as p,X as m,j as o,Y as u,bs as g,M as x,o as t,aZ as b,eK as k,bo as y,bl as C,p as v}from"./index-4pBF5Sdt.js";import{n as l}from"./vendor-CnQcJ2Lu.js";const j=l.div`
1
+ import{u as p,X as m,j as o,Y as u,bs as g,M as x,o as t,aZ as b,eK as k,bo as y,bl as C,p as v}from"./index-1Afae-x7.js";import{n as l}from"./vendor-CnQcJ2Lu.js";const j=l.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  flex: 1 1 auto;
@@ -1,4 +1,4 @@
1
- import{j as e,o as r,ae as i,bo as h}from"./index-4pBF5Sdt.js";import{j as l,n as t}from"./vendor-CnQcJ2Lu.js";const c=l`
1
+ import{j as e,o as r,ae as i,bo as h}from"./index-1Afae-x7.js";import{j as l,n as t}from"./vendor-CnQcJ2Lu.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,Y as p,o as t}from"./index-4pBF5Sdt.js";import{n as l}from"./vendor-CnQcJ2Lu.js";const v=l.div`
1
+ import{j as e,Y as p,o as t}from"./index-1Afae-x7.js";import{n as l}from"./vendor-CnQcJ2Lu.js";const v=l.div`
2
2
  text-align: center;
3
3
  cursor: pointer;
4
4
  `,C=l.div`
@@ -1,4 +1,4 @@
1
- import{X as z,a as Q,c3 as A,a1 as X,j as t,M as C,F as Y,a3 as Z,C as i,o as a,a2 as ee,Q as q,h as te,gh as ae,s as le,cg as O,hC as ne,c8 as U,c6 as oe,m as l,an as re,co as ie,cm as de,cA as se,c as ce,eo as me,dg as he,az as be,g as V}from"./index-4pBF5Sdt.js";import{b as j,n as o,j as ge}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const 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=C.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:g,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"}}),g?.fetchState==="In-Progress"?t.jsx($e,{children:t.jsx(ce,{size:"Standard",start:!0})}):t.jsxs(Se,{children:[t.jsxs(Me,{windowSize:s,isRecommendationVisible:m.length>0,isError:$,children:[h.icon,h.label]}),m.length>0?m.map((u,p)=>t.jsxs(t.Fragment,{children:[t.jsx(me,{isHighlighted:!0,label:{label:u.label},checkBoxField:u.field,defaultChecked:u.field.defaultChecked,isDisabled:u.field.isDisabled!=null},he()),p<m.length-1?t.jsx(ve,{children:pe.common.texts.or}):null]})):null]})]})]})}const xe=o.div`
1
+ import{X as z,a as Q,c3 as A,a1 as X,j as t,M as C,F as Y,a3 as Z,C as i,o as a,a2 as ee,Q as q,h as te,gh as ae,s as le,cg as O,hC as ne,c8 as U,c6 as oe,m as l,an as re,co as ie,cm as de,cA as se,c as ce,eo as me,dg as he,az as be,g as V}from"./index-1Afae-x7.js";import{b as j,n as o,j as ge}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const 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=C.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:g,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"}}),g?.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;
@@ -1,4 +1,4 @@
1
- import{X as l,j as t,g as r,o as a,s,C as m,u as o}from"./index-4pBF5Sdt.js";import{n as i,b as h}from"./vendor-CnQcJ2Lu.js";const v=e=>h.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h.createElement("path",{fill:"#3E4043",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),h.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#3E4043"})),c=e=>h.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h.createElement("path",{fill:"#E9ECF0",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),h.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#E9ECF0"})),d={chartMinHeight:new m(288,360)},z=i.div`
1
+ import{X as l,j as t,g as r,o as a,s,C as m,u as o}from"./index-1Afae-x7.js";import{n as i,b as h}from"./vendor-CnQcJ2Lu.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;
@@ -1,4 +1,4 @@
1
- import{j as e,o as t,u as s}from"./index-4pBF5Sdt.js";import{n as i}from"./vendor-CnQcJ2Lu.js";import{r as n,o}from"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const r=i.div`
1
+ import{j as e,o as t,u as s}from"./index-1Afae-x7.js";import{n as i}from"./vendor-CnQcJ2Lu.js";import{r as n,o}from"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.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,bB as s,c0 as l,s as c,g as a,e as d}from"./index-4pBF5Sdt.js";import{n as t}from"./vendor-CnQcJ2Lu.js";import{i as h}from"./ZeniCopyright-9rssOaZJ-CV0roKXf.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const g=t.div`
1
+ import{j as o,M as i,bB as s,c0 as l,s as c,g as a,e as d}from"./index-1Afae-x7.js";import{n as t}from"./vendor-CnQcJ2Lu.js";import{i as h}from"./ZeniCopyright-Clbu-tZt-BzfKJCS4.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const g=t.div`
2
2
  width: 100%;
3
3
  height: 100vh;
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{j as t,fy as ne,o as i,be as se,M as I,a5 as re,u as W,X,a as le,c3 as ae,l as P,aV as ce,F as de,T as w,a3 as pe,C as T,f3 as me,fz as ue,eB as he,fA as fe,fB as ge,ae as xe,m as S,an as J,v as K,s as Q,e as $e}from"./index-4pBF5Sdt.js";import{n as o,b as E}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:ye}=I.getLocalizedStrings(),U={notePadding:new T(S[3],S[4]),noteGap:new T(S[0],6)},M=(e,n)=>`${e}.${n}`,be=o.div`
1
+ import{j as t,fy as ne,o as i,be as se,M as I,a5 as re,u as W,X,a as le,c3 as ae,l as P,aV as ce,F as de,T as w,a3 as pe,C as T,f3 as me,fz as ue,eB as he,fA as fe,fB as ge,ae as xe,m as S,an as J,v as K,s as Q,e as $e}from"./index-1Afae-x7.js";import{n as o,b as E}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:ye}=I.getLocalizedStrings(),U={notePadding:new T(S[3],S[4]),noteGap:new T(S[0],6)},M=(e,n)=>`${e}.${n}`,be=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${i.sp3};
@@ -1 +1 @@
1
- import{p as e,m as a}from"./index-4pBF5Sdt.js";const r=a[5],o=59,s=a[5],i=e.standardRegular.lineHeightValue,l=1,m=1e3;export{i as A,s as E,l as I,m as L,o as a,r as t};
1
+ import{p as e,m as a}from"./index-1Afae-x7.js";const r=a[5],o=59,s=a[5],i=e.standardRegular.lineHeightValue,l=1,m=1e3;export{i as A,s as E,l as I,m as L,o as a,r as t};
@@ -1,4 +1,4 @@
1
- import{u as X,X as v,a as Zt,M as P,c3 as Kt,j as t,aV as Xt,l as g,F as Qt,a3 as ei,o as i,T as we,gm as ti,C as R,hu as ii,p as Ne,c as oi,z as et,bL as tt,ai as it,di as ot,bT as st,jd as at,m as w,K as si,je as ai,dg as ce,ad as ri,Q as ni,h as rt,g as S,v as li,bf as z,cg as ue,fz as he,jf as pe,w as nt,d2 as lt,dq as V,cZ as dt,fI as di,s as Q,hI as ci,e as H,eY as ui,a7 as ye,ao as fe,jg as hi,bc as ct,jh as Ie,aP as pi}from"./index-4pBF5Sdt.js";import{b as x,n as r,j as O}from"./vendor-CnQcJ2Lu.js";import{k as fi}from"./SubTabSwitcher-DWeDSFKx-BRV1s6BY.js";import{d as ut}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-B68mFIbn-CQuTe_QJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";function mi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),f=X(),m=x.useCallback(b=>{d(b.id)},[d]),p=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(gi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${f.colors.grey3}`},onTabChange:m}),t.jsx(fi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:p})]})}const gi=r.div`
1
+ import{u as X,X as v,a as Zt,M as P,c3 as Kt,j as t,aV as Xt,l as g,F as Qt,a3 as ei,o as i,T as we,gm as ti,C as R,hu as ii,p as Ne,c as oi,z as et,bL as tt,ai as it,di as ot,bT as st,jd as at,m as w,K as si,je as ai,dg as ce,ad as ri,Q as ni,h as rt,g as S,v as li,bf as z,cg as ue,fz as he,jf as pe,w as nt,d2 as lt,dq as V,cZ as dt,fI as di,s as Q,hI as ci,e as H,eY as ui,a7 as ye,ao as fe,jg as hi,bc as ct,jh as Ie,aP as pi}from"./index-1Afae-x7.js";import{b as x,n as r,j as O}from"./vendor-CnQcJ2Lu.js";import{k as fi}from"./SubTabSwitcher-Dyq1x5SP-GVBqxQwY.js";import{d as ut}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-Dm1G55mu-Cc65HnmX.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";function mi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),f=X(),m=x.useCallback(b=>{d(b.id)},[d]),p=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(gi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${f.colors.grey3}`},onTabChange:m}),t.jsx(fi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:p})]})}const gi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{X as H,ht as ye,M as B,u as q,z as be,j as t,Y as _e,be as Se,hs as ke,aX as we,aV as ve,hu as Be,hv as Oe,o as u,a5 as Pe,c as $e,C as F,ai as le,H as ie,a7 as je,m as O,a_ as Te,bE as De,bF as Ne,bG as Ee,g as a,s as ce,bb as Ie,b6 as Me,au as Ae,p as Z,at as Le,aa as Fe,b7 as Ve,b9 as ze,l as Re}from"./index-4pBF5Sdt.js";import{b as y,n as m,f as We}from"./vendor-CnQcJ2Lu.js";import{p as Ke,d as Ye,y as G,b as de,u as ee}from"./chartTypes-Br4XSz7W-CqUwzZOS.js";import{V as Ge}from"./toChartData-C5QlPh1F-BSGx6jN0.js";import{m as V}from"./analyticsHelper-BLAu2yM--4MNx61WQ.js";import{p as He}from"./TimeRangeSwitcher-OxjJ576j-BfsPu4wi.js";import{M as qe}from"./TimeframeSwitcherWithToggle-C7fCh8tl-BWbS8tru.js";import{C as Xe}from"./NoDataChart-CwAwvz9y-CzhHYB7A.js";import{d as Je}from"./NoDataTable-BAMPdDP7-D8D-7nU1.js";import{H as Ue,k as oe}from"./detailCommon-CXtdUvH5-BxRn2hSj.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Qe,W as X}from"./CollapsableReportTable-NkWEC75c-DZw2wCrM.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-DxbCC6c3-BAVNQs6t.js";import{d as re}from"./mapLoadingInProgressToTreeNode-CTk8G3Gw--JO1-eAU.js";import{l as Ze}from"./mapSpacerToTreeNode-NDmnO3-w-Cc1vt0E0.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-DrC9bvMo-D0iWUVmI.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";import"./AccountRow-CmtPvQJV-T7-zfCpt.js";const eo=m.div`
1
+ import{X as H,ht as ye,M as B,u as q,z as be,j as t,Y as _e,be as Se,hs as ke,aX as we,aV as ve,hu as Be,hv as Oe,o as u,a5 as Pe,c as $e,C as F,ai as le,H as ie,a7 as je,m as O,a_ as Te,bE as De,bF as Ne,bG as Ee,g as a,s as ce,bb as Ie,b6 as Me,au as Ae,p as Z,at as Le,aa as Fe,b7 as Ve,b9 as ze,l as Re}from"./index-1Afae-x7.js";import{b as y,n as m,f as We}from"./vendor-CnQcJ2Lu.js";import{p as Ke,d as Ye,y as G,b as de,u as ee}from"./chartTypes-BuFzxmL_-B2IChMB8.js";import{V as Ge}from"./toChartData-Cy5VqMOG-C5DMk1vW.js";import{m as V}from"./analyticsHelper-BF4C5cfp-CH2DxjTE.js";import{p as He}from"./TimeRangeSwitcher-BxJX9ASF-CIlk1Ow0.js";import{M as qe}from"./TimeframeSwitcherWithToggle-DMX6o1BS-CjA07rpv.js";import{C as Xe}from"./NoDataChart-3HE6nhZn-KnvhULUo.js";import{d as Je}from"./NoDataTable-BTw1BmAf-D-xHUU6S.js";import{H as Ue,k as oe}from"./detailCommon-ClngFipo-C59qs-Xf.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Qe,W as X}from"./CollapsableReportTable-CFXAvolG-CQrO1G35.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-oCLMU9SF-PWyybgFN.js";import{d as re}from"./mapLoadingInProgressToTreeNode-_i8eyx1f-er3yaSsO.js";import{l as Ze}from"./mapSpacerToTreeNode-C58mhpiy-Byst5W8N.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-C5xMAnLt-DSHjKIW6.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";import"./AccountRow-BtJsms16-atISEBaH.js";const eo=m.div`
2
2
  display: flex;
3
3
  `,oo=m.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{u as i,j as r}from"./index-4pBF5Sdt.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const p=n.div`
1
+ import{u as i,j as r}from"./index-1Afae-x7.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const p=n.div`
2
2
  display: ${({isOpen:o})=>o?"block":"none"};
3
3
  position: fixed;
4
4
  top: 0;
@@ -1,4 +1,4 @@
1
- import{j as o,D as M,u as T,X as v,Y as A,aV as re,M as c,K as ie,c as ae,C as D,p as ce,o as s,H as le,a7 as de,c0 as ge,c1 as pe,aS as me,m as P,l as Y,a_ as he,c2 as ue,a5 as fe,a6 as xe,ao as we}from"./index-4pBF5Sdt.js";import{n as r,b as F}from"./vendor-CnQcJ2Lu.js";import{L as Se}from"./NavBarWithPicker-JELo6Q4S-BR5cDCuU.js";import{m as je}from"./analyticsHelper-BLAu2yM--4MNx61WQ.js";import{M as $e}from"./TimeframeSwitcherWithToggle-C7fCh8tl-BWbS8tru.js";import{R as Ce,a as Pe}from"./CollapsableReportTable-NkWEC75c-DZw2wCrM.js";import{M as E}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import{T as be,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-DSfitd4--NHfTySFt.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-CCDxZE7U-BewQyMpE.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-DrC9bvMo-D0iWUVmI.js";import"./AccountRow-CmtPvQJV-T7-zfCpt.js";const K="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ze=r.div`
1
+ import{j as o,D as M,u as T,X as v,Y as A,aV as re,M as c,K as ie,c as ae,C as D,p as ce,o as s,H as le,a7 as de,c0 as ge,c1 as pe,aS as me,m as P,l as Y,a_ as he,c2 as ue,a5 as fe,a6 as xe,ao as we}from"./index-1Afae-x7.js";import{n as r,b as F}from"./vendor-CnQcJ2Lu.js";import{L as Se}from"./NavBarWithPicker-CiTE0-y8-CPt98nkB.js";import{m as je}from"./analyticsHelper-BF4C5cfp-CH2DxjTE.js";import{M as $e}from"./TimeframeSwitcherWithToggle-DMX6o1BS-CjA07rpv.js";import{R as Ce,a as Pe}from"./CollapsableReportTable-CFXAvolG-CQrO1G35.js";import{M as E}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import{T as be,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-CG5X_Lif-C_NtY9qL.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-By8Tp-Gv-owcstXxo.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-C5xMAnLt-DSHjKIW6.js";import"./AccountRow-BtJsms16-atISEBaH.js";const K="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ze=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{eM as Q,M as Z,h2 as de,a1 as le,p as B,o as a,g as z,X as J,j as t,bz as pe,h3 as me,u as re,cg as ge,a7 as W,C as F,aQ as he,eW as ue,s as ie,h4 as fe,h5 as Se,h6 as q,h7 as G,h8 as X,a3 as ye,i as Y,m as xe,gf as be,e as Ce,Q as ve}from"./index-4pBF5Sdt.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{O as we}from"./SetUpAccountSection-BlokopoC-Bop-jr7-.js";const Pe={containerHeight:new F(656,720)},$e=o.div`
1
+ import{eM as Q,M as Z,h2 as de,a1 as le,p as B,o as a,g as z,X as J,j as t,bz as pe,h3 as me,u as re,cg as ge,a7 as W,C as F,aQ as he,eW as ue,s as ie,h4 as fe,h5 as Se,h6 as q,h7 as G,h8 as X,a3 as ye,i as Y,m as xe,gf as be,e as Ce,Q as ve}from"./index-1Afae-x7.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{O as we}from"./SetUpAccountSection-Imz6rw6K-DioSxUN3.js";const Pe={containerHeight:new F(656,720)},$e=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 20px;
@@ -1,4 +1,4 @@
1
- import{u as $e,X as I,M as y,j as t,Y as a,aV as le,be as Ne,o as s,bK as De,bL as Oe,c as U,a5 as J,bM as we,K as Le,p as be,bN as _e,a1 as Ae,bO as Ve,bP as Me,bQ as We,bR as Be,ai as He,H,bS as Ke,C as $,bT as Ue,bU as je,m as b,l as A,bV as ee,bD as N,a as Ee,F as Fe,bW as Ze,bX as qe,S as Xe,v as D,bY as Ge,s as O,e as te,g as V,bZ as Qe,bH as Se,ao as ie,b_ as ke,bc as Ye,b$ as Je}from"./index-4pBF5Sdt.js";import{f as ce,b as v,n as i}from"./vendor-CnQcJ2Lu.js";import{R as Ie}from"./Menu-Bxgksma7-aEZRIsJG.js";import{T as Ce}from"./RoleWithToolTip-7IBT7PpV-D6Bj65qK.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],K=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],et=58;function tt({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Xe(d==="off"?S:K));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(ot,{height:et,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(rt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(at,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(st,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(Ge,{width:12,height:12})})]}),t.jsx(nt,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(lt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const it=ce.memo(tt),st=i.div`
1
+ import{u as $e,X as I,M as y,j as t,Y as a,aV as le,be as Ne,o as s,bK as De,bL as Oe,c as U,a5 as J,bM as we,K as Le,p as be,bN as _e,a1 as Ae,bO as Ve,bP as Me,bQ as We,bR as Be,ai as He,H,bS as Ke,C as $,bT as Ue,bU as je,m as b,l as A,bV as ee,bD as N,a as Ee,F as Fe,bW as Ze,bX as qe,S as Xe,v as D,bY as Ge,s as O,e as te,g as V,bZ as Qe,bH as Se,ao as ie,b_ as ke,bc as Ye,b$ as Je}from"./index-1Afae-x7.js";import{f as ce,b as v,n as i}from"./vendor-CnQcJ2Lu.js";import{R as Ie}from"./Menu-DdDY0xYV-BEvu9l3u.js";import{T as Ce}from"./RoleWithToolTip-KqICk9kG-DmYDkHVn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],K=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],et=58;function tt({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Xe(d==="off"?S:K));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(ot,{height:et,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(rt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(at,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(st,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(Ge,{width:12,height:12})})]}),t.jsx(nt,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(lt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const it=ce.memo(tt),st=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
@@ -1,4 +1,4 @@
1
- import{X as H,H as S,j as i,bs as Y,M as Q,Y as q,C as u,a3 as K,o as n,a2 as V,Q as X,h as J,s as Z,m as l,p as _,al as ee,e as W,g as v,v as ie,bH as te}from"./index-4pBF5Sdt.js";import{b as k,n as t}from"./vendor-CnQcJ2Lu.js";import{U as ne}from"./PortfolioDetails-BvN3T8NL-CCXqHdhh.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-D1HNtoAk-5WW2qfzw.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=Q.getLocalizedStrings(),a={titleWidth:new u(343,580,726,826),cardBorderRadius:l[2],cardPadding:new u(l[3],l[4]),sliderWidth:new u(143,177),sliderContainerGap:new u(l[5],l[3]),navBarContainerPaddingYaxis:new u(10,l[3]),containerPaddingLeft:new u(l[3],l[6],l[8]),containerPaddingRight:new u(l[3],l[6],l[8]),riskLevelInfoPaddingRight:new u(l[0],l[3])},oe={stepTitle:new X("h6Regular","h5Regular")},Me=({onBackClick:e,onNextClick:g,onUpdateFundAllocation:h,treasurySetupView:D,isReadOnly:c,isEditMode:p,isOnSetup:$=!1})=>{const r=H(),[E,M]=k.useState(!1),{fundsData:N,fundAllocationOptions:s,fundAllocationLocalData:d,currentAllocation:w,portfolioAllocationUpdateStatus:U}=D;k.useEffect(()=>{if(p&&w!==null){const o=!S(d.allocation,w);M(o)}},[p,w,d]);const y=o=>{const f=s.find(G=>G.optionIndex===o);f&&h(f)},b=()=>{y(s.findIndex(o=>o.riskScore===0||o.riskLevel==="Conservative"))},F=()=>{let o;w!=null&&(o=s.find(f=>S(f.allocation,w))),o!=null?h(o):b()},j=()=>{p&&F(),e()};return i.jsxs(se,{children:[i.jsxs(de,{windowSize:r,children:[i.jsx(ae,{windowSize:r,children:i.jsx(Y,{title:m.navBar.back,enterTouchDelay:600,placement:"bottom",children:i.jsx(ce,{"data-testid":q("nav-bar-back-portfolio-allocation"),onClick:j})})}),i.jsxs(pe,{windowSize:r,children:[i.jsxs(xe,{windowSize:r,children:[i.jsx(he,{windowSize:r,children:re(c,$,p)}),!c&&!p&&i.jsx(ue,{children:i.jsxs(me,{children:[i.jsx(ge,{}),i.jsx(we,{})]})})]}),i.jsx(fe,{isReadOnly:c,children:le(c,$,p)}),i.jsx($e,{children:i.jsxs(ye,{windowSize:r,children:[i.jsx(ve,{children:i.jsx(ne,{isInReview:!1,isSetup:!0,fundDetails:N,allocation:d,page:$?"setup portfolio":"edit portfolio"})}),i.jsxs(be,{windowSize:r,children:[i.jsx(je,{children:i.jsx(Se,{onClick:b,isRecommended:c||d.riskScore===0||d.riskLevel==="Conservative",children:x.resetButton})}),r==="small"?i.jsxs(ke,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Re,{children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(T,{children:d.riskLevel})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(ze,{windowSize:r,children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(T,{children:d.riskLevel})]})]})]})]})})]})]}),c?null:i.jsx(K,{style:{zIndex:4,paddingTop:n.sp2,paddingBottom:n.sp2},showCancel:!0,cancelBtn:{label:p?m.cancel:m.navBar.back,onClick:j},primaryBtn:{label:p?m.confirm:m.next,onClick:g,isLoading:p&&U.fetchState==="In-Progress",isDisabled:p&&!E}})]})};function re(e,g,h){return e||g&&h?x.title:h?x.editTitle:x.stepTitle}function le(e,g,h){return e||g&&h?x.subtextReadOnly:h?x.subtextEdit:x.subtextSetup}const se=t.div`
1
+ import{X as Y,H as S,j as i,bs as Q,M as U,Y as q,C as u,a3 as K,o as n,a2 as V,Q as X,h as J,s as Z,m as l,p as _,al as ee,e as T,g as v,v as ie,bH as te}from"./index-1Afae-x7.js";import{b as k,n as t}from"./vendor-CnQcJ2Lu.js";import{E as ne}from"./PortfolioDetails-Cgq2JdwS-B0wDIzGK.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-DAviLn_P-C2Dhk4Qd.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=U.getLocalizedStrings(),a={titleWidth:new u(343,580,726,826),cardBorderRadius:l[2],cardPadding:new u(l[3],l[4]),sliderWidth:new u(143,177),sliderContainerGap:new u(l[5],l[3]),navBarContainerPaddingYaxis:new u(10,l[3]),containerPaddingLeft:new u(l[3],l[6],l[8]),containerPaddingRight:new u(l[3],l[6],l[8]),riskLevelInfoPaddingRight:new u(l[0],l[3])},oe={stepTitle:new X("h6Regular","h5Regular")},Me=({onBackClick:e,onNextClick:g,onUpdateFundAllocation:h,treasurySetupView:W,isReadOnly:c,isEditMode:p,isOnSetup:$=!1})=>{const r=Y(),[D,M]=k.useState(!1),{fundsData:N,fundAllocationOptions:s,fundAllocationLocalData:d,currentAllocation:w,portfolioAllocationUpdateStatus:F}=W;k.useEffect(()=>{if(p&&w!==null){const o=!S(d.allocation,w);M(o)}},[p,w,d]);const y=o=>{const f=s.find(H=>H.optionIndex===o);f&&h(f)},b=()=>{y(s.findIndex(o=>o.riskScore===0||o.riskLevel==="Conservative"))},G=()=>{let o;w!=null&&(o=s.find(f=>S(f.allocation,w))),o!=null?h(o):b()},j=()=>{p&&G(),e()};return i.jsxs(se,{children:[i.jsxs(de,{windowSize:r,children:[i.jsx(ae,{windowSize:r,children:i.jsx(Q,{title:m.navBar.back,enterTouchDelay:600,placement:"bottom",children:i.jsx(ce,{"data-testid":q("nav-bar-back-portfolio-allocation"),onClick:j})})}),i.jsxs(pe,{windowSize:r,children:[i.jsxs(xe,{windowSize:r,children:[i.jsx(he,{windowSize:r,children:re(c,$,p)}),!c&&!p&&i.jsx(ue,{children:i.jsxs(me,{children:[i.jsx(ge,{}),i.jsx(we,{})]})})]}),i.jsx(fe,{isReadOnly:c,children:le(c,$,p)}),i.jsx($e,{children:i.jsxs(ye,{windowSize:r,children:[i.jsx(ve,{children:i.jsx(ne,{isInReview:!1,isSetup:!0,fundDetails:N,allocation:d,page:$?"setup portfolio":"edit portfolio"})}),i.jsxs(be,{windowSize:r,children:[i.jsx(je,{children:i.jsx(Se,{onClick:b,isRecommended:c||d.riskScore===0||d.riskLevel==="Conservative",children:x.resetButton})}),r==="small"?i.jsxs(ke,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Re,{children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(ze,{windowSize:r,children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]})]})]})})]})]}),c?null:i.jsx(K,{style:{zIndex:4,paddingTop:n.sp2,paddingBottom:n.sp2},showCancel:!0,cancelBtn:{label:p?m.cancel:m.navBar.back,onClick:j},primaryBtn:{label:p?m.confirm:m.next,onClick:g,isLoading:p&&F.fetchState==="In-Progress",isDisabled:p&&!D}})]})};function re(e,g,h){return e||g&&h?x.title:h?x.editTitle:x.stepTitle}function le(e,g,h){return e||g&&h?x.subtextReadOnly:h?x.subtextEdit:x.subtextSetup}const se=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  height: 100%;
@@ -132,9 +132,9 @@ import{X as H,H as S,j as i,bs as Y,M as Q,Y as q,C as u,a3 as K,o as n,a2 as V,
132
132
  `}
133
133
  `,P=t(ee)`
134
134
  color: ${e=>e.theme.colors.primary};
135
- `,O=t(W)`
135
+ `,O=t(T)`
136
136
  color: ${e=>e.theme.colors.primary};
137
- `,C=t(W)`
137
+ `,C=t(T)`
138
138
  color: ${e=>e.theme.colors.primary};
139
139
  `,L=t.div`
140
140
  display: flex;
@@ -201,7 +201,7 @@ import{X as H,H as S,j as i,bs as Y,M as Q,Y as q,C as u,a3 as K,o as n,a2 as V,
201
201
  `,A=t(ie)`
202
202
  color: ${e=>e.theme.colors.hero};
203
203
  text-align: right;
204
- `,T=t(te)`
204
+ `,E=t(te)`
205
205
  color: ${e=>e.theme.colors.hero};
206
206
  text-align: right;
207
207
  `;export{Me as default};
@@ -0,0 +1,218 @@
1
+ import{j as e,M as H,o as l,iB as V,s as U,d2 as X,u as G,X as K,_ as W,C as O,bs as f,g as T,bH as _,v as A,dp as Q,ae as Z,al as ee,b4 as ie,bc as se,e as le,d4 as ne,m as oe}from"./index-1Afae-x7.js";import{n as s,b as te}from"./vendor-CnQcJ2Lu.js";import{l as re}from"./treasuryColorHelper-DAviLn_P-C2Dhk4Qd.js";const{common:r,spendManagement:{treasury:o},dateFormat:ae}=H.getLocalizedStrings(),w={portfolioYieldMarginTop:new O(-4,oe[0]),sliderWidth:new O(143,177)},Be=({isInReview:i,isSetup:n,fundDetails:m,allocation:d,amount:g,page:v})=>{const h=de(m);return e.jsxs(me,{children:[!n&&e.jsx(xe,{style:{alignSelf:"flex-start",padding:`${l.sp2} ${l.sp0}`},children:`${o.portfolioAllocation.title}`}),h.map((a,x)=>e.jsx(ce,{portfolio:a,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:n,isLast:x===h.length-1,amount:g,page:v},m[x]?.fundCode||x))]})},de=i=>i.map(n=>[{label:o.promoPage.liquidity,value:n.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:V(n.fundSize,n.currencyCode)},{label:o.promoPage.maturity,value:`${n.maturity} ${r.timeStrings.days}`},{label:o.promoPage.expenseRatio,value:`${n.expenseRatio}${o.promoPage.expenseRatioSuffix}`},{label:o.promoPage.riskRating,value:n.riskRating||r.strings.hyphen},{label:o.promoPage.composition,value:Array.isArray(n.compositions)&&n.compositions.length>0?`${n.compositions[0].investedIn} ${n.compositions[0].percentage}${r.strings.percentage}`:r.strings.hyphen,tag:Array.isArray(n.compositions)&&n.compositions.length>1?`+${n.compositions.length-1}`:void 0,compositions:n.compositions??[]}]),ce=({portfolio:i,fund:n,fundIndex:m,allocationPercentage:d,isInReview:g,isSetup:v,isLast:h,amount:a,page:x})=>{const q=X().analytics,Y=G(),t=K(),j=a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,J]=te.useState(!1),u=re(m,Y),$=()=>{p||q.trackTreasuryProspectusClick(n.fundName,n.fundCode,x),J(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(pe,{children:e.jsxs(he,{windowSize:t,children:[e.jsxs(ge,{windowSize:t,children:[e.jsxs(ue,{windowSize:t,children:[e.jsxs(fe,{isInReview:g,windowSize:t,children:[e.jsx(ye,{children:n.fundCode}),e.jsx(we,{color:u.fundNameColor,children:`${n.fundCompanyName} ${n.fundName}`})]}),t!=="small"&&e.jsxs(C,{onClick:$,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(P,{}):e.jsx(D,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:g?e.jsxs(B,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(E,{children:j!=null?W("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty})]}):e.jsxs(je,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(I,{children:[e.jsx(R,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(B,{children:[e.jsxs(S,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${l.sp3}`},enterDelay:300,children:e.jsx(k,{})})]}),e.jsxs(b,{windowSize:t,style:{marginRight:l.sp3},children:[n.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(ke,{children:v?e.jsxs(Ie,{children:[e.jsxs(Re,{children:[e.jsxs(Ae,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(I,{children:[e.jsx(R,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(S,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${l.sp3}`},enterDelay:300,children:e.jsx(k,{})})]}),e.jsxs(b,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]}),e.jsxs(C,{onClick:$,style:{marginBottom:l.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(P,{}):e.jsx(D,{})]})]}):g?e.jsxs(Te,{children:[e.jsxs(F,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(E,{children:j!=null?W("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty}),e.jsxs(C,{onClick:$,style:{margin:`${l.sp2} ${l.sp0}`,...h?{marginBottom:l.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(P,{}):e.jsx(D,{})]})]}),e.jsxs(L,{children:[e.jsxs(S,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${l.sp3}`},enterDelay:300,children:e.jsx(k,{})})]}),e.jsxs(b,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]}):e.jsxs(Ye,{children:[e.jsxs(F,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(I,{children:[e.jsx(R,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(C,{onClick:$,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(P,{}):e.jsx(D,{})]})]}),e.jsxs(L,{children:[e.jsxs(S,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${l.sp3}`},enterDelay:300,children:e.jsx(k,{})})]}),e.jsxs(b,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(be,{children:[e.jsx(z,{children:n.description}),e.jsx($e,{style:{marginLeft:l.sp3},children:i.map(c=>e.jsxs(Se,{windowSize:t,children:[e.jsx(z,{children:r.strings.dividerDot}),e.jsx(z,{style:{minWidth:"140px"},children:c.label}),e.jsxs(z,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:Y.colors.primary,borderBottom:`1px solid ${Y.colors.grey3}`,width:"100%",padding:`${l.sp1} ${l.sp0}`,display:"flex",flexDirection:"row",alignItems:"center",gap:l.sp2},children:[c.value,!!c.tag&&c.label===o.promoPage.composition&&e.jsx(f,{variant:"list-description",data:{title:r.strings.empty,items:Array.isArray(c.compositions)&&c.compositions.length>0?c.compositions.map(N=>({text:`${r.strings.dividerDot} ${N.investedIn}`,amount:`${N.percentage}${r.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${l.sp3}`},children:e.jsx(Ce,{children:c.tag})})]})]},c.label))}),e.jsxs(ze,{onClick:()=>window.open(n.url,"_blank"),children:[e.jsx(ve,{children:`${o.promoPage.asOf} ${n.asOfDate.format(ae.visual.MMMDCommaYYYYformat)}`}),e.jsx(De,{})]})]}),(!h||v)&&e.jsx(Pe,{style:{width:"100%",marginBottom:l.sp3}})]})},pe=s.div`
2
+ display: flex;
3
+ flex-direction: row;
4
+ gap: ${l.sp2};
5
+ width: 100%;
6
+ `,xe=s(U)`
7
+ color: ${i=>i.theme.colors.hero};
8
+ `,me=s.div`
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: center;
12
+ width: 100%;
13
+ `,ge=s.div`
14
+ display: flex;
15
+ flex-direction: row;
16
+ align-items: center;
17
+ justify-content: space-between;
18
+ width: 100%;
19
+ align-items: flex-start;
20
+ `,he=s.div`
21
+ display: flex;
22
+ flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
23
+ width: 100%;
24
+ margin-bottom: ${l.sp2};
25
+ `,ue=s.div`
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: flex-start;
29
+ width: ${i=>i.windowSize==="small"?"auto":"245px"};
30
+ `,fe=s(_)`
31
+ color: ${T.graphColor34Dark};
32
+ max-width: 280px;
33
+ `,ye=s.span`
34
+ color: ${i=>i.theme.colors.primary};
35
+ margin-right: ${l.sp1};
36
+ `,we=s.span`
37
+ color: ${i=>i.color??T.graphColor34Dark};
38
+ `,B=s.div`
39
+ display: flex;
40
+ flex-direction: column;
41
+ align-items: flex-end;
42
+ width: 129px;
43
+ `,y=s(ee)`
44
+ color: ${i=>i.theme.colors.primary};
45
+ min-width: ${l.sp7};
46
+ text-align: left;
47
+ `,b=s(_)`
48
+ color: ${T.success};
49
+ margin-top: ${i=>w.portfolioYieldMarginTop.valuePx(i.windowSize)};
50
+ `,S=s(A)`
51
+ display: flex;
52
+ flex-direction: row;
53
+ align-items: flex-start;
54
+ gap: ${l.sp1};
55
+ color: ${i=>i.theme.colors.hero};
56
+ `,ve=s(le)`
57
+ display: flex;
58
+ flex-direction: row;
59
+ align-items: flex-start;
60
+ gap: ${l.sp1};
61
+ `,E=s(A)`
62
+ display: flex;
63
+ flex-direction: row;
64
+ align-items: flex-start;
65
+ gap: ${l.sp1};
66
+ color: ${i=>i.theme.colors.primary};
67
+ `,je=s.div`
68
+ display: flex;
69
+ flex-direction: row;
70
+ align-items: center;
71
+ gap: ${l.sp2};
72
+ width: 240px;
73
+ `,I=s.div`
74
+ display: flex;
75
+ flex-direction: row;
76
+ align-items: center;
77
+ position: relative;
78
+ flex: 1;
79
+ `,$e=s.div``,R=s.input`
80
+ width: ${({windowSize:i})=>w.sliderWidth.valuePx(i)};
81
+ cursor: default;
82
+ pointer-events: none;
83
+
84
+ &[type="range"]::-webkit-slider-runnable-track {
85
+ height: 2px;
86
+ background-color: ${i=>i.theme.colors.grey3};
87
+ }
88
+
89
+ &[type="range"] {
90
+ -webkit-appearance: none;
91
+ appearance: none;
92
+ }
93
+
94
+ &[type="range"]::-webkit-slider-thumb {
95
+ visibility: hidden;
96
+ }
97
+ `,M=s.div`
98
+ position: absolute;
99
+ height: 2px;
100
+ background-color: ${i=>i.color??T.graphColor34Dark};
101
+ `,C=s(A)`
102
+ color: ${i=>i.theme.colors.hero};
103
+ align-self: flex-start;
104
+ display: flex;
105
+ flex-direction: row;
106
+ align-items: center;
107
+ gap: ${l.sp1};
108
+ cursor: pointer;
109
+ `,D=s(Z)`
110
+ width: 12px;
111
+ height: 12px;
112
+ color: ${i=>i.theme.colors.hero};
113
+ `,be=s.div`
114
+ display: flex;
115
+ flex-direction: column;
116
+ width: 100%;
117
+ justify-self: flex-start;
118
+ gap: ${l.sp2};
119
+ margin-bottom: ${l.sp3};
120
+ `,z=s(U)`
121
+ color: ${i=>i.theme.colors.hero};
122
+ `,Se=s.div`
123
+ display: flex;
124
+ flex-direction: row;
125
+ align-items: center;
126
+ gap: ${i=>i.windowSize==="small"?l.sp1:l.sp2};
127
+ `,Ce=s(se)`
128
+ color: ${i=>i.theme.colors.hero};
129
+ padding: 1px 6px;
130
+ border: 1px solid ${i=>i.theme.colors.grey2};
131
+ border-radius: ${l.sp1};
132
+ `,De=s(ne)`
133
+ width: 12px;
134
+ height: 12px;
135
+ `,ze=s.div`
136
+ display: flex;
137
+ flex-direction: row;
138
+ align-items: baseline;
139
+ gap: ${l.sp2};
140
+ width: fit-content;
141
+ cursor: pointer;
142
+ color: ${i=>i.theme.colors.hero};
143
+
144
+ &:hover {
145
+ color: ${i=>i.theme.colors.primary};
146
+ text-decoration: underline;
147
+ }
148
+ `,P=s(Q)`
149
+ cursor: pointer;
150
+ width: 12px;
151
+ height: 12px;
152
+ min-width: 12px;
153
+ min-height: 12px;
154
+ color: ${i=>i.theme.colors.hero};
155
+ `,Pe=s.div`
156
+ display: flex;
157
+ flex: 1;
158
+ background-color: ${i=>i.theme.colors.grey3};
159
+ min-height: 1px;
160
+ max-height: 1px;
161
+ `,k=s(ie)`
162
+ width: ${l.sp3};
163
+ height: ${l.sp3};
164
+ color: ${i=>i.theme.colors.hero};
165
+ margin-bottom: -3px;
166
+ cursor: pointer;
167
+ :hover {
168
+ color: ${i=>i.theme.colors.primary};
169
+ }
170
+ `,ke=s.div`
171
+ display: flex;
172
+ flex-direction: row;
173
+ justify-content: space-between;
174
+ align-items: flex-start;
175
+ width: 100%;
176
+ margin-top: ${l.sp2};
177
+ `,Te=s.div`
178
+ display: flex;
179
+ flex-direction: row;
180
+ align-items: flex-start;
181
+ justify-content: space-between;
182
+ width: 100%;
183
+ `,Ye=s.div`
184
+ display: flex;
185
+ flex-direction: row;
186
+ align-items: center;
187
+ justify-content: space-between;
188
+ width: 100%;
189
+ `,F=s.div`
190
+ display: flex;
191
+ flex-direction: column;
192
+ align-items: flex-start;
193
+ flex: 1;
194
+ `,L=s.div`
195
+ display: flex;
196
+ flex-direction: column;
197
+ align-items: flex-end;
198
+ `,Ie=s.div`
199
+ display: flex;
200
+ flex-direction: column;
201
+ width: 100%;
202
+ gap: ${l.sp2};
203
+ `,Re=s.div`
204
+ display: flex;
205
+ flex-direction: row;
206
+ width: 100%;
207
+ gap: ${l.sp2};
208
+ justify-content: space-between;
209
+ `,Me=s.div`
210
+ display: flex;
211
+ flex-direction: column;
212
+ align-items: center;
213
+ `,Ae=s.div`
214
+ display: flex;
215
+ flex-direction: row;
216
+ align-items: center;
217
+ gap: ${l.sp3};
218
+ `;export{Be as E};
@@ -1,4 +1,4 @@
1
- import{M as X,j as t,d2 as I,o as l,bo as O,ae as P,d3 as D,Z as F,s as L,d4 as R,g as v}from"./index-4pBF5Sdt.js";import{b as $,n as i}from"./vendor-CnQcJ2Lu.js";const u=X.getLocalizedStrings(),y={large:{labelComp:D,title:F,subtitle:L,seeMoreLink:L}},B={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=B.large,U=i.div`
1
+ import{M as X,j as t,d2 as I,o as l,bo as O,ae as P,d3 as D,Z as F,s as L,d4 as R,g as v}from"./index-1Afae-x7.js";import{b as $,n as i}from"./vendor-CnQcJ2Lu.js";const u=X.getLocalizedStrings(),y={large:{labelComp:D,title:F,subtitle:L,seeMoreLink:L}},B={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=B.large,U=i.div`
2
2
  width: ${e=>e.scale*o.width}px;
3
3
  height: ${e=>e.scale*o.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{X as c,j as r,d8 as b,d9 as v,da as L,aR as z,C as a,o as e,g as d,Q as f,m as l}from"./index-4pBF5Sdt.js";import{j as i,n as p,k as m}from"./vendor-CnQcJ2Lu.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
1
+ import{X as c,j as r,d8 as b,d9 as v,da as L,aR as z,C as a,o as e,g as d,Q as f,m as l}from"./index-1Afae-x7.js";import{j as i,n as p,k as m}from"./vendor-CnQcJ2Lu.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,4 +1,4 @@
1
- import{X as j,M as t,j as n,bz as w,K as l,C as s,o as i,Z as P,s as y,$ as b,aP as f,eF as v,m as a}from"./index-4pBF5Sdt.js";import{n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},z=o.div`
1
+ import{X as j,M as t,j as n,bz as w,K as l,C as s,o as i,Z as P,s as y,$ as b,aP as f,eF as v,m as a}from"./index-1Afae-x7.js";import{n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},z=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{X as O,M as $,j as i,K as k,o,C as a,g as d,e_ as Q,Q as T,$ as W,aP as B,eF as E,eY as M,a7 as m,v as u,m as r}from"./index-4pBF5Sdt.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import A from"./QBOConnectionDialog-DjT-h910-GewQlvc4.js";const t={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},G={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:j,companyName:y,updateQBOPopupState:h,handleOnConnectClick:f})=>{const n=O(),{qbo_connection:S}=$.getLocalizedStrings().customerOnboardingPage.sections,{title:v,sucessText:z,button:b,errorText:P,requiredText:C}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(L,{children:l?i.jsx(U,{}):i.jsx(V,{})}):null,i.jsx(N,{windowSize:n,children:v})]}),i.jsxs(q,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(K,{children:[i.jsx(R,{}),i.jsx(Z,{windowSize:n}),i.jsx(_,{})]}),l?n!=="small"?i.jsx(w,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:b.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(F,{children:z}),n==="small"?i.jsx(w,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(A,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},w=()=>{const{tags:e}=$.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(M,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new m(d.successDark),borderColor:new m(d.successDark)}})},H=s.div`
1
+ import{X as O,M as $,j as i,K as k,o,C as a,g as d,e_ as Q,Q as T,$ as W,aP as B,eF as E,eY as M,a7 as m,v as u,m as r}from"./index-1Afae-x7.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import A from"./QBOConnectionDialog-Afsdvgkl-Dnac_hvL.js";const t={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},G={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:j,companyName:y,updateQBOPopupState:h,handleOnConnectClick:f})=>{const n=O(),{qbo_connection:S}=$.getLocalizedStrings().customerOnboardingPage.sections,{title:v,sucessText:z,button:b,errorText:P,requiredText:C}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(L,{children:l?i.jsx(U,{}):i.jsx(V,{})}):null,i.jsx(N,{windowSize:n,children:v})]}),i.jsxs(q,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(K,{children:[i.jsx(R,{}),i.jsx(Z,{windowSize:n}),i.jsx(_,{})]}),l?n!=="small"?i.jsx(w,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:b.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(F,{children:z}),n==="small"?i.jsx(w,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(A,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},w=()=>{const{tags:e}=$.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(M,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new m(d.successDark),borderColor:new m(d.successDark)}})},H=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{C as q,m as U,u as M,X as W,M as D,a as G,a1 as X,j as s,S as H,c3 as J,aV as K,F as Q,a3 as Y,o as f}from"./index-4pBF5Sdt.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-d9o0CLQV-CEaEmlgK.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new q(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const _=M(),S=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(u?.fetchState),{upperBound:P}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const O=g.handleSubmit(()=>{N()}),V=async(i,p)=>{b(p)};return L.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=H(p);J(()=>V(R,z))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:_.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(Q,{...g,children:s.jsx("form",{id:C($),onSubmit:O,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
1
+ import{C as q,m as U,u as M,X as W,M as D,a as G,a1 as X,j as s,S as H,c3 as J,aV as K,F as Q,a3 as Y,o as f}from"./index-1Afae-x7.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-B788Zc2c-BIRdmDst.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new q(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const _=M(),S=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(u?.fetchState),{upperBound:P}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const O=g.handleSubmit(()=>{N()}),V=async(i,p)=>{b(p)};return L.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=H(p);J(()=>V(R,z))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:_.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(Q,{...g,children:s.jsx("form",{id:C($),onSubmit:O,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{u as D,X as B,M as b,j as o,aV as E,c as H,Y as S,o as t,C as r,s as L,_ as z,bO as G,bQ as U,bR as q,cq as O,m as l,an as Q,Q as P,am as V,g as j,cn as X,aN as Y,p as _}from"./index-4pBF5Sdt.js";import{n as i,b as F}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=F.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(K,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(Z,{windowSize:n,children:[o.jsxs(ae,{children:[o.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ne,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:n,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,A)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(le,{children:a.requireText}):o.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?o.jsx(G,{titleComponent:o.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},K=i.div`
1
+ import{u as D,X as B,M as b,j as o,aV as E,c as H,Y as S,o as t,C as r,s as L,_ as z,bO as G,bQ as U,bR as q,cq as O,m as l,an as Q,Q as P,am as V,g as j,cn as X,aN as Y,p as _}from"./index-1Afae-x7.js";import{n as i,b as F}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=F.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(K,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(Z,{windowSize:n,children:[o.jsxs(ae,{children:[o.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ne,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:n,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,A)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(le,{children:a.requireText}):o.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?o.jsx(G,{titleComponent:o.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},K=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};