@zeniai/web-cockpit-ui 1.14.7-qa → 1.14.8-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 (230) hide show
  1. package/dist/assets/{ACHDetailsPage-CYMIIaPh-CazcteT9.js → ACHDetailsPage-HYH4LhGK-DEBeThZX.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-DpQIi2ZW-BfbtTbJc.js → AIPerformancePage-BnHyhoNh-lxWX9fyZ.js} +35 -35
  3. package/dist/assets/{AccountInfoPage-Sh-82JXU-CK-JAG50.js → AccountInfoPage-ehy9LEs3-DQuaJuQC.js} +5 -5
  4. package/dist/assets/{AccountInfoPageContent-CsHvwqHd-Bi3KcCU6.js → AccountInfoPageContent-BpNoLQEh-DUUWW7P_.js} +13 -13
  5. package/dist/assets/{AccountReconDetailsDrawerPage-DlKlKwh2-COmsGMX5.js → AccountReconDetailsDrawerPage-KuO_6NjT-BhkhqQIK.js} +16 -16
  6. package/dist/assets/{AccountRow-CtIoeB6x-DB6L8OFQ.js → AccountRow-CKtmIbKO-BzBAql1b.js} +17 -17
  7. package/dist/assets/{AccountsPromoCardStack-XGoMEJWB-ewH7aqGC.js → AccountsPromoCardStack-BKVvUpdv-BiLayNkQ.js} +15 -15
  8. package/dist/assets/{AddAddressForCardDrawer-C6Sfh784-v8gPAmnp.js → AddAddressForCardDrawer-BebYNJoP-DW01HmxA.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-CzD2AhWP-Y1lzrcrr.js → AddToWalletPage-BQfPsknz-CM3di5Tf.js} +13 -13
  10. package/dist/assets/{AgingReportsPage-D9YcQ7A--CgFqdHda.js → AgingReportsPage-DkCyQw18-D1u9Upzc.js} +7 -7
  11. package/dist/assets/{AllUserItems-BtS-YtE0-BnRz1B7J.js → AllUserItems-D-FQ96gE-DS0pdT0L.js} +7 -7
  12. package/dist/assets/{ApAgingDetailPage-BTJqRp9j-CFbtvXnt.js → ApAgingDetailPage-EI4Kx_Xo-DJ1F7n27.js} +4 -4
  13. package/dist/assets/{AppBasePage-B5fgkJHL-BjE5NFxw.js → AppBasePage-D4QmiB4N-Cv0_LA55.js} +4 -4
  14. package/dist/assets/{AppDrawerContent-C1lzepXw-DLsvksBd.js → AppDrawerContent-BF8Abz2Y-C4CgYwFq.js} +6 -6
  15. package/dist/assets/{ApprovalRulesSettingsPage-Bqt15rR_-6tCXuJPM.js → ApprovalRulesSettingsPage-tsucbdIk-BvetjtCF.js} +7 -7
  16. package/dist/assets/{ArAgingChart-BGVvhkR5-CMJLQ0Bz.js → ArAgingChart-CIZs2s3O-DsHvPG7Q.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-Ddp7z3e8-3p3-vb0v.js → ArAgingDetailPage-cC50pBdB-DAxa4kv_.js} +2 -2
  18. package/dist/assets/{AttachmentView-pcpYs-s8-Bb1hmV9r.js → AttachmentView-Bpla0aBf-CEmozm2v.js} +5 -5
  19. package/dist/assets/{BankAccountSection-CmXQQBck-5U9GbvUg.js → BankAccountSection-DhDiqg0D-C1fQqXil.js} +4 -4
  20. package/dist/assets/{BankAccountWarningSection-Dp7qMaI2-DUYDyhSL.js → BankAccountWarningSection-_BSb8rEd-lAbGdxcF.js} +5 -5
  21. package/dist/assets/{BankConnectionsSettingsPage-ldzD1a4O-Cm0no8yC.js → BankConnectionsSettingsPage-ovzOgVIi-D87I9OOK.js} +38 -38
  22. package/dist/assets/{BillDetailPage-CBubcYMe-BwBKzNWZ.js → BillDetailPage-C6NJGbua-D_fc-7GH.js} +11 -11
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-BxiRr1tP-jMPlVte-.js → BillPayApprovalRuleDetailPage-DK34f2_B-CSwpjVbx.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-CLBGuxUe-BeVtWdv4.js → BillPayApprovalRulesPage-uT7vadIp-DX4vmU2u.js} +8 -8
  25. package/dist/assets/{BillPayPromoPage-C3takK8D-D35v8jhQ.js → BillPayPromoPage-DyvWrXiT-3xQsLUHe.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-CweOkcc2-Bmcq6In9.js → BillPaySetUpPage-DQUGXwzL-Dnj5yaWm.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-BQSZ6DMP-BpIPoFvc.js → BillingSettingsPage-zTBJHq7Y-BV6Ca01p.js} +7 -7
  28. package/dist/assets/{BillsBulkReviewDrawerPage-3trPH78u-CknT1dvx.js → BillsBulkReviewDrawerPage-qYfFPFRf-BHVDK8xO.js} +1 -1
  29. package/dist/assets/{BoxItem-Bf7JemSM-DA-EqZ9I.js → BoxItem-CTPuYGrU-DYtDSgqa.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-DXODyk9C-BNgCRU8b.js → BusinessVerificationPage-BFJpNsiW-DInJr7ZP.js} +8 -8
  31. package/dist/assets/{CardNumberSubText-ByVXSDZX-DEHzKLxG.js → CardNumberSubText-LPyLf3pY-CxLdtzot.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-9RLOXq5b-Dkm3ES1i.js → CashbackDetailPage-ByJDF7cH-jwINHAlE.js} +23 -23
  33. package/dist/assets/{ChargeCardDetailPage-lkNsxEdO-BUneoo-E.js → ChargeCardDetailPage-DjbwN3eA-BLSeog5S.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-DV25pQMP-BOo6rIHo.js → ChargeCardListPage-BcFdegbn-DKuu9f6F.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-CSWl05jK-DuONjB5U.js → ChargeCardListTable-BIOmPiWw-D8SfaL8P.js} +25 -25
  36. package/dist/assets/ChargeCardPromoPage-D7WfGZCc-DqWg0bDn.js +219 -0
  37. package/dist/assets/{ChargeCardSetupPage-7mEdImT--CnvgcvBB.js → ChargeCardSetupPage-DCjJd2bu-DLt9KXzY.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-D_rKdZ5c-CEA_Rx_h.js → ChargeCardStatementsPage-YZLslSfM-DTP8_5Q0.js} +3 -3
  39. package/dist/assets/{ChargeCardUtils-BB7l65Bf-CPLK84z2.js → ChargeCardUtils-Bj-TvntU-Dg5OHLzk.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-hsrWeA5X-Dcp3XMSx.js → ChaseOverlay-D5CGgOY9-B_78AAMx.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-CZNH4rCm-DdTXudjo.js → CheckDepositDrawerPage-CGicBOjt-D-PwWbfO.js} +19 -19
  42. package/dist/assets/{CollapsableReportTable-C73RBmaZ-D428uVrP.js → CollapsableReportTable-UQFDb8XE-4tPDRPlF.js} +46 -46
  43. package/dist/assets/{CompanyOfficerDetailsSection-CZWTSWyp-J81A-yw0.js → CompanyOfficerDetailsSection-CHSL02sQ-B9TP8k6M.js} +34 -34
  44. package/dist/assets/{CompanyPassportCard-D-hYeDRN-CHleBT8E.js → CompanyPassportCard-Byoyj6z--BlTpOAaU.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-fQ60DR7u-CalJr939.js → CompanyPassportPage-CJzVGPMf-CO-upSIX.js} +12 -12
  46. package/dist/assets/CompleteProfile-CGaFSQZ5-D40jt5XK.js +36 -0
  47. package/dist/assets/{ConfettiBurst-D5XTvsuG-DqvhMlLN.js → ConfettiBurst-C6in2R-G-B86Veyix.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-7KdDJirx-Cy50oCjG.js → CreateOrEditVendorPage-HV8sXBZp-MEsDNOD9.js} +10 -10
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BNJLUnlH-HMrOhsYY.js → CreditCardPaymentDrawerPage-CcN3B0mF-C-aA8CxZ.js} +15 -15
  50. package/dist/assets/{CreditCardPaymentPlgSection-BwqznNRc-Bkwvl_Pm.js → CreditCardPaymentPlgSection-dBWHuBiS-md7FwEbI.js} +10 -10
  51. package/dist/assets/{CurrencySelectField-PwurThUn-CCLMhDMc.js → CurrencySelectField-DLqb-9fp-mhS9VcnO.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CHJLyOyf-B-wAfl7n.js → CustomerOnboardingActivationPage-Bf64O2cX-OUwG2YXT.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-ILwY2ADL-DIj_DN1o.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BqdhqyL7-8QZEAu-d.js → CustomerOnboardingDetailPageSkeleton-DbbrMwW5-CFydRVir.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DDio10hZ-BfoQu7jO.js → CustomerOnboardingNoStepsPage-DZGpH4MZ-T0P42e-W.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-k2OYvIqe-BCb17bIF.js → CustomerOnboardingPage-BfJlxXNX-CUa70VM1.js} +9 -9
  57. package/dist/assets/CustomerOnboardingProductSuitePage-BJIVmVlG-CgGO5C2r.js +202 -0
  58. package/dist/assets/{Dashboard-DhMPjLVy-BLMPexXk.js → Dashboard-fGyiceKA-BzN0eOpe.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-C9YvD_24-CoC796XJ.js → DashboardReportPage-DL5dB1SI-DEQ-kpwn.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-BYFOUvho-CLqmAE-P.js → DepositAccTransactionItem-Dyfob6gX-CX7faNLY.js} +4 -4
  61. package/dist/assets/{DepositAccTransactionListPage-DeN4-lBP-BcaZtaYF.js → DepositAccTransactionListPage-DrEbXdWa-BNgdFMXM.js} +7 -7
  62. package/dist/assets/{DocumentSecurityBanner-6cQ2cW7e-B-LiYCwn.js → DocumentSecurityBanner-rDtPu8vH-D4_h4X4u.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-BmMEth4c-0ZA88eE1.js → DomesticWireDetailsPage-BVmsi9ei-CUemBchq.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-D0_pmb7k-485JyjTo.js → DownloadOverlay-Dk9PoZlP-D3imuRfO.js} +6 -6
  65. package/dist/assets/{DrawerPage-C5u676VK-CQ6YNm3J.js → DrawerPage-BSa6DJZr-D9NnCvxY.js} +1 -1
  66. package/dist/assets/EditPeoplePage-Ci4ys6zZ-CrrNlTmS.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-BxjNoyj8-BPCBUC8w.js → EditReimbursementDetailPage-DemIPGJ5-B9757Dmu.js} +43 -43
  68. package/dist/assets/{EntityDetailPage-BfscGvkI-CDpC3UiC.js → EntityDetailPage-C_luSjQJ-Cu-KPSDu.js} +3 -3
  69. package/dist/assets/{EntitySummarySection-BCkLY2Py-BvmspxF4.js → EntitySummarySection-BjoUr41l-NV66C_A4.js} +5 -5
  70. package/dist/assets/{ExpenseAutomationOverviewPage-C4SCxViu-BTF6U5vA.js → ExpenseAutomationOverviewPage-DwRzHbCN-D7MDDzPf.js} +18 -18
  71. package/dist/assets/{ExpenseAutomationPage-DF1-Q4X5-DpQfueM1.js → ExpenseAutomationPage-CxTfHxhm-BvLBK1eA.js} +33 -33
  72. package/dist/assets/{ExpressPayPage-Cdtx03yB-CFuea7SC.js → ExpressPayPage-B9teVxc8-CO2jiwXu.js} +10 -10
  73. package/dist/assets/{FeaturePreviewPage-nQYT4moR-Cr3GrNZL.js → FeaturePreviewPage-LAldEIqF-C8tcud8u.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-CRBm3eL9-BxrxyxZb.js → FollowStepsSection-ICp_6TcX-Do7FY4O7.js} +8 -8
  75. package/dist/assets/{GlobalReviewListPage-3iXmpaXt-DvNMoVjg.js → GlobalReviewListPage-CaSIQgOY-CLXlBnhP.js} +1 -1
  76. package/dist/assets/{HelpButton-Cv7-d_qL-CUvPOpAv.js → HelpButton-C-GTHvg5-DHe5_hb9.js} +1 -1
  77. package/dist/assets/{InformationCardStack-JCre21xs-DtS-Hddp.js → InformationCardStack-B3zlnZE6-BXUPOzl0.js} +3 -3
  78. package/dist/assets/{InsightsCardStack-Dekfw94R-BLPjyaig.js → InsightsCardStack-Czo2phfa-CVjFCXX9.js} +8 -8
  79. package/dist/assets/{InsightsSection-CLqfyvOO-xadJoIF2.js → InsightsSection-BF65nVDk-Ck5eCytH.js} +4 -4
  80. package/dist/assets/{IntegrationsSettingsPage-o9w1-WIT-_9mLCWjO.js → IntegrationsSettingsPage-CfOJp2rR-DnJqSbGe.js} +5 -5
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-DBG1ni7g-5byzUSyT.js → InternationalWireSwiftDetailsPage-BPckWTQy-C_9kzKUy.js} +18 -18
  82. package/dist/assets/{InternationalWireVerificationPage-BLU4F--p-CJDTcopv.js → InternationalWireVerificationPage-IyDI0e1n-DHyr06eY.js} +19 -19
  83. package/dist/assets/{InviteFormPage-Bf8Mqb7S-DDTavBxx.js → InviteFormPage-GPQ5eSD8-CiDxRX8h.js} +13 -13
  84. package/dist/assets/{InvitePageListView-6oeT1vaB-CKIuu3RS.js → InvitePageListView-BD4bJtvG-B0K74gtE.js} +52 -52
  85. package/dist/assets/InvitePeoplePage-DhGjKKsO-D5tOqF8-.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-BiIfE0Mk-CTWHQOhW.js → InvoiceUploadSection-DzOByrtE-BE32q3YT.js} +7 -7
  87. package/dist/assets/{IssueChargeCardPage-Dd312Qu7-DJeAloNR.js → IssueChargeCardPage-U5Z_OXsd-CLDaQ415.js} +20 -20
  88. package/dist/assets/{LabeledAddressValue-BplX--OG-CiZ_SQgG.js → LabeledAddressValue-DaabTZGG-CWQotmwk.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-DkhJs5ky-B6R8wPlw.js → LabeledAddressValueField-B2TfgAjp-BsfDNIIE.js} +4 -4
  90. package/dist/assets/{LabeledControlledCheckBoxField-SJfjkDzA-CpIAw81s.js → LabeledControlledCheckBoxField-Cb9kJIyY-DlHFWICr.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CPwrvNjy-D3f7Nu-c.js → LabeledCreatableSingleSelectField-BtboN2bE-DF3GueZh.js} +3 -3
  92. package/dist/assets/LabeledDocumentField-BKVHT_ih-cMXijjYr.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-D70GX0HR-Mxvvq1WO.js → LabeledDropDownFormattedTextField-CLUZVQCI-BVMu_guX.js} +7 -7
  94. package/dist/assets/{LabeledText-mTAE2dvH-BXZp1Sm_.js → LabeledText-DXlb_cAu-B1j2xF1t.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dx8TfHuB-DrtQGMZC.js → LabeledUserSingleSelectWithSubtitlesField-CqC0Fbjb-DTDFjdt3.js} +10 -10
  96. package/dist/assets/{LabeledZeniRolesDropDownField-ZGHinaTy-Bb9QLK3C.js → LabeledZeniRolesDropDownField-Dbyg4yxA-W4VJHBJD.js} +12 -12
  97. package/dist/assets/{LinkJETransactionPage-CNYQO-AQ-CY88gwq7.js → LinkJETransactionPage-D8sX4v-7-CsOS0tUv.js} +8 -8
  98. package/dist/assets/{LowBalancePopup-hdwaJezh-f3ksDR4g.js → LowBalancePopup-fUydozi0-DD4cdD_C.js} +5 -5
  99. package/dist/assets/{MagicLinkACHDetailsPage--DRHcaKz-WEt4M3n2.js → MagicLinkACHDetailsPage-BiZxVBT2-o-Rk17-1.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B5hbI4dU-BBmovkJC.js → MagicLinkDomesticWireDetailsPage-BO-mlqRp-Clxahb02.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BdwVZCRt-5G01_OeQ.js → MagicLinkInternationalWireDetailsPage-BSwmG-gt-CwiZ0Ksn.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DOUrPdD--DcZ_t2NE.js → MagicLinkSuccessPage-BA_B_aML-C9hrpm-L.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-Bb27jU2a-DoQ8aWp1.js → MagicLinkTitleSection-hjUfjUKg-BSNiuVs0.js} +3 -3
  104. package/dist/assets/{MailingDetailsSection-CdKFQB_8-DW3BDO52.js → MailingDetailsSection-zYhyH_Di-D4yENJST.js} +2 -2
  105. package/dist/assets/{MeetingCalenderPopup-B3sIZU3d-DQNFWJ_9.js → MeetingCalenderPopup-BbCahdTF-CVjb8WtP.js} +3 -3
  106. package/dist/assets/{Menu-Bsk58l8k-DveIoh_v.js → Menu-gdxz6nzv-BWb1NISh.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-P1Zh6SFD-hnAROTqH.js → MyBankConnectionsSettingsPage-B-kZp6kY-DGgRFgSz.js} +12 -12
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-Cs7rVAdh-Cmwa__iw.js → MyPendingActivationChargeCardListPage-Cux0Zc6M-C_85HTeN.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-Cc4XfbBQ-CNw8hQXw.js → MyProfileSettingsPage-DlPCGOud-CJbICNU7.js} +6 -6
  110. package/dist/assets/{NavBarWithPicker-DFD5LZ4o-DVbNG2lJ.js → NavBarWithPicker-DgFXO4Py-B8a2N5H7.js} +3 -3
  111. package/dist/assets/{NavigationArrow-mL8dVddD-CWP10rmD.js → NavigationArrow-DfB1s0Kl-dP_dOcYr.js} +5 -5
  112. package/dist/assets/{NavigationDots-MPqPjbnr-B2VuEWoT.js → NavigationDots-B12u1DHV-wGjE6ymi.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-QTvziNPs-CWfcgxwK.js → NewGlobalMerchantPage-C4ljSG4I-CpKXjRxq.js} +6 -6
  114. package/dist/assets/{NoDataChart-C1BY1riw-DEwvHChk.js → NoDataChart-C86cs81n-BI6hUCyS.js} +1 -1
  115. package/dist/assets/{NoDataTable-C_4AqyDp-8AvQpHPa.js → NoDataTable-BsEI7aoI-uEd_WfDe.js} +1 -1
  116. package/dist/assets/{NotFoundPage-U8Zqpzgy-B6U5r_7M.js → NotFoundPage-CQVgfvr8-DylBkQRK.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-2A4Pahmq-CXgVjNli.js → NotificationSettingsPage-CamY-jUK-CVgplVyL.js} +13 -13
  118. package/dist/assets/NotificationsListConfig-Cj32T7Hz-BOzef_mv.js +1 -0
  119. package/dist/assets/{NotificationsPage-B6yKJmGI-DzN6ib9t.js → NotificationsPage-Cq5siAeE-7OwFZiNL.js} +36 -36
  120. package/dist/assets/{OpExByVendorPage-BnTlBXeu-CipcFkdu.js → OpExByVendorPage-D08wBmkx-kSlP6mnA.js} +4 -4
  121. package/dist/assets/{OverlayContainerPage-BxBOhoib-ukQtuWFC.js → OverlayContainerPage-GWXnlbZH-CEl9U8x8.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-CKW73tr8-D7h3LcYD.js → PandLWithForecastPage-DD43rPhW-A1TZHqgl.js} +5 -5
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CSEVISAI-BNavlD0y.js → PaymentAccountSetupBillingAddressSection-C7GoqHot-DAesV6Ej.js} +6 -6
  124. package/dist/assets/{PeoplePage-BJxZJT-l-C9LL-QhI.js → PeoplePage-BwWeuQq0-CESGkAiN.js} +16 -16
  125. package/dist/assets/{PortfolioAllocationFormPage-C4pRhyet-BgcVpkPb.js → PortfolioAllocationFormPage-QLO1aksn-C4Nd_3VN.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-4fbkArz6-B-yRSXBm.js → PortfolioDetails-EbWPeH4e-BydNByff.js} +7 -7
  127. package/dist/assets/{ProductsCarousel-gGbLzHle-BiV0Dada.js → ProductsCarousel-VTApOnqN-CMfc9ylB.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-DUlZEg5E-xcZglFHs.js → PromoBaseCards-B0BCeySU-wfb5DzjJ.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-C_Z2lvUz-BwsPJmHe.js → QBOConnectionDialog-CKOkxTzr-DKeUf173.js} +6 -6
  130. package/dist/assets/{QBOSetupSection-DqWiwHwl-CaRIoZTT.js → QBOSetupSection-DycavdKb-CT5F0n4h.js} +11 -11
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-JWdrVgqW-C_wUAOQY.js → ReimbursementApprovalRuleDetailPage-PHWY-z0e-FKRZB_Ja.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-BnBNwFzM-DjomTgZF.js → ReimbursementApprovalRulesPage-B6po7mmX-BMDEIvFm.js} +33 -33
  133. package/dist/assets/{ReimbursementDetailPage-Dyjb0qZE-Bb3CYqzm.js → ReimbursementDetailPage-Dt6DhlL1-CYLKdFSl.js} +7 -7
  134. package/dist/assets/{ReimbursementPromoPage-D1EqiXEa-FvZLWCiR.js → ReimbursementPromoPage-DjcsW1Av-Dq9BuWdd.js} +3 -3
  135. package/dist/assets/{ReimbursementSetUpPage-ClJ_4WMp-BJpe0ne4.js → ReimbursementSetUpPage-DQpxCs8Z-BKnPNPnJ.js} +5 -5
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-uGRv6i-CHahWJGS.js → ReimbursementsBulkReviewDrawerPage-4foPx3A--CPio49Pu.js} +1 -1
  137. package/dist/assets/{ReloadCard-DVYCtjFP-CU_Dnd08.js → ReloadCard-CaPpBGJK-BQahT5RP.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-BTu2hum1-CPyUV-1u.js → ReportTableViewSelector-D-blv3pI-NEqAb2d0.js} +7 -7
  139. package/dist/assets/{ReportsPage-BJEqtDDR-DrtRVAGN.js → ReportsPage-BZj7Tec8-ByPzZ3Mi.js} +5 -5
  140. package/dist/assets/{RevenueChart-BFS-A4qa-Cx-As_Eb.js → RevenueChart-CwhdG15z-Ossw9Srn.js} +13 -13
  141. package/dist/assets/{ReviewDetailsPage-C6qSCmDQ-DWlHT8F5.js → ReviewDetailsPage-CuO3d_n4-DDpHJibb.js} +13 -13
  142. package/dist/assets/{ReviewOverlay-DItEmr7f-AS3xzQ96.js → ReviewOverlay-DdM4zwoh-BrpeA22_.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-CqtMdboJ-DDxj3xxP.js → RoleWithToolTip-BNc9Cjys-BflhBmMa.js} +6 -6
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CKcDbns8-fF7PO25g.js → ScheduleDetailsFixedAssetsPage-DgwGten3-CzNnfEIV.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-CYqYYvix-BNlu0RJ8.js → ScheduleDetailsPage-C4UMK1HB-2qYXZBGt.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-DUYFGZvc-9HL4QDrz.js → ScheduleSequenceTable-n_lV13zp-DSggYkAR.js} +18 -18
  147. package/dist/assets/{ScreenRoutes-BI6xyHHN.js → ScreenRoutes-Cu_ZW3C2.js} +35 -35
  148. package/dist/assets/{SetUpAccountSection-DfuZHlL6-D7lVamWi.js → SetUpAccountSection-CGBdEw5o-BsHNDPBm.js} +21 -21
  149. package/dist/assets/{SetUpDefaultSection-Jl4dtzx3-C3-EmpC_.js → SetUpDefaultSection-5H7JgUVZ-3gB6LAnP.js} +10 -10
  150. package/dist/assets/{SignIn-OTT_6lLp-BofEbUzx.js → SignIn-DpOLibjy-B1O6Z7z5.js} +4 -4
  151. package/dist/assets/{SignInScreen-CCNlCZPG.js → SignInScreen-CqoaPSYP.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-BkL-3WNh-CmJxty83.js → SpendManagementListViewPage-C0IA6cdd-BUq3yiJp.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-Buppd61y-Z26soCL-.js → SpendManagementPerTabPage-B727RQUp-BpiIJwHE.js} +14 -14
  154. package/dist/assets/{SpendManagementSection-BGcBRKGN-r3ndTuv4.js → SpendManagementSection-B8xyYfKM-Xch0MBI4.js} +10 -10
  155. package/dist/assets/{SpendMgmtSetupAccountSection-Cswh297O-ClH8d_8B.js → SpendMgmtSetupAccountSection-BHH-PFxf-BEhEOBT5.js} +13 -13
  156. package/dist/assets/{StatementItem-C3tUNT5A-CIQABbZw.js → StatementItem-CTOdgetS-ud-kOkz9.js} +4 -4
  157. package/dist/assets/{StatementsPage-DGryRE6z-DYX2UB10.js → StatementsPage-d9G6kH-f-DgcEkZX-.js} +3 -3
  158. package/dist/assets/{StatusSwitcher-BgWlxay9-C2yA7CjA.js → StatusSwitcher-BA7VjpgX-AJZc15_H.js} +2 -2
  159. package/dist/assets/{SubTabSwitcher-DwwAqq_R-C-rVBP68.js → SubTabSwitcher-DDJSCY6V-DongKB4y.js} +1 -1
  160. package/dist/assets/{SummaryCard-Dm0Tx9is-BOl3yzj-.js → SummaryCard-bczJjOLG-CjdZn_iI.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-59XAl_cs-DdQCzzW7.js → TaskManagementPage-C99UjrT4-CmD3QiB_.js} +31 -31
  162. package/dist/assets/{TimeRangeSwitcher-D7-Jph-G-DrzBgOKv.js → TimeRangeSwitcher-DgpRdFEz-UpNf9Pio.js} +3 -3
  163. package/dist/assets/{TimeframeSwitcher-CWYQWFLF-B2eT3g6m.js → TimeframeSwitcher-D7Ebofq5-DCuWRjmL.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-QOhQ3sac-DRu8hhQ-.js → TimeframeSwitcherWithToggle-BxG4mfwZ-hDOmM0BL.js} +1 -1
  165. package/dist/assets/{TopExCard-CTlizsDD-CbVG0KKn.js → TopExCard-Bl1HEvJK-DYu_Snz8.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-Df3JbgcF-DygJJzQr.js → TopExDetailPage-RVGSdHNI-B2tvvcdJ.js} +2 -2
  167. package/dist/assets/{TransactionDetailPage-DvNpTjAp-nivJ-WE2.js → TransactionDetailPage-2pU2-JVz-DvzDNfcu.js} +30 -30
  168. package/dist/assets/{TransactionList-SkSPfIsE-3VqEpEta.js → TransactionList-DnERXw-A-C5LRJytL.js} +8 -8
  169. package/dist/assets/{TransactionListBig-CZCV_kmJ-CU-ZTueA.js → TransactionListBig-vCTvXh5y-DLaLiFSC.js} +9 -9
  170. package/dist/assets/{TransactionListPage-CBbyagWp-CABnQ2Ad.js → TransactionListPage-DVtqlCMZ-B-nHFVQj.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-BXnlFdHR-Cg-sleYC.js → TransactionVendorDetailPage-0FE-k35E-D5OPfVkl.js} +3 -3
  172. package/dist/assets/{TransferDrawerPage-CxXLyKwW-CcrxmwoP.js → TransferDrawerPage-C17-lHVH-DqBTA_eG.js} +29 -29
  173. package/dist/assets/{TreasuryOverviewPage-3JlXZfCV-BaVWxrMw.js → TreasuryOverviewPage-DSRk9Ojd-8t6OoxPf.js} +16 -16
  174. package/dist/assets/{TreasuryPromoPage-BhAicq7r-BXFjeSvE.js → TreasuryPromoPage-C-8SuUVF-CFc9jz_k.js} +15 -15
  175. package/dist/assets/{TreasurySetupPage-BQG_Wd5U-CuRZifkf.js → TreasurySetupPage-CBN3MDev-DhwdW1pF.js} +2 -2
  176. package/dist/assets/{TreasuryStatementsPage-dCAtvvZk-LOpMx3mv.js → TreasuryStatementsPage-CYcFki_F-BBDbwRs0.js} +5 -5
  177. package/dist/assets/{TreasuryTaxLetterPage-irA0Cgkj-CK8dgrod.js → TreasuryTaxLetterPage-D_yfrqyw-DbMRXPvP.js} +5 -5
  178. package/dist/assets/{TreasuryTransferOrReviewPage-Dd1oLBma-BdudBXha.js → TreasuryTransferOrReviewPage-fm-w_JUE-C98U-Z9e.js} +36 -36
  179. package/dist/assets/{TrendChart-Ctquh3qH-BXdwoNzy.js → TrendChart-C6zZmjPl-pFeewMTm.js} +2 -2
  180. package/dist/assets/{TrendWithTransactions-CoXTnQK7-DI1VEsOz.js → TrendWithTransactions-DYpTdT3--CpsGst0w.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-Cq49D6V9-DdxXW0nh.js → UncategorizedAccountsMappingPage-BP5b7SLK-CwqyQ37l.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-CR0nZ7NM-CNMCC02w.js → UnitIntegrationPage-CEdW3T2--Dubmotz7.js} +4 -4
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-B_DFEIlC-CURAudK_.js → UploadAdditionalDocumentOverlay-DEJxFgaz-UhYjFUhJ.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-KsRgKz_Z-LsR0JToL.js → Vendor2FAPopup-DKQXhPGa-C-1Y3b9X.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-MRaehbhm-CLgE5xYR.js → VendorACHDetailsPage-CYVg93tk-NwYypD-G.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-Cji21PBc-BCtJStdp.js → VendorDetailPage-CQptl370-FNWm9uTn.js} +18 -18
  187. package/dist/assets/{VendorDomesticWireDetailsPage-DhUIW9g--COJKg8zJ.js → VendorDomesticWireDetailsPage-VAGgBKEt-CNg4m5oN.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-BWFbXLhQ-BxUi0-__.js → VendorFiling1099EditablePage-DT3_7-pU-BiogUCwK.js} +11 -11
  189. package/dist/assets/{VendorFirstReviewPage-tvh5pcvQ-THD3l6eB.js → VendorFirstReviewPage-CTu8QLSu-C9pea9HN.js} +26 -26
  190. package/dist/assets/{VendorInternationalWireDetailsPage-CfmZSb8O-DIxfvNFa.js → VendorInternationalWireDetailsPage-DETN5xQf-u-FhFEQH.js} +11 -11
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-V_1s9mWi-CfIMbPtN.js → VendorInternationalWireSwiftDetailsPage-CoFSDse_-CMz5sXIT.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-b9s5nqGq-C603vDJM.js → VendorsAccountsSection-B0atBQRf-DwN1P5ST.js} +6 -6
  193. package/dist/assets/{WarningsDrawerPage-CB4mJGTB-BdjqZZPI.js → WarningsDrawerPage-C8sUYwZn-ChnBWAPn.js} +9 -9
  194. package/dist/assets/{ZeniAccountDetailPage-CgSyyen1-CshTBZp2.js → ZeniAccountDetailPage-D8uZ-seh-BOZmI_Dm.js} +33 -33
  195. package/dist/assets/{ZeniAccountListViewPage-DjGZpdh_-ZERnQ4MU.js → ZeniAccountListViewPage-BuwG7e20-B-7yXRaY.js} +14 -14
  196. package/dist/assets/{ZeniAccountNavBarPieces-BJC4d2Iu-DYh40FyS.js → ZeniAccountNavBarPieces-uukfD44t-C94Q1ycz.js} +2 -2
  197. package/dist/assets/{ZeniAccountPromoPage-D3Yt6FIj-GRZWrpyM.js → ZeniAccountPromoPage-3t3vzAGh-DdQrchgw.js} +9 -9
  198. package/dist/assets/{ZeniAccountSetupPage-BeCPekI4-B43tT3eQ.js → ZeniAccountSetupPage-BVzvcRnV-c8DsQZjx.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-Dhdl9kqY-Ef9QRXwR.js → ZeniCopyright-DcAcIGRB-BE_hgGDM.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-B8VFb2l--DxgbNpeK.js → ZeniTransferAmountSlider-RA4Pva57-B-TGxP0B.js} +1 -1
  201. package/dist/assets/{analyticsHelper-CWmZNwFh.js → analyticsHelper-Cbfklysr.js} +1 -1
  202. package/dist/assets/{analyticsHelper-Cawv3PXO-W_w6SVVv.js → analyticsHelper-D2Tw-gFs-CfilQYvq.js} +1 -1
  203. package/dist/assets/{chartTypes-5p7NWUHx-CaLqh1mY.js → chartTypes-DX9eCHdW-B7oDG2yB.js} +1 -1
  204. package/dist/assets/{commonDimensions-CQlLUBWG-DzlL6K89.js → commonDimensions-C417LkG3-Cr4GHwJ7.js} +1 -1
  205. package/dist/assets/{detailCommon-CoAmJ6pY-B7nmx1bS.js → detailCommon-DMILWpBc--U3Fq460.js} +4 -4
  206. package/dist/assets/{downloadPdf-CCJjnfCZ-DhZmGI0x.js → downloadPdf-TtzJSlkj-CYWEy00G.js} +1 -1
  207. package/dist/assets/{index-BQuxwdpl.js → index-rGMXK0Rc.js} +2579 -2597
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-CwyU1xs5-BVaHor8r.js → mapLoadingInProgressToTreeNode-BuX84Fl8-C9VszrPq.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-IKJYFM7_-BhnDf8Ml.js → mapSectionWithAcOnlyToTreeNode-CuqkYL_a-D2dufnQP.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-D5XTLzM7-BSt0rKdl.js → mapSpacerToTreeNode-CkoeX_hU-B3Tt6fDl.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-CJMbtmIl-5p_Ma1rs.js → mapTimeframeBalancesToTreeNode-CbddU0ga-B0ctGM7F.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-SX6fBp6e-CrAiUa7Z.js → mapTimeframeBalancesToTreeNode-Dz-UvEDI-BLldSj9r.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ts5lOZtX-EAxYFN8c.js → mapTimeframeHeaderLoadingInProgressToTreeNode-C_cGYrFN-DbJ2zuiX.js} +1 -1
  214. package/dist/assets/{play-icon-oQKnPjZi-ikYsAriO.js → play-icon-DvnIcVvi-BFAe9r1Z.js} +3 -3
  215. package/dist/assets/{toCOABalancesWithID-DwvFse7w-BpGyVZma.js → toCOABalancesWithID-CEYLTlMK-DfcDAp6p.js} +1 -1
  216. package/dist/assets/{toChartData-BBvMC_VQ-C0NFogQd.js → toChartData-DgmHnq7q-B0J27uo6.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js → treasuryColorHelper-D6-KrZju-CjJ44MCH.js} +1 -1
  218. package/dist/assets/{uploadAttachment-P4S_2L_v-CGkHKEhM.js → uploadAttachment-B6HsV49B-Cn4CVOXc.js} +13 -13
  219. package/dist/assets/{uploadReceipts-DhDnr0ap-B_HL-sz_.js → uploadReceipts-D80JLNY4-DmW4IrLG.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ChargeCardPromoPage-Cv34m9BS-CZNZStg6.js +0 -219
  223. package/dist/assets/CompleteProfile-DnBzaAdT-DtIxbZgo.js +0 -52
  224. package/dist/assets/CustomerOnboardingContainerPage-DyM4sCZd-2ugo5OTL.js +0 -1
  225. package/dist/assets/CustomerOnboardingProductSuitePage-CxB32dUM-Do1nrT8y.js +0 -202
  226. package/dist/assets/EditPeoplePage-DAM71X8m-B2UZEnLj.js +0 -55
  227. package/dist/assets/InvitePeoplePage-CLvVDRca-D907h_Dw.js +0 -12
  228. package/dist/assets/LabeledDocumentField-DLd6UnEn-o-XnUJ1D.js +0 -41
  229. package/dist/assets/NotificationsListConfig-BIw5ASx2-Bj3yoWmL.js +0 -1
  230. package/dist/assets/VerifyDevice-CJgD3UmO-DfWOJP1r.js +0 -67
@@ -1,4 +1,4 @@
1
- import{eP as K,M as Z,h5 as de,a1 as le,q as B,o as a,g as z,X as q,j as t,bm as pe,h6 as me,u as re,cj as ge,a7 as F,C as W,aQ as he,bp as ue,s as ie,h7 as fe,h8 as Se,h9 as Q,ha as G,hb as X,a3 as ye,i as Y,p as xe,gi as be,f as Ce,Q as ve}from"./index-BQuxwdpl.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{O as we}from"./SetUpAccountSection-DfuZHlL6-D7lVamWi.js";const Pe={containerHeight:new W(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-rGMXK0Rc.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{O as we}from"./SetUpAccountSection-CGBdEw5o-BsHNDPBm.js";const Pe={containerHeight:new F(656,720)},$e=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 20px;
@@ -81,19 +81,19 @@ import{eP as K,M as Z,h5 as de,a1 as le,q as B,o as a,g as z,X as q,j as t,bm as
81
81
  color: ${z.important};
82
82
  width: 434px;
83
83
  text-align: center;
84
- `,{cardPayment:c,common:{footer:te}}=Z.getLocalizedStrings(),De=o(Ce)`
84
+ `,{cardPayment:c,common:{footer:te}}=Z.getLocalizedStrings(),Me=o(Ce)`
85
85
  color: ${e=>e.theme.colors.hero};
86
86
  text-align: center;
87
87
  margin-top: ${a.sp2};
88
- `,ae=e=>`${e}_form`,se="CardPaymentPaymentForm",Me=({cardPaymentView:e,clientSecret:r,cardSetupInProgress:m,handleConfirmCardSetupIntent:i,updateCardPaymentModalState:y,handleAddCardPaymentSource:d,setCardSetupInProgress:g})=>{const x=fe(),n=Se(),[l,h]=p.useState(!1),[P,$]=p.useState(!1),[b,C]=p.useState(!1),[u,v]=p.useState(!1),j=q(),_=e.cardSetupConfirmStatus.fetchState,T=e.addCardPaymentSourceStatus.fetchState,D=e.cardSetupIntentStatus.fetchState,[I,f]=p.useState(!1),V=async S=>{if(S.preventDefault(),!x||!n)return;const w=n.getElement(Q),E=n.getElement(G),A=n.getElement(X);(!w||!E||!A)&&f(!0),v(!0),g(!0),w!=null&&E!=null&&A!=null&&x.confirmCardSetup(r,{payment_method:{card:w}}).then(L=>{v(!1),i(L),L.setupIntent?.id!=null&&d("card","payment_intent",L.setupIntent?.id)}).catch(()=>{v(!1),setTimeout(()=>{g(!1)},2e3)})},R=re(),U={showIcon:!0,style:{base:{...B.standardRegular.cssObject,color:R.colors.primary,"::placeholder":{color:R.colors.grey2}},invalid:{color:z.important,iconColor:z.important}}},M=_==="In-Progress"||T==="In-Progress"||D==="In-Progress"||u===!0||m===!0,H=l||P||b||_==="In-Progress"||T==="In-Progress"||D==="In-Progress"||u===!0||m===!0;return t.jsx(Ie,{windowSize:j,children:t.jsxs(je,{onSubmit:V,id:ae(se),children:[t.jsxs(Ee,{children:[t.jsx(Ae,{children:t.jsx(ke,{children:t.jsx(Q,{options:U,onChange:S=>h(!!S.error)})})}),t.jsx(_e,{children:t.jsxs(Re,{children:[t.jsx(ee,{children:c.cardNumber}),t.jsx(G,{options:U,onChange:S=>$(!!S.error)})]})}),t.jsx(Te,{children:t.jsxs(Ue,{children:[t.jsx(ee,{children:c.CVC}),t.jsx(X,{options:U,onChange:S=>C(!!S.error)})]})})]}),e.cardSetupConfirmStatus.error||I?t.jsx(ne,{children:c.errorMsg}):null,t.jsx(ye,{style:{width:"100%",padding:`${a.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:ae(se),primaryBtn:{label:te.linkCard,style:{width:"104px",height:a.sp6},isLoading:M,isDisabled:H,type:"submit"},cancelBtn:{label:te.cancel,style:{width:"104px",height:a.sp6},onClick:()=>{y(!1)}}}),t.jsxs(De,{windowSize:j,children:[c.terms.term1,t.jsx(Y,{href:c.terms.term2Link,linkText:c.terms.term2}),c.terms.term3,t.jsx(Y,{href:c.terms.term4Link,linkText:c.terms.term4})]})]})})},Qe=({isCardPaymentOpen:e,cardPaymentView:r,stripeKey:m,cardSetupInProgress:i,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleCreateCardSetupIntent:g,handleAddCardPaymentSource:x,handleResetCardPaymentErrorStatuses:n,setCardSetupInProgress:l})=>{const[h,P]=p.useState(""),$=de(m),b=le(r.addCardPaymentSourceStatus.fetchState),C=r.addCardPaymentSourceStatus.fetchState;p.useEffect(()=>(g(["card"]),()=>{d(!1),P(""),n()}),[]),p.useEffect(()=>{n()},[e]),p.useEffect(()=>{b==="In-Progress"&&C==="Error"?(l(!1),setTimeout(()=>{d(!1)},2e3)):b==="In-Progress"&&C==="Completed"&&(g(["card"]),setTimeout(()=>{d(!1),l(!1)},2e3))},[b,C]),p.useEffect(()=>{(r.cardSetupConfirmStatus.error||r.addCardPaymentSourceStatus.error)&&(g(["card"]),setTimeout(()=>{l(!1)},2e3))},[r.cardSetupConfirmStatus.error,r.addCardPaymentSourceStatus.error]),p.useEffect(()=>{r.clientSecret!=null&&P(r.clientSecret)},[r.clientSecret]);const u={theme:"stripe",variables:{borderRadius:a.sp1,fontSizeBase:B.standardRegular.fontSize,fontFamily:B.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${z.neutralGrey3Light}`,borderRadius:a.sp1,padding:"10px",fontSize:B.standardRegular.fontSize}}},v={clientSecret:h,appearance:u},j=q();return t.jsx(pe,{open:e,children:t.jsxs($e,{windowSize:j,isError:!!r.cardSetupConfirmStatus.error,children:[t.jsx(Le,{children:c.title}),t.jsx(ze,{children:c.subtitle}),h&&$!=null?t.jsx(me,{options:v,stripe:$,children:t.jsx(Me,{clientSecret:h,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleAddCardPaymentSource:x,cardPaymentView:r,cardSetupInProgress:i,setCardSetupInProgress:l})}):t.jsx(ne,{children:c.errorMsg})]})})},{cardBrands:s}=Z.getLocalizedStrings().cardPayment,N={visa:{name:s.visa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/visa.svg"},mastercard:{name:s.mastercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/mastercard.svg"},american_express:{name:s.american_express,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/amex.svg"},discover:{name:s.discover,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/discover-global.svg"},jcb:{name:s.jcb,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/jcb-card.svg"},diners_club:{name:s.diners_club,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dinersclub.svg"},unionpay:{name:s.unionpay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},rupay:{name:s.rupay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/rupay-card.svg"},bancontact:{name:s.bancontact,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cmr_falabella:{name:s.cmr_falabella,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},tarjeta_naranja:{name:s.tarjeta_naranja,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},nativa:{name:s.nativa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cencosud:{name:s.cencosud,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cabal:{name:s.cabal,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},argencard:{name:s.argencard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},elo:{name:s.elo,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/elo-card.svg"},hipercard:{name:s.hipercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/hipercard.svg"},carnet:{name:s.carnet,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/carnet.svg"},maestro:{name:s.maestro,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/maestro.svg"},not_applicable:{name:s.not_applicable,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},eftpos_australia:{name:s.eftpos_australia,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},girocard:{name:s.girocard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},other:{name:s.other,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},unknown:{name:s.unknown,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}},k={sectionWidth:new W(343,580,726),iconWidthHeight:new W(20,xe[4])},Oe={title:new ve("standardSemiBold","largeSemiBold")},oe=e=>e?N[e]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Be=(e,r,m,i)=>({header:e,title:`${K(N[i.cardsList[0]?.brand]?.name??"")} ${r}`,subtitle:`${K(N[i.cardsList[0]?.brand]?.name??"")} ${m} ${i.cardsList[0]?.last4}`,status:i.cardsList[0]?.status}),Ve=o.img`
88
+ `,ae=e=>`${e}_form`,se="CardPaymentPaymentForm",De=({cardPaymentView:e,clientSecret:r,cardSetupInProgress:m,handleConfirmCardSetupIntent:i,updateCardPaymentModalState:y,handleAddCardPaymentSource:d,setCardSetupInProgress:g})=>{const x=fe(),n=Se(),[l,h]=p.useState(!1),[P,$]=p.useState(!1),[b,C]=p.useState(!1),[u,v]=p.useState(!1),j=J(),_=e.cardSetupConfirmStatus.fetchState,T=e.addCardPaymentSourceStatus.fetchState,M=e.cardSetupIntentStatus.fetchState,[I,f]=p.useState(!1),V=async S=>{if(S.preventDefault(),!x||!n)return;const w=n.getElement(q),E=n.getElement(G),A=n.getElement(X);(!w||!E||!A)&&f(!0),v(!0),g(!0),w!=null&&E!=null&&A!=null&&x.confirmCardSetup(r,{payment_method:{card:w}}).then(L=>{v(!1),i(L),L.setupIntent?.id!=null&&d("card","payment_intent",L.setupIntent?.id)}).catch(()=>{v(!1),setTimeout(()=>{g(!1)},2e3)})},R=re(),U={showIcon:!0,style:{base:{...B.standardRegular.cssObject,color:R.colors.primary,"::placeholder":{color:R.colors.grey2}},invalid:{color:z.important,iconColor:z.important}}},D=_==="In-Progress"||T==="In-Progress"||M==="In-Progress"||u===!0||m===!0,H=l||P||b||_==="In-Progress"||T==="In-Progress"||M==="In-Progress"||u===!0||m===!0;return t.jsx(Ie,{windowSize:j,children:t.jsxs(je,{onSubmit:V,id:ae(se),children:[t.jsxs(Ee,{children:[t.jsx(Ae,{children:t.jsx(ke,{children:t.jsx(q,{options:U,onChange:S=>h(!!S.error)})})}),t.jsx(_e,{children:t.jsxs(Re,{children:[t.jsx(ee,{children:c.cardNumber}),t.jsx(G,{options:U,onChange:S=>$(!!S.error)})]})}),t.jsx(Te,{children:t.jsxs(Ue,{children:[t.jsx(ee,{children:c.CVC}),t.jsx(X,{options:U,onChange:S=>C(!!S.error)})]})})]}),e.cardSetupConfirmStatus.error||I?t.jsx(ne,{children:c.errorMsg}):null,t.jsx(ye,{style:{width:"100%",padding:`${a.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:ae(se),primaryBtn:{label:te.linkCard,style:{width:"104px",height:a.sp6},isLoading:D,isDisabled:H,type:"submit"},cancelBtn:{label:te.cancel,style:{width:"104px",height:a.sp6},onClick:()=>{y(!1)}}}),t.jsxs(Me,{windowSize:j,children:[c.terms.term1,t.jsx(Y,{href:c.terms.term2Link,linkText:c.terms.term2}),c.terms.term3,t.jsx(Y,{href:c.terms.term4Link,linkText:c.terms.term4})]})]})})},qe=({isCardPaymentOpen:e,cardPaymentView:r,stripeKey:m,cardSetupInProgress:i,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleCreateCardSetupIntent:g,handleAddCardPaymentSource:x,handleResetCardPaymentErrorStatuses:n,setCardSetupInProgress:l})=>{const[h,P]=p.useState(""),$=de(m),b=le(r.addCardPaymentSourceStatus.fetchState),C=r.addCardPaymentSourceStatus.fetchState;p.useEffect(()=>(g(["card"]),()=>{d(!1),P(""),n()}),[]),p.useEffect(()=>{n()},[e]),p.useEffect(()=>{b==="In-Progress"&&C==="Error"?(l(!1),setTimeout(()=>{d(!1)},2e3)):b==="In-Progress"&&C==="Completed"&&(g(["card"]),setTimeout(()=>{d(!1),l(!1)},2e3))},[b,C]),p.useEffect(()=>{(r.cardSetupConfirmStatus.error||r.addCardPaymentSourceStatus.error)&&(g(["card"]),setTimeout(()=>{l(!1)},2e3))},[r.cardSetupConfirmStatus.error,r.addCardPaymentSourceStatus.error]),p.useEffect(()=>{r.clientSecret!=null&&P(r.clientSecret)},[r.clientSecret]);const u={theme:"stripe",variables:{borderRadius:a.sp1,fontSizeBase:B.standardRegular.fontSize,fontFamily:B.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${z.neutralGrey3Light}`,borderRadius:a.sp1,padding:"10px",fontSize:B.standardRegular.fontSize}}},v={clientSecret:h,appearance:u},j=J();return t.jsx(pe,{open:e,children:t.jsxs($e,{windowSize:j,isError:!!r.cardSetupConfirmStatus.error,children:[t.jsx(Le,{children:c.title}),t.jsx(ze,{children:c.subtitle}),h&&$!=null?t.jsx(me,{options:v,stripe:$,children:t.jsx(De,{clientSecret:h,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleAddCardPaymentSource:x,cardPaymentView:r,cardSetupInProgress:i,setCardSetupInProgress:l})}):t.jsx(ne,{children:c.errorMsg})]})})},{cardBrands:s}=Z.getLocalizedStrings().cardPayment,N={visa:{name:s.visa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/visa.svg"},mastercard:{name:s.mastercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/mastercard.svg"},american_express:{name:s.american_express,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/amex.svg"},discover:{name:s.discover,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/discover-global.svg"},jcb:{name:s.jcb,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/jcb-card.svg"},diners_club:{name:s.diners_club,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dinersclub.svg"},unionpay:{name:s.unionpay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},rupay:{name:s.rupay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/rupay-card.svg"},bancontact:{name:s.bancontact,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cmr_falabella:{name:s.cmr_falabella,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},tarjeta_naranja:{name:s.tarjeta_naranja,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},nativa:{name:s.nativa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cencosud:{name:s.cencosud,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cabal:{name:s.cabal,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},argencard:{name:s.argencard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},elo:{name:s.elo,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/elo-card.svg"},hipercard:{name:s.hipercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/hipercard.svg"},carnet:{name:s.carnet,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/carnet.svg"},maestro:{name:s.maestro,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/maestro.svg"},not_applicable:{name:s.not_applicable,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},eftpos_australia:{name:s.eftpos_australia,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},girocard:{name:s.girocard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},other:{name:s.other,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},unknown:{name:s.unknown,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}},k={sectionWidth:new F(343,580,726),iconWidthHeight:new F(20,xe[4])},Oe={title:new ve("standardSemiBold","largeSemiBold")},oe=e=>e?N[e]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Be=(e,r,m,i)=>({header:e,title:`${Q(N[i.cardsList[0]?.brand]?.name??"")} ${r}`,subtitle:`${Q(N[i.cardsList[0]?.brand]?.name??"")} ${m} ${i.cardsList[0]?.last4}`,status:i.cardsList[0]?.status}),Ve=o.img`
89
89
  width: ${e=>e.width}px;
90
90
  height: ${e=>e.height}px;
91
- `,Ge=({paymentAccount:e,plaidConnectionDetails:r,connectedAccountProvider:m,sectionId:i,isDisabled:y,hasError:d=!1,isValid:g,style:x,analytics:n,onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,updateCardPaymentModalState:C,cardPaymentView:u,resetCardPaymentViewState:v,cardSetupInProgress:j=!1,googleAPIKey:_,subscriptionBillingAddress:T,subscriptionBillingAddressSectionId:D})=>{const I=re(),f=q(),{register:V}=ge(),R=I.mode==="light"?new F(I.colors.brandColorJadeLight):new F(I.colors.brandColorJadeDark),{common:U,customerOnboardingPage:{sections:{link_payment_account:{title:M,text:H,subText:S},card_payment_method:w}}}=Z.getLocalizedStrings(),E=u.cardsList.length>0,A=u.cardsList[0]?.brand??"other",L=u.addCardPaymentSourceStatus.fetchState,O=Be(w.header,w.titleText,w.protectedCardNo,u);let J;return E&&(J={header:O.header,title:O.title,subtitle:O.subtitle,status:O.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx(Ve,{src:oe(A).iconURL,width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f),alt:oe(A).name,loading:"lazy"}),color:new F(R)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1}),t.jsxs(Fe,{windowSize:f,children:[t.jsx(We,{type:"hidden",...V(`${i}.connected`,{validate:ce=>d?ce==="true":!0}),value:g?"true":"false"}),t.jsx(we,{connectedAccountProvider:m,paymentAccount:e,plaidConnectionDetails:r,allBankAccounts:[],header:M,sectionTitle:M,defaultSectionTitle:H,defaultSectionSubTitle:S,sectionId:i,isDisabled:y,hasError:d,showZeniAccountSection:!1,isCompleted:e?.providerVerificationStatus?.code?.includes("verified")===!0&&e?.isLoginRequired===!1,showCompletedIcon:f==="small",onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,style:x,icon:{element:t.jsx(he,{width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f)}),color:R},analytics:n,productType:"onboarding",resetCardPaymentViewState:v,cardPaymentSectionValues:J,cardPaymentView:u,updateCardPaymentModalState:C,referrer:"Onboarding",cardSetupInProgress:j}),He(f,U.headers.billingAddress,D,n,T,_,y)]})},He=(e,r,m,i,y,d,g)=>{const x={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return t.jsxs(Ze,{children:[t.jsx(Ne,{windowSize:e,isDisabled:g==="disabled",children:r}),t.jsx(be,{googleAPIKey:d??"",addressToEdit:y,sectionId:`${m}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:n=>{if(n.target instanceof HTMLInputElement){const{placeholder:l}=n.target;if(l){const h=x[l];h&&i.trackOnboardingBillingAddress(h)}}}})]})},Fe=o.div`
91
+ `,Ge=({paymentAccount:e,plaidConnectionDetails:r,connectedAccountProvider:m,sectionId:i,isDisabled:y,hasError:d=!1,isValid:g,style:x,analytics:n,onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,updateCardPaymentModalState:C,cardPaymentView:u,resetCardPaymentViewState:v,cardSetupInProgress:j=!1,googleAPIKey:_,subscriptionBillingAddress:T,subscriptionBillingAddressSectionId:M})=>{const I=re(),f=J(),{register:V}=ge(),R=I.mode==="light"?new W(I.colors.brandColorJadeLight):new W(I.colors.brandColorJadeDark),{common:U,customerOnboardingPage:{sections:{link_payment_account:{title:D,text:H,subText:S},card_payment_method:w}}}=Z.getLocalizedStrings(),E=u.cardsList.length>0,A=u.cardsList[0]?.brand??"other",L=u.addCardPaymentSourceStatus.fetchState,O=Be(w.header,w.titleText,w.protectedCardNo,u);let K;return E&&(K={header:O.header,title:O.title,subtitle:O.subtitle,status:O.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx(Ve,{src:oe(A).iconURL,width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f),alt:oe(A).name,loading:"lazy"}),color:new W(R)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1}),t.jsxs(We,{windowSize:f,children:[t.jsx(Fe,{type:"hidden",...V(`${i}.connected`,{validate:ce=>d?ce==="true":!0}),value:g?"true":"false"}),t.jsx(we,{connectedAccountProvider:m,paymentAccount:e,plaidConnectionDetails:r,allBankAccounts:[],header:D,sectionTitle:D,defaultSectionTitle:H,defaultSectionSubTitle:S,sectionId:i,isDisabled:y,hasError:d,showZeniAccountSection:!1,isCompleted:e?.providerVerificationStatus?.code?.includes("verified")===!0&&e?.isLoginRequired===!1,showCompletedIcon:f==="small",onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,style:x,icon:{element:t.jsx(he,{width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f)}),color:R},analytics:n,productType:"onboarding",resetCardPaymentViewState:v,cardPaymentSectionValues:K,cardPaymentView:u,updateCardPaymentModalState:C,referrer:"Onboarding",cardSetupInProgress:j}),He(f,U.headers.billingAddress,M,n,T,_,y)]})},He=(e,r,m,i,y,d,g)=>{const x={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return t.jsxs(Ze,{children:[t.jsx(Ne,{windowSize:e,isDisabled:g==="disabled",children:r}),t.jsx(be,{googleAPIKey:d??"",addressToEdit:y,sectionId:`${m}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:n=>{if(n.target instanceof HTMLInputElement){const{placeholder:l}=n.target;if(l){const h=x[l];h&&i.trackOnboardingBillingAddress(h)}}}})]})},We=o.div`
92
92
  display: flex;
93
93
  flex-direction: column;
94
94
  width: ${e=>k.sectionWidth.valuePx(e.windowSize)};
95
95
  padding-bottom: ${a.sp3};
96
- `,We=o.input`
96
+ `,Fe=o.input`
97
97
  display: none;
98
98
  `,Ne=o.div`
99
99
  ${e=>`${Oe.title.style(e.windowSize)}`};
@@ -103,4 +103,4 @@ import{eP as K,M as Z,h5 as de,a1 as le,q as B,o as a,g as z,X as q,j as t,bm as
103
103
  `,Ze=o.div`
104
104
  margin-top: ${a.sp5};
105
105
  margin-bottom: ${a.sp4};
106
- `;export{Be as M,Qe as e,oe as r,Ge as t};
106
+ `;export{Be as M,qe as e,oe as r,Ge as t};
@@ -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,bN as De,bO as Oe,d as U,a5 as J,bP as we,K as Le,q as be,bQ as _e,a1 as Ae,bR as Ve,bS as Me,bT as We,bU as Be,ai as Ke,B as K,bV as He,C as $,bW as Ue,bX as je,p as b,l as A,bY as ee,bG as N,a as Ee,F as Fe,bZ as Ze,b_ as qe,R as Xe,v as D,b$ as Ge,s as O,f as te,g as V,c0 as Qe,bK as Se,ao as ie,c1 as ke,bc as Ye,c2 as Je}from"./index-BQuxwdpl.js";import{f as ce,b as v,n as i}from"./vendor-CnQcJ2Lu.js";import{R as Ie}from"./Menu-Bsk58l8k-DveIoh_v.js";import{T as Re}from"./RoleWithToolTip-CqtMdboJ-DDxj3xxP.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)}],H=[{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:H));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-rGMXK0Rc.js";import{f as ce,b as v,n as i}from"./vendor-CnQcJ2Lu.js";import{R as Ie}from"./Menu-gdxz6nzv-BWb1NISh.js";import{T as Ce}from"./RoleWithToolTip-BNc9Cjys-BflhBmMa.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)"};
@@ -46,7 +46,7 @@ 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,bN as De,bO
46
46
  &:hover {
47
47
  color: ${e=>e.theme.colors.primary};
48
48
  }
49
- `,dt=58;function ct({sortConfig:e,onColumnSortConfigChanged:r,mode:l}){const d=y.getLocalizedStrings().peoplePage,m=Ee({mode:"all"}),p=v.useMemo(()=>l==="zeni_only"?H:S,[l]),x=v.useMemo(()=>p.map(o=>({label:o.value,value:o.key})),[p]),h=p.find(o=>o.key===e.sortKey);h!=null&&(h.sortOrder=e.sortOrder);const n=(o,u)=>{let w=u;e.sortKey===o&&(w=u==="ascending"?"descending":"ascending"),r?.(o,w)};return v.useEffect(()=>{const o=m.watch((u,{name:w})=>{if(w!=null&&u!=null){const{people_sort_by:f}=u;r?.(f.selectedOption.value,"ascending")}});return()=>{o.unsubscribe()}}),t.jsxs(mt,{height:dt,"data-testid":a("people-list-header-row-small"),children:[t.jsx(ut,{children:t.jsx(Fe,{...m,children:t.jsx("form",{children:t.jsx(Ze,{defaultValue:{allOptions:x,selectedOption:x.find(o=>o.value===e.sortKey)},placeholder:`${d.sortBy}:`,style:{width:"200px"},isSearchable:!1,isOptionsSortable:!1,constantSelectedValue:`${d.sortBy}:`,name:"people_sort_by"})})})}),t.jsxs(xt,{"data-testid":a("people-list-header",e.sortKey),onClick:()=>n(e.sortKey,e.sortOrder),children:[t.jsx(gt,{children:h?.value}),t.jsx(ht,{sortDataValue:e.sortKey,headerdata:h,children:t.jsx(qe,{width:s.sp3,height:s.sp3})})]})]})}const pt=ce.memo(ct),ht=i.div`
49
+ `,dt=58;function ct({sortConfig:e,onColumnSortConfigChanged:r,mode:l}){const d=y.getLocalizedStrings().peoplePage,m=Ee({mode:"all"}),p=v.useMemo(()=>l==="zeni_only"?K:S,[l]),x=v.useMemo(()=>p.map(o=>({label:o.value,value:o.key})),[p]),h=p.find(o=>o.key===e.sortKey);h!=null&&(h.sortOrder=e.sortOrder);const n=(o,u)=>{let w=u;e.sortKey===o&&(w=u==="ascending"?"descending":"ascending"),r?.(o,w)};return v.useEffect(()=>{const o=m.watch((u,{name:w})=>{if(w!=null&&u!=null){const{people_sort_by:f}=u;r?.(f.selectedOption.value,"ascending")}});return()=>{o.unsubscribe()}}),t.jsxs(mt,{height:dt,"data-testid":a("people-list-header-row-small"),children:[t.jsx(ut,{children:t.jsx(Fe,{...m,children:t.jsx("form",{children:t.jsx(Ze,{defaultValue:{allOptions:x,selectedOption:x.find(o=>o.value===e.sortKey)},placeholder:`${d.sortBy}:`,style:{width:"200px"},isSearchable:!1,isOptionsSortable:!1,constantSelectedValue:`${d.sortBy}:`,name:"people_sort_by"})})})}),t.jsxs(xt,{"data-testid":a("people-list-header",e.sortKey),onClick:()=>n(e.sortKey,e.sortOrder),children:[t.jsx(gt,{children:h?.value}),t.jsx(ht,{sortDataValue:e.sortKey,headerdata:h,children:t.jsx(qe,{width:s.sp3,height:s.sp3})})]})]})}const pt=ce.memo(ct),ht=i.div`
50
50
  display: flex;
51
51
  align-items: center;
52
52
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
@@ -103,7 +103,7 @@ 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,bN as De,bO
103
103
  }
104
104
  `,gt=i(D)`
105
105
  color: ${e=>e.theme.colors.hero};
106
- `,{peoplePage:T}=y.getLocalizedStrings(),wt=({peopleData:e,userNameSticky:r,allClasses:l,allManagers:d,onResendInvite:m,onDeleteUser:p,onRowClick:x})=>{const[h,n]=v.useState(!1),o=I(),u=vt(e,d,l),w=e.userRole.userRoles.filter(g=>!A.hasZeniRoleOrCompanyOfficerAccess(g)),f=()=>{p?.(e)},j=()=>{x?.(e.userId)};return t.jsxs(ft,{windowSize:o,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:j,"data-testid":a("people-list-row",e.userId),children:[t.jsx(yt,{wrapperWidth:S[0].width,windowSize:o,userNameSticky:r,children:t.jsxs(bt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(jt,{children:[e.user?.firstName?t.jsxs(St,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(It,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(kt,{wrapperWidth:S[1].width,windowSize:o,children:t.jsx(Re,{roles:w})}),t.jsxs(t.Fragment,{children:[A.hasInvestorBankerLevelAccess(e.userRole.userRoles)?t.jsx(q,{wrapperWidth:S[2].width,windowSize:o,children:t.jsx(_,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.manager?t.jsx(ve,{wrapperWidth:S[2].width,windowSize:o,children:t.jsx(_,{children:u.manager})}):t.jsx(q,{wrapperWidth:S[2].width,windowSize:o,children:t.jsx(_,{children:T.noManager})})}),A.hasInvestorBankerLevelAccess(e.userRole.userRoles)?t.jsx(q,{wrapperWidth:S[3].width,windowSize:o,children:t.jsx(_,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.department?t.jsx(ve,{wrapperWidth:S[3].width,windowSize:o,children:t.jsx(_,{children:u.department})}):t.jsx(q,{wrapperWidth:S[3].width,windowSize:o,children:t.jsx(_,{children:T.emptyDepartmentPlaceholderText})})})]}),t.jsxs(Rt,{"data-testid":a("last-seen-container",e.userId),wrapperWidth:S[4].width,windowSize:o,children:[e.userRole.invitationStatus==="accepted"?t.jsx($t,{children:u.lastSeen}):t.jsx(zt,{children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Tt,{"data-testid":a("resend-invite-text",e.userId),onClick:g=>{g.stopPropagation(),m?.(e.userId)},children:T.resendInvite.label}),t.jsx(Pt,{children:t.jsx(Nt,{children:`${T.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(Ct,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ie,{menuItems:t.jsxs(Dt,{"data-testid":a("menu-items-container",e.userId),children:[t.jsx(fe,{"data-testid":a("edit-people-list-row"),onClick:()=>{n(!1),j()},children:T.invitePage.editTitle}),t.jsx(fe,{"data-testid":a("delete-people-list-row",e.userId),isDelete:!0,onClick:g=>{g.stopPropagation(),n(!1),f()},children:T.deleteOverlay.title})]}),setIsMenuOpen:n,isMenuOpen:h})})]})]})};function vt(e,r,l){const d=l.find(p=>e.userRole.accountingClassIDs[0]===p.classId),m=r.find(p=>p.userId===e.userRole.managerUserId);return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:Qe},manager:m?.user?`${m?.user?.firstName} ${m?.user?.lastName}`:void 0,department:d?d?.className:void 0,lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ft=i.div`
106
+ `,{peoplePage:T}=y.getLocalizedStrings(),wt=({peopleData:e,userNameSticky:r,allClasses:l,allManagers:d,onResendInvite:m,onDeleteUser:p,onRowClick:x})=>{const[h,n]=v.useState(!1),o=I(),u=vt(e,d,l),w=e.userRole.userRoles.filter(g=>!A.hasZeniRoleOrCompanyOfficerAccess(g)),f=()=>{p?.(e)},j=()=>{x?.(e.userId)};return t.jsxs(ft,{windowSize:o,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:j,"data-testid":a("people-list-row",e.userId),children:[t.jsx(yt,{wrapperWidth:S[0].width,windowSize:o,userNameSticky:r,children:t.jsxs(bt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(jt,{children:[e.user?.firstName?t.jsxs(St,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(It,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(kt,{wrapperWidth:S[1].width,windowSize:o,children:t.jsx(Ce,{roles:w})}),t.jsxs(t.Fragment,{children:[A.hasInvestorBankerLevelAccess(e.userRole.userRoles)?t.jsx(q,{wrapperWidth:S[2].width,windowSize:o,children:t.jsx(_,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.manager?t.jsx(ve,{wrapperWidth:S[2].width,windowSize:o,children:t.jsx(_,{children:u.manager})}):t.jsx(q,{wrapperWidth:S[2].width,windowSize:o,children:t.jsx(_,{children:T.noManager})})}),A.hasInvestorBankerLevelAccess(e.userRole.userRoles)?t.jsx(q,{wrapperWidth:S[3].width,windowSize:o,children:t.jsx(_,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.department?t.jsx(ve,{wrapperWidth:S[3].width,windowSize:o,children:t.jsx(_,{children:u.department})}):t.jsx(q,{wrapperWidth:S[3].width,windowSize:o,children:t.jsx(_,{children:T.emptyDepartmentPlaceholderText})})})]}),t.jsxs(Ct,{"data-testid":a("last-seen-container",e.userId),wrapperWidth:S[4].width,windowSize:o,children:[e.userRole.invitationStatus==="accepted"?t.jsx($t,{children:u.lastSeen}):t.jsx(zt,{children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Tt,{"data-testid":a("resend-invite-text",e.userId),onClick:g=>{g.stopPropagation(),m?.(e.userId)},children:T.resendInvite.label}),t.jsx(Pt,{children:t.jsx(Nt,{children:`${T.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(Rt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ie,{menuItems:t.jsxs(Dt,{"data-testid":a("menu-items-container",e.userId),children:[t.jsx(fe,{"data-testid":a("edit-people-list-row"),onClick:()=>{n(!1),j()},children:T.invitePage.editTitle}),t.jsx(fe,{"data-testid":a("delete-people-list-row",e.userId),isDelete:!0,onClick:g=>{g.stopPropagation(),n(!1),f()},children:T.deleteOverlay.title})]}),setIsMenuOpen:n,isMenuOpen:h})})]})]})};function vt(e,r,l){const d=l.find(p=>e.userRole.accountingClassIDs[0]===p.classId),m=r.find(p=>p.userId===e.userRole.managerUserId);return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:Qe},manager:m?.user?`${m?.user?.firstName} ${m?.user?.lastName}`:void 0,department:d?d?.className:void 0,lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ft=i.div`
107
107
  border: 1px solid ${e=>e.theme.colors.grey3};
108
108
  border-radius: ${s.sp2};
109
109
  display: flex;
@@ -229,10 +229,10 @@ 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,bN as De,bO
229
229
  -webkit-box-orient: vertical;
230
230
  overflow: hidden;
231
231
  text-overflow: ellipsis;
232
- `,Rt=i.div`
232
+ `,Ct=i.div`
233
233
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
234
234
  position: relative;
235
- `,Ct=i.div`
235
+ `,Rt=i.div`
236
236
  position: absolute;
237
237
  right: ${`-${s.sp2}`};
238
238
  top: ${e=>e.isInviteAccepted?"6%":"30%"};
@@ -272,7 +272,7 @@ 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,bN as De,bO
272
272
  :hover {
273
273
  color: ${e=>e.theme.colors.primary};
274
274
  }
275
- `,Ot={width:new $(343,580,726)},{peoplePage:k}=y.getLocalizedStrings(),Lt=({peopleData:e,allClasses:r,allManagers:l,onRowClick:d,onResendInvite:m})=>{const p=I(),x=e.userRole.userRoles.filter(o=>!A.hasZeniRoleOrCompanyOfficerAccess(o)),h=ii(l,e.userRole.managerUserId),n=si(r,e.userRole.accountingClassIDs);return t.jsxs(_t,{windowSize:p,isInviteAccepted:e.userRole.invitationStatus==="accepted","data-testid":a("people-list-row-small",e.userId),onClick:()=>{d?.(e.userId)},children:[t.jsxs(At,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Mt,{children:t.jsxs(Wt,{children:[t.jsxs(Bt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Kt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Ht,{className:"lastSeen",children:[t.jsx(Ut,{className:"lastSeenDateTxt",children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Et,{children:k.header.lastSeen})]}):t.jsx(Ft,{"data-testid":a("resend-invite-wrapper",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Zt,{"data-testid":a("resend-invite-text",e.userId),onClick:o=>{o.stopPropagation(),m?.(e.userId)},children:k.resendInvite.label}),t.jsx(qt,{children:t.jsx(Xt,{children:`${k.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Vt,{children:t.jsxs(se,{className:"personDetails",children:[t.jsxs(pe,{children:[t.jsxs(he,{children:[k.header.role,":"]}),t.jsx(oe,{children:t.jsx(Re,{roles:x})})]}),t.jsxs(Gt,{children:[t.jsxs(Yt,{children:[k.header.manager,":"]}),A.hasInvestorBankerLevelAccess(e.userRole.userRoles)?t.jsx(X,{children:k.notApplicable}):t.jsx(t.Fragment,{children:h?t.jsx(ei,{children:h}):t.jsx(X,{children:k.noManager})})]}),t.jsxs(Qt,{children:[t.jsxs(Jt,{children:[k.header.department,":"]}),A.hasInvestorBankerLevelAccess(e.userRole.userRoles)?t.jsx(X,{children:k.notApplicable}):t.jsx(t.Fragment,{children:n?t.jsx(ti,{children:n}):t.jsx(X,{children:k.emptyDepartmentPlaceholderText})})]})]})})]})},_t=i.div`
275
+ `,Ot={width:new $(343,580,726)},{peoplePage:k}=y.getLocalizedStrings(),Lt=({peopleData:e,allClasses:r,allManagers:l,onRowClick:d,onResendInvite:m})=>{const p=I(),x=e.userRole.userRoles.filter(o=>!A.hasZeniRoleOrCompanyOfficerAccess(o)),h=ii(l,e.userRole.managerUserId),n=si(r,e.userRole.accountingClassIDs);return t.jsxs(_t,{windowSize:p,isInviteAccepted:e.userRole.invitationStatus==="accepted","data-testid":a("people-list-row-small",e.userId),onClick:()=>{d?.(e.userId)},children:[t.jsxs(At,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Mt,{children:t.jsxs(Wt,{children:[t.jsxs(Bt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ht,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Kt,{className:"lastSeen",children:[t.jsx(Ut,{className:"lastSeenDateTxt",children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Et,{children:k.header.lastSeen})]}):t.jsx(Ft,{"data-testid":a("resend-invite-wrapper",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Zt,{"data-testid":a("resend-invite-text",e.userId),onClick:o=>{o.stopPropagation(),m?.(e.userId)},children:k.resendInvite.label}),t.jsx(qt,{children:t.jsx(Xt,{children:`${k.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Vt,{children:t.jsxs(se,{className:"personDetails",children:[t.jsxs(pe,{children:[t.jsxs(he,{children:[k.header.role,":"]}),t.jsx(oe,{children:t.jsx(Ce,{roles:x})})]}),t.jsxs(Gt,{children:[t.jsxs(Yt,{children:[k.header.manager,":"]}),A.hasInvestorBankerLevelAccess(e.userRole.userRoles)?t.jsx(X,{children:k.notApplicable}):t.jsx(t.Fragment,{children:h?t.jsx(ei,{children:h}):t.jsx(X,{children:k.noManager})})]}),t.jsxs(Qt,{children:[t.jsxs(Jt,{children:[k.header.department,":"]}),A.hasInvestorBankerLevelAccess(e.userRole.userRoles)?t.jsx(X,{children:k.notApplicable}):t.jsx(t.Fragment,{children:n?t.jsx(ti,{children:n}):t.jsx(X,{children:k.emptyDepartmentPlaceholderText})})]})]})})]})},_t=i.div`
276
276
  border: 1px solid ${e=>e.theme.colors.grey3};
277
277
  border-radius: ${s.sp2};
278
278
  display: flex;
@@ -326,11 +326,11 @@ 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,bN as De,bO
326
326
  flex: 1;
327
327
  `,Wt=i.div``,Bt=i(O)`
328
328
  color: ${e=>e.isInviteAccepted?e.theme.colors.hero:e.theme.colors.grey1};
329
- `,Kt=i(te)`
329
+ `,Ht=i(te)`
330
330
  color: ${e=>e.theme.colors.grey1};
331
331
  `,se=i(te)`
332
332
  color: ${e=>e.theme.colors.grey1};
333
- `,Ht=i(se)`
333
+ `,Kt=i(se)`
334
334
  display: flex;
335
335
  flex-direction: column;
336
336
  align-items: flex-end;
@@ -358,7 +358,7 @@ 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,bN as De,bO
358
358
  width: 70%;
359
359
  `,ei=i(oe)``,ti=i(oe)``,X=i(oe)`
360
360
  color: ${e=>e.theme.colors.grey1};
361
- `,ii=(e,r)=>{const l=e.find(d=>d.userId===r);return l?.user?`${l?.user?.firstName} ${l?.user?.lastName}`:void 0},si=(e,r)=>{const l=e.find(d=>r[0]===d.classId);return l?l.className:void 0},oi=e=>I()==="small"?t.jsx(Lt,{...e}):t.jsx(wt,{...e}),G=y.getLocalizedStrings().peoplePage,ri=({peopleData:e,userNameSticky:r,onResendInvite:l,onDeleteUser:d,onRowClick:m})=>{const[p,x]=v.useState(!1),h=I(),n=li(e),o=f=>{const j=[];return f.map(g=>{const C=ke.roles.find(M=>M.value===g);return C!=null&&j.push(C?.label??""),j}),j.length>0?j.join(", "):"-"},u=()=>{d?.(e)},w=()=>{m?.(e.userId)};return t.jsxs(ni,{"data-testid":a("zeni-people-list-row-medium",e.userId),windowSize:h,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:w,children:[t.jsx(ai,{wrapperWidth:H[0].width,windowSize:h,userNameSticky:r,children:t.jsxs(ci,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(pi,{children:[e.user?.firstName?t.jsxs(hi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"personNameTxt",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(ui,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(mi,{widthNumber:H[1].width,windowSize:h,children:t.jsx(di,{wrapperWidth:new $(100,100),windowSize:h,children:o(e.userRole.userRoles)})}),t.jsxs(fi,{"data-testid":a("people-list-row-medium-last-seen",e.userId),wrapperWidth:H[2].width,windowSize:h,children:[e.userRole.invitationStatus==="accepted"?t.jsx(yi,{children:n.lastSeen}):t.jsx(xi,{"data-testid":a("people-list-row-medium-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(gi,{"data-testid":a("people-list-row-medium-resend-invite-text",e.userId),onClick:f=>{f.stopPropagation(),l?.(e.userId)},children:G.resendInvite.label}),t.jsx(wi,{children:t.jsx(vi,{children:`${G.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx($i,{"data-testid":a("people-list-row-medium-menu",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ie,{menuItems:t.jsxs(bi,{children:[t.jsx(ye,{"data-testid":a("people-list-row-medium-menu-edit",e.userId),onClick:()=>{x(!1),w()},children:G.invitePage.editTitle}),t.jsx(ye,{"data-testid":a("people-list-row-menu-delete",e.userId),isDelete:!0,onClick:f=>{f.stopPropagation(),x(!1),u()},children:G.deleteOverlay.title})]}),setIsMenuOpen:x,isMenuOpen:p})})]})]})};function li(e){return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:ke.roles},lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ni=i.div`
361
+ `,ii=(e,r)=>{const l=e.find(d=>d.userId===r);return l?.user?`${l?.user?.firstName} ${l?.user?.lastName}`:void 0},si=(e,r)=>{const l=e.find(d=>r[0]===d.classId);return l?l.className:void 0},oi=e=>I()==="small"?t.jsx(Lt,{...e}):t.jsx(wt,{...e}),G=y.getLocalizedStrings().peoplePage,ri=({peopleData:e,userNameSticky:r,onResendInvite:l,onDeleteUser:d,onRowClick:m})=>{const[p,x]=v.useState(!1),h=I(),n=li(e),o=f=>{const j=[];return f.map(g=>{const R=ke.roles.find(M=>M.value===g);return R!=null&&j.push(R?.label??""),j}),j.length>0?j.join(", "):"-"},u=()=>{d?.(e)},w=()=>{m?.(e.userId)};return t.jsxs(ni,{"data-testid":a("zeni-people-list-row-medium",e.userId),windowSize:h,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:w,children:[t.jsx(ai,{wrapperWidth:K[0].width,windowSize:h,userNameSticky:r,children:t.jsxs(ci,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(pi,{children:[e.user?.firstName?t.jsxs(hi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"personNameTxt",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(ui,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(mi,{widthNumber:K[1].width,windowSize:h,children:t.jsx(di,{wrapperWidth:new $(100,100),windowSize:h,children:o(e.userRole.userRoles)})}),t.jsxs(fi,{"data-testid":a("people-list-row-medium-last-seen",e.userId),wrapperWidth:K[2].width,windowSize:h,children:[e.userRole.invitationStatus==="accepted"?t.jsx(yi,{children:n.lastSeen}):t.jsx(xi,{"data-testid":a("people-list-row-medium-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(gi,{"data-testid":a("people-list-row-medium-resend-invite-text",e.userId),onClick:f=>{f.stopPropagation(),l?.(e.userId)},children:G.resendInvite.label}),t.jsx(wi,{children:t.jsx(vi,{children:`${G.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx($i,{"data-testid":a("people-list-row-medium-menu",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ie,{menuItems:t.jsxs(bi,{children:[t.jsx(ye,{"data-testid":a("people-list-row-medium-menu-edit",e.userId),onClick:()=>{x(!1),w()},children:G.invitePage.editTitle}),t.jsx(ye,{"data-testid":a("people-list-row-menu-delete",e.userId),isDelete:!0,onClick:f=>{f.stopPropagation(),x(!1),u()},children:G.deleteOverlay.title})]}),setIsMenuOpen:x,isMenuOpen:p})})]})]})};function li(e){return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:ke.roles},lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ni=i.div`
362
362
  border: 1px solid ${e=>e.theme.colors.grey3};
363
363
  border-radius: ${s.sp2};
364
364
  display: flex;
@@ -509,7 +509,7 @@ import{u as $e,X as I,M as y,j as t,Y as a,aV as le,be as Ne,o as s,bN as De,bO
509
509
  :hover {
510
510
  color: ${e=>e.theme.colors.primary};
511
511
  }
512
- `,ji={width:new $(343,580,726)},Q=y.getLocalizedStrings().peoplePage,Si=({peopleData:e,onRowClick:r,onResendInvite:l})=>{const d=I();return t.jsxs(ki,{windowSize:d,"data-testid":a("zeni-people-list-row-small",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:()=>{r?.(e.userId)},children:[t.jsxs(Ii,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Ci,{children:t.jsxs(zi,{children:[t.jsxs(Ti,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Pi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Li,{className:"lastSeen","data-testid":a("people-list-row-small-last-seen",e.userId),children:[t.jsx(_i,{className:"lastSeenDateTxt","data-testid":a("people-list-row-small-last-seen-content",e.userId),children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Ai,{children:Q.header.lastSeen})]}):t.jsx(Vi,{"data-testid":a("people-list-row-small-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Mi,{"data-testid":a("people-list-row-small-resend-invite-text",e.userId),onClick:m=>{m.stopPropagation(),l?.(e.userId)},children:Q.resendInvite.label}),t.jsx(Wi,{children:t.jsx(Bi,{children:`${Q.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Ri,{children:t.jsx(re,{className:"personDetails",children:t.jsxs(Ni,{style:{display:"flex"},children:[t.jsxs(Di,{style:{},children:[Q.header.role,":"]}),t.jsx(Oi,{children:je(e.userRole.userRoles,"zeni_only")})]})})})]})},ki=i.div`
512
+ `,ji={width:new $(343,580,726)},Q=y.getLocalizedStrings().peoplePage,Si=({peopleData:e,onRowClick:r,onResendInvite:l})=>{const d=I();return t.jsxs(ki,{windowSize:d,"data-testid":a("zeni-people-list-row-small",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:()=>{r?.(e.userId)},children:[t.jsxs(Ii,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Ri,{children:t.jsxs(zi,{children:[t.jsxs(Ti,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Pi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Li,{className:"lastSeen","data-testid":a("people-list-row-small-last-seen",e.userId),children:[t.jsx(_i,{className:"lastSeenDateTxt","data-testid":a("people-list-row-small-last-seen-content",e.userId),children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Ai,{children:Q.header.lastSeen})]}):t.jsx(Vi,{"data-testid":a("people-list-row-small-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Mi,{"data-testid":a("people-list-row-small-resend-invite-text",e.userId),onClick:m=>{m.stopPropagation(),l?.(e.userId)},children:Q.resendInvite.label}),t.jsx(Wi,{children:t.jsx(Bi,{children:`${Q.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Ci,{children:t.jsx(re,{className:"personDetails",children:t.jsxs(Ni,{style:{display:"flex"},children:[t.jsxs(Di,{style:{},children:[Q.header.role,":"]}),t.jsx(Oi,{children:je(e.userRole.userRoles,"zeni_only")})]})})})]})},ki=i.div`
513
513
  border: 1px solid ${e=>e.theme.colors.grey3};
514
514
  border-radius: ${s.sp2};
515
515
  display: flex;
@@ -551,9 +551,9 @@ 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,bN as De,bO
551
551
  box-sizing: border-box;
552
552
  color: ${e=>e.theme.colors.hero};
553
553
  gap: ${s.sp2};
554
- `,Ri=i.div`
555
- padding-left: ${s.sp7};
556
554
  `,Ci=i.div`
555
+ padding-left: ${s.sp7};
556
+ `,Ri=i.div`
557
557
  display: flex;
558
558
  flex-direction: column;
559
559
  gap: 5px;
@@ -587,7 +587,7 @@ 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,bN as De,bO
587
587
  justify-content: flex-end;
588
588
  `,Bi=i(re)`
589
589
  color: ${e=>e.theme.colors.grey1};
590
- `,Ki=e=>I()==="small"?t.jsx(Si,{...e}):t.jsx(ri,{...e}),W={overscanCount:1,rowNameLimit:55,listItemHeight:88},ne={peopleListItemHeight:138,zeniPeopleListItemHeight:106,zeniPeopleExtendedListItemHeight:130},Y={listItemPaddingRight:new $(b[3],b[8]),listItemPaddingLeft:new $(b[3],b[8]),zeniLastRowHeight:new $(154,136),nonZeniLastRowHeight:new $(200,136)},B=y.getLocalizedStrings().peoplePage,Hi=({peopleView:e,allManagers:r,allClasses:l,analytics:d,onColumnSortConfigChanged:m,onDeleteClick:p,onResendInvite:x,onRowClick:h,isZeniTenant:n})=>{const o=I(),u=v.useRef(null),w=!(o==="small"||o==="medium-compact"),[f,j]=v.useState(!1),[g,C]=v.useState(),M=$e(),z=e.people.findIndex(c=>c.userRole.invitationStatus==="invited"),me=c=>{j(!0),C(c)},ue=v.memo(({index:c,style:R})=>t.jsx(t.Fragment,{children:t.jsxs(Fi,{"data-testid":a("people-list-item",e.people[c].user?.userId),style:{...R,width:"fit-content",minWidth:"100%"},windowSize:o,isFirstResendInviteUser:z===c,className:"people-list-item",children:[z===c?t.jsx(Qi,{}):null,e.uiState.mode==="off"?t.jsx(oi,{allManagers:r,allClasses:l,userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n}):t.jsx(Ki,{userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n})]})}),_e);ue.displayName="ListItem";const xe=v.forwardRef((c,R)=>{const{children:L,style:F,...Z}=c;return t.jsxs("div",{ref:R,style:{...F,width:"auto"},...Z,children:[o==="small"?t.jsx(pt,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}):t.jsx(it,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}),t.jsx(Zi,{children:L})]})});xe.displayName="People list view inner element type";const Ce=c=>{const R=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,L=z===c;return R>W.rowNameLimit?W.listItemHeight+b[5]+(L?b[3]:b[0]):W.listItemHeight+(L?b[3]:b[0])},ze=c=>{const R=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,L=je(e.people[c].userRole.userRoles,e.uiState.mode).length,F=z===c,Z=e.uiState.mode==="zeni_only"?L>33?ne.zeniPeopleExtendedListItemHeight:ne.zeniPeopleListItemHeight:ne.peopleListItemHeight;return R>W.rowNameLimit?Z+b[5]+(F?b[3]:b[0]):Z+(F?b[3]:b[0])},Te={onOkClick:()=>{const c=g;d?.trackRemoveUserAccess(c.userRole.userRoles,c.userRole.userEmail),p?.(c.userId,c.userRole.userRoleId)},onCancelClick:()=>{j(!1),C(void 0)}},ge=Ae(e.people.find(c=>c.userId===g?.userId)?.update),E=e.people.find(c=>c.userId===g?.userId)?.update,Pe=g!=null?B.deleteOverlay.description.replace("‘_user-name_’",`"${Ui(g)}"`):B.deleteOverlay.description;return v.useEffect(()=>{u.current&&u.current.resetAfterIndex(0)},[e,o]),v.useEffect(()=>{E==null&&ge==="removeUsers"&&(j(!1),C(void 0))},[E,ge]),t.jsxs(Ei,{"data-testid":a("people-list-view-container"),windowSize:o,mode:e.uiState.mode,children:[f===!0?t.jsx(Ve,{titleComponent:t.jsx(Be,{children:B.deleteOverlay.title}),descriptionComponent:t.jsx(We,{children:Pe}),primaryButtonText:B.deleteOverlay.remove,secondaryButtonText:B.deleteOverlay.cancel,action:Te,proceedButtonVariant:"danger",isLoading:E==="removeUsers",isDisabled:E==="removeUsers",style:{background:M.colors.overlayColor},children:g?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Gi,{}),t.jsx(qi,{children:t.jsx(Xi,{src:g?.user.photo?.toString()??Me,alt:g?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(Ke,{children:({height:c,width:R})=>t.jsx(Yi,{height:c,innerElementType:xe,itemCount:e.people.length,itemSize:o==="small"?ze:Ce,width:R,ref:u,overscanCount:W.overscanCount,children:ue})})]})},Ui=e=>e.user?.firstName?`${e.user?.firstName} ${e.user?.lastName}`:e.user?.email??"",Ei=i.div`
590
+ `,Hi=e=>I()==="small"?t.jsx(Si,{...e}):t.jsx(ri,{...e}),W={overscanCount:1,rowNameLimit:55,listItemHeight:88},ne={peopleListItemHeight:138,zeniPeopleListItemHeight:106,zeniPeopleExtendedListItemHeight:130},Y={listItemPaddingRight:new $(b[3],b[8]),listItemPaddingLeft:new $(b[3],b[8]),zeniLastRowHeight:new $(154,136),nonZeniLastRowHeight:new $(200,136)},B=y.getLocalizedStrings().peoplePage,Ki=({peopleView:e,allManagers:r,allClasses:l,analytics:d,onColumnSortConfigChanged:m,onDeleteClick:p,onResendInvite:x,onRowClick:h,isZeniTenant:n})=>{const o=I(),u=v.useRef(null),w=!(o==="small"||o==="medium-compact"),[f,j]=v.useState(!1),[g,R]=v.useState(),M=$e(),z=e.people.findIndex(c=>c.userRole.invitationStatus==="invited"),me=c=>{j(!0),R(c)},ue=v.memo(({index:c,style:C})=>t.jsx(t.Fragment,{children:t.jsxs(Fi,{"data-testid":a("people-list-item",e.people[c].user?.userId),style:{...C,width:"fit-content",minWidth:"100%"},windowSize:o,isFirstResendInviteUser:z===c,className:"people-list-item",children:[z===c?t.jsx(Qi,{}):null,e.uiState.mode==="off"?t.jsx(oi,{allManagers:r,allClasses:l,userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n}):t.jsx(Hi,{userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n})]})}),_e);ue.displayName="ListItem";const xe=v.forwardRef((c,C)=>{const{children:L,style:F,...Z}=c;return t.jsxs("div",{ref:C,style:{...F,width:"auto"},...Z,children:[o==="small"?t.jsx(pt,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}):t.jsx(it,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}),t.jsx(Zi,{children:L})]})});xe.displayName="People list view inner element type";const Re=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,L=z===c;return C>W.rowNameLimit?W.listItemHeight+b[5]+(L?b[3]:b[0]):W.listItemHeight+(L?b[3]:b[0])},ze=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,L=je(e.people[c].userRole.userRoles,e.uiState.mode).length,F=z===c,Z=e.uiState.mode==="zeni_only"?L>33?ne.zeniPeopleExtendedListItemHeight:ne.zeniPeopleListItemHeight:ne.peopleListItemHeight;return C>W.rowNameLimit?Z+b[5]+(F?b[3]:b[0]):Z+(F?b[3]:b[0])},Te={onOkClick:()=>{const c=g;d?.trackRemoveUserAccess(c.userRole.userRoles,c.userRole.userEmail),p?.(c.userId,c.userRole.userRoleId)},onCancelClick:()=>{j(!1),R(void 0)}},ge=Ae(e.people.find(c=>c.userId===g?.userId)?.update),E=e.people.find(c=>c.userId===g?.userId)?.update,Pe=g!=null?B.deleteOverlay.description.replace("‘_user-name_’",`"${Ui(g)}"`):B.deleteOverlay.description;return v.useEffect(()=>{u.current&&u.current.resetAfterIndex(0)},[e,o]),v.useEffect(()=>{E==null&&ge==="removeUsers"&&(j(!1),R(void 0))},[E,ge]),t.jsxs(Ei,{"data-testid":a("people-list-view-container"),windowSize:o,mode:e.uiState.mode,children:[f===!0?t.jsx(Ve,{titleComponent:t.jsx(Be,{children:B.deleteOverlay.title}),descriptionComponent:t.jsx(We,{children:Pe}),primaryButtonText:B.deleteOverlay.remove,secondaryButtonText:B.deleteOverlay.cancel,action:Te,proceedButtonVariant:"danger",isLoading:E==="removeUsers",isDisabled:E==="removeUsers",style:{background:M.colors.overlayColor},children:g?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Gi,{}),t.jsx(qi,{children:t.jsx(Xi,{src:g?.user.photo?.toString()??Me,alt:g?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(He,{children:({height:c,width:C})=>t.jsx(Yi,{height:c,innerElementType:xe,itemCount:e.people.length,itemSize:o==="small"?ze:Re,width:C,ref:u,overscanCount:W.overscanCount,children:ue})})]})},Ui=e=>e.user?.firstName?`${e.user?.firstName} ${e.user?.lastName}`:e.user?.email??"",Ei=i.div`
591
591
  /** Subtract top so list can occupy remaining available height */
592
592
  min-height: ${`calc(100vh - ${s.sp9})`};
593
593
  max-width: 99.9%;
@@ -624,11 +624,11 @@ import{u as $e,X as I,M as y,j as t,Y as a,aV as le,be as Ne,o as s,bN as De,bO
624
624
  `,Qi=i.div`
625
625
  padding-top: ${s.sp3};
626
626
  border-top: 1px solid ${e=>e.theme.colors.grey3};
627
- `,Yi=i(Ue)``,Ji=(e,r)=>{const{user:l,userId:d,userRole:m,update:p}=e,{user:x,userId:h,userRole:n,update:o}=r;return K(l,x)&&K(d,h)&&K(m,n)&&K(p,o)},es=(e,r)=>{if(e.peopleView.people.length!=r.peopleView.people.length||e.allManagers.length!=r.allManagers.length)return!1;let l=!0;for(let d=0;d<e.peopleView.people.length;++d){const m=e.peopleView.people[d],p=r.peopleView.people[d];if(l=Ji(m,p),!l)break}return l=l&&K(e.peopleView.invitePeopleState,r.peopleView.invitePeopleState),l=l&&e.peopleView.uiState.sortKey===r.peopleView.uiState.sortKey&&e.peopleView.uiState.sortOrder===r.peopleView.uiState.sortOrder,l},ts=v.memo(Hi,es);function is({peopleInviteSectionProps:e}){const r=I();return t.jsx(ss,{isSearchOpen:e.isSearchOpen&&r==="small",windowsize:r,children:r!=="small"?t.jsxs(t.Fragment,{children:[e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"unset",right:"120px"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen}),t.jsx(Le,{variant:"primary",size:"small","data-testid":a("invite-people-button"),style:{height:"29px",...be.smallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"},label:e.invitePeopleLabel,onClick:e.onInvitePeopleClick})]}):t.jsxs(t.Fragment,{children:[e.hideInviteBtn?null:t.jsx(os,{"data-testid":a("invite-people-button"),onClick:e.onInvitePeopleClick}),e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"5px",right:r!=="small"?"120px":"unset",top:"44px",width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,"data-testid":a("people-invite-search"),onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0})]})})}const ss=i.div`
627
+ `,Yi=i(Ue)``,Ji=(e,r)=>{const{user:l,userId:d,userRole:m,update:p}=e,{user:x,userId:h,userRole:n,update:o}=r;return H(l,x)&&H(d,h)&&H(m,n)&&H(p,o)},es=(e,r)=>{if(e.peopleView.people.length!=r.peopleView.people.length||e.allManagers.length!=r.allManagers.length)return!1;let l=!0;for(let d=0;d<e.peopleView.people.length;++d){const m=e.peopleView.people[d],p=r.peopleView.people[d];if(l=Ji(m,p),!l)break}return l=l&&H(e.peopleView.invitePeopleState,r.peopleView.invitePeopleState),l=l&&e.peopleView.uiState.sortKey===r.peopleView.uiState.sortKey&&e.peopleView.uiState.sortOrder===r.peopleView.uiState.sortOrder,l},ts=v.memo(Ki,es);function is({peopleInviteSectionProps:e}){const r=I();return t.jsx(ss,{isSearchOpen:e.isSearchOpen&&r==="small",windowsize:r,children:r!=="small"?t.jsxs(t.Fragment,{children:[e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"unset",right:"120px"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen}),t.jsx(Le,{variant:"primary",size:"small","data-testid":a("invite-people-button"),style:{height:"29px",...be.smallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"},label:e.invitePeopleLabel,onClick:e.onInvitePeopleClick})]}):t.jsxs(t.Fragment,{children:[e.hideInviteBtn?null:t.jsx(os,{"data-testid":a("invite-people-button"),onClick:e.onInvitePeopleClick}),e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"5px",right:r!=="small"?"120px":"unset",top:"44px",width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,"data-testid":a("people-invite-search"),onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0})]})})}const ss=i.div`
628
628
  display: flex;
629
629
  flex-direction: column;
630
630
  justify-content: ${e=>e.windowsize==="small"?"unset":"center"};
631
- `,os=i(He)`
631
+ `,os=i(Ke)`
632
632
  height: 20px;
633
633
  width: 20px;
634
634
  color: ${e=>e.theme.colors.hero};
@@ -672,4 +672,4 @@ 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,bN as De,bO
672
672
  `,ds=i(J)`
673
673
  margin-top: ${s.sp3};
674
674
  color: ${e=>e.theme.colors.hero};
675
- `,cs=()=>t.jsx(ls,{children:t.jsx(U,{size:"ExtraLarge",start:!0})});function ps(e){const r=$e(),l=I(),{mode:d,searchText:m}=e.peopleView.uiState,{fetchState:p}=e.peopleView,{fetchState:x}=e.managersView,{fetchState:h}=e.classList,[n,o]=v.useState(!1),u={isSearchOpen:n,onSearchOpen:z=>{o(z)},onSearchTextChanged:e.personAction.onSearchTextChanged,searchPlaceHolder:y.getLocalizedStrings().peoplePage.searchPlaceHolder,searchText:m,invitePeopleLabel:y.getLocalizedStrings().peoplePage.invitePeopleText,onInvitePeopleClick:e.onInvitePeopleClick,onClickMenuIcon:e.onClickMenuIcon},w=e?.isZeniTenant!==!0&&e?.isZeniAdminUser===!0,f=()=>{const z=d==="off"?"zeni_only":"off";e.personAction.onModeChange?.(z)},j=p==="Completed"?`(${e.peopleView.people.length})`:"",g=`${d==="off"?y.getLocalizedStrings().peoplePage.peopleTitle:y.getLocalizedStrings().peoplePage.zeniPeopleTitle} ${j}`,C=v.useMemo(()=>p==="In-Progress"||p==="Not-Started"||x==="In-Progress"||x==="Not-Started"||e.shouldFetchClasses&&(h==="In-Progress"||h==="Not-Started"),[p,x,e.shouldFetchClasses,h]);function M(){return C?t.jsxs(ae,{"data-testid":a("people-page-loading"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:e.onClickMenuIcon,onZeniLogoClick:f,showZeniLogo:w,zeniLogoVisiblity:d==="zeni_only"?"visible":"hidden",isSearchOpen:n,backgroundColor:r.colors.grey4,source:"PeoplePage"}),t.jsx(cs,{})]}):p==="Error"||h==="Error"||x==="Error"?t.jsxs(ae,{"data-testid":a("people-page-error"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,backgroundColor:r.colors.grey4,source:"PeoplePage"}),t.jsxs(ns,{children:[t.jsx(as,{"data-testid":a("people-page-error-reload-icon"),onClick:e.personAction.onReloadPeople,children:t.jsx(Ne,{width:s.sp6,height:s.sp6})}),t.jsx(ds,{children:y.getLocalizedStrings().peoplePage.reloadPage.label})]})]}):t.jsxs(ae,{"data-testid":a("people-page-content-container"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,source:"PeoplePage",backgroundColor:r.colors.grey4}),t.jsx(rs,{"data-testid":a("people-page-content"),windowSize:l,children:e.peopleView.people.length>0?t.jsx(ts,{peopleView:e.peopleView,allManagers:e.managersView.users,allClasses:e.classList.classes,onDeleteClick:e.personAction.onPersonDelete,analytics:e.analytics,onResendInvite:e.personAction.onResendInvite,onColumnSortConfigChanged:e.onColumnSortConfigChanged,onRowClick:e.onRowClick,isZeniTenant:e.isZeniTenant}):m!==""?t.jsx(De,{emptySearchTextFirstLine:y.getLocalizedStrings().peoplePage.emptySearchTextFirstLine,emptySearchTextSecondLine:y.getLocalizedStrings().peoplePage.emptySearchTextSecondLine}):t.jsx(Oe,{message:y.getLocalizedStrings().peoplePage.emptyResultsMessage})})]})}return t.jsx("div",{children:M()})}const de=e=>t.jsx(is,{peopleInviteSectionProps:e}),js=ce.memo(ps);export{js as MemoPeople,ps as default};
675
+ `,cs=()=>t.jsx(ls,{children:t.jsx(U,{size:"ExtraLarge",start:!0})});function ps(e){const r=$e(),l=I(),{mode:d,searchText:m}=e.peopleView.uiState,{fetchState:p}=e.peopleView,{fetchState:x}=e.managersView,{fetchState:h}=e.classList,[n,o]=v.useState(!1),u={isSearchOpen:n,onSearchOpen:z=>{o(z)},onSearchTextChanged:e.personAction.onSearchTextChanged,searchPlaceHolder:y.getLocalizedStrings().peoplePage.searchPlaceHolder,searchText:m,invitePeopleLabel:y.getLocalizedStrings().peoplePage.invitePeopleText,onInvitePeopleClick:e.onInvitePeopleClick,onClickMenuIcon:e.onClickMenuIcon},w=e?.isZeniTenant!==!0&&e?.isZeniAdminUser===!0,f=()=>{const z=d==="off"?"zeni_only":"off";e.personAction.onModeChange?.(z)},j=p==="Completed"?`(${e.peopleView.people.length})`:"",g=`${d==="off"?y.getLocalizedStrings().peoplePage.peopleTitle:y.getLocalizedStrings().peoplePage.zeniPeopleTitle} ${j}`,R=v.useMemo(()=>p==="In-Progress"||p==="Not-Started"||x==="In-Progress"||x==="Not-Started"||e.shouldFetchClasses&&(h==="In-Progress"||h==="Not-Started"),[p,x,e.shouldFetchClasses,h]);function M(){return R?t.jsxs(ae,{"data-testid":a("people-page-loading"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:e.onClickMenuIcon,onZeniLogoClick:f,showZeniLogo:w,zeniLogoVisiblity:d==="zeni_only"?"visible":"hidden",isSearchOpen:n,backgroundColor:r.colors.grey4,source:"PeoplePage"}),t.jsx(cs,{})]}):p==="Error"||h==="Error"||x==="Error"?t.jsxs(ae,{"data-testid":a("people-page-error"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,backgroundColor:r.colors.grey4,source:"PeoplePage"}),t.jsxs(ns,{children:[t.jsx(as,{"data-testid":a("people-page-error-reload-icon"),onClick:e.personAction.onReloadPeople,children:t.jsx(Ne,{width:s.sp6,height:s.sp6})}),t.jsx(ds,{children:y.getLocalizedStrings().peoplePage.reloadPage.label})]})]}):t.jsxs(ae,{"data-testid":a("people-page-content-container"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,source:"PeoplePage",backgroundColor:r.colors.grey4}),t.jsx(rs,{"data-testid":a("people-page-content"),windowSize:l,children:e.peopleView.people.length>0?t.jsx(ts,{peopleView:e.peopleView,allManagers:e.managersView.users,allClasses:e.classList.classes,onDeleteClick:e.personAction.onPersonDelete,analytics:e.analytics,onResendInvite:e.personAction.onResendInvite,onColumnSortConfigChanged:e.onColumnSortConfigChanged,onRowClick:e.onRowClick,isZeniTenant:e.isZeniTenant}):m!==""?t.jsx(De,{emptySearchTextFirstLine:y.getLocalizedStrings().peoplePage.emptySearchTextFirstLine,emptySearchTextSecondLine:y.getLocalizedStrings().peoplePage.emptySearchTextSecondLine}):t.jsx(Oe,{message:y.getLocalizedStrings().peoplePage.emptyResultsMessage})})]})}return t.jsx("div",{children:M()})}const de=e=>t.jsx(is,{peopleInviteSectionProps:e}),js=ce.memo(ps);export{js as MemoPeople,ps as default};
@@ -1,4 +1,4 @@
1
- import{X as Y,B as S,j as i,bw as q,M as K,Y as Q,C as u,a3 as H,o as n,a2 as V,Q as X,h as J,s as Z,p as l,q as _,al as ee,f as W,g as v,v as ie,bK as te}from"./index-BQuxwdpl.js";import{b as k,n as t}from"./vendor-CnQcJ2Lu.js";import{U as ne}from"./PortfolioDetails-4fbkArz6-B-yRSXBm.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-CUDK9KvQ-D8RX0DsH.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=K.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=Y(),[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(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(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(H,{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 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-rGMXK0Rc.js";import{b as k,n as t}from"./vendor-CnQcJ2Lu.js";import{U as ne}from"./PortfolioDetails-EbWPeH4e-BydNByff.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-D6-KrZju-CjJ44MCH.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`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  height: 100%;
@@ -1,9 +1,9 @@
1
- import{j as e,M as H,o as l,iE as K,s as _,d5 as X,u as G,X as Q,_ as B,C as O,bw as f,g as A,bK as J,v as N,ds as Z,ae as ee,al as ie,b4 as se,bc as le,f as ne,d7 as oe,p as te}from"./index-BQuxwdpl.js";import{n as s,b as re}from"./vendor-CnQcJ2Lu.js";import{l as ae}from"./treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js";const{common:r,spendManagement:{treasury:o},dateFormat:de}=H.getLocalizedStrings(),w={portfolioYieldMarginTop:new O(-4,te[0]),sliderWidth:new O(143,177)},Oe=({isInReview:i,isSetup:n,fundDetails:m,allocation:d,amount:g,fundAllocations:v,page:j})=>{const a=ce(m);return e.jsxs(ge,{children:[!n&&e.jsx(me,{style:{alignSelf:"flex-start",padding:`${l.sp2} ${l.sp0}`},children:`${o.portfolioAllocation.title}`}),a.map(($,x)=>{const I=v?.find(h=>h.fundCode===m[x].fundCode)?.amount;return e.jsx(pe,{portfolio:$,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:n,isLast:x===a.length-1,amount:g,currentAllocationAmount:I,page:j},m[x]?.fundCode||x)})]})},ce=i=>i.map(n=>[{label:o.promoPage.liquidity,value:n.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:K(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??[]}]),pe=({portfolio:i,fund:n,fundIndex:m,allocationPercentage:d,isInReview:g,isSetup:v,isLast:j,amount:a,currentAllocationAmount:$,page:x})=>{const I=X().analytics,h=G(),t=Q(),b=$?$.amount:a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,V]=re.useState(!1),u=ae(m,h),S=()=>{p||I.trackTreasuryProspectusClick(n.fundName,n.fundCode,x),V(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{children:e.jsxs(ue,{windowSize:t,children:[e.jsxs(he,{windowSize:t,children:[e.jsxs(fe,{windowSize:t,children:[e.jsxs(ye,{isInReview:g,windowSize:t,children:[e.jsx(we,{children:n.fundCode}),e.jsx(ve,{color:u.fundNameColor,children:`${n.fundCompanyName} ${n.fundName}`})]}),t!=="small"&&e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:g?e.jsxs(U,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(q,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty})]}):e.jsxs($e,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(U,{children:[e.jsxs(D,{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(Y,{})})]}),e.jsxs(C,{windowSize:t,style:{marginRight:l.sp3},children:[n.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(Te,{children:v?e.jsxs(Ie,{children:[e.jsxs(Re,{children:[e.jsxs(We,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(D,{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(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]}),e.jsxs(z,{onClick:S,style:{marginBottom:l.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}):g?e.jsxs(Ye,{children:[e.jsxs(E,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(q,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty}),e.jsxs(z,{onClick:S,style:{margin:`${l.sp2} ${l.sp0}`,...j?{marginBottom:l.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(F,{children:[e.jsxs(D,{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(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]}):e.jsxs(Ae,{children:[e.jsxs(E,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(F,{children:[e.jsxs(D,{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(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(Se,{children:[e.jsx(k,{children:n.description}),e.jsx(be,{style:{marginLeft:l.sp3},children:i.map(c=>e.jsxs(Ce,{windowSize:t,children:[e.jsx(k,{children:r.strings.dividerDot}),e.jsx(k,{style:{minWidth:"140px"},children:c.label}),e.jsxs(k,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:h.colors.primary,borderBottom:`1px solid ${h.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(L=>({text:`${r.strings.dividerDot} ${L.investedIn}`,amount:`${L.percentage}${r.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${l.sp3}`},children:e.jsx(De,{children:c.tag})})]})]},c.label))}),e.jsxs(Pe,{onClick:()=>window.open(n.url,"_blank"),children:[e.jsx(je,{children:`${o.promoPage.asOf} ${n.asOfDate.format(de.visual.MMMDCommaYYYYformat)}`}),e.jsx(ze,{})]})]}),(!j||v)&&e.jsx(ke,{style:{width:"100%",marginBottom:l.sp3}})]})},xe=s.div`
1
+ import{j as e,M as J,o as l,iB as X,s as E,d2 as G,u as K,X as Q,_ as L,C as O,bs as f,g as A,bH as H,v as N,dp as Z,ae as ee,al as ie,b4 as se,bc as le,e as ne,d4 as oe,m as te}from"./index-rGMXK0Rc.js";import{n as s,b as re}from"./vendor-CnQcJ2Lu.js";import{l as ae}from"./treasuryColorHelper-D6-KrZju-CjJ44MCH.js";const{common:r,spendManagement:{treasury:o},dateFormat:de}=J.getLocalizedStrings(),w={portfolioYieldMarginTop:new O(-4,te[0]),sliderWidth:new O(143,177)},Oe=({isInReview:i,isSetup:n,fundDetails:m,allocation:d,amount:g,fundAllocations:v,page:j})=>{const a=ce(m);return e.jsxs(ge,{children:[!n&&e.jsx(me,{style:{alignSelf:"flex-start",padding:`${l.sp2} ${l.sp0}`},children:`${o.portfolioAllocation.title}`}),a.map(($,x)=>{const I=v?.find(h=>h.fundCode===m[x].fundCode)?.amount;return e.jsx(pe,{portfolio:$,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:n,isLast:x===a.length-1,amount:g,currentAllocationAmount:I,page:j},m[x]?.fundCode||x)})]})},ce=i=>i.map(n=>[{label:o.promoPage.liquidity,value:n.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:X(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??[]}]),pe=({portfolio:i,fund:n,fundIndex:m,allocationPercentage:d,isInReview:g,isSetup:v,isLast:j,amount:a,currentAllocationAmount:$,page:x})=>{const I=G().analytics,h=K(),t=Q(),b=$?$.amount:a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,V]=re.useState(!1),u=ae(m,h),S=()=>{p||I.trackTreasuryProspectusClick(n.fundName,n.fundCode,x),V(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{children:e.jsxs(ue,{windowSize:t,children:[e.jsxs(he,{windowSize:t,children:[e.jsxs(fe,{windowSize:t,children:[e.jsxs(ye,{isInReview:g,windowSize:t,children:[e.jsx(we,{children:n.fundCode}),e.jsx(ve,{color:u.fundNameColor,children:`${n.fundCompanyName} ${n.fundName}`})]}),t!=="small"&&e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:g?e.jsxs(U,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(q,{children:b!=null?L("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty})]}):e.jsxs($e,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(U,{children:[e.jsxs(D,{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(Y,{})})]}),e.jsxs(C,{windowSize:t,style:{marginRight:l.sp3},children:[n.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(Te,{children:v?e.jsxs(Ie,{children:[e.jsxs(Re,{children:[e.jsxs(We,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(D,{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(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]}),e.jsxs(z,{onClick:S,style:{marginBottom:l.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}):g?e.jsxs(Ye,{children:[e.jsxs(F,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(q,{children:b!=null?L("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty}),e.jsxs(z,{onClick:S,style:{margin:`${l.sp2} ${l.sp0}`,...j?{marginBottom:l.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(_,{children:[e.jsxs(D,{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(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]}):e.jsxs(Ae,{children:[e.jsxs(F,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(_,{children:[e.jsxs(D,{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(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(Se,{children:[e.jsx(k,{children:n.description}),e.jsx(be,{style:{marginLeft:l.sp3},children:i.map(c=>e.jsxs(Ce,{windowSize:t,children:[e.jsx(k,{children:r.strings.dividerDot}),e.jsx(k,{style:{minWidth:"140px"},children:c.label}),e.jsxs(k,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:h.colors.primary,borderBottom:`1px solid ${h.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(B=>({text:`${r.strings.dividerDot} ${B.investedIn}`,amount:`${B.percentage}${r.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${l.sp3}`},children:e.jsx(De,{children:c.tag})})]})]},c.label))}),e.jsxs(Pe,{onClick:()=>window.open(n.url,"_blank"),children:[e.jsx(je,{children:`${o.promoPage.asOf} ${n.asOfDate.format(de.visual.MMMDCommaYYYYformat)}`}),e.jsx(ze,{})]})]}),(!j||v)&&e.jsx(ke,{style:{width:"100%",marginBottom:l.sp3}})]})},xe=s.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  gap: ${l.sp2};
5
5
  width: 100%;
6
- `,me=s(_)`
6
+ `,me=s(E)`
7
7
  color: ${i=>i.theme.colors.hero};
8
8
  `,ge=s.div`
9
9
  display: flex;
@@ -27,7 +27,7 @@ import{j as e,M as H,o as l,iE as K,s as _,d5 as X,u as G,X as Q,_ as B,C as O,b
27
27
  flex-direction: column;
28
28
  align-items: flex-start;
29
29
  width: ${i=>i.windowSize==="small"?"auto":"245px"};
30
- `,ye=s(J)`
30
+ `,ye=s(H)`
31
31
  color: ${A.graphColor34Dark};
32
32
  max-width: 280px;
33
33
  `,we=s.span`
@@ -44,7 +44,7 @@ import{j as e,M as H,o as l,iE as K,s as _,d5 as X,u as G,X as Q,_ as B,C as O,b
44
44
  color: ${i=>i.theme.colors.primary};
45
45
  min-width: ${l.sp7};
46
46
  text-align: left;
47
- `,C=s(J)`
47
+ `,C=s(H)`
48
48
  color: ${A.success};
49
49
  margin-top: ${i=>w.portfolioYieldMarginTop.valuePx(i.windowSize)};
50
50
  `,D=s(N)`
@@ -117,7 +117,7 @@ import{j as e,M as H,o as l,iE as K,s as _,d5 as X,u as G,X as Q,_ as B,C as O,b
117
117
  justify-self: flex-start;
118
118
  gap: ${l.sp2};
119
119
  margin-bottom: ${l.sp3};
120
- `,k=s(_)`
120
+ `,k=s(E)`
121
121
  color: ${i=>i.theme.colors.hero};
122
122
  `,Ce=s.div`
123
123
  display: flex;
@@ -186,12 +186,12 @@ import{j as e,M as H,o as l,iE as K,s as _,d5 as X,u as G,X as Q,_ as B,C as O,b
186
186
  align-items: center;
187
187
  justify-content: space-between;
188
188
  width: 100%;
189
- `,E=s.div`
189
+ `,F=s.div`
190
190
  display: flex;
191
191
  flex-direction: column;
192
192
  align-items: flex-start;
193
193
  flex: 1;
194
- `,F=s.div`
194
+ `,_=s.div`
195
195
  display: flex;
196
196
  flex-direction: column;
197
197
  align-items: flex-end;
@@ -1,4 +1,4 @@
1
- import{M as X,j as t,d5 as I,o as l,bs as O,ae as P,d6 as D,Z as F,s as L,d7 as R,g as v}from"./index-BQuxwdpl.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-rGMXK0Rc.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,db as b,dc as v,dd as L,aR as z,C as a,o as e,g as d,Q as f,p as l}from"./index-BQuxwdpl.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-rGMXK0Rc.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,9 +1,9 @@
1
- import{X as j,M as t,j as n,bm as w,K as l,C as s,o as i,Z as P,s as y,$ as b,aP as f,eI as v,p as a}from"./index-BQuxwdpl.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])},S=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-rGMXK0Rc.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;
5
5
  background: ${e=>e.theme.colors.background};
6
- `,z=o.div`
6
+ `,S=o.div`
7
7
  padding-top: ${e=>r.containerPaddingTop.valuePx(e.windowSize)};
8
8
  padding-bottom: ${e=>r.containerPaddingBottom.valuePx(e.windowSize)};
9
9
  padding-right: ${e=>r.containerPaddingLeftRight.valuePx(e.windowSize)};
@@ -29,7 +29,7 @@ import{X as j,M as t,j as n,bm as w,K as l,C as s,o as i,Z as P,s as y,$ as b,aP
29
29
  align-items: center;
30
30
  justify-content: center;
31
31
  gap: ${i.sp4};
32
- `,I=o.div`
32
+ `,R=o.div`
33
33
  display: flex;
34
34
  align-items: center;
35
35
  gap: ${i.sp4};
@@ -37,15 +37,15 @@ import{X as j,M as t,j as n,bm as w,K as l,C as s,o as i,Z as P,s as y,$ as b,aP
37
37
  justify-content: center;
38
38
  padding-top: ${i.sp3};
39
39
  color: ${e=>e.theme.colors.primary};
40
- `,R=o(b)`
40
+ `,T=o(b)`
41
41
  color: ${e=>e.theme.colors.primary};
42
42
  height: 20px;
43
43
  width: auto;
44
- `,T=o(f)`
44
+ `,I=o(f)`
45
45
  color: ${e=>e.theme.colors.hero};
46
46
  height: ${i.sp4};
47
47
  width: ${i.sp4};
48
48
  `,O=o(v)`
49
49
  height: ${i.sp4};
50
50
  color: ${e=>e.theme.colors.primary};
51
- `;function X({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(S,{windowSize:x,children:[n.jsxs(z,{children:[n.jsx(k,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(A,{children:d?$:u}),n.jsxs(I,{children:[n.jsx(R,{}),n.jsx(T,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(C,{}),n.jsxs(B,{children:[c===!0?n.jsx(_,{children:n.jsx(l,{variant:"secondary",label:t.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(L,{children:n.jsx(l,{variant:"primary",label:t.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{X as default};
51
+ `;function X({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(z,{windowSize:x,children:[n.jsxs(S,{children:[n.jsx(k,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(A,{children:d?$:u}),n.jsxs(R,{children:[n.jsx(T,{}),n.jsx(I,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(C,{}),n.jsxs(B,{children:[c===!0?n.jsx(_,{children:n.jsx(l,{variant:"secondary",label:t.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(L,{children:n.jsx(l,{variant:"primary",label:t.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{X as default};
@@ -1,9 +1,9 @@
1
- import{X as O,M as $,j as i,K as k,o,C as a,g as d,f0 as Q,Q as T,$ as W,aP as B,eI as E,e_ as G,a7 as w,v as u,p as r}from"./index-BQuxwdpl.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import I from"./QBOConnectionDialog-C_Z2lvUz-BwsPJmHe.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])},M={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(A,{windowSize:n,children:[i.jsxs(H,{windowSize:n,children:[n==="small"?i.jsx(U,{children:l?i.jsx(V,{}):i.jsx(Z,{})}):null,i.jsx(N,{windowSize:n,children:v})]}),i.jsxs(q,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(R,{children:[i.jsx(_,{}),i.jsx(F,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):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(K,{children:z}),n==="small"?i.jsx(m,{}):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(I,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=$.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(G,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},A=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-rGMXK0Rc.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import A from"./QBOConnectionDialog-CKOkxTzr-DKeUf173.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;
5
5
  justify-content: center;
6
- `,H=s.div`
6
+ `,I=s.div`
7
7
  display: flex;
8
8
  align-items: center;
9
9
  padding-top: ${o.sp3};
@@ -13,7 +13,7 @@ import{X as O,M as $,j as i,K as k,o,C as a,g as d,f0 as Q,Q as T,$ as W,aP as B
13
13
  display: flex;
14
14
  align-items: center;
15
15
  color: ${e=>e.theme.colors.primary};
16
- ${e=>`${M.title.style(e.windowSize)}`};
16
+ ${e=>`${G.title.style(e.windowSize)}`};
17
17
  `,q=s.div`
18
18
  display: flex;
19
19
  flex-direction: column;
@@ -43,35 +43,35 @@ import{X as O,M as $,j as i,K as k,o,C as a,g as d,f0 as Q,Q as T,$ as W,aP as B
43
43
  justify-content: space-between;
44
44
  row-gap: ${e=>t.topElementsRowGap.valuePx(e.windowSize)};
45
45
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
46
- `,K=s(u)`
46
+ `,F=s(u)`
47
47
  display: flex;
48
48
  margin-top: ${o.sp2};
49
49
  color: ${e=>e.theme.colors.hero};
50
- `,R=s.div`
50
+ `,K=s.div`
51
51
  display: flex;
52
52
  align-items: center;
53
53
  gap: ${o.sp4};
54
54
  justify-content: left;
55
55
  color: ${e=>e.theme.colors.primary};
56
- `,_=s(W)`
56
+ `,R=s(W)`
57
57
  height: 20px;
58
58
  width: auto;
59
59
  color: ${e=>e.theme.colors.primary};
60
60
  cursor: pointer;
61
- `,F=s(B)`
61
+ `,Z=s(B)`
62
62
  height: ${e=>t.arrowIconWidthHeight.valuePx(e.windowSize)};
63
63
  width: ${e=>t.arrowIconWidthHeight.valuePx(e.windowSize)};
64
64
  color: ${e=>e.theme.colors.hero};
65
- `,L=s(E)`
65
+ `,_=s(E)`
66
66
  height: ${o.sp4};
67
67
  color: ${e=>e.theme.colors.primary};
68
- `,U=s.div`
68
+ `,L=s.div`
69
69
  margin-right: ${o.sp2};
70
- `,V=s(Q)`
70
+ `,U=s(Q)`
71
71
  width: ${o.sp3};
72
72
  height: ${o.sp3};
73
73
  color: ${d.success};
74
- `,Z=s.div`
74
+ `,V=s.div`
75
75
  height: ${o.sp3};
76
76
  width: ${o.sp3};
77
77
  border: 1px solid ${e=>e.theme.colors.primary};
@@ -1,4 +1,4 @@
1
- import{C as q,p as U,u as M,X as W,M as D,a as G,a1 as X,j as s,R as H,c6 as J,aV as K,F as Q,a3 as Y,o as f}from"./index-BQuxwdpl.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-CRBm3eL9-BxrxyxZb.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-rGMXK0Rc.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-ICp_6TcX-Do7FY4O7.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;