@zeniai/web-cockpit-ui 1.14.20-dev → 1.14.20-qa
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.
- package/dist/assets/{ACHDetailsPage-CVBRtacz-BEkwx2cM.js → ACHDetailsPage-CVBRtacz-B-wXgcdL.js} +1 -1
- package/dist/assets/{AIPerformancePage-DnOjd2BF-CRXsdl24.js → AIPerformancePage-DnOjd2BF-lO5zS7uR.js} +1 -1
- package/dist/assets/{AccountInfoPage-Bt-jShgf-CCHYq--w.js → AccountInfoPage-Bt-jShgf-D7-pY8Xy.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-Cc80eQeo-579rUIpL.js → AccountInfoPageContent-Cc80eQeo-CgEfuzww.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-B-Hn6_hG-B-4Dg7na.js → AccountLockedInfoModal-B-Hn6_hG-6a5g7mIJ.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-Bz1Sk2du-CwztkqDE.js → AccountReconDetailsDrawerPage-Bz1Sk2du-BxAo_hsT.js} +1 -1
- package/dist/assets/{AccountRow-D01C0A0f-QA2NRq7R.js → AccountRow-D01C0A0f-CckYNleY.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DsjFJ8gZ-DjW6RsEa.js → AccountsPromoCardStack-DsjFJ8gZ-tDFsAqWF.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DnoYIvUp-DRozqjCP.js → AddAddressForCardDrawer-DnoYIvUp-D4V9AU-3.js} +1 -1
- package/dist/assets/{AddToWalletPage-BIiW9JxG-D9CD9wND.js → AddToWalletPage-BIiW9JxG-DzC3aDRW.js} +1 -1
- package/dist/assets/{AgingReportsPage-WazD_3Z7-CoFeaJHD.js → AgingReportsPage-WazD_3Z7-BztL8RZo.js} +1 -1
- package/dist/assets/{AllUserItems-CTSy4oBh-COmuQZqb.js → AllUserItems-CTSy4oBh-aCjvc204.js} +1 -1
- package/dist/assets/{ApAgingDetailPage--NGBXWsy-C8HiqI6Z.js → ApAgingDetailPage--NGBXWsy-Cfxnglrx.js} +1 -1
- package/dist/assets/{AppBasePage-B5br9UXD-BXEvz6Z3.js → AppBasePage-B5br9UXD-dTwGe1qL.js} +1 -1
- package/dist/assets/{AppDrawerContent-vFeMNL3B-anFPhgeB.js → AppDrawerContent-vFeMNL3B-OmNElgxS.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-6j7VBBZ6-D1yZE3mH.js → ApprovalRulesSettingsPage-6j7VBBZ6-DtpGfRvd.js} +1 -1
- package/dist/assets/{ArAgingChart-BYWN3_Nl-CYX1U_rU.js → ArAgingChart-BYWN3_Nl-M7Hk0Q05.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-B-hHa8A6-BrQATxNB.js → ArAgingDetailPage-B-hHa8A6-CG4Qyos2.js} +1 -1
- package/dist/assets/{AttachmentView-C2kWA5X5-XqMuBHHe.js → AttachmentView-C2kWA5X5-BbtHpCnk.js} +1 -1
- package/dist/assets/{BankAccountSection-B20IwpOn-dEqA-3oX.js → BankAccountSection-B20IwpOn-DQog70tV.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-GHO0P0IZ-jfpI3pUb.js → BankAccountWarningSection-GHO0P0IZ-1uRlfSfl.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Cpg1ObB6-DR3nDiYc.js → BankConnectionsSettingsPage-Cpg1ObB6-C889d37H.js} +1 -1
- package/dist/assets/{BillDetailPage-DOF5ibT6-Bat6GtFx.js → BillDetailPage-DOF5ibT6-CMzLP3E2.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BI1R1zT_-D9iKVE5j.js → BillPayApprovalRuleDetailPage-BI1R1zT_-B2pclG9C.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B3x4So_i-B5TxdAS5.js → BillPayApprovalRulesPage-B3x4So_i-CY4rm4rp.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BqzH5AIp-Bcp4yJP9.js → BillPayPromoPage-BqzH5AIp-CPmZM4sb.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-DqiNMnRE-abIQ9Tkf.js → BillPaySetUpPage-DqiNMnRE-CJW2K1WW.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BOAAGOLs-CdPqd8Hl.js → BillingSettingsPage-BOAAGOLs-EF78E3-A.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-B76xXQJ9-CbXzjgOR.js → BillsBulkReviewDrawerPage-B76xXQJ9-KS_QhPM7.js} +1 -1
- package/dist/assets/{BoxItem-DCsIK5bA-DrkhsCS_.js → BoxItem-DCsIK5bA-DmT1xtf2.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-hSVDM_Bi-eN7TBacX.js → BusinessVerificationPage-hSVDM_Bi-2zlgnS4x.js} +1 -1
- package/dist/assets/{CardNumberSubText-B_ZdgYVm-CRvH-CRy.js → CardNumberSubText-B_ZdgYVm-ChY45Xav.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CNeEt6aE-CsctITKU.js → CashbackDetailPage-CNeEt6aE-b0UGJHmQ.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-C0a8jqCD-CUfhgRr0.js → ChargeCardDetailPage-C0a8jqCD-Cx7pv4Cb.js} +1 -1
- package/dist/assets/{ChargeCardListPage-_3lJqIYP-iewbQ3J2.js → ChargeCardListPage-_3lJqIYP-CjqfIBRz.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Kx-_ZAZu-BvnPLhgK.js → ChargeCardListTable-Kx-_ZAZu-BIEC6Lus.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CKTkcQdI-B3wD2hqP.js → ChargeCardPromoPage-CKTkcQdI-D4z7TcsI.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CGRMFERy-BQ8k2roy.js → ChargeCardSetupPage-CGRMFERy-nwvjRvTP.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B_7CdyKP-CMTrFXHN.js → ChargeCardStatementsPage-B_7CdyKP-BwoBFpZ8.js} +1 -1
- package/dist/assets/{ChargeCardUtils-BcwLwgz7-DrE0N0EF.js → ChargeCardUtils-BcwLwgz7-DtCcFgNi.js} +1 -1
- package/dist/assets/{ChaseOverlay-ClcKUdpT-Buerorcp.js → ChaseOverlay-ClcKUdpT-DsBdB3dn.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-I3siSP2H-BrRdb26D.js → CheckDepositDrawerPage-I3siSP2H-DOYShP5D.js} +1 -1
- package/dist/assets/{CollapsableReportTable-ULd7PQST-DRS_mwem.js → CollapsableReportTable-ULd7PQST-zRaWsZKw.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DLaAmVLG-9U29EMpY.js → CompanyOfficerDetailsSection-DLaAmVLG-BXyV3XUg.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CZQuAyI2-Du4zK6a2.js → CompanyPassportCard-CZQuAyI2-FnmQYEWp.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DqoVJfO--BezYa4q3.js → CompanyPassportPage-DqoVJfO--B2V256bS.js} +1 -1
- package/dist/assets/{CompleteProfile-BJV-xUlM-DoWTiT1k.js → CompleteProfile-BJV-xUlM-_mjlqEii.js} +1 -1
- package/dist/assets/{ConfettiBurst-D4ga9TRN-DITQey3L.js → ConfettiBurst-D4ga9TRN-DNqfOt_I.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C6efUMJu-BO_oyqIH.js → CreateOrEditVendorPage-C6efUMJu-BPk-OMPd.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-26ysDTts-B2nPMyDO.js → CreditCardPaymentDrawerPage-26ysDTts-2EgGLxxN.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-8NQI5gcx-CtF_TfUM.js → CreditCardPaymentPlgSection-8NQI5gcx-CYgVnwi-.js} +1 -1
- package/dist/assets/{CurrencySelectField-CVNn0XCq-DT36t2lI.js → CurrencySelectField-CVNn0XCq-id1wN7tu.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-D0-sOxDl-Bm2kAKIU.js → CustomerOnboardingActivationPage-D0-sOxDl-Ce46LukP.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DoibuhLN-BAot3xFZ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B7hkzgkV-BXEF9ppx.js → CustomerOnboardingDetailPageSkeleton-B7hkzgkV-BF5167bb.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CD1QldcG-CzeAfya1.js → CustomerOnboardingNoStepsPage-CD1QldcG-DOJTbsT8.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DB1gXgdD-CUHFehdd.js → CustomerOnboardingPage-DB1gXgdD-CBPKCr70.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DGMmLmq8-Cbgji3lL.js → CustomerOnboardingProductSuitePage-DGMmLmq8-Ba1Ge8Ql.js} +1 -1
- package/dist/assets/{Dashboard-CU3UQhxj-VVHJwggZ.js → Dashboard-CU3UQhxj-C1Mkz5gx.js} +1 -1
- package/dist/assets/{DashboardReportPage-DMdKWPtx-DkAIriFg.js → DashboardReportPage-DMdKWPtx-atQPuhmI.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BMEqBAyh-vfJQWz_r.js → DashboardSidebarBackgroundAnimation-BMEqBAyh-C6IEWJ-w.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C1-JGWD1-BMvGw-zQ.js → DepositAccTransactionItem-C1-JGWD1-PimeTN3F.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CfwhQ7mC-B3prPdix.js → DepositAccTransactionListPage-CfwhQ7mC-BpwI3LPz.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-D6fDbjcO-DHXj9Zdn.js → DomesticWireDetailsPage-D6fDbjcO-B5-gEW7w.js} +1 -1
- package/dist/assets/{DownloadOverlay-CsX54puJ-DeWJ_bTZ.js → DownloadOverlay-CsX54puJ-Dn_Qxrz1.js} +1 -1
- package/dist/assets/{DrawerPage-xYwGDHR6-Ch0S05SG.js → DrawerPage-xYwGDHR6-DzearJMx.js} +1 -1
- package/dist/assets/{EditPeoplePage-9SmQtrJz-Cw0-GcjG.js → EditPeoplePage-9SmQtrJz-CpjsvZ5X.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-EUO0BoRp-EVPPjvHX.js → EditReimbursementDetailPage-EUO0BoRp-DXFt_-b4.js} +1 -1
- package/dist/assets/{EntityDetailPage-CF6LS35a-CeBa6jKf.js → EntityDetailPage-CF6LS35a-I8h1XS7y.js} +1 -1
- package/dist/assets/{EntitySummarySection-C0gR6pkr-AtoRf1sI.js → EntitySummarySection-C0gR6pkr-BFT2Z-pB.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-B0I8v21w-C1ihD57y.js → ExpenseAutomationOverviewPage-B0I8v21w-DnXjKNKz.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BorzJM7G-DFmLOpV0.js → ExpenseAutomationPage-BorzJM7G-DkRsvTE3.js} +1 -1
- package/dist/assets/{ExpressPayPage-D0YWItIv-Bvps2LX7.js → ExpressPayPage-D0YWItIv-vsfFJlZY.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-yu8G5cHk-BxkuThqr.js → FeaturePreviewPage-yu8G5cHk-D2BrLKE_.js} +1 -1
- package/dist/assets/{FollowStepsSection-DRDFxA8H-Dg1nQMTR.js → FollowStepsSection-DRDFxA8H-CjpGRF9d.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-D80yv7U2-CfvcgDlu.js → GlobalReviewListPage-D80yv7U2-DSeBsZZz.js} +1 -1
- package/dist/assets/{HelpButton-D9ONg6cm-CuNxHNm2.js → HelpButton-D9ONg6cm-Be59SjbC.js} +1 -1
- package/dist/assets/{InformationCardStack-CbKQwtHm-B7yYvAdF.js → InformationCardStack-CbKQwtHm-iVG-egn1.js} +1 -1
- package/dist/assets/{InsightsCardStack-BWsN9_G2-DemEieR0.js → InsightsCardStack-BWsN9_G2-DIXMPF3Z.js} +1 -1
- package/dist/assets/{InsightsSection-WZo-AWJt-DohBwSi_.js → InsightsSection-WZo-AWJt-B29Z2aQ6.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BLjSJt9r-6t6Ass9f.js → IntegrationsSettingsPage-BLjSJt9r-DCLywH7v.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BXNDZ1Mk-BO2f4UVV.js → InternationalWireSwiftDetailsPage-BXNDZ1Mk-BxL2cwbW.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BLgPJ1NJ-CMky3KEh.js → InternationalWireVerificationPage-BLgPJ1NJ-q4IibCup.js} +1 -1
- package/dist/assets/{InviteFormPage-DPQ4vL9--DIhY9xxd.js → InviteFormPage-DPQ4vL9--i-ULec9w.js} +1 -1
- package/dist/assets/{InvitePageListView-YUKxUGBn-CGJ_yirg.js → InvitePageListView-YUKxUGBn-B16-8w8X.js} +1 -1
- package/dist/assets/{InvitePeoplePage-C3vECRns-DBtYnb-4.js → InvitePeoplePage-C3vECRns-C0xQ6TWc.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-Cx6pXJiN-CgRQkeV5.js → InvoiceUploadSection-Cx6pXJiN-CVGkefQN.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DZVtocCO-B49QpSq-.js → IssueChargeCardPage-DZVtocCO-I_yEnYGn.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BrB2xQYz-B09yXjLA.js → LabeledAddressValue-BrB2xQYz-Bp1iKMXW.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-_35LG3OI-C2eHerzm.js → LabeledAddressValueField-_35LG3OI-D_e5OIiQ.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-o0K1dba0-BZipP4yv.js → LabeledControlledCheckBoxField-o0K1dba0-CaYkqqwf.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DQwGH21a-D1Rth7u2.js → LabeledCreatableSingleSelectField-DQwGH21a-DCo3yiXZ.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CfgzkjDY-CbC276Lv.js → LabeledDocumentField-CfgzkjDY-pn3OcRy3.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DdaTvUbM-C4uCaUJ3.js → LabeledDropDownFormattedTextField-DdaTvUbM-KTtCMdFX.js} +1 -1
- package/dist/assets/{LabeledText-Hi4MixDN-n_lfAbe7.js → LabeledText-Hi4MixDN-WrbKJ642.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-CKRRo1Fi.js → LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-Jqg6BKYy.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Bm7Emr_n-JLIDvMIU.js → LabeledZeniRolesDropDownField-Bm7Emr_n-glZ8PCSO.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-ittEPbhi-BCWKpHna.js → LinkJETransactionPage-ittEPbhi-W7ymwETt.js} +1 -1
- package/dist/assets/{LowBalancePopup-ChA83eFW-dErt1yuL.js → LowBalancePopup-ChA83eFW-D0eQDhH3.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-B4PPI06n-DFF50HiV.js → MagicLinkACHDetailsPage-B4PPI06n-C_DxqSTi.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DRK5ytSb-CTgdy9NG.js → MagicLinkDomesticWireDetailsPage-DRK5ytSb-DngVeo5M.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2pn5xtm-DTn743zM.js → MagicLinkInternationalWireDetailsPage-C2pn5xtm-BATETY3T.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bag5TE2J-DCGiU-tX.js → MagicLinkSuccessPage-Bag5TE2J-CZ9jwejs.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Ch72cLUN-CsTRlAex.js → MagicLinkTitleSection-Ch72cLUN-YrwcYc6L.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CrHHLtQN-loRqi7di.js → MailingDetailsSection-CrHHLtQN-DrQYYUeI.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-B_KRQLwc-CemZcgIl.js → MeetingCalenderPopup-B_KRQLwc-Dk4sRI3u.js} +1 -1
- package/dist/assets/{Menu-Czq7AdhP-C-oEbm2f.js → Menu-Czq7AdhP-DuOfxCaz.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-y3YOYnQr-BDn2GzBg.js → MyBankConnectionsSettingsPage-y3YOYnQr-D-9bdC9E.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-DJeYzaPj-Dm2kAILW.js → MyPendingActivationChargeCardListPage-DJeYzaPj-shBILIuz.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-hQvoACAQ-DxTxhxW-.js → MyProfileSettingsPage-hQvoACAQ-De4LQ2zP.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DUaSGf4d-hMIZgUnq.js → NavBarWithPicker-DUaSGf4d-CMjrmt-1.js} +1 -1
- package/dist/assets/{NavigationArrow-ClEBtns--CBhi3Wa5.js → NavigationArrow-ClEBtns--QcRQdXVR.js} +1 -1
- package/dist/assets/{NavigationDots-BsJyQWOZ-DQaJD5qn.js → NavigationDots-BsJyQWOZ-BDcajz6w.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BKZGSrDk-Bj0fLOGG.js → NewGlobalMerchantPage-BKZGSrDk-l-MVFG0h.js} +1 -1
- package/dist/assets/{NoDataChart-Bk9eWo52-DbkTpf0E.js → NoDataChart-Bk9eWo52-DcgFDiHH.js} +1 -1
- package/dist/assets/{NoDataTable-DCQbtvPN-DkrWdcTk.js → NoDataTable-DCQbtvPN-DodiAtKz.js} +1 -1
- package/dist/assets/{NotFoundPage-CGx7FoiU-CZaJl2_e.js → NotFoundPage-CGx7FoiU-UHTxKuRN.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CoD8eTUS-8OIZSyCr.js → NotificationSettingsPage-CoD8eTUS-BjZb9tDk.js} +1 -1
- package/dist/assets/{NotificationsListConfig-hyqVBWDA-BxI8wBvU.js → NotificationsListConfig-hyqVBWDA-ChVmChxH.js} +1 -1
- package/dist/assets/{NotificationsPage-BavPSx1H-CVEnlnNl.js → NotificationsPage-BavPSx1H-DHL13AeJ.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DD8tCc8E-DObB3ZyW.js → OpExByVendorPage-DD8tCc8E-CwNf3ShD.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Dg-aOJQU-XdQCUH0G.js → OverlayContainerPage-Dg-aOJQU-C9FBG3yb.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-bSkidYRR-D-Y5VMs1.js → PandLWithForecastPage-bSkidYRR-CDPJjYTV.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CGIC_vLw-BIusm93k.js → PaymentAccountSetupBillingAddressSection-CGIC_vLw-DbAjNAQ-.js} +1 -1
- package/dist/assets/{PeoplePage-C-2NZJpQ-BbdMKhWr.js → PeoplePage-C-2NZJpQ-BenUVGbg.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-B6JOvEvW-BSgeoBob.js → PortfolioAllocationFormPage-B6JOvEvW-B8_jJPtJ.js} +1 -1
- package/dist/assets/{PortfolioDetails-Cpv5bi4_-C3K7fsrr.js → PortfolioDetails-Cpv5bi4_-BHPnb_oU.js} +1 -1
- package/dist/assets/{ProductsCarousel-WDd37Mjn-NLHTDL58.js → ProductsCarousel-WDd37Mjn-BH0jA9xy.js} +1 -1
- package/dist/assets/{PromoBaseCards-BaFkKGkm-Bw-1QrdI.js → PromoBaseCards-BaFkKGkm-Cz7eAULC.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-l3ThoJCI-BaUAxpz_.js → QBOConnectionDialog-l3ThoJCI-ChlbOfD6.js} +1 -1
- package/dist/assets/{QBOSetupSection-DSrxcrXI-CnwGvTKQ.js → QBOSetupSection-DSrxcrXI-CkvMDxrM.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-hb8mPFw0-iXwT5wDy.js → ReimbursementApprovalRuleDetailPage-hb8mPFw0-AvrXlJya.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-fs4WqNUv-BvFXhzka.js → ReimbursementApprovalRulesPage-fs4WqNUv-Bqd9-BoW.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BYw6Mc2u-ZOQaZirb.js → ReimbursementDetailPage-BYw6Mc2u-BxuwZTKk.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DzDuwRxU-DEtJqrhv.js → ReimbursementPromoPage-DzDuwRxU-B6R_66mk.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-DdT6uu1--I31J4BAO.js → ReimbursementSetUpPage-DdT6uu1--B5ymQEc4.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CXvng56s-BxlZIO2c.js → ReimbursementsBulkReviewDrawerPage-CXvng56s-D22V4iw-.js} +1 -1
- package/dist/assets/{ReloadCard-BPoOhxrs-D8lPs5qf.js → ReloadCard-BPoOhxrs-kBbFGmsU.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CkZW5TtX-I9C4FHDc.js → ReportTableViewSelector-CkZW5TtX-DumdDRTp.js} +1 -1
- package/dist/assets/{ReportsPage-C-ARKbIQ-CCoiMwuP.js → ReportsPage-C-ARKbIQ-o9K1sd3F.js} +1 -1
- package/dist/assets/{RevenueChart-CuqZW-Jr-B_s8E_iU.js → RevenueChart-CuqZW-Jr-N4UQEA-E.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BVN_Uym2-d0L-TTpG.js → ReviewDetailsPage-BVN_Uym2-C5S7_prb.js} +1 -1
- package/dist/assets/{ReviewOverlay-CIgtaUn1-wggYVp0Q.js → ReviewOverlay-CIgtaUn1-BvAebQ4j.js} +1 -1
- package/dist/assets/{RoleWithToolTip-Dm4yIm31-3pGQtzkX.js → RoleWithToolTip-Dm4yIm31-B7MerbZ_.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ce3z1VPg-SvqdKcr4.js → ScheduleDetailsFixedAssetsPage-Ce3z1VPg-BTEmNd7t.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-O69iLj4h-CXnxPezp.js → ScheduleDetailsPage-O69iLj4h-CjfWVecQ.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DMIzc2zC-3WngbgQC.js → ScheduleSequenceTable-DMIzc2zC-7wRpGkTy.js} +1 -1
- package/dist/assets/{ScreenRoutes-D3pC7BH7.js → ScreenRoutes-DSJYi7xE.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C1_QjMwF-C_2yznzy.js → SetUpAccountSection-C1_QjMwF-D_Jc9DPP.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-B-ZEHQUb-iLzGQnWH.js → SetUpDefaultSection-B-ZEHQUb-wT4VB7Bz.js} +1 -1
- package/dist/assets/{SignIn-CXQyYEJI-BbNAmrjc.js → SignIn-CXQyYEJI-CDAsUoma.js} +1 -1
- package/dist/assets/{SignInScreen-DtWV87E_.js → SignInScreen-DfZrql6t.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DEMLoStE-C1nPAYM8.js → SpendManagementListViewPage-DEMLoStE-DOCGQBTb.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CLf-7YyR-60GdYb7a.js → SpendManagementPerTabPage-CLf-7YyR-Dcu59y-5.js} +1 -1
- package/dist/assets/{SpendManagementSection-DIVgOKWy-D35voP2u.js → SpendManagementSection-DIVgOKWy-DXji9rI6.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-DFyUBsg3-DRIU7IWr.js → SpendMgmtSetupAccountSection-DFyUBsg3-CBY1E6Ip.js} +1 -1
- package/dist/assets/{StatementItem-CSyEn4Pz-CIQDSk8U.js → StatementItem-CSyEn4Pz-Ceu9_WYP.js} +1 -1
- package/dist/assets/{StatementsPage-D34J2aZa-9jSr3LU8.js → StatementsPage-D34J2aZa-DVBVlsnj.js} +1 -1
- package/dist/assets/{StatusSwitcher-B77NoO6o-CLTHQ9CP.js → StatusSwitcher-B77NoO6o--2WeeksA.js} +1 -1
- package/dist/assets/{SubTabSwitcher-baJGHUgJ-BPKK4q6_.js → SubTabSwitcher-baJGHUgJ-DvovvHUF.js} +1 -1
- package/dist/assets/{SummaryCard-BvuRZj8f-DCeFdYs2.js → SummaryCard-BvuRZj8f-T-eFM0LS.js} +1 -1
- package/dist/assets/{TaskManagementPage-vG8GXEJA-DX4VWYkl.js → TaskManagementPage-vG8GXEJA-BGipUdPV.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-CnoZ9Rqp-QTEqL6la.js → TimeRangeSwitcher-CnoZ9Rqp-B5iNAfYV.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-W5kHnuHI-B5U_sUAn.js → TimeframeSwitcher-W5kHnuHI-BadD6oo8.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-yLA5y4zJ-CFlsdObg.js → TimeframeSwitcherWithToggle-yLA5y4zJ-4o4duI3A.js} +1 -1
- package/dist/assets/{TopExCard-oyXmygm8-DV87vjZL.js → TopExCard-oyXmygm8-BYyuzniq.js} +1 -1
- package/dist/assets/{TopExDetailPage-4HMIURzm-ulBg6b5V.js → TopExDetailPage-4HMIURzm-DnalCFp3.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CIw_7B72-CcQHWkUG.js → TransactionDetailPage-CIw_7B72-CYXPG11l.js} +1 -1
- package/dist/assets/{TransactionList-B9M4ftBY-9Xoftl5l.js → TransactionList-B9M4ftBY-DwRVqc-5.js} +1 -1
- package/dist/assets/{TransactionListBig-D5SRFdH7-CUrzZcWs.js → TransactionListBig-D5SRFdH7-DM-CzEo0.js} +1 -1
- package/dist/assets/{TransactionListPage-DCiIH4ES-DulMTWBW.js → TransactionListPage-DCiIH4ES-fcePVcVZ.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BNY3vBm0-Cw6AkzlK.js → TransactionVendorDetailPage-BNY3vBm0-CW0SP2il.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DdgfrrRM-BBEomNnq.js → TransferDrawerPage-DdgfrrRM-F6iL3sbI.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-COFbWN48-DSaB6zFu.js → TreasuryOverviewPage-COFbWN48-BYeFpwIv.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-EYqV98OG-CvFj_oTJ.js → TreasuryPromoPage-EYqV98OG-NVU8LSqs.js} +1 -1
- package/dist/assets/{TreasurySetupPage-DEz3fabz-BopnXkx6.js → TreasurySetupPage-DEz3fabz-DDNrOk49.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-JSf4JXXI-CSff_RYi.js → TreasuryStatementsPage-JSf4JXXI-CCZGMWz5.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Id6od0WY-D3YHLWYb.js → TreasuryTaxLetterPage-Id6od0WY--LdWqgsE.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-D25tiep8-CregJCyC.js → TreasuryTransferOrReviewPage-D25tiep8-BNfZoc8Z.js} +1 -1
- package/dist/assets/{TrendChart-xBdkrxjQ-BHwV7FvD.js → TrendChart-xBdkrxjQ-C4056Hlf.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CQdqelNB-BxApJhmm.js → TrendWithTransactions-CQdqelNB-DQo5xCdz.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DaSjSoeK-2h_6-Ko4.js → UncategorizedAccountsMappingPage-DaSjSoeK-DCzQZher.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-zM4qGyLV-CinH_PeY.js → UnitIntegrationPage-zM4qGyLV-BUih8kDy.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Y64l7Rho-BebTHNkT.js → UploadAdditionalDocumentOverlay-Y64l7Rho-CmfSD-Zu.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DO-eL5Ot-DjhAlKT-.js → Vendor2FAPopup-DO-eL5Ot-DkBNux6r.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BDROr_dC-CAZxPDsT.js → VendorACHDetailsPage-BDROr_dC-BY7HbNfr.js} +1 -1
- package/dist/assets/{VendorDetailPage-B8S-gV53-DaZx1eZP.js → VendorDetailPage-B8S-gV53-DhUdJ0v4.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BrxQuXus-DYcgNh9D.js → VendorDomesticWireDetailsPage-BrxQuXus-CKp63XIB.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BK-XGzxl-CVlxfcrS.js → VendorFiling1099EditablePage-BK-XGzxl-BDsZSV4B.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CrSdEY-q-DsAt-Zva.js → VendorFirstReviewPage-CrSdEY-q-B1bLGVGQ.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DuE2n00d-C0HY8jsi.js → VendorInternationalWireDetailsPage-DuE2n00d-CfT-V_5M.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-_0douojx-uTqjQvZ8.js → VendorInternationalWireSwiftDetailsPage-_0douojx-BYFNBvm2.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C2McA3-C-CAGlOz8b.js → VendorsAccountsSection-C2McA3-C-Cb0CgKxi.js} +1 -1
- package/dist/assets/{VerifyDevice-BOb4uKLq-B9iw9cGN.js → VerifyDevice-BOb4uKLq-DNkxVYQK.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-f9lS8sCp-Yx0s05ZC.js → WarningsDrawerPage-f9lS8sCp-DvTpHrxU.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BnWDpR9g-BpHh2OhY.js → ZeniAccountDetailPage-BnWDpR9g-BIlqd_yq.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D9ORn0_O-BQPutSAN.js → ZeniAccountListViewPage-D9ORn0_O-9Rmkt-8p.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-4jG3uNmW-B7nBCOPn.js → ZeniAccountNavBarPieces-4jG3uNmW-ClvlddSI.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CswETXvx-DfER_hgz.js → ZeniAccountPromoPage-CswETXvx-BsmBi2Qk.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-7B6Vgmg6-DsByA6Pf.js → ZeniAccountSetupPage-7B6Vgmg6-Cm9X_vfT.js} +1 -1
- package/dist/assets/{ZeniCopyright-DrkcGEYL-D8qMh6Rn.js → ZeniCopyright-DrkcGEYL-BmTJIlKC.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Bw5S2HTx-CfuKg8UT.js → ZeniTransferAmountSlider-Bw5S2HTx-DdoSkWzm.js} +1 -1
- package/dist/assets/{analyticsHelper-B46gu6zH.js → analyticsHelper-6vBfv0ec.js} +1 -1
- package/dist/assets/{analyticsHelper-C37dCyKv-Ci3W403B.js → analyticsHelper-C37dCyKv-CGyvCbtY.js} +1 -1
- package/dist/assets/{chartTypes-Cknnnhq_-BKEap-MQ.js → chartTypes-Cknnnhq_-DeXPyHuq.js} +1 -1
- package/dist/assets/{commonDimensions-D0ovCC4N-B0G2UdHm.js → commonDimensions-D0ovCC4N-CNPc1P_A.js} +1 -1
- package/dist/assets/{detailCommon-CKa5_aP2-CTgqAfFe.js → detailCommon-CKa5_aP2-yoaB_aFJ.js} +1 -1
- package/dist/assets/{downloadPdf-BJozh7zE-M2Rp1JlQ.js → downloadPdf-BJozh7zE-DZm4gsxy.js} +1 -1
- package/dist/assets/{index-Cnh9fv8f.js → index-b-ZazAq5.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-DttwbPj7-BWaq84fe.js → mapLoadingInProgressToTreeNode-DttwbPj7-ClOsgYHo.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CKUACdvT-96C16ahX.js → mapSectionWithAcOnlyToTreeNode-CKUACdvT-DnNr7s_7.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CeH4tptC-BD7Zb85P.js → mapSpacerToTreeNode-CeH4tptC-DDar-aaX.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CElz2Cb0-CuxVDYys.js → mapTimeframeBalancesToTreeNode-CElz2Cb0-yR23ijYO.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-TLHaVbTv-OZW2z0IX.js → mapTimeframeBalancesToTreeNode-TLHaVbTv-CwUi2UE6.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Da50HxFS.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Ceni4bmN.js} +1 -1
- package/dist/assets/{play-icon-XWt7iQeF-7dWJ4Dkg.js → play-icon-XWt7iQeF-BXe3XEM9.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DACfD5ZE-BgoTIDec.js → toCOABalancesWithID-DACfD5ZE-DPBjMuXT.js} +1 -1
- package/dist/assets/{toChartData-C6ap15NT-ByCawuJX.js → toChartData-C6ap15NT-C4C_iiHg.js} +1 -1
- package/dist/assets/{treasuryColorHelper-DmVCoHv9-Cx3TVoRp.js → treasuryColorHelper-DmVCoHv9-BvBjIWNj.js} +1 -1
- package/dist/assets/{uploadAttachment-D1XtO8---B9AANbCr.js → uploadAttachment-D1XtO8---C1HecV0B.js} +1 -1
- package/dist/assets/{uploadReceipts-Cl7e8jci-C-56lzXC.js → uploadReceipts-Cl7e8jci-CgmtP8oE.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DoibuhLN-8rsNTWNZ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as te,fo as ie,u as fe,Y as ge,fp as be,a as ye,E as xe,l as z,ca as we,c9 as Pe,M as re,j as l,fq as ve,aW as $e,F as De,a4 as Se,o as s,fr as ne,fs as de,ft as ce,c4 as ue,C as L,B as me,v as Oe,b as Re,S as le,cl as je,cc as Ce,fu as q,ci as Le,cg as Te,fv as Ie,af as Be,q as U}from"./index-
|
|
1
|
+
import{e as te,fo as ie,u as fe,Y as ge,fp as be,a as ye,E as xe,l as z,ca as we,c9 as Pe,M as re,j as l,fq as ve,aW as $e,F as De,a4 as Se,o as s,fr as ne,fs as de,ft as ce,c4 as ue,C as L,B as me,v as Oe,b as Re,S as le,cl as je,cc as Ce,fu as q,ci as Le,cg as Te,fv as Ie,af as Be,q as U}from"./index-b-ZazAq5.js";import{b as v,n as m}from"./vendor-rkTZJa59.js";import{W as Ve}from"./LabeledAddressValueField-_35LG3OI-D_e5OIiQ.js";import{X as ke}from"./LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-Jqg6BKYy.js";import{C as Fe,j as ze}from"./LabeledZeniRolesDropDownField-Bm7Emr_n-glZ8PCSO.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./RoleWithToolTip-Dm4yIm31-B7MerbZ_.js";const b=(e,i)=>`${e}.${i}`,F={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(U[2],U[3]),toolTipWidth:new L(215,237),notePadding:new L(U[3],U[4]),noteGap:new L(U[0],6)},{peoplePage:a,common:{settings:se,labels:G,placeholder:k,errorMessage:Ae},dateFormat:Ne}=re.getLocalizedStrings(),Me=({myProfileView:e,isZeniFinopsRolesUser:i,sectionId:t,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:$,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:x})=>{const n=te(),{person:r,managersList:A,classList:N,manager:X,department:g,controllersList:M,myProfileLocalData:W,addressData:Y}=e,H=e.person.user?.birthday!=null?"readonly":void 0,D=F.largeLabelWidth.value(n),I=F.largeLabelWidth.value(n),J=v.useMemo(()=>ie(y,p,o,f,$,T,h),[y,p,o,f,$,T,h]),{firstController:w,restControllerEmailsStr:S}=v.useMemo(()=>{const c=le(M),O=c.splice(0,1),R=c.reduce((B,V)=>B.concat(`${V.email},`),"");return{firstController:O,restControllerEmailsStr:R}},[M]),Q=v.useMemo(()=>le(ue.roles),[]),d=z.hasInvestorBankerLevelAccess(r.userRole!=null?r.userRole.userRoles:[]),Z=v.useMemo(()=>N.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[N]);return l.jsxs(Ee,{windowSize:n,children:[l.jsx(je,{isDisabled:u,label:{label:G.name,width:I},nameField:{name:b(t,"name"),placeHolder:{firstName:k.firstNamePlaceholder,lastName:k.lastNamePlaceholder,name:k.namePlaceholder},showFullNameError:!0},errorInfoLabel:Ae.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(C,{}),l.jsx(Ce,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(t,"email"),placeholder:q(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${F.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Le,{label:{label:G.dateOfBirth,width:I},style:{width:"auto"},isDisabled:H,dateField:{name:b(t,"dateOfBirth"),placeholder:k.datePlaceholder,defaultValue:W.dateOfBirth,dateFormat:Ne.visual.defaultInput,autoComplete:"off",maxDate:z.dateNow().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(Ve,{label:{label:G.mailingAddress,width:I},addressValueField:{name:b(t,"mailingAddress"),placeholder:k.addressPlaceholder,defaultValue:Y?.addressToCreate,onClick:()=>{x("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Te,{label:{label:G.phone,width:I},text:{name:b(t,"phone"),placeholder:k.phonePlaceholder,defaultValue:W.phone,autoComplete:"off"},showVerified:W.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),i?l.jsx(Fe,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(t,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:Q},registerOptions:{required:!0},placeholderLabel:q(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(ze,{label:{label:a.invitePage.role,width:D},rolesDropDownField:{name:b(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,$)},productsByUserRole:ne(r.userRole?.userRoles??[],J)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(ke,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:F.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:b(t,"manager"),value:{allUsers:d?[]:A,selectedUser:d?void 0:X?.userId},valueToSubtitle:c=>{const O=A.findIndex(R=>R.userId===c);if(O!==-1){const R=A[O],B=N.find(K=>K.classId===R.userRole.accountingClassIDs[0]),V=[];return B!=null&&V.push(B.className),V}else return[]},placeholderLabel:d?a.notApplicable:q(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(C,{}),l.jsx(Ie,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(t,"department"),defaultValue:{allOptions:d?[]:Z,selectedOption:d?void 0:Z.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:q(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),i?null:l.jsxs(Ue,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Ze,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(_e,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},We=()=>a.invitePage.managerTooltipText,Ee=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey5};
|
package/dist/assets/{NavBarWithPicker-DUaSGf4d-hMIZgUnq.js → NavBarWithPicker-DUaSGf4d-CMjrmt-1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as m,e as p,j as o,_ as u,bA as g,M as x,o as t,a_ as b,eP as k,bw as y,bm as C,v}from"./index-
|
|
1
|
+
import{u as m,e as p,j as o,_ as u,bA as g,M as x,o as t,a_ as b,eP as k,bw as y,bm as C,v}from"./index-b-ZazAq5.js";import{n as l}from"./vendor-rkTZJa59.js";const w=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
flex: 1 1 auto;
|
package/dist/assets/{NavigationArrow-ClEBtns--CBhi3Wa5.js → NavigationArrow-ClEBtns--QcRQdXVR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,o as r,af as i,bw as h}from"./index-
|
|
1
|
+
import{j as e,o as r,af as i,bw as h}from"./index-b-ZazAq5.js";import{j as l,n as s}from"./vendor-rkTZJa59.js";const c=l`
|
|
2
2
|
border-left-style: none;
|
|
3
3
|
margin-left: -${r.sp3};
|
|
4
4
|
border-top-right-radius: ${r.sp2};
|
package/dist/assets/{NavigationDots-BsJyQWOZ-DQaJD5qn.js → NavigationDots-BsJyQWOZ-BDcajz6w.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,_ as v,o as t}from"./index-
|
|
1
|
+
import{j as e,_ as v,o as t}from"./index-b-ZazAq5.js";import{n as l}from"./vendor-rkTZJa59.js";const C=l.div`
|
|
2
2
|
text-align: center;
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
`,y=l.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as z,a as A,c9 as Y,a2 as Q,j as t,M as T,F as X,a4 as Z,C as i,o as a,a3 as ee,b as _,h as te,gn as ae,n as le,cm as O,hA as ne,ce as U,cc as oe,q as l,ao as re,cu as ie,cs as de,cG as se,m as ce,et as me,dj as he,aB as be,c as V}from"./index-
|
|
1
|
+
import{e as z,a as A,c9 as Y,a2 as Q,j as t,M as T,F as X,a4 as Z,C as i,o as a,a3 as ee,b as _,h as te,gn as ae,n as le,cm as O,hA as ne,ce as U,cc as oe,q as l,ao as re,cu as ie,cs as de,cG as se,m as ce,et as me,dj as he,aB as be,c as V}from"./index-b-ZazAq5.js";import{b as j,n as o,j as ge}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const w={width:new i(343,580,726),height:new i(l[6],l[6]),controlHeight:new i(l[6],l[6]),paddingTopBottom:new i(l[2],l[2]),marginRight:new i(l[2],l[2]),labelMarginLeft:new i(l[3],l[4]),labelMarginRight:new i(l[3],l[4]),labelMarginTop:new i(l[2],l[2])},ue={infoLabel:new _("smallRegular","standardRegular")},pe=T.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:g,style:v,toolTip:M,isOptionalLabel:y}){const s=z(),{formState:{errors:d}}=O(),$=ie(d,n.name);return t.jsxs(xe,{windowSize:s,style:v,isDisabled:n.isDisabled!=null,isError:$,children:[t.jsx(de,{isDisabled:n.isDisabled,label:e.label,style:{marginLeft:w.labelMarginLeft.value(s),marginRight:w.labelMarginRight.value(s),marginTop:w.labelMarginTop.value(s),width:e.width??"auto"},showTooltip:M!=null,tooltipTitle:M?.title,toolTipWidth:M?.width,isOptional:y}),t.jsxs(fe,{labelWidth:e.width,children:[t.jsx(se,{...n,style:{...n.style,display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(s),cursor:"inherit"}}),g?.fetchState==="In-Progress"?t.jsx($e,{children:t.jsx(ce,{size:"Standard",start:!0})}):t.jsxs(Se,{children:[t.jsxs(Me,{windowSize:s,isRecommendationVisible:m.length>0,isError:$,children:[h.icon,h.label]}),m.length>0?m.map((u,p)=>t.jsxs(t.Fragment,{children:[t.jsx(me,{isHighlighted:!0,label:{label:u.label},checkBoxField:u.field,defaultChecked:u.field.defaultChecked,isDisabled:u.field.isDisabled!=null},he()),p<m.length-1?t.jsx(ve,{children:pe.common.texts.or}):null]})):null]})]})]})}const xe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as l,j as t,c as s,o as h,n as r,C as m,u as o}from"./index-
|
|
1
|
+
import{e as l,j as t,c as s,o as h,n as r,C as m,u as o}from"./index-b-ZazAq5.js";import{n as i,b as a}from"./vendor-rkTZJa59.js";const v=e=>a.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"#3E4043",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),a.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#3E4043"})),c=e=>a.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"#E9ECF0",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),a.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#E9ECF0"})),d={chartMinHeight:new m(288,360)},z=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,o as t,u as s}from"./index-
|
|
1
|
+
import{j as e,o as t,u as s}from"./index-b-ZazAq5.js";import{n as i}from"./vendor-rkTZJa59.js";import{r as n,o}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const r=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
padding: ${t.sp8} ${t.sp0} ${t.sp8} ${t.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o,M as i,bt as s,c6 as c,n as l,c as a,B as d}from"./index-
|
|
1
|
+
import{j as o,M as i,bt as s,c6 as c,n as l,c as a,B as d}from"./index-b-ZazAq5.js";import{n as t}from"./vendor-rkTZJa59.js";import{i as h}from"./ZeniCopyright-DrkcGEYL-BmTJIlKC.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const g=t.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,fD as ne,o as i,bf as se,M as v,a6 as re,u as X,e as Y,a as le,c9 as ae,l as P,aW as ce,F as de,T as w,a4 as pe,C as z,f8 as me,fE as ue,eG as he,fF as fe,fG as ge,af as xe,q as S,ao as J,d as K,n as Q,B as $e}from"./index-
|
|
1
|
+
import{j as t,fD as ne,o as i,bf as se,M as v,a6 as re,u as X,e as Y,a as le,c9 as ae,l as P,aW as ce,F as de,T as w,a4 as pe,C as z,f8 as me,fE as ue,eG as he,fF as fe,fG as ge,af as xe,q as S,ao as J,d as K,n as Q,B as $e}from"./index-b-ZazAq5.js";import{n as o,b as E}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:ye}=v.getLocalizedStrings(),U={notePadding:new z(S[3],S[4]),noteGap:new z(S[0],6)},M=(e,n)=>`${e}.${n}`,be=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
row-gap: ${i.sp3};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as e,q as a}from"./index-
|
|
1
|
+
import{v as e,q as a}from"./index-b-ZazAq5.js";const r=a[5],o=59,i=a[5],l=e.standardRegular.lineHeightValue,n=1,s=1e3;export{l as A,i as E,n as I,s as L,o as a,r as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Q,e as v,a as Zt,M as B,c9 as Xt,j as t,aW as Qt,l as g,F as Kt,a4 as ei,o as i,T as we,gs as ti,C as R,hs as ii,v as Ne,m as oi,y as et,bR as tt,aj as it,dl as ot,bZ as st,jb as at,q as w,k as si,jc as ai,dj as ce,ae as ri,b as ni,h as rt,c as S,d as li,bg as z,cm as ue,fE as he,jd as pe,Y as nt,d5 as lt,dt as H,d3 as dt,fN as di,n as K,hG as ci,B as V,f1 as ui,a8 as ye,ap as fe,je as hi,bd as ct,jf as Ie,aR as pi}from"./index-
|
|
1
|
+
import{u as Q,e as v,a as Zt,M as B,c9 as Xt,j as t,aW as Qt,l as g,F as Kt,a4 as ei,o as i,T as we,gs as ti,C as R,hs as ii,v as Ne,m as oi,y as et,bR as tt,aj as it,dl as ot,bZ as st,jb as at,q as w,k as si,jc as ai,dj as ce,ae as ri,b as ni,h as rt,c as S,d as li,bg as z,cm as ue,fE as he,jd as pe,Y as nt,d5 as lt,dt as H,d3 as dt,fN as di,n as K,hG as ci,B as V,f1 as ui,a8 as ye,ap as fe,je as hi,bd as ct,jf as Ie,aR as pi}from"./index-b-ZazAq5.js";import{b as x,n as r,j as O}from"./vendor-rkTZJa59.js";import{k as fi}from"./SubTabSwitcher-baJGHUgJ-DvovvHUF.js";import{d as ut}from"./useLongPress-GCK2COYQ-BoJXFS3o.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-hyqVBWDA-ChVmChxH.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";function mi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),f=Q(),m=x.useCallback(b=>{d(b.id)},[d]),p=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(gi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${f.colors.grey3}`},onTabChange:m}),t.jsx(fi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:p})]})}const gi=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{OpExByVendorPage-DD8tCc8E-DObB3ZyW.js → OpExByVendorPage-DD8tCc8E-CwNf3ShD.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as H,hr as xe,M as B,u as q,y as be,j as t,_ as _e,bf as Se,hq as ke,aY as we,aW as ve,hs as Be,ht as je,o as u,a6 as Oe,m as $e,C as F,aj as le,E as ie,a8 as Pe,q as j,a$ as Te,bK as De,bL as Ne,bM as Ee,c as a,n as ce,bc as Ie,b7 as Me,aw as Ae,v as Z,av as Le,ab as Fe,b8 as Ve,ba as Re,l as ze}from"./index-
|
|
1
|
+
import{e as H,hr as xe,M as B,u as q,y as be,j as t,_ as _e,bf as Se,hq as ke,aY as we,aW as ve,hs as Be,ht as je,o as u,a6 as Oe,m as $e,C as F,aj as le,E as ie,a8 as Pe,q as j,a$ as Te,bK as De,bL as Ne,bM as Ee,c as a,n as ce,bc as Ie,b7 as Me,aw as Ae,v as Z,av as Le,ab as Fe,b8 as Ve,ba as Re,l as ze}from"./index-b-ZazAq5.js";import{b as x,n as m,f as We}from"./vendor-rkTZJa59.js";import{p as Ke,d as Ye,y as G,b as de,u as ee}from"./chartTypes-Cknnnhq_-DeXPyHuq.js";import{V as Ge}from"./toChartData-C6ap15NT-C4C_iiHg.js";import{m as V}from"./analyticsHelper-C37dCyKv-CGyvCbtY.js";import{p as He}from"./TimeRangeSwitcher-CnoZ9Rqp-B5iNAfYV.js";import{M as qe}from"./TimeframeSwitcherWithToggle-yLA5y4zJ-4o4duI3A.js";import{C as Je}from"./NoDataChart-Bk9eWo52-DcgFDiHH.js";import{d as Ue}from"./NoDataTable-DCQbtvPN-DodiAtKz.js";import{H as Qe,k as oe}from"./detailCommon-CKa5_aP2-yoaB_aFJ.js";import{n as R}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Xe,W as J}from"./CollapsableReportTable-ULd7PQST-zRaWsZKw.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-CElz2Cb0-yR23ijYO.js";import{d as re}from"./mapLoadingInProgressToTreeNode-DttwbPj7-ClOsgYHo.js";import{l as Ze}from"./mapSpacerToTreeNode-CeH4tptC-DDar-aaX.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-W5kHnuHI-BadD6oo8.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";import"./AccountRow-D01C0A0f-CckYNleY.js";const eo=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,oo=m.div`
|
|
4
4
|
flex: display;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as i,j as r}from"./index-
|
|
1
|
+
import{u as i,j as r}from"./index-b-ZazAq5.js";import{n}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const p=n.div`
|
|
2
2
|
display: ${({isOpen:o})=>o?"block":"none"};
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o,D as M,u as T,e as v,_ as A,aW as re,M as c,k as ie,m as ae,C as D,v as ce,o as s,E as le,a8 as de,c6 as ge,c7 as me,Z as pe,q as P,l as q,a$ as he,c8 as ue,a6 as fe,a7 as xe,ap as we}from"./index-
|
|
1
|
+
import{j as o,D as M,u as T,e as v,_ as A,aW as re,M as c,k as ie,m as ae,C as D,v as ce,o as s,E as le,a8 as de,c6 as ge,c7 as me,Z as pe,q as P,l as q,a$ as he,c8 as ue,a6 as fe,a7 as xe,ap as we}from"./index-b-ZazAq5.js";import{n as r,b as F}from"./vendor-rkTZJa59.js";import{R as Se}from"./NavBarWithPicker-DUaSGf4d-CMjrmt-1.js";import{m as je}from"./analyticsHelper-C37dCyKv-CGyvCbtY.js";import{M as $e}from"./TimeframeSwitcherWithToggle-yLA5y4zJ-4o4duI3A.js";import{R as Ce,a as Pe}from"./CollapsableReportTable-ULd7PQST-zRaWsZKw.js";import{M as E}from"./usp-line-BBd1wKwW-u-VMxix8.js";import{T as be,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-CKUACdvT-DnNr7s_7.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-TLHaVbTv-CwUi2UE6.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-W5kHnuHI-BadD6oo8.js";import"./AccountRow-D01C0A0f-CckYNleY.js";const Y="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ze=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eR as pe,M as le,a2 as Me,v as te,o as u,c as H,e as ue,j as i,bn as De,u as Re,cm as Ve,a8 as ae,C as oe,aS as Fe,bp as qe,n as ke,a4 as He,g as me,q as Ke,gl as Je,B as Ge,b as Ye}from"./index-
|
|
1
|
+
import{eR as pe,M as le,a2 as Me,v as te,o as u,c as H,e as ue,j as i,bn as De,u as Re,cm as Ve,a8 as ae,C as oe,aS as Fe,bp as qe,n as ke,a4 as He,g as me,q as Ke,gl as Je,B as Ge,b as Ye}from"./index-b-ZazAq5.js";import{f as l,b as O,n as y}from"./vendor-rkTZJa59.js";import{P as p}from"./mui-C42whWwM.js";import{O as Ze}from"./SetUpAccountSection-C1_QjMwF-D_Jc9DPP.js";function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(n){$e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function re(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(e){return typeof e}:re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function $e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ae(t,e){return Qe(t)||Xe(t,e)||et(t,e)||tt()}function Qe(t){if(Array.isArray(t))return t}function Xe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,c,m;try{for(r=r.call(t);!(a=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(o){s=!0,m=o}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw m}}return n}}function et(t,e){if(t){if(typeof t=="string")return he(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(t,e)}}function he(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=function(e,r,n){var a=!!n,s=l.useRef(n);l.useEffect(function(){s.current=n},[n]),l.useEffect(function(){if(!a||!e)return function(){};var c=function(){s.current&&s.current.apply(s,arguments)};return e.on(r,c),function(){e.off(r,c)}},[a,r,e,s])},se=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},K=function(e){return e!==null&&re(e)==="object"},rt=function(e){return K(e)&&typeof e.then=="function"},nt=function(e){return K(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},ve="[object Object]",at=function t(e,r){if(!K(e)||!K(r))return e===r;var n=Array.isArray(e),a=Array.isArray(r);if(n!==a)return!1;var s=Object.prototype.toString.call(e)===ve,c=Object.prototype.toString.call(r)===ve;if(s!==c)return!1;if(!s&&!n)return e===r;var m=Object.keys(e),o=Object.keys(r);if(m.length!==o.length)return!1;for(var h={},f=0;f<m.length;f+=1)h[m[f]]=!0;for(var x=0;x<o.length;x+=1)h[o[x]]=!0;var g=Object.keys(h);if(g.length!==m.length)return!1;var w=e,P=r,S=function($){return t(w[$],P[$])};return g.every(S)},Ie=function(e,r,n){return K(e)?Object.keys(e).reduce(function(a,s){var c=!K(r)||!at(e[s],r[s]);return n.includes(s)?(c&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),a):c?ge(ge({},a||{}),{},$e({},s,e[s])):a},null):null},Oe="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ye=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe;if(e===null||nt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe;if(rt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(a){return ye(a,r)})};var n=ye(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},st=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},ne=l.createContext(null);ne.displayName="ElementsContext";var Ue=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},ze=function(e){var r=e.stripe,n=e.options,a=e.children,s=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(n):null}}),m=Ae(c,2),o=m[0],h=m[1];l.useEffect(function(){var g=!0,w=function(S){h(function(j){return j.stripe?j:{stripe:S,elements:S.elements(n)}})};return s.tag==="async"&&!o.stripe?s.stripePromise.then(function(P){P&&g&&w(P)}):s.tag==="sync"&&!o.stripe&&w(s.stripe),function(){g=!1}},[s,o,n]);var f=se(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var x=se(n);return l.useEffect(function(){if(o.elements){var g=Ie(n,x,["clientSecret","fonts"]);g&&o.elements.update(g)}},[n,x,o.elements]),l.useEffect(function(){st(o.stripe)},[o.stripe]),l.createElement(ne.Provider,{value:o},a)};ze.propTypes={stripe:p.any,options:p.object};var it=function(e){var r=l.useContext(ne);return Ue(r,e)},ct=function(){var e=it("calls useElements()"),r=e.elements;return r};p.func.isRequired;var Te=l.createContext(null);Te.displayName="CustomCheckoutSdkContext";var lt=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},ut=l.createContext(null);ut.displayName="CustomCheckoutContext";p.any,p.shape({clientSecret:p.string.isRequired,elementsOptions:p.object}).isRequired;var ie=function(e){var r=l.useContext(Te),n=l.useContext(ne);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?lt(r,e):Ue(n,e)},dt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},C=function(e,r){var n="".concat(dt(e),"Element"),a=function(o){var h=o.id,f=o.className,x=o.options,g=x===void 0?{}:x,w=o.onBlur,P=o.onFocus,S=o.onReady,j=o.onChange,$=o.onEscape,D=o.onClick,V=o.onLoadError,F=o.onLoaderStart,B=o.onNetworksChange,A=o.onConfirm,J=o.onCancel,N=o.onShippingAddressChange,M=o.onShippingRateChange,U=ie("mounts <".concat(n,">")),T="elements"in U?U.elements:null,E="customCheckoutSdk"in U?U.customCheckoutSdk:null,z=l.useState(null),_=Ae(z,2),v=_[0],W=_[1],L=l.useRef(null),q=l.useRef(null);R(v,"blur",w),R(v,"focus",P),R(v,"escape",$),R(v,"click",D),R(v,"loaderror",V),R(v,"loaderstart",F),R(v,"networkschange",B),R(v,"confirm",A),R(v,"cancel",J),R(v,"shippingaddresschange",N),R(v,"shippingratechange",M),R(v,"change",j);var G;S&&(e==="expressCheckout"?G=S:G=function(){S(v)}),R(v,"ready",G),l.useLayoutEffect(function(){if(L.current===null&&q.current!==null&&(T||E)){var I=null;E?I=E.createElement(e,g):T&&(I=T.create(e,g)),L.current=I,W(I),I&&I.mount(q.current)}},[T,E,g]);var de=se(g);return l.useEffect(function(){if(L.current){var I=Ie(g,de,["paymentRequest"]);I&&L.current.update(I)}},[g,de]),l.useLayoutEffect(function(){return function(){if(L.current&&typeof L.current.destroy=="function")try{L.current.destroy(),L.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:q})},s=function(o){ie("mounts <".concat(n,">"));var h=o.id,f=o.className;return l.createElement("div",{id:h,className:f})},c=r?s:a;return c.propTypes={id:p.string,className:p.string,onChange:p.func,onBlur:p.func,onFocus:p.func,onReady:p.func,onEscape:p.func,onClick:p.func,onLoadError:p.func,onLoaderStart:p.func,onNetworksChange:p.func,onConfirm:p.func,onCancel:p.func,onShippingAddressChange:p.func,onShippingRateChange:p.func,options:p.object},c.displayName=n,c.__elementType=e,c},b=typeof window>"u",pt=l.createContext(null);pt.displayName="EmbeddedCheckoutProviderContext";var mt=function(){var e=ie("calls useStripe()"),r=e.stripe;return r};C("auBankAccount",b);C("card",b);var Se=C("cardNumber",b),Ce=C("cardExpiry",b),be=C("cardCvc",b);C("fpxBank",b);C("iban",b);C("idealBank",b);C("p24Bank",b);C("epsBank",b);C("payment",b);C("expressCheckout",b);C("paymentRequestButton",b);C("linkAuthentication",b);C("address",b);C("shippingAddress",b);C("paymentMethodMessaging",b);C("affirmMessage",b);C("afterpayClearpayMessage",b);var _e="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var gt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(_e,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},xe=function(e){var r="",n=document.createElement("script");n.src="".concat(_e).concat(r);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},Y=null,X=null,ee=null,vt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},yt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return Y!==null?Y:(Y=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var a=gt();if(!(a&&e)){if(!a)a=xe(e);else if(a&&ee!==null&&X!==null){var s;a.removeEventListener("load",ee),a.removeEventListener("error",X),(s=a.parentNode)===null||s===void 0||s.removeChild(a),a=xe(e)}}ee=yt(r,n),X=vt(n),a.addEventListener("load",ee),a.addEventListener("error",X)}catch(c){n(c);return}}),Y.catch(function(r){return Y=null,Promise.reject(r)}))},Ct=function(e,r,n){if(e===null)return null;var a=e.apply(void 0,r);return ht(a,n),a},Z,We=!1,Be=function(){return Z||(Z=St(null).catch(function(e){return Z=null,Promise.reject(e)}),Z)};Promise.resolve().then(function(){return Be()}).catch(function(t){We||console.warn(t)});var bt=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];We=!0;var a=Date.now();return Be().then(function(s){return Ct(s,r,a)})};const xt={containerHeight:new oe(656,720)},Pt=y.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as $e,e as I,M as y,j as t,_ as a,aW as le,bf as Ne,o as s,bQ as De,bR as Oe,m as E,a6 as Y,bS as we,k as Le,v as be,bT as _e,a2 as Ae,bU as Ve,bV as Me,bW as We,bX as Be,aj as He,E as H,bY as Ue,C as $,bZ as Ee,b_ as je,q as b,l as A,b$ as ee,bJ as N,a as Fe,F as Ze,c0 as Ke,c1 as qe,S as Je,d as D,c2 as Qe,n as O,B as te,c as V,c3 as Xe,bN as Se,ap as ie,c4 as ke,bd as Ge,c5 as Ye}from"./index-
|
|
1
|
+
import{u as $e,e as I,M as y,j as t,_ as a,aW as le,bf as Ne,o as s,bQ as De,bR as Oe,m as E,a6 as Y,bS as we,k as Le,v as be,bT as _e,a2 as Ae,bU as Ve,bV as Me,bW as We,bX as Be,aj as He,E as H,bY as Ue,C as $,bZ as Ee,b_ as je,q as b,l as A,b$ as ee,bJ as N,a as Fe,F as Ze,c0 as Ke,c1 as qe,S as Je,d as D,c2 as Qe,n as O,B as te,c as V,c3 as Xe,bN as Se,ap as ie,c4 as ke,bd as Ge,c5 as Ye}from"./index-b-ZazAq5.js";import{f as ce,b as v,n as i}from"./vendor-rkTZJa59.js";import{R as Ie}from"./Menu-Czq7AdhP-DuOfxCaz.js";import{T as Ce}from"./RoleWithToolTip-Dm4yIm31-B7MerbZ_.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.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)}],U=[{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(Je(d==="off"?S:U));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(Qe,{width:12,height:12})})]}),t.jsx(nt,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(lt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const it=ce.memo(tt),st=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as q,E as S,j as i,bA as U,M as Y,_ as H,C as u,a4 as J,o as n,a3 as _,b as K,h as Q,n as X,q as l,v as Z,am as ee,B as T,c as v,d as ie,bN as te}from"./index-
|
|
1
|
+
import{e as q,E as S,j as i,bA as U,M as Y,_ as H,C as u,a4 as J,o as n,a3 as _,b as K,h as Q,n as X,q as l,v as Z,am as ee,B as T,c as v,d as ie,bN as te}from"./index-b-ZazAq5.js";import{b as k,n as t}from"./vendor-rkTZJa59.js";import{V as ne}from"./PortfolioDetails-Cpv5bi4_-BHPnb_oU.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./treasuryColorHelper-DmVCoHv9-BvBjIWNj.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=Y.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 K("h6Regular","h5Regular")},De=({onBackClick:e,onNextClick:g,onUpdateFundAllocation:h,treasurySetupView:W,isReadOnly:c,isEditMode:p,isOnSetup:$=!1})=>{const r=q(),[M,D]=k.useState(!1),{fundsData:N,fundAllocationOptions:s,fundAllocationLocalData:d,currentAllocation:w,portfolioAllocationUpdateStatus:F}=W;k.useEffect(()=>{if(p&&w!==null){const o=!S(d.allocation,w);D(o)}},[p,w,d]);const y=o=>{const f=s.find(V=>V.optionIndex===o);f&&h(f)},b=()=>{y(s.findIndex(o=>o.riskScore===0||o.riskLevel==="Conservative"))},G=()=>{let o;w!=null&&(o=s.find(f=>S(f.allocation,w))),o!=null?h(o):b()},j=()=>{p&&G(),e()};return i.jsxs(se,{children:[i.jsxs(de,{windowSize:r,children:[i.jsx(ae,{windowSize:r,children:i.jsx(U,{title:m.navBar.back,enterTouchDelay:600,placement:"bottom",children:i.jsx(ce,{"data-testid":H("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(O,{children:m.strings.slash}),i.jsx(C,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Re,{children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(O,{children:m.strings.slash}),i.jsx(C,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(ze,{windowSize:r,children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]})]})]})})]})]}),c?null:i.jsx(J,{style:{zIndex:4,paddingTop:n.sp2,paddingBottom:n.sp2},showCancel:!0,cancelBtn:{label:p?m.cancel:m.navBar.back,onClick:j},primaryBtn:{label:p?m.confirm:m.next,onClick:g,isLoading:p&&F.fetchState==="In-Progress",isDisabled:p&&!M}})]})};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%;
|
package/dist/assets/{PortfolioDetails-Cpv5bi4_-C3K7fsrr.js → PortfolioDetails-Cpv5bi4_-BHPnb_oU.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,M as X,o as n,iz as G,n as E,d5 as H,u as K,e as Q,a0 as L,C as O,bA as f,c as A,bN as _,d as N,ds as Z,af as ee,am as ie,b5 as se,bd as ne,B as le,d7 as oe,q as te}from"./index-
|
|
1
|
+
import{j as e,M as X,o as n,iz as G,n as E,d5 as H,u as K,e as Q,a0 as L,C as O,bA as f,c as A,bN as _,d as N,ds as Z,af as ee,am as ie,b5 as se,bd as ne,B as le,d7 as oe,q as te}from"./index-b-ZazAq5.js";import{n as s,b as re}from"./vendor-rkTZJa59.js";import{l as ae}from"./treasuryColorHelper-DmVCoHv9-BvBjIWNj.js";const{common:r,spendManagement:{treasury:o},dateFormat:de}=X.getLocalizedStrings(),w={portfolioYieldMarginTop:new O(-4,te[0]),sliderWidth:new O(143,177)},Oe=({isInReview:i,isSetup:l,fundDetails:m,allocation:d,amount:h,fundAllocations:v,page:j})=>{const a=ce(m);return e.jsxs(he,{children:[!l&&e.jsx(me,{style:{alignSelf:"flex-start",padding:`${n.sp2} ${n.sp0}`},children:`${o.portfolioAllocation.title}`}),a.map(($,x)=>{const I=v?.find(g=>g.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:l,isLast:x===a.length-1,amount:h,currentAllocationAmount:I,page:j},m[x]?.fundCode||x)})]})},ce=i=>i.map(l=>[{label:o.promoPage.liquidity,value:l.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:G(l.fundSize,l.currencyCode)},{label:o.promoPage.maturity,value:`${l.maturity} ${r.timeStrings.days}`},{label:o.promoPage.expenseRatio,value:`${l.expenseRatio}${o.promoPage.expenseRatioSuffix}`},{label:o.promoPage.riskRating,value:l.riskRating||r.strings.hyphen},{label:o.promoPage.composition,value:Array.isArray(l.compositions)&&l.compositions.length>0?`${l.compositions[0].investedIn} ${l.compositions[0].percentage}${r.strings.percentage}`:r.strings.hyphen,tag:Array.isArray(l.compositions)&&l.compositions.length>1?`+${l.compositions.length-1}`:void 0,compositions:l.compositions??[]}]),pe=({portfolio:i,fund:l,fundIndex:m,allocationPercentage:d,isInReview:h,isSetup:v,isLast:j,amount:a,currentAllocationAmount:$,page:x})=>{const I=H().analytics,g=K(),t=Q(),b=$?$.amount:a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,J]=re.useState(!1),u=ae(m,g),S=()=>{p||I.trackTreasuryProspectusClick(l.fundName,l.fundCode,x),J(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{children:e.jsxs(ue,{windowSize:t,children:[e.jsxs(ge,{windowSize:t,children:[e.jsxs(fe,{windowSize:t,children:[e.jsxs(ye,{isInReview:h,windowSize:t,children:[e.jsx(we,{children:l.fundCode}),e.jsx(ve,{color:u.fundNameColor,children:`${l.fundCompanyName} ${l.fundName}`})]}),t!=="small"&&e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(k,{}):e.jsx(P,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:h?e.jsxs(q,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(F,{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(q,{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 ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,style:{marginRight:n.sp3},children:[l.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(ke,{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 ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}),e.jsxs(z,{onClick:S,style:{marginBottom:n.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(k,{}):e.jsx(P,{})]})]}):h?e.jsxs(Ye,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(F,{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:`${n.sp2} ${n.sp0}`,...j?{marginBottom:n.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(k,{}):e.jsx(P,{})]})]}),e.jsxs(V,{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 ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}):e.jsxs(Ae,{children:[e.jsxs(U,{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(k,{}):e.jsx(P,{})]})]}),e.jsxs(V,{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 ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(Se,{children:[e.jsx(T,{children:l.description}),e.jsx(be,{style:{marginLeft:n.sp3},children:i.map(c=>e.jsxs(Ce,{windowSize:t,children:[e.jsx(T,{children:r.strings.dividerDot}),e.jsx(T,{style:{minWidth:"140px"},children:c.label}),e.jsxs(T,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:g.colors.primary,borderBottom:`1px solid ${g.colors.grey3}`,width:"100%",padding:`${n.sp1} ${n.sp0}`,display:"flex",flexDirection:"row",alignItems:"center",gap:n.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 ${n.sp3}`},children:e.jsx(De,{children:c.tag})})]})]},c.label))}),e.jsxs(Pe,{onClick:()=>window.open(l.url,"_blank"),children:[e.jsx(je,{children:`${o.promoPage.asOf} ${l.asOfDate.format(de.visual.MMMDCommaYYYYformat)}`}),e.jsx(ze,{})]})]}),(!j||v)&&e.jsx(Te,{style:{width:"100%",marginBottom:n.sp3}})]})},xe=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
gap: ${n.sp2};
|
package/dist/assets/{ProductsCarousel-WDd37Mjn-NLHTDL58.js → ProductsCarousel-WDd37Mjn-BH0jA9xy.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M,j as t,d5 as N,o as l,bw as B,af as U,d6 as q,s as G,n as _,d7 as H,c as y}from"./index-
|
|
1
|
+
import{M,j as t,d5 as N,o as l,bw as B,af as U,d6 as q,s as G,n as _,d7 as H,c as y}from"./index-b-ZazAq5.js";import{b as w,n as i}from"./vendor-rkTZJa59.js";const u=M.getLocalizedStrings(),k={large:{labelComp:q,title:G,subtitle:_,seeMoreLink:_}},J={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=J.large,Y=i.div`
|
|
2
2
|
width: ${e=>e.scale*o.width}px;
|
|
3
3
|
height: ${e=>e.scale*o.height}px;
|
|
4
4
|
overflow: hidden;
|
package/dist/assets/{PromoBaseCards-BaFkKGkm-Bw-1QrdI.js → PromoBaseCards-BaFkKGkm-Cz7eAULC.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as c,j as r,db as b,dc as z,dd as L,aT as v,C as a,o as e,c as d,b as f,q as l}from"./index-
|
|
1
|
+
import{e as c,j as r,db as b,dc as z,dd as L,aT as v,C as a,o as e,c as d,b as f,q as l}from"./index-b-ZazAq5.js";import{j as i,n as p,k as m}from"./vendor-rkTZJa59.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:x,style:$})=>{const n=c();return r.jsxs(B,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,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(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,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(k,{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,{})})]})},C=m`
|
|
2
2
|
0%{
|
|
3
3
|
transform: rotate(12.4deg);
|
|
4
4
|
translate: ${e.sp0} ${e.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as j,M as t,j as n,bn as w,k as l,C as s,o as i,s as P,n as y,O as b,aR as f,eK as v,q as a}from"./index-
|
|
1
|
+
import{e as j,M as t,j as n,bn as w,k as l,C as s,o as i,s as P,n as y,O as b,aR as f,eK as v,q as a}from"./index-b-ZazAq5.js";import{n as o}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.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`
|
|
2
2
|
border-radius: inherit;
|
|
3
3
|
max-width: 520px;
|
|
4
4
|
text-align: center;
|
package/dist/assets/{QBOSetupSection-DSrxcrXI-CnwGvTKQ.js → QBOSetupSection-DSrxcrXI-CkvMDxrM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as O,M as u,j as i,k,o,C as a,c as d,f3 as T,b as W,O as B,aR as E,eK as M,f1 as q,a8 as w,d as $,q as r}from"./index-
|
|
1
|
+
import{e as O,M as u,j as i,k,o,C as a,c as d,f3 as T,b as W,O as B,aR as E,eK as M,f1 as q,a8 as w,d as $,q as r}from"./index-b-ZazAq5.js";import{n as s}from"./vendor-rkTZJa59.js";import A from"./QBOConnectionDialog-l3ThoJCI-ChlbOfD6.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 W("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}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:z,sucessText:b,button:v,errorText:C,requiredText:P}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(_,{children:l?i.jsx(J,{}):i.jsx(U,{})}):null,i.jsx(N,{windowSize:n,children:z})]}),i.jsxs(Q,{windowSize:n,children:[i.jsxs(R,{windowSize:n,children:[i.jsxs(F,{children:[i.jsx(K,{}),i.jsx(L,{windowSize:n}),i.jsx(Z,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(D,{children:b}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null]}),i.jsx(A,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(q,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},H=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as V,q as U,u as M,e as W,M as D,a as G,a2 as X,j as s,S as H,c9 as J,aW as K,F as Q,a4 as Y,o as f}from"./index-
|
|
1
|
+
import{C as V,q as U,u as M,e as W,M as D,a as G,a2 as X,j as s,S as H,c9 as J,aW as K,F as Q,a4 as Y,o as f}from"./index-b-ZazAq5.js";import{b as L,n as h}from"./vendor-rkTZJa59.js";import{b as Z,f as ee,l as $,o as j}from"./FollowStepsSection-DRDFxA8H-CjpGRF9d.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const B="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new V(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 F=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:_,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 q=g.handleSubmit(()=>{N()}),z=async(i,p)=>{b(p)};return L.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const O=H(p);J(()=>z(R,O))}});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:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(Q,{...g,children:s.jsx("form",{id:C(B),onSubmit:q,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:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C(B),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),j(e.allAttributes),j(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:$},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as D,e as B,M as b,j as t,aW as H,m as E,_ as S,o,C as r,n as L,a0 as z,bU as G,bW as U,bX as q,cw as F,q as l,ao as V,b as P,an as _,c as j,ct as J,aP as O,v as Q}from"./index-
|
|
1
|
+
import{u as D,e as B,M as b,j as t,aW as H,m as E,_ as S,o,C as r,n as L,a0 as z,bU as G,bW as U,bX as q,cw as F,q as l,ao as V,b as P,an as _,c as j,ct as J,aP as O,v as Q}from"./index-b-ZazAq5.js";import{n as i,b as X}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Y=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=X.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return t.jsxs(Z,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(ae,{children:[t.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),t.jsxs(ee,{children:[t.jsx(k,{}),t.jsx(te,{}),t.jsx(k,{})]}),c.max==null?t.jsx(ce,{}):t.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e?t.jsx(pe,{onClick:$}):null,t.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),t.jsx(oe,{windowSize:n,children:t.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,N)=>t.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(le,{children:a.requireText}):t.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(R,{children:[t.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>t.jsxs(R,{children:[t.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?t.jsx(G,{titleComponent:t.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Z=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as At,d5 as Mt,e as Rt,u as Pt,bI as Bt,C as m,M as Ze,l as ie,fN as Nt,fP as Lt,fQ as _t,j as t,bU as ze,bW as Ae,bX as Me,_ as y,aW as Re,aK as Ot,dt as Wt,fR as Et,g0 as Pe,o as a,fS as Be,cV as b,cX as w,fV as x,a0 as Ne,cU as Le,v as F,fX as _e,a4 as Ft,p as Kt,fY as Ut,fZ as ae,aT as Vt,f_ as Yt,a3 as Gt,b as Ht,h as qt,n as et,ao as tt,c as K,B as Jt,bp as Qt,d as Xt,gf as Zt,gb as ei,q as c,bN as ti,cr as ii}from"./index-Cnh9fv8f.js";import{b as p,n as r}from"./vendor-rkTZJa59.js";import{_ as ai}from"./liveblocks-CP09Cz-7.js";import ri from"./InvoiceUploadSection-Cx6pXJiN-CgRQkeV5.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";import"./AttachmentView-C2kWA5X5-XqMuBHHe.js";import"./uploadReceipts-Cl7e8jci-C-56lzXC.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[j,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=si(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Se()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(_t)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(_i,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
1
|
+
import{Y as At,d5 as Mt,e as Rt,u as Pt,bI as Bt,C as m,M as Ze,l as ie,fN as Nt,fP as Lt,fQ as _t,j as t,bU as ze,bW as Ae,bX as Me,_ as y,aW as Re,aK as Ot,dt as Wt,fR as Et,g0 as Pe,o as a,fS as Be,cV as b,cX as w,fV as x,a0 as Ne,cU as Le,v as F,fX as _e,a4 as Ft,p as Kt,fY as Ut,fZ as ae,aT as Vt,f_ as Yt,a3 as Gt,b as Ht,h as qt,n as et,ao as tt,c as K,B as Jt,bp as Qt,d as Xt,gf as Zt,gb as ei,q as c,bN as ti,cr as ii}from"./index-b-ZazAq5.js";import{b as p,n as r}from"./vendor-rkTZJa59.js";import{_ as ai}from"./liveblocks-CP09Cz-7.js";import ri from"./InvoiceUploadSection-Cx6pXJiN-CVGkefQN.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";import"./AttachmentView-C2kWA5X5-BbtHpCnk.js";import"./uploadReceipts-Cl7e8jci-CgmtP8oE.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[j,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=si(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Se()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(_t)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(_i,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as me,u as z,e as v,a2 as de,l as D,M as N,j as e,_ as c,aW as pe,k as g,g as m,o as r,s as xe,c6 as he,a6 as q,B as ue,C as ge,c as j,c8 as we,a7 as je,ap as be,q as fe}from"./index-
|
|
1
|
+
import{Y as me,u as z,e as v,a2 as de,l as D,M as N,j as e,_ as c,aW as pe,k as g,g as m,o as r,s as xe,c6 as he,a6 as q,B as ue,C as ge,c as j,c8 as we,a7 as je,ap as be,q as fe}from"./index-b-ZazAq5.js";import{b as f,n as t,k as $e}from"./vendor-rkTZJa59.js";import{x as ke}from"./MeetingCalenderPopup-B_KRQLwc-Dk4sRI3u.js";import{f as ye,C as V}from"./play-icon-XWt7iQeF-BXe3XEM9.js";import{M as C}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Y="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",G="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(fe[5],44)},ze=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ee,e as Ve,a2 as q,a as Ne,c9 as Ge,M as Te,l as Je,a8 as be,j as t,cO as Ze,c as J,C as r,aW as Ke,m as Xe,F as Ye,dO as Qe,aS as et,dE as tt,a4 as it,o as a,q as n,bN as nt,cm as ot,cu as at,f1 as ve,f2 as ke,fM as lt,k as rt,_ as $e,b as Pe,bd as st,d as ct,aP as dt}from"./index-
|
|
1
|
+
import{u as Ee,e as Ve,a2 as q,a as Ne,c9 as Ge,M as Te,l as Je,a8 as be,j as t,cO as Ze,c as J,C as r,aW as Ke,m as Xe,F as Ye,dO as Qe,aS as et,dE as tt,a4 as it,o as a,q as n,bN as nt,cm as ot,cu as at,f1 as ve,f2 as ke,fM as lt,k as rt,_ as $e,b as Pe,bd as st,d as ct,aP as dt}from"./index-b-ZazAq5.js";import{b as o,n as i}from"./vendor-rkTZJa59.js";import{D as ut}from"./HelpButton-D9ONg6cm-Be59SjbC.js";import{q as je}from"./SetUpDefaultSection-B-ZEHQUb-wT4VB7Bz.js";import{f as mt}from"./SpendMgmtSetupAccountSection-DFyUBsg3-CBY1E6Ip.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Y64l7Rho-CmfSD-Zu.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-B_KRQLwc-Dk4sRI3u.js";import"./ChargeCardUtils-BcwLwgz7-DtCcFgNi.js";import"./CreditCardPaymentPlgSection-8NQI5gcx-CYgVnwi-.js";import"./ChaseOverlay-ClcKUdpT-DsBdB3dn.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:X}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(K,E),{localData:c,updateStatus:R,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,V]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{f||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=Y,ne=S===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Lt,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),W(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|