@zeniai/web-cockpit-ui 1.13.92-prod → 1.13.93-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-DSxVnTLA-DQ5hyRPZ.js → ACHDetailsPage-B7Osqlyb-BwlnvX_d.js} +1 -1
- package/dist/assets/{AIPerformancePage-DpJmdFIS-v3w0n1_t.js → AIPerformancePage-CEGqk2vj-DYer4sK1.js} +1 -1
- package/dist/assets/{AccountInfoPage-UxE6vaxM-BKC2rl6V.js → AccountInfoPage-Dsi_xY1U-B-sH9O2B.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-B8luWP8D-D_9Ih9aO.js → AccountInfoPageContent-CmRpq4eF-B2DwYw45.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CRuSLa04-D-K1ZLZ6.js → AccountReconDetailsDrawerPage-Bwc-VZmp-CnpXttfi.js} +1 -1
- package/dist/assets/{AccountRow-DVnBiB7_-J44FakMX.js → AccountRow-DMeCdEPJ-0Td7rdjz.js} +14 -14
- package/dist/assets/{AccountsPromoCardStack-oPvi6hmo-OA0s77-O.js → AccountsPromoCardStack-NYQHh0uE-De_Ps0gr.js} +13 -13
- package/dist/assets/{AddAddressForCardDrawer-Bl8FShie-i1WSnUQT.js → AddAddressForCardDrawer-3WPrDfNL-BmoU8xMj.js} +1 -1
- package/dist/assets/{AddToWalletPage-BykgUTfa-BDdyLcOr.js → AddToWalletPage-IjvBXyuu-LqJuRvIx.js} +18 -18
- package/dist/assets/{AgingReportsPage-CtpuS77Y-DtZ2PXub.js → AgingReportsPage-CIJTKbrN-CVdoyKAO.js} +5 -5
- package/dist/assets/{AllUserItems-zqRosy03-Cs4csIlw.js → AllUserItems-BuX43aPo-H0s42hTQ.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-B4dHhJE1-DD149xB0.js → ApAgingDetailPage-02ejdrQy-CkSV3Gpj.js} +2 -2
- package/dist/assets/{AppBasePage-ntAldChd-CqmvMW4d.js → AppBasePage-CC3bbnnu-Ciqf55R8.js} +2 -2
- package/dist/assets/{AppDrawerContent-LRG0OW3a-D-Uu_dh-.js → AppDrawerContent-B_EAPC9w-BdR_mtmP.js} +5 -5
- package/dist/assets/ApprovalRulesSettingsPage-1AQm08qF-1bvo_sOv.js +47 -0
- package/dist/assets/{ArAgingChart-BmfMCB8_-DmvBDcyM.js → ArAgingChart-UnY648RV-B8ISkKOi.js} +6 -6
- package/dist/assets/{ArAgingDetailPage-C2lhYsGV-C5rZDRGB.js → ArAgingDetailPage-CMUpR-2N-CqTh98Ou.js} +3 -3
- package/dist/assets/{AttachmentView-CQlsMYN3-DzTpPq3-.js → AttachmentView-sbbFtu9R-wkkd2tSH.js} +1 -1
- package/dist/assets/{BankAccountSection-D1tQzNSO-C_sKIdwB.js → BankAccountSection-BJPkV-qV-DnIozyCI.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Dj_S6brX-C9ELW6aN.js → BankAccountWarningSection-D9R1VhzE-GAcwzATB.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-UQAJXShM-Qhq0Pgu1.js → BankConnectionsSettingsPage-BG99PtV_-CvP1ZQFj.js} +1 -1
- package/dist/assets/{BillDetailPage-BOy1MkMT-DxTJJg4k.js → BillDetailPage-C_JDjRL0-Kxjam1W7.js} +6 -6
- package/dist/assets/{BillPayApprovalRuleDetailPage-C7c04fyW-DVLpyOTC.js → BillPayApprovalRuleDetailPage-B_XMuvzZ-CuOSZOiJ.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-D7vn36vA-CMpZz5F0.js → BillPayApprovalRulesPage-CyZjNIsQ-DvR9HK7c.js} +1 -1
- package/dist/assets/{BillPayPromoPage-VCQ0v0Ko-xduBQZLD.js → BillPayPromoPage-ByDsqYfw-Bz6xfanS.js} +3 -3
- package/dist/assets/{BillPaySetUpPage-MD1PbTMB-C2K6g1vr.js → BillPaySetUpPage-yTO-xwRJ-D5LOIl5a.js} +1 -1
- package/dist/assets/{BillingSettingsPage-B0U9RKLC-xDKZksR_.js → BillingSettingsPage-BIAy1QHr-CdxSnuoN.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-CStmvhgL-Dbr4Aj-D.js → BillsBulkReviewDrawerPage-Cw1XCs0q-BPMOI-f-.js} +1 -1
- package/dist/assets/{BoxItem-D3v5T6bP-BOLCnSeA.js → BoxItem-UCX7eqiN-Bx4T9Ckg.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BIba2-zs-DYcAve60.js → BusinessVerificationPage-CSsout2C-D0_Wr4yR.js} +3 -3
- package/dist/assets/{CardNumberSubText-DoWj5vAy-UIXS_891.js → CardNumberSubText-DuTv0ip1-BQ2cCq6Y.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CPz0J2HA-6i9rTXwB.js → CashbackDetailPage-KdHf-_ZF-DMwQoPE0.js} +9 -9
- package/dist/assets/{ChargeCardDetailPage-DxE5h1S5-DoqsPVXx.js → ChargeCardDetailPage-DYGcQs0M-D9cSv6UR.js} +1 -1
- package/dist/assets/{ChargeCardListPage-fXayrykw-D_Av_aTf.js → ChargeCardListPage-CNrRrNbd-BjkSAo-I.js} +1 -1
- package/dist/assets/{ChargeCardListTable-C-WxFg6W-DaGBsMkN.js → ChargeCardListTable-B1a9-RYl-DFaeigKK.js} +103 -103
- package/dist/assets/ChargeCardPromoPage-DZ1f8Sus-BW8ozxyr.js +175 -0
- package/dist/assets/{ChargeCardSetupPage-ByLkUH5I-CkMXps05.js → ChargeCardSetupPage-DOrs_Bw8-DgkoLihJ.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Dsv5AXrZ-DSUPLibI.js → ChargeCardStatementsPage-xvq2HeEr-DOI6TXvC.js} +1 -1
- package/dist/assets/{ChargeCardUtils-CVC43_6w-CF1lXmY5.js → ChargeCardUtils-Dt303NN_-05QPLa2p.js} +1 -1
- package/dist/assets/{ChaseOverlay-CHWBgNa9-BopXJjvt.js → ChaseOverlay-BK2ISNjj-S6c-qliM.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DySu5_BH-C-eiJPK5.js → CheckDepositDrawerPage-CbsRUWnx-BK3WXMqm.js} +1 -1
- package/dist/assets/{CollapsableReportTable-ZObwzBbY-BysjoVFa.js → CollapsableReportTable-D5D0ufUn-Bzt15FNd.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DVG0lvX--DVsfgUwx.js → CompanyOfficerDetailsSection-C7fuDGQk-IsFgAXuq.js} +6 -6
- package/dist/assets/{CompanyPassportCard-DBZRV0g0-BbdPQsC4.js → CompanyPassportCard-DwUqLcAr-DSkb28QS.js} +4 -4
- package/dist/assets/{CompanyPassportPage-BoaNol0L-BoQuDw9B.js → CompanyPassportPage-ClToBIAw-kZszHSwA.js} +10 -10
- package/dist/assets/{CompleteProfile-nkRKLJTF-Criq8Ljm.js → CompleteProfile-CLDWG3QK-CfBVYMEP.js} +1 -1
- package/dist/assets/{ConfettiBurst-BYoGZ66F-BF6awnnE.js → ConfettiBurst-DoZB9Us7-CMmPQCFc.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C1Yx8t4M-Cm2ZBJu1.js → CreateOrEditVendorPage-B837xw8A-BAYCbcGJ.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-DlnR16jr-B4-3qddP.js → CreditCardPaymentDrawerPage-zGaAOnnB-BsFRJBm4.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CZ2vyMiF-Dv-Vc4T9.js → CreditCardPaymentPlgSection-BLbZFCcL-Bqc-C6eO.js} +1 -1
- package/dist/assets/{CurrencySelectField-vH1oB0K8-wHe9UTtT.js → CurrencySelectField-DS3dOR3F-DalqX_lS.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-rpZmgNZo-yoY6ZZPd.js → CustomerOnboardingActivationPage-WWVaQenb-B8ztly-z.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-BI9KTD4O.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CFIeHxxw-Ch_NCmop.js → CustomerOnboardingDetailPageSkeleton-BSXKMQ77-MLxx67vI.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-BueMiyFl-Be70Dm6Q.js → CustomerOnboardingNoStepsPage-Dd5kCuRE-BcQg4Ohl.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-CmHXtB9v-N2UU7_FI.js → CustomerOnboardingPage-CGJpD875-Dopxs2Zj.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-I9pftf_j-Cq5FoNJf.js → CustomerOnboardingProductSuitePage-BFmVLk0l-Dqe6wu_O.js} +3 -3
- package/dist/assets/{Dashboard-DcfkiicK-Cm9EkmBL.js → Dashboard-BLIK_ZsD-D6wuOJAN.js} +1 -1
- package/dist/assets/{DashboardReportPage-B7J8yZR6-mwifnpEI.js → DashboardReportPage-BbYtKYEH-pc8ejgXI.js} +8 -8
- package/dist/assets/{DepositAccTransactionItem-CP_2AL3M-BUfk_EHJ.js → DepositAccTransactionItem-BMXQpKVB-DaF1MUuy.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-C4o1y1mJ-BCGYl-3q.js → DepositAccTransactionListPage-bwEdSihi-CXBTlKtY.js} +2 -2
- package/dist/assets/{DocumentSecurityBanner-C5w0d_S8-7kR46baw.js → DocumentSecurityBanner-DV9HE3MK-LQKK6f7V.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-t0Ebo518-DcWosEiy.js → DomesticWireDetailsPage-OI-gqVNE-BqvWfcoc.js} +1 -1
- package/dist/assets/{DownloadOverlay-CPW9ebxu-CBIAqpEI.js → DownloadOverlay-De5uIGOt-g0Egf70Z.js} +1 -1
- package/dist/assets/{DrawerPage-Xc2rQipJ-vAGShlns.js → DrawerPage-n421ewDm-CnkmETxv.js} +1 -1
- package/dist/assets/{EditPeoplePage-CF5UleI0-IR4jULIP.js → EditPeoplePage-sO1qN6Uw-bGTiOwCj.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DGCkOykv-CxbUxJWC.js → EditReimbursementDetailPage-D5iKVGl3--EFA7JxG.js} +1 -1
- package/dist/assets/{EntityDetailPage-BykQZo8S-BxO8SQOK.js → EntityDetailPage-CDk-oyYB-dhBDHyNo.js} +2 -2
- package/dist/assets/{EntitySummarySection-Dw4PBcg_-Bj_myq1U.js → EntitySummarySection-C4cC9rOJ-D8GGYrtb.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BwAaZVq3-Dh0_-ULP.js → ExpenseAutomationOverviewPage-BojhuW5i-BvXr37wt.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Cqiyk-AY-2jDbqfUl.js → ExpenseAutomationPage-D0BViJ7J-CWRMA15W.js} +44 -44
- package/dist/assets/{ExpressPayPage-D0lCczvw-BKP2pyII.js → ExpressPayPage-DdgtFYep-CUOKOoiC.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-CxZIUB8l-DOVVe0bn.js → FeaturePreviewPage-CW0YmOgl-bNGEnD-g.js} +1 -1
- package/dist/assets/{FollowStepsSection-CILr1_vc-CyBQiJEA.js → FollowStepsSection-BfnTsu_D-DwG4wG8g.js} +7 -7
- package/dist/assets/{GlobalReviewListPage-DL6H7PZG-C2ENZA8V.js → GlobalReviewListPage-C0U7Y6dI-BkEZ_PU4.js} +1 -1
- package/dist/assets/{HelpButton-CkSfhBfN-l0ZmaZgI.js → HelpButton-DXFYhUL5-Co36EHOd.js} +1 -1
- package/dist/assets/{InformationCardStack-i76c5dym-B2hRo2sD.js → InformationCardStack-6BD3n76T-CKu_A2Jh.js} +2 -2
- package/dist/assets/{InsightsCardStack-wcWhovKK-D5i-CS8Q.js → InsightsCardStack-CwxJP-ic-nmTxa9wo.js} +3 -3
- package/dist/assets/{InsightsSection-CCzgI0uK-YzyDaTgw.js → InsightsSection-DYyHpcUE-N_KvwWiO.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-B2CDE2Xd-DdpGmyZ0.js → IntegrationsSettingsPage-ZkvKZqwD-BFhl6nEA.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DNT75nXv-DPS5Vbqb.js → InternationalWireSwiftDetailsPage-D3nyRM06-CLJCmyag.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BDxujQK--DSmITxMC.js → InternationalWireVerificationPage-BOdAP6dN-Bwjg3gOc.js} +1 -1
- package/dist/assets/{InviteFormPage-BnLBPR7X-BUgP_pam.js → InviteFormPage-HJMhfa_f-tkS1HQ9G.js} +1 -1
- package/dist/assets/{InvitePageListView-7mhz_Fyy-DsAbeFJv.js → InvitePageListView-CjneWRfJ-Cqi-gRH8.js} +1 -1
- package/dist/assets/{InvitePeoplePage-B8gb9N_8-CpTkSYzD.js → InvitePeoplePage-By6TWsVZ-DcezDHDA.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-Bes1nCJn-CI5aLm07.js → InvoiceUploadSection-CfAnZsV9-DBOTURQ6.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-DC3yIsQd-DaEy5Twd.js → IssueChargeCardPage-pKF4dRNw-CboqmQ0I.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Dtw8vM0g-BatSanO0.js → LabeledAddressValue-UYEy_1W0-Ci2tufnL.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D72yUpQl-EukAFw0M.js → LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BFaru2xf-BBWtrziO.js → LabeledControlledCheckBoxField-BFnLx9E0-ozh3nGkA.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CCXfjgxP-CnxEpEdS.js → LabeledCreatableSingleSelectField-Bh-cfR9F-Cgfy3beB.js} +1 -1
- package/dist/assets/{LabeledDocumentField-aYYBY16j-DiHUA7gr.js → LabeledDocumentField-YBoeNDoD-DV_I5uPN.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Co7u6hHL-xLKIGiNZ.js → LabeledDropDownFormattedTextField-jrOUW9Ig-BtNHTfAs.js} +1 -1
- package/dist/assets/{LabeledText-BrOLGzO5-DZaVXgIe.js → LabeledText-BqO1wHro-DuRorhx4.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-B8D7YUkE.js → LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-C9gBIqih.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-WXH8xLJq-qoydEE07.js → LabeledZeniRolesDropDownField-Cgy0v5oD-DVkREz_1.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-NFV4Vo3i-BI2YmfkU.js → LinkJETransactionPage-PZAQ79zW-CK6GNIYR.js} +1 -1
- package/dist/assets/{LowBalancePopup-Bxkd2pBR-_OwRs2WF.js → LowBalancePopup-BYeSnxBp-BI_shW18.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BJFlUq7i-Dpmq3H_6.js → MagicLinkACHDetailsPage-D_FaPCmn-oM5m56GJ.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CTuaNol6-DcoGcITs.js → MagicLinkDomesticWireDetailsPage-rnZdulCr-CM2OhcqO.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-L2dPsfWM-EuAyHUTS.js → MagicLinkInternationalWireDetailsPage-B7ScwCJc-hpVpOAMi.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DutanrSJ-M6t2IhUS.js → MagicLinkSuccessPage-DVhVWuCR-C1ELLMXO.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-5B8jYoBn-oxb2T2eH.js → MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DwWeiSC0-D_M7IxPH.js → MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-rC3PQdjG-DYE6kzDs.js → MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js} +1 -1
- package/dist/assets/{Menu-CrSQ1yNo-Bv-dHYqs.js → Menu-LDwLOgxI-DZ0xBJbp.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CJjW9ymP-CrHV2cpA.js → MyBankConnectionsSettingsPage-BzxtuXEu-B9IXFZww.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CvxqOjc7-CtBP8g1r.js → MyPendingActivationChargeCardListPage-9jGJWmds-BAoE5bWC.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BX5dXulH-Dfifbw5G.js → MyProfileSettingsPage-9yk4H_yu-D2-h3k3L.js} +7 -7
- package/dist/assets/{NavBarWithPicker-CuVAj7o5-CEGVfhrc.js → NavBarWithPicker-DUpJ0EXp-43gjuBbT.js} +1 -1
- package/dist/assets/{NavigationArrow-BPQ9vRqR-CplDa_T1.js → NavigationArrow-lL3Ug8Mk-CKQ_08MZ.js} +1 -1
- package/dist/assets/{NavigationDots-Toh5TKEv-CA0n9HQq.js → NavigationDots-6Q5ZVqKl-C4jKPBGn.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-B4r1haCm-BkdFCE3S.js → NewGlobalMerchantPage-nrWvsRy4-DbM5W8Wn.js} +1 -1
- package/dist/assets/{NoDataChart-CVM-QPHf-C9B0uxva.js → NoDataChart-DGbfWo33-CtNbg73S.js} +1 -1
- package/dist/assets/{NoDataTable-CM-tApqo-BFJr-jl2.js → NoDataTable-CsvWc_ok-iHpzgtD5.js} +1 -1
- package/dist/assets/{NotFoundPage-I-EBmx2b-CdYXt2jJ.js → NotFoundPage-CzfiPkml-BQeqs7Av.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CtZ7hdMN-DWIPkxdy.js → NotificationSettingsPage-Dmfqzy1H-CXBPPrT7.js} +6 -6
- package/dist/assets/{NotificationsListConfig-BAKipCDG-B8nCR-af.js → NotificationsListConfig-Cc3hEei0-BUGnkVM7.js} +1 -1
- package/dist/assets/{NotificationsPage-xyLmK3l7-Clly1YOz.js → NotificationsPage-BAj5p1zx-D_Mwv5JA.js} +1 -1
- package/dist/assets/{OpExByVendorPage-B63DEuJM-pkzuBzfO.js → OpExByVendorPage-CRt-VUTi-BSRoe6fS.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-BJTXz7EF.js → OverlayContainerPage-C0rUb6-5-CpXI0Wjw.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-uY-ajYp4-U3FMr0Xz.js → PandLWithForecastPage-lT9GgcG2-Do2wpSYt.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DM9NYbmX-CPcRwkU8.js → PaymentAccountSetupBillingAddressSection-DY4eeS5C-DRjMzj0b.js} +4 -4
- package/dist/assets/{PeoplePage-DPZj6XeQ-Uf9hTrMZ.js → PeoplePage-CDQl7HVr-BdnTCUNW.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-De56plDa-C7xgHS3E.js → PortfolioAllocationFormPage-StMDGc2G-BtdTMk__.js} +3 -3
- package/dist/assets/{PortfolioDetails-DiITguNZ-cyxUfNyR.js → PortfolioDetails-Dk_IIRuG-B_DxSJx7.js} +3 -3
- package/dist/assets/{ProductsCarousel-BojgZxY7-DdyXJr2w.js → ProductsCarousel-0-ksFQos-BOcG3c1-.js} +1 -1
- package/dist/assets/{PromoBaseCards-DPAkjdDp-BGlT4RI_.js → PromoBaseCards-DNSnqS61-Al7XKWVe.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CzuH4c1o-C7pXVe4U.js → QBOConnectionDialog-BmIUfW_i-DCw1_Zjz.js} +4 -4
- package/dist/assets/{QBOSetupSection-DJBfLeXn-n3W_hKe8.js → QBOSetupSection-BaNFiEPB-BQTYBa9Y.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CAcLCt68-z_TSwQVX.js → ReimbursementApprovalRuleDetailPage-CtTk4HV2-BFn-5msn.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-edz_6MDX-BBQCU7zZ.js → ReimbursementApprovalRulesPage-IhKSiGK_-xDcDckpI.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DD_GbfiV-Br_JM6Bl.js → ReimbursementDetailPage-B2rT1dKM-BvN3K25P.js} +4 -4
- package/dist/assets/{ReimbursementPromoPage-B_HZWdXi-BTiGgxO3.js → ReimbursementPromoPage-d7XBUzip-Baqr_9HR.js} +18 -18
- package/dist/assets/{ReimbursementSetUpPage-C0SNbg5D-B3aU2e8W.js → ReimbursementSetUpPage-DWCUtN5c-B7jvTAZ2.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-NOK5jPjr-Cia2ZDC0.js → ReimbursementsBulkReviewDrawerPage-ByNvcTCn-CVr0tk48.js} +1 -1
- package/dist/assets/{ReloadCard-CqyGWGqs-_YURCGpq.js → ReloadCard-DZy28iWR-fdBnNVQp.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-B8ZW0kxU-8Kw8Bgrt.js → ReportTableViewSelector-DdZm4cOJ-noq_7l2G.js} +5 -5
- package/dist/assets/{ReportsPage-DdqQgvJt-ChJzejj9.js → ReportsPage-CJDkY9FT-BvINYvTj.js} +1 -1
- package/dist/assets/{RevenueChart-QoBLII7z-BxG5kvro.js → RevenueChart-B_jdFFPm-BXFiwU14.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BVoI7xF7-BZLZQS7P.js → ReviewDetailsPage-DjPVGzeL-DLDIfiIY.js} +9 -9
- package/dist/assets/{ReviewOverlay-CbpylyCx-DaZFUH7Y.js → ReviewOverlay-DGYnF07r-qnvuKuhQ.js} +6 -6
- package/dist/assets/{RoleWithToolTip-TxLTa63q-h_h2zj3V.js → RoleWithToolTip-VlYG_GPv-D1yDUHv7.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CuwxZJjj-DGJYOl0Z.js → ScheduleDetailsFixedAssetsPage-oPFQEE8g-DGu6MDH1.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-u0VNz7hA-BXvUVAFs.js → ScheduleDetailsPage-BdBgJEAl-DNQIOTck.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-usJjTfAn-BVSbI8s8.js → ScheduleSequenceTable-Ncft3mZN-BP3nA4Wm.js} +5 -5
- package/dist/assets/{ScreenRoutes-CSiIYQhL.js → ScreenRoutes-GKyBzI0O.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DDe06VBR-B9IJiM9A.js → SetUpAccountSection-BrYiljyO-B0sFI8H-.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-B6pcOXMO-eZCrqrSe.js → SetUpDefaultSection-B361ojb9-CxOpM9AT.js} +1 -1
- package/dist/assets/{SignIn-BdhV8PbY-BtAifhPi.js → SignIn-B_-FUZwZ-DmmXPLIK.js} +1 -1
- package/dist/assets/{SignInScreen-Bz8feu1F.js → SignInScreen-DXQE8i8n.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DNgC__pX-B532HqYI.js → SpendManagementListViewPage-XbjqwHXx-DUJaDID4.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BkiWOMch-DQ0tV62-.js → SpendManagementPerTabPage-D-4W-Ru9-BTwZxU7E.js} +8 -8
- package/dist/assets/{SpendManagementSection-DuR3sx7V-CT7Uld_h.js → SpendManagementSection-B7pMvj7Z-BAsdHFSu.js} +8 -8
- package/dist/assets/{SpendMgmtSetupAccountSection-DoUKX4Sf-BldIeqnn.js → SpendMgmtSetupAccountSection-DdUs96r9-BtVu2Jjy.js} +1 -1
- package/dist/assets/{StatementItem-VYK0Vtgt-Bk5BgCtg.js → StatementItem-B4DJRmwy-B3hGXxas.js} +1 -1
- package/dist/assets/{StatementsPage-CLxned7l-BhLZL60e.js → StatementsPage-DzFEOmFA-wer7iddM.js} +1 -1
- package/dist/assets/{StatusSwitcher-Jqpvk1VX-xLUVqT6G.js → StatusSwitcher-DGOwA8qO-D_gDSZQm.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C7_JB54g-CphEJgto.js → SubTabSwitcher-Be-6o_mE-CbWpxIAQ.js} +1 -1
- package/dist/assets/{SummaryCard-oqK_zyxl-CPgSyc_4.js → SummaryCard-CD1amg78-BqcEBi2M.js} +1 -1
- package/dist/assets/{TaskManagementPage-BDOhB7Ny-BBdO0DDz.js → TaskManagementPage-C2UYhTtL-BjeaDszl.js} +12 -12
- package/dist/assets/{TimeRangeSwitcher-AWKZ7PNb-JsWizZnK.js → TimeRangeSwitcher-DxAmlHGP-Bw1t8DbY.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-BlL5woGb-CYQePLIH.js → TimeframeSwitcher-ndYSpUa6-BlrKZqFe.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CRnWI6xW-C86KiNGD.js → TimeframeSwitcherWithToggle-B3bxr-_s-BNVy54lX.js} +1 -1
- package/dist/assets/{TopExCard-B4T3kqhZ-5leQC_es.js → TopExCard-CcpyunQ3-BaDgbdKx.js} +2 -2
- package/dist/assets/{TopExDetailPage-Cx9T3i9O-BUFgQydG.js → TopExDetailPage-C_B0c8iP-ByXi3xQ5.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CAGxHcQ9-DAEh18Kl.js → TransactionDetailPage-DVPGLobu-DL-y5UIM.js} +23 -23
- package/dist/assets/{TransactionList-CVrK_-YB-CzryXgTg.js → TransactionList-CvGyadHZ-CKr6j1Ej.js} +1 -1
- package/dist/assets/{TransactionListBig-BnI6EofP-CiyZQoDY.js → TransactionListBig-BeZjYsO0-CWaiI9xM.js} +14 -14
- package/dist/assets/{TransactionListPage-vK6DdhrP-DT6k2g4T.js → TransactionListPage-C8h-sa3V-ISAOcRCi.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-IyAfkyMv-lNTZZabw.js → TransactionVendorDetailPage-BcV8h3xR-BGD_XS9I.js} +6 -6
- package/dist/assets/{TransferDrawerPage-Bp0TG8fm-CznoIWIM.js → TransferDrawerPage-B_AJgZWp-BgCFpQ-3.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-Cr1liTpc-Cd33lmI2.js → TreasuryOverviewPage-kG1jZF28-DFMfLtUz.js} +17 -17
- package/dist/assets/{TreasuryPromoPage-Da7l7gv8-CKMiHpr6.js → TreasuryPromoPage-Dy3ExIiy-DKLmlPyB.js} +9 -9
- package/dist/assets/{TreasurySetupPage-DLNsPnS8-CDmeA1e-.js → TreasurySetupPage-Cjr-dp6O-D_HiOnt5.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CNXxykvB-CuoSCyX7.js → TreasuryStatementsPage-CzOSIKGQ-CtcTNklQ.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DUbt8ItG-CFIrAIuu.js → TreasuryTaxLetterPage-CWLf1Zxq-BkcKbbtq.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-qxabbCrK-NTQJ00iK.js → TreasuryTransferOrReviewPage-C5F3fmoI-C6lOcQ5d.js} +8 -8
- package/dist/assets/{TrendChart-SOAxSpv2-DgR01mAM.js → TrendChart-CtjfgQ9g-DU-bY5qU.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BSQ2TJvu-C2vH4bQx.js → TrendWithTransactions-SmcM2UIp-SwKmDId5.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-Caf242zp-VGuE3thQ.js → UncategorizedAccountsMappingPage-CXoadwja-CEPslaD_.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-Bvc4wx_r-B7he8exM.js → UnitIntegrationPage-wYQVQqP7-CMNCVZiN.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BTEhwmVL-C4lSvPpB.js → UploadAdditionalDocumentOverlay-8_c7UpvB-74BXxoUO.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DimcegQ_-WnSXqrLw.js → Vendor2FAPopup-DtNSOXbK-B54GFzKj.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BOIRRgCy-UgegopbT.js → VendorACHDetailsPage-zNbGGe4q-8GlI6jYy.js} +1 -1
- package/dist/assets/{VendorDetailPage-CWcqMMpT-9VL32fGD.js → VendorDetailPage-Cv-MG9iR-l4dRK0G1.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-9C2CIkhB-ZF2CrFpl.js → VendorDomesticWireDetailsPage-BkqtoYAw-CtX9mSuC.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Crz_WLRG-BF546nfl.js → VendorFiling1099EditablePage-DYJudj3c-DQ_wjKTT.js} +5 -5
- package/dist/assets/{VendorFirstReviewPage-hQ0U61KD-C9g--4mo.js → VendorFirstReviewPage-BNFIAB9n-BN6v_Gep.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-mm1qIXTf-BLxRn49M.js → VendorInternationalWireDetailsPage-DHa8JoNl-BRi2UVJj.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaOsJGNO-BH9lf0Lb.js → VendorInternationalWireSwiftDetailsPage-a5nSOMXK-BxkY5s8d.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-CGbDIAMd-ym1H8Uh3.js → VendorsAccountsSection-DwDGbjey-Bypo8ABo.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-7DzlUfv7-BKqLm7L1.js → WarningsDrawerPage-CaSTx_8h-B-9jNZQU.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-B_U4d2iv-BManRlon.js → ZeniAccountDetailPage-BSOpxKiJ-Bcu_9TPK.js} +6 -6
- package/dist/assets/{ZeniAccountListViewPage-C2Yej3tG-BD_IZ5aS.js → ZeniAccountListViewPage-CZM1ODEE-CvbySLjB.js} +6 -6
- package/dist/assets/{ZeniAccountNavBarPieces-DsWyZL7N-D5tOjgeX.js → ZeniAccountNavBarPieces-CjNAr1N9-HkSrs5G-.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-D6S3o6xA-B-4D3zUQ.js → ZeniAccountPromoPage-PcyNGe7A-BLBuAvub.js} +9 -9
- package/dist/assets/{ZeniAccountSetupPage-YpW9LEB1-DY1tJUjA.js → ZeniAccountSetupPage-DhJ2zm6A-CuFLGcXY.js} +1 -1
- package/dist/assets/{ZeniCopyright-Buv4_0jF-BUJ7afxM.js → ZeniCopyright-CSUSID-7-DBheoLGB.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CvuOgkEg-D9otBk72.js → ZeniTransferAmountSlider-DPl7porw-Dl84FVK1.js} +1 -1
- package/dist/assets/{analyticsHelper-B3QVnfWf-Cfyqi3Js.js → analyticsHelper-Cex5LOMD-Dxu2vm4u.js} +1 -1
- package/dist/assets/{analyticsHelper-RWvozMVr.js → analyticsHelper-CpvxdbQV.js} +1 -1
- package/dist/assets/{chartTypes-DYAHlgKd-H1smi7OR.js → chartTypes-Df8u7la0-CtDbCz1y.js} +1 -1
- package/dist/assets/{commonDimensions-Pkc8qIrn-CnS_lHb5.js → commonDimensions-OJhakpB_-Bbp60BrB.js} +1 -1
- package/dist/assets/{detailCommon-CsukAL3T-BWIfVtAp.js → detailCommon-4wAnHr6n-CdRaYMXz.js} +4 -4
- package/dist/assets/{downloadPdf-DlKRXI5W-OJRqS6Ne.js → downloadPdf-D02UNVHu-DqpjG06G.js} +1 -1
- package/dist/assets/{index-BFn0iyzF.js → index-DTlzo6Yx.js} +512 -512
- package/dist/assets/{mapLoadingInProgressToTreeNode-KYsp1YPe-CLN9qM8e.js → mapLoadingInProgressToTreeNode-HsZI6Bdg-DBYPe0Tb.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-t5fK12Uc--riMsIoZ.js → mapSectionWithAcOnlyToTreeNode-B9KMXCTi-cXLO9gFn.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-1YBqnFwa-BUbNWLck.js → mapSpacerToTreeNode-BIZ_jwXi-CRlgAghX.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DD1v-gTG-CsfVJjJT.js → mapTimeframeBalancesToTreeNode-BOFrVlzJ-4iwTY3Ct.js} +1 -1
- package/dist/assets/{play-icon-19dLaWkG-Dp_fy0nZ.js → play-icon-BDRoJBSV-DFuHei9M.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-B8NxsLlK-f7IcEqR5.js → toCOABalancesWithID-RJhTPgAt-Cci2ybt-.js} +1 -1
- package/dist/assets/{toChartData-CxZEcdj_-BYbG-aHT.js → toChartData-K68FB3Iy-nDeLE4ni.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BqwCUN2u-X_XE57yN.js → treasuryColorHelper-DjASf5JB-DoMbQSj9.js} +1 -1
- package/dist/assets/{uploadAttachment-CHFo3qZI-V-zea-FO.js → uploadAttachment-D7Rju7jS-SY7cBnUt.js} +1 -1
- package/dist/assets/{uploadReceipts-Buvz7DfG-C9miDyXe.js → uploadReceipts-Buvz7DfG-JDslMarZ.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ApprovalRulesSettingsPage-CFCbNOcB-DqUDrXZ1.js +0 -47
- package/dist/assets/ChargeCardPromoPage-CiwWzvym-mX5HHnvt.js +0 -175
- package/dist/assets/CustomerOnboardingContainerPage-DEDQrgtq-Bgtk1o5G.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eO as Z,M as K,h4 as de,a5 as le,r as B,o as a,g as z,X as N,j as t,bA as pe,h5 as me,u as re,cg as ge,ab as F,C as W,aQ as he,eY as ue,t as ie,h6 as fe,h7 as Se,h8 as q,h9 as G,ha as Y,a7 as ye,i as X,q as xe,gh as be,m as Ce,Q as we}from"./index-
|
|
1
|
+
import{eO as Z,M as K,h4 as de,a5 as le,r as B,o as a,g as z,X as N,j as t,bA as pe,h5 as me,u as re,cg as ge,ab as F,C as W,aQ as he,eY as ue,t as ie,h6 as fe,h7 as Se,h8 as q,h9 as G,ha as Y,a7 as ye,i as X,q as xe,gh as be,m as Ce,Q as we}from"./index-DTlzo6Yx.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{O as ve}from"./SetUpAccountSection-BrYiljyO-B0sFI8H-.js";const Pe={containerHeight:new W(656,720)},$e=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 20px;
|
|
@@ -81,14 +81,14 @@ import{eO as Z,M as K,h4 as de,a5 as le,r as B,o as a,g as z,X as N,j as t,bA as
|
|
|
81
81
|
color: ${z.important};
|
|
82
82
|
width: 434px;
|
|
83
83
|
text-align: center;
|
|
84
|
-
`,{cardPayment:c,common:{footer:te}}=K.getLocalizedStrings(),
|
|
84
|
+
`,{cardPayment:c,common:{footer:te}}=K.getLocalizedStrings(),De=o(Ce)`
|
|
85
85
|
color: ${e=>e.theme.colors.hero};
|
|
86
86
|
text-align: center;
|
|
87
87
|
margin-top: ${a.sp2};
|
|
88
|
-
`,ae=e=>`${e}_form`,se="CardPaymentPaymentForm",
|
|
88
|
+
`,ae=e=>`${e}_form`,se="CardPaymentPaymentForm",Me=({cardPaymentView:e,clientSecret:r,cardSetupInProgress:m,handleConfirmCardSetupIntent:i,updateCardPaymentModalState:y,handleAddCardPaymentSource:d,setCardSetupInProgress:g})=>{const x=fe(),n=Se(),[l,h]=p.useState(!1),[P,$]=p.useState(!1),[b,C]=p.useState(!1),[u,w]=p.useState(!1),j=N(),_=e.cardSetupConfirmStatus.fetchState,T=e.addCardPaymentSourceStatus.fetchState,D=e.cardSetupIntentStatus.fetchState,[I,f]=p.useState(!1),V=async S=>{if(S.preventDefault(),!x||!n)return;const v=n.getElement(q),E=n.getElement(G),A=n.getElement(Y);(!v||!E||!A)&&f(!0),w(!0),g(!0),v!=null&&E!=null&&A!=null&&x.confirmCardSetup(r,{payment_method:{card:v}}).then(L=>{w(!1),i(L),L.setupIntent?.id!=null&&d("card","payment_intent",L.setupIntent?.id)}).catch(()=>{w(!1),setTimeout(()=>{g(!1)},2e3)})},R=re(),U={showIcon:!0,style:{base:{...B.standardRegular.cssObject,color:R.colors.primary,"::placeholder":{color:R.colors.grey2}},invalid:{color:z.important,iconColor:z.important}}},M=_==="In-Progress"||T==="In-Progress"||D==="In-Progress"||u===!0||m===!0,H=l||P||b||_==="In-Progress"||T==="In-Progress"||D==="In-Progress"||u===!0||m===!0;return t.jsx(Ie,{windowSize:j,children:t.jsxs(je,{onSubmit:V,id:ae(se),children:[t.jsxs(Ee,{children:[t.jsx(Ae,{children:t.jsx(ke,{children:t.jsx(q,{options:U,onChange:S=>h(!!S.error)})})}),t.jsx(_e,{children:t.jsxs(Re,{children:[t.jsx(ee,{children:c.cardNumber}),t.jsx(G,{options:U,onChange:S=>$(!!S.error)})]})}),t.jsx(Te,{children:t.jsxs(Ue,{children:[t.jsx(ee,{children:c.CVC}),t.jsx(Y,{options:U,onChange:S=>C(!!S.error)})]})})]}),e.cardSetupConfirmStatus.error||I?t.jsx(ne,{children:c.errorMsg}):null,t.jsx(ye,{style:{width:"100%",padding:`${a.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:ae(se),primaryBtn:{label:te.linkCard,style:{width:"104px",height:a.sp6},isLoading:M,isDisabled:H,type:"submit"},cancelBtn:{label:te.cancel,style:{width:"104px",height:a.sp6},onClick:()=>{y(!1)}}}),t.jsxs(De,{windowSize:j,children:[c.terms.term1,t.jsx(X,{href:c.terms.term2Link,linkText:c.terms.term2}),c.terms.term3,t.jsx(X,{href:c.terms.term4Link,linkText:c.terms.term4})]})]})})},qe=({isCardPaymentOpen:e,cardPaymentView:r,stripeKey:m,cardSetupInProgress:i,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleCreateCardSetupIntent:g,handleAddCardPaymentSource:x,handleResetCardPaymentErrorStatuses:n,setCardSetupInProgress:l})=>{const[h,P]=p.useState(""),$=de(m),b=le(r.addCardPaymentSourceStatus.fetchState),C=r.addCardPaymentSourceStatus.fetchState;p.useEffect(()=>(g(["card"]),()=>{d(!1),P(""),n()}),[]),p.useEffect(()=>{n()},[e]),p.useEffect(()=>{b==="In-Progress"&&C==="Error"?(l(!1),setTimeout(()=>{d(!1)},2e3)):b==="In-Progress"&&C==="Completed"&&(g(["card"]),setTimeout(()=>{d(!1),l(!1)},2e3))},[b,C]),p.useEffect(()=>{(r.cardSetupConfirmStatus.error||r.addCardPaymentSourceStatus.error)&&(g(["card"]),setTimeout(()=>{l(!1)},2e3))},[r.cardSetupConfirmStatus.error,r.addCardPaymentSourceStatus.error]),p.useEffect(()=>{r.clientSecret!=null&&P(r.clientSecret)},[r.clientSecret]);const u={theme:"stripe",variables:{borderRadius:a.sp1,fontSizeBase:B.standardRegular.fontSize,fontFamily:B.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${z.neutralGrey3Light}`,borderRadius:a.sp1,padding:"10px",fontSize:B.standardRegular.fontSize}}},w={clientSecret:h,appearance:u},j=N();return t.jsx(pe,{open:e,children:t.jsxs($e,{windowSize:j,isError:!!r.cardSetupConfirmStatus.error,children:[t.jsx(Le,{children:c.title}),t.jsx(ze,{children:c.subtitle}),h&&$!=null?t.jsx(me,{options:w,stripe:$,children:t.jsx(Me,{clientSecret:h,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleAddCardPaymentSource:x,cardPaymentView:r,cardSetupInProgress:i,setCardSetupInProgress:l})}):t.jsx(ne,{children:c.errorMsg})]})})},{cardBrands:s}=K.getLocalizedStrings().cardPayment,J={visa:{name:s.visa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/visa.svg"},mastercard:{name:s.mastercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/mastercard.svg"},american_express:{name:s.american_express,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/amex.svg"},discover:{name:s.discover,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/discover-global.svg"},jcb:{name:s.jcb,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/jcb-card.svg"},diners_club:{name:s.diners_club,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dinersclub.svg"},unionpay:{name:s.unionpay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},rupay:{name:s.rupay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/rupay-card.svg"},bancontact:{name:s.bancontact,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cmr_falabella:{name:s.cmr_falabella,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},tarjeta_naranja:{name:s.tarjeta_naranja,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},nativa:{name:s.nativa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cencosud:{name:s.cencosud,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cabal:{name:s.cabal,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},argencard:{name:s.argencard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},elo:{name:s.elo,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/elo-card.svg"},hipercard:{name:s.hipercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/hipercard.svg"},carnet:{name:s.carnet,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/carnet.svg"},maestro:{name:s.maestro,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/maestro.svg"},not_applicable:{name:s.not_applicable,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},eftpos_australia:{name:s.eftpos_australia,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},girocard:{name:s.girocard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},other:{name:s.other,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},unknown:{name:s.unknown,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}},k={sectionWidth:new W(343,580,726),iconWidthHeight:new W(20,xe[4])},Oe={title:new we("standardSemiBold","largeSemiBold")},oe=e=>e?J[e]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Be=(e,r,m,i)=>({header:e,title:`${Z(J[i.cardsList[0]?.brand]?.name??"")} ${r}`,subtitle:`${Z(J[i.cardsList[0]?.brand]?.name??"")} ${m} ${i.cardsList[0]?.last4}`,status:i.cardsList[0]?.status}),Ve=o.img`
|
|
89
89
|
width: ${e=>e.width}px;
|
|
90
90
|
height: ${e=>e.height}px;
|
|
91
|
-
`,Ge=({paymentAccount:e,plaidConnectionDetails:r,connectedAccountProvider:m,sectionId:i,isDisabled:y,hasError:d=!1,isValid:g,style:x,analytics:n,onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,updateCardPaymentModalState:C,cardPaymentView:u,resetCardPaymentViewState:w,cardSetupInProgress:j=!1,googleAPIKey:_,subscriptionBillingAddress:T,subscriptionBillingAddressSectionId:
|
|
91
|
+
`,Ge=({paymentAccount:e,plaidConnectionDetails:r,connectedAccountProvider:m,sectionId:i,isDisabled:y,hasError:d=!1,isValid:g,style:x,analytics:n,onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,updateCardPaymentModalState:C,cardPaymentView:u,resetCardPaymentViewState:w,cardSetupInProgress:j=!1,googleAPIKey:_,subscriptionBillingAddress:T,subscriptionBillingAddressSectionId:D})=>{const I=re(),f=N(),{register:V}=ge(),R=I.mode==="light"?new F(I.colors.brandColorJadeLight):new F(I.colors.brandColorJadeDark),{common:U,customerOnboardingPage:{sections:{link_payment_account:{title:M,text:H,subText:S},card_payment_method:v}}}=K.getLocalizedStrings(),E=u.cardsList.length>0,A=u.cardsList[0]?.brand??"other",L=u.addCardPaymentSourceStatus.fetchState,O=Be(v.header,v.titleText,v.protectedCardNo,u);let Q;return E&&(Q={header:O.header,title:O.title,subtitle:O.subtitle,status:O.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx(Ve,{src:oe(A).iconURL,width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f),alt:oe(A).name,loading:"lazy"}),color:new F(R)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1}),t.jsxs(Fe,{windowSize:f,children:[t.jsx(We,{type:"hidden",...V(`${i}.connected`,{validate:ce=>d?ce==="true":!0}),value:g?"true":"false"}),t.jsx(ve,{connectedAccountProvider:m,paymentAccount:e,plaidConnectionDetails:r,allBankAccounts:[],header:M,sectionTitle:M,defaultSectionTitle:H,defaultSectionSubTitle:S,sectionId:i,isDisabled:y,hasError:d,showZeniAccountSection:!1,isCompleted:e?.providerVerificationStatus?.code?.includes("verified")===!0&&e?.isLoginRequired===!1,showCompletedIcon:f==="small",onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,style:x,icon:{element:t.jsx(he,{width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f)}),color:R},analytics:n,productType:"onboarding",resetCardPaymentViewState:w,cardPaymentSectionValues:Q,cardPaymentView:u,updateCardPaymentModalState:C,referrer:"Onboarding",cardSetupInProgress:j}),He(f,U.headers.billingAddress,D,n,T,_,y)]})},He=(e,r,m,i,y,d,g)=>{const x={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return t.jsxs(Ke,{children:[t.jsx(Je,{windowSize:e,isDisabled:g==="disabled",children:r}),t.jsx(be,{googleAPIKey:d??"",addressToEdit:y,sectionId:`${m}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:n=>{if(n.target instanceof HTMLInputElement){const{placeholder:l}=n.target;if(l){const h=x[l];h&&i.trackOnboardingBillingAddress(h)}}}})]})},Fe=o.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
flex-direction: column;
|
|
94
94
|
width: ${e=>k.sectionWidth.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as $e,X as I,M as y,j as t,Y as a,aW as le,bf as Ne,o as s,bK as De,bL as Oe,e as U,a9 as J,bM as we,K as Le,r as be,bN as _e,a5 as Ae,bO as Ve,bP as Me,bQ as We,bR as Be,ao as He,H,bS as Ke,C as $,bT as Ue,bU as je,q as b,l as A,bV as ee,bD as N,a as Ee,F as Fe,bW as Ze,bX as qe,
|
|
1
|
+
import{u as $e,X as I,M as y,j as t,Y as a,aW as le,bf as Ne,o as s,bK as De,bL as Oe,e as U,a9 as J,bM as we,K as Le,r as be,bN as _e,a5 as Ae,bO as Ve,bP as Me,bQ as We,bR as Be,ao as He,D as H,bS as Ke,C as $,bT as Ue,bU as je,q as b,l as A,bV as ee,bD as N,a as Ee,F as Fe,bW as Ze,bX as qe,P as Xe,v as D,bY as Qe,t as O,m as te,g as V,bZ as Ye,ah as Se,av as ie,b_ as ke,bd as Ge,b$ as Je}from"./index-DTlzo6Yx.js";import{f as ce,b as v,n as i}from"./vendor-CnQcJ2Lu.js";import{A as Ie}from"./Menu-LDwLOgxI-DZ0xBJbp.js";import{T as Ce}from"./RoleWithToolTip-VlYG_GPv-D1yDUHv7.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],K=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],et=58;function tt({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Xe(d==="off"?S:K));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(ot,{height:et,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(rt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(at,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(st,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(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{X as Y,
|
|
1
|
+
import{X as Y,D as S,j as i,bt as Q,M as U,Y as H,C as u,a7 as K,o as n,a6 as V,Q as X,h as J,t as Z,q as l,r as _,aq as ee,m as D,g as v,v as ie,ah as te}from"./index-DTlzo6Yx.js";import{b as k,n as t}from"./vendor-CnQcJ2Lu.js";import{E as ne}from"./PortfolioDetails-Dk_IIRuG-B_DxSJx7.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-DjASf5JB-DoMbQSj9.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=U.getLocalizedStrings(),a={titleWidth:new u(343,580,726,826),cardBorderRadius:l[2],cardPadding:new u(l[3],l[4]),sliderWidth:new u(143,177),sliderContainerGap:new u(l[5],l[3]),navBarContainerPaddingYaxis:new u(10,l[3]),containerPaddingLeft:new u(l[3],l[6],l[8]),containerPaddingRight:new u(l[3],l[6],l[8]),riskLevelInfoPaddingRight:new u(l[0],l[3])},oe={stepTitle:new X("h6Regular","h5Regular")},Me=({onBackClick:e,onNextClick:g,onUpdateFundAllocation:h,treasurySetupView:T,isReadOnly:c,isEditMode:p,isOnSetup:$=!1})=>{const r=Y(),[W,M]=k.useState(!1),{fundsData:N,fundAllocationOptions:s,fundAllocationLocalData:d,currentAllocation:w,portfolioAllocationUpdateStatus:q}=T;k.useEffect(()=>{if(p&&w!==null){const o=!S(d.allocation,w);M(o)}},[p,w,d]);const y=o=>{const f=s.find(G=>G.optionIndex===o);f&&h(f)},b=()=>{y(s.findIndex(o=>o.riskScore===0||o.riskLevel==="Conservative"))},F=()=>{let o;w!=null&&(o=s.find(f=>S(f.allocation,w))),o!=null?h(o):b()},j=()=>{p&&F(),e()};return i.jsxs(se,{children:[i.jsxs(de,{windowSize:r,children:[i.jsx(ae,{windowSize:r,children:i.jsx(Q,{title:m.navBar.back,enterTouchDelay:600,placement:"bottom",children:i.jsx(ce,{"data-testid":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(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Re,{children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(ze,{windowSize:r,children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]})]})]})})]})]}),c?null:i.jsx(K,{style:{zIndex:4,paddingTop:n.sp2,paddingBottom:n.sp2},showCancel:!0,cancelBtn:{label:p?m.cancel:m.navBar.back,onClick:j},primaryBtn:{label:p?m.confirm:m.next,onClick:g,isLoading:p&&q.fetchState==="In-Progress",isDisabled:p&&!W}})]})};function re(e,g,h){return e||g&&h?x.title:h?x.editTitle:x.stepTitle}function le(e,g,h){return e||g&&h?x.subtextReadOnly:h?x.subtextEdit:x.subtextSetup}const se=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
height: 100%;
|
|
@@ -132,9 +132,9 @@ import{X as Y,H as S,j as i,bt as H,M as Q,Y as U,C as u,a7 as K,o as n,a6 as V,
|
|
|
132
132
|
`}
|
|
133
133
|
`,P=t(ee)`
|
|
134
134
|
color: ${e=>e.theme.colors.primary};
|
|
135
|
-
`,O=t(
|
|
135
|
+
`,O=t(D)`
|
|
136
136
|
color: ${e=>e.theme.colors.primary};
|
|
137
|
-
`,C=t(
|
|
137
|
+
`,C=t(D)`
|
|
138
138
|
color: ${e=>e.theme.colors.primary};
|
|
139
139
|
`,L=t.div`
|
|
140
140
|
display: flex;
|
package/dist/assets/{PortfolioDetails-DiITguNZ-cyxUfNyR.js → PortfolioDetails-Dk_IIRuG-B_DxSJx7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,M as H,o as n,iD as J,t as F,d3 as X,u as K,X as Q,_ as N,C as W,bt as f,g as k,ah as U,v as A,dq as V,ak as Z,aq as ee,b5 as ie,bd as se,m as ne,d5 as re,q as le}from"./index-
|
|
1
|
+
import{j as e,M as H,o as n,iD as J,t as F,d3 as X,u as K,X as Q,_ as N,C as W,bt as f,g as k,ah as U,v as A,dq as V,ak as Z,aq as ee,b5 as ie,bd as se,m as ne,d5 as re,q as le}from"./index-DTlzo6Yx.js";import{n as s,b as te}from"./vendor-CnQcJ2Lu.js";import{l as oe}from"./treasuryColorHelper-DjASf5JB-DoMbQSj9.js";const{common:o,spendManagement:{treasury:l},dateFormat:ae}=H.getLocalizedStrings(),y={portfolioYieldMarginTop:new W(-4,le[0]),sliderWidth:new W(143,177)},Oe=({isInReview:i,isSetup:r,fundDetails:m,allocation:d,amount:h,page:v})=>{const g=de(m);return e.jsxs(me,{children:[!r&&e.jsx(xe,{style:{alignSelf:"flex-start",padding:`${n.sp2} ${n.sp0}`},children:`${l.portfolioAllocation.title}`}),g.map((a,x)=>e.jsx(ce,{portfolio:a,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:r,isLast:x===g.length-1,amount:h,page:v},m[x]?.fundCode||x))]})},de=i=>i.map(r=>[{label:l.overviewPage.fundTile.liquidity,value:r.liquidityTimeline||o.strings.hyphen},{label:l.overviewPage.fundTile.fundSizeLabel,value:J(r.fundSize,r.currencyCode)},{label:l.overviewPage.fundTile.maturityLabel,value:`${r.maturity} ${o.timeStrings.days}`},{label:l.overviewPage.fundTile.expenseRatioLabel,value:`${r.expenseRatio}${o.strings.percentage} ${l.overviewPage.fundTile.includedInTheYield}`},{label:l.overviewPage.fundTile.riskRatingLabel,value:r.riskRating||o.strings.hyphen},{label:l.overviewPage.fundTile.compositionLabel,value:Array.isArray(r.compositions)&&r.compositions.length>0?`${r.compositions[0].investedIn} ${r.compositions[0].percentage}${o.strings.percentage}`:o.strings.hyphen,tag:Array.isArray(r.compositions)&&r.compositions.length>1?`+${r.compositions.length-1}`:void 0,compositions:r.compositions??[]}]),ce=({portfolio:i,fund:r,fundIndex:m,allocationPercentage:d,isInReview:h,isSetup:v,isLast:g,amount:a,page:x})=>{const _=X().analytics,L=K(),t=Q(),j=a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,G]=te.useState(!1),u=oe(m,L),$=()=>{p||_.trackTreasuryProspectusClick(r.fundName,r.fundCode,x),G(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(pe,{children:e.jsxs(ge,{windowSize:t,children:[e.jsxs(he,{windowSize:t,children:[e.jsxs(ue,{windowSize:t,children:[e.jsxs(fe,{isInReview:h,windowSize:t,children:[e.jsx(we,{children:r.fundCode}),e.jsx(ye,{color:u.fundNameColor,children:`${r.fundCompanyName} ${r.fundName}`})]}),t!=="small"&&e.jsxs(T,{onClick:$,children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:h?e.jsxs(O,{style:{alignItems:"flex-start"},children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsx(q,{children:j!=null?N("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):o.strings.empty})]}):e.jsxs(je,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(O,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,style:{marginRight:n.sp3},children:[r.yield,o.strings.percentage]})]})]}),t==="small"&&e.jsx(Pe,{children:v?e.jsxs(Ye,{children:[e.jsxs(Ie,{children:[e.jsxs(Ae,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]}),e.jsxs(T,{onClick:$,style:{marginBottom:n.sp2},children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}):h?e.jsxs(ke,{children:[e.jsxs(E,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsx(q,{children:j!=null?N("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):o.strings.empty}),e.jsxs(T,{onClick:$,style:{margin:`${n.sp2} ${n.sp0}`,...g?{marginBottom:n.sp0}:{}},children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),e.jsxs(B,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]}):e.jsxs(Le,{children:[e.jsxs(E,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(T,{onClick:$,children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),e.jsxs(B,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(be,{children:[e.jsx(C,{children:r.description}),e.jsx($e,{style:{marginLeft:n.sp3},children:i.map(c=>e.jsxs(Se,{windowSize:t,children:[e.jsx(C,{children:o.strings.dividerDot}),e.jsx(C,{style:{minWidth:"140px"},children:c.label}),e.jsxs(C,{style:{color:c.label===l.overviewPage.fundTile.fundSizeLabel?u.fundNameColor:L.colors.primary,borderBottom:`1px solid ${L.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===l.overviewPage.fundTile.compositionLabel&&e.jsx(f,{variant:"list-description",data:{title:o.strings.empty,items:Array.isArray(c.compositions)&&c.compositions.length>0?c.compositions.map(R=>({text:`${o.strings.dividerDot} ${R.investedIn}`,amount:`${R.percentage}${o.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${n.sp3}`},children:e.jsx(Te,{children:c.tag})})]})]},c.label))}),e.jsxs(Ce,{onClick:()=>window.open(r.url,"_blank"),children:[e.jsx(ve,{children:`${l.overviewPage.fundTile.asOfLabel} ${r.asOfDate.format(ae.visual.MMMDCommaYYYYformat)}`}),e.jsx(De,{})]})]}),(!g||v)&&e.jsx(ze,{style:{width:"100%",marginBottom:n.sp3}})]})},pe=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
gap: ${n.sp2};
|
|
@@ -10,14 +10,14 @@ import{j as e,M as H,o as n,iD as J,t as F,d3 as X,u as K,X as Q,_ as N,C as W,b
|
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: center;
|
|
12
12
|
width: 100%;
|
|
13
|
-
`,
|
|
13
|
+
`,he=s.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: row;
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: space-between;
|
|
18
18
|
width: 100%;
|
|
19
19
|
align-items: flex-start;
|
|
20
|
-
`,
|
|
20
|
+
`,ge=s.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
23
23
|
width: 100%;
|
package/dist/assets/{ProductsCarousel-BojgZxY7-DdyXJr2w.js → ProductsCarousel-0-ksFQos-BOcG3c1-.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as X,j as t,d3 as I,o as l,bp as O,ak as P,d4 as D,Z as F,t as L,d5 as R,g as v}from"./index-
|
|
1
|
+
import{M as X,j as t,d3 as I,o as l,bp as O,ak as P,d4 as D,Z as F,t as L,d5 as R,g as v}from"./index-DTlzo6Yx.js";import{b as $,n as i}from"./vendor-CnQcJ2Lu.js";const u=X.getLocalizedStrings(),y={large:{labelComp:D,title:F,subtitle:L,seeMoreLink:L}},U={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=U.large,B=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-DPAkjdDp-BGlT4RI_.js → PromoBaseCards-DNSnqS61-Al7XKWVe.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as c,j as a,d9 as b,da as v,db as L,aR as z,C as r,o as e,g as d,Q as m,q as l}from"./index-
|
|
1
|
+
import{X as c,j as a,d9 as b,da as v,db as L,aR as z,C as r,o as e,g as d,Q as m,q as l}from"./index-DTlzo6Yx.js";import{j as i,n as p,k as f}from"./vendor-CnQcJ2Lu.js";const t={plasticCardMarginLeft:new r(l[6],120),plasticCardMarginTop:new r(12,-9),businessTextRight:new r(l[2],13),businessTextBottom:new r(l[8],81),chargeCardWidth:new r(240,384),chargeCardHeight:new r(153,243),styledLogoWidth:new r(47,76),styledLogoHeight:new r(46,74),styledFullLogoTop:new r(12,28),styledFullLogoRight:new r(l[2],13),styledFullLogoHeight:new r(20,34),styledFullLogoWidth:new r(88,142),chipLogoWidth:new r(31,50),chipLogoHeight:new r(l[4],39),visaLogoWidth:new r(52,84),visaLogoHeight:new r(17,27),visaLogoRight:new r(l[2],13),visaLogoBottom:new r(l[2],13)},u={businessText:new m("extraSmallRegular","largeRegular"),promoBusinessText:new m("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return a.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&a.jsx(S,{windowSize:n,forDashboard:s,children:a.jsx(b,{})}),a.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(z,{})}),a.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),a.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return a.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&a.jsx(S,{windowSize:n,forDashboard:s,children:a.jsx(b,{})}),a.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(v,{})}),a.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),a.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(L,{})})]})},C=f`
|
|
2
2
|
0%{
|
|
3
3
|
transform: rotate(12.4deg);
|
|
4
4
|
translate: ${e.sp0} ${e.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,t as y,$ as b,aP as f,eH as v,q as a}from"./index-
|
|
1
|
+
import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,t as y,$ as b,aP as f,eH as v,q as a}from"./index-DTlzo6Yx.js";import{n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
|
|
2
2
|
border-radius: inherit;
|
|
3
3
|
max-width: 520px;
|
|
4
4
|
text-align: center;
|
|
@@ -19,12 +19,12 @@ import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,t as y,$ as b,aP
|
|
|
19
19
|
margin: 20px ${i.sp0};
|
|
20
20
|
`,_=o.div`
|
|
21
21
|
margin: 20px ${i.sp0};
|
|
22
|
-
`,
|
|
22
|
+
`,B=o.hr`
|
|
23
23
|
width: 100%;
|
|
24
24
|
border: 0.2px solid ${e=>e.theme.colors.grey3};
|
|
25
25
|
margin-top: auto;
|
|
26
26
|
margin-bottom: 0;
|
|
27
|
-
`,
|
|
27
|
+
`,C=o.div`
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
@@ -48,4 +48,4 @@ import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,t as y,$ as b,aP
|
|
|
48
48
|
`,O=o(v)`
|
|
49
49
|
height: ${i.sp4};
|
|
50
50
|
color: ${e=>e.theme.colors.primary};
|
|
51
|
-
`;function N({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(S,{windowSize:x,children:[n.jsxs(z,{children:[n.jsx(A,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(k,{children:d?$:u}),n.jsxs(R,{children:[n.jsx(T,{}),n.jsx(I,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(
|
|
51
|
+
`;function N({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(S,{windowSize:x,children:[n.jsxs(z,{children:[n.jsx(A,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(k,{children:d?$:u}),n.jsxs(R,{children:[n.jsx(T,{}),n.jsx(I,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(B,{}),n.jsxs(C,{children:[c===!0?n.jsx(_,{children:n.jsx(l,{variant:"secondary",label:t.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(L,{children:n.jsx(l,{variant:"primary",label:t.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{N as default};
|
package/dist/assets/{QBOSetupSection-DJBfLeXn-n3W_hKe8.js → QBOSetupSection-BaNFiEPB-BQTYBa9Y.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as O,M as $,j as i,K as k,o,C as a,g as d,f0 as Q,Q as T,$ as W,aP as B,eH as E,e_ as G,ab as w,v as u,q as r}from"./index-
|
|
1
|
+
import{X as O,M as $,j as i,K as k,o,C as a,g as d,f0 as Q,Q as T,$ as W,aP as B,eH as E,e_ as G,ab as w,v as u,q as r}from"./index-DTlzo6Yx.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import H from"./QBOConnectionDialog-BmIUfW_i-DCw1_Zjz.js";const t={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},M={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:j,companyName:y,updateQBOPopupState:h,handleOnConnectClick:f})=>{const n=O(),{qbo_connection:S}=$.getLocalizedStrings().customerOnboardingPage.sections,{title:v,sucessText:b,button:z,errorText:P,requiredText:C}=S;return i.jsxs(q,{windowSize:n,children:[i.jsxs(A,{windowSize:n,children:[n==="small"?i.jsx(U,{children:l?i.jsx(Z,{}):i.jsx(J,{})}):null,i.jsx(I,{windowSize:n,children:v})]}),i.jsxs(N,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(R,{children:[i.jsx(_,{}),i.jsx(F,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(K,{children:b}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(H,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=$.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(G,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},q=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as z,q as U,u as M,X as W,M as D,a as G,a5 as X,j as s,
|
|
1
|
+
import{C as z,q as U,u as M,X as W,M as D,a as G,a5 as X,j as s,P as H,c3 as J,aW as K,F as Q,a7 as Y,o as f}from"./index-DTlzo6Yx.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-BfnTsu_D-DwG4wG8g.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new z(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,P=X(u?.fetchState),{upperBound:w}=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 O=g.handleSubmit(()=>{N()}),V=async(i,p)=>{b(p)};return L.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const q=H(p);J(()=>V(R,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,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($),onSubmit:O,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:w===1/0?Number.MAX_SAFE_INTEGER-1:w-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($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,bO as q,bQ as G,bR as U,cq as O,q as l,as as Q,Q as P,ar as X,g as j,cn as Y,aN as _,r as F}from"./index-
|
|
1
|
+
import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,bO as q,bQ as G,bR as U,cq as O,q as l,as as Q,Q as P,ar as X,g as j,cn as Y,aN as _,r as F}from"./index-DTlzo6Yx.js";import{n as i,b as V}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=V.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(K,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[t.jsxs(Z,{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(q,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},K=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,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt,fM as Lt,fN as Ot,j as t,bO as ze,bQ as Ae,bR as Me,Y as y,aW as Re,aH as _t,dr as Wt,fO as Et,fZ as Pe,o as a,fP as Be,cP as b,cR as x,fS as w,_ as Ne,cO as Le,r as K,fU as Oe,a7 as Kt,p as Ft,fV as Vt,fW as ae,aR as Ut,fX as Yt,a6 as Ht,Q as Gt,h as qt,t as et,as as tt,g as F,m as Jt,eY as Qt,v as Xt,gc as Zt,g8 as ei,q as c,ah as ti,cl as ii}from"./index-BFn0iyzF.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-Bes1nCJn-CI5aLm07.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-CQlsMYN3-DzTpPq3-.js";import"./uploadReceipts-Buvz7DfG-C9miDyXe.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 Gt("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:V,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:U,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,H]=p.useState(!1),[ct,G]=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")&&U()},[e,U]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{U()};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),xe=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.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=>{G(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{G(!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"),G(!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(Ot)),[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??we,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(_t,{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(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ge,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ue,{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(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(He,{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(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:V,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(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ge,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(He,{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(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{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:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{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(xi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&H(!1)},children:t.jsx(Kt,{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(Ft,{onClickAway:()=>H(!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(wi,{onClick:()=>H(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,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:xt,threadUnResolve:wt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const V=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:V.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
1
|
+
import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt,fM as Lt,fN as Ot,j as t,bO as ze,bQ as Ae,bR as Me,Y as y,aW as Re,aH as _t,dr as Wt,fO as Et,fZ as Pe,o as a,fP as Be,cP as b,cR as x,fS as w,_ as Ne,cO as Le,r as K,fU as Oe,a7 as Kt,p as Ft,fV as Vt,fW as ae,aR as Ut,fX as Yt,a6 as Gt,Q as Ht,h as qt,t as et,as as tt,g as F,m as Jt,eY as Qt,v as Xt,gc as Zt,g8 as ei,q as c,ah as ti,cl as ii}from"./index-DTlzo6Yx.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-CfAnZsV9-DBOTURQ6.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-sbbFtu9R-wkkd2tSH.js";import"./uploadReceipts-Buvz7DfG-JDslMarZ.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:V,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:U,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")&&U()},[e,U]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{U()};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),xe=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.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(Ot)),[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??we,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(_t,{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(Ki,{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(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ue,{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(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{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(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:V,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(Oi,{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(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{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(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{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:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{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(xi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Kt,{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(Ft,{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(wi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,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:xt,threadUnResolve:wt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const V=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:V.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)};
|
|
@@ -184,7 +184,7 @@ import{y as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
|
|
|
184
184
|
background-color: ${e=>e.theme.colors.grey3};
|
|
185
185
|
min-height: 1px;
|
|
186
186
|
max-height: 1px;
|
|
187
|
-
`,zi=r(
|
|
187
|
+
`,zi=r(Gt)`
|
|
188
188
|
cursor: pointer;
|
|
189
189
|
width: ${a.sp4};
|
|
190
190
|
height: ${a.sp4};
|
|
@@ -250,11 +250,11 @@ import{y as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
|
|
|
250
250
|
`,Ni=r.div`
|
|
251
251
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
252
252
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
253
|
-
`,
|
|
253
|
+
`,Ge=r.div`
|
|
254
254
|
margin-bottom: ${e=>l.bottomMargin.valuePx(e.windowSize)};
|
|
255
255
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
256
256
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
257
|
-
`,
|
|
257
|
+
`,He=r.div`
|
|
258
258
|
display: flex;
|
|
259
259
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
260
260
|
align-items: ${e=>e.windowSize==="small"?"unset":"center"};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{V as me,u as z,X as v,a5 as de,l as D,M as K,j as e,Y as c,aW as pe,K as g,i as m,o as s,Z as xe,c0 as he,a9 as F,m as ue,C as ge,g as j,c2 as we,aa as je,av as be,q as fe}from"./index-DTlzo6Yx.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js";import{f as ke,C as N}from"./play-icon-BDRoJBSV-DFuHei9M.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",W="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%;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
background-color: ${i=>i.theme.colors.grey4};
|
|
7
7
|
`,ve=t.div`
|
|
8
|
-
padding: ${i=>i.windowSize==="small"?`${
|
|
8
|
+
padding: ${i=>i.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
|
|
9
9
|
text-align: center;
|
|
10
10
|
`,Ce=t(he)`
|
|
11
11
|
max-width: 648px;
|
|
12
12
|
margin: auto;
|
|
13
|
-
padding: ${
|
|
13
|
+
padding: ${s.sp7} ${s.sp0};
|
|
14
14
|
color: ${i=>i.theme.colors.primary};
|
|
15
15
|
`,Te=t(xe)`
|
|
16
16
|
max-width: 600px;
|
|
17
17
|
margin: auto;
|
|
18
|
-
padding: ${
|
|
18
|
+
padding: ${s.sp5} ${s.sp0};
|
|
19
19
|
color: ${i=>i.theme.colors.primary};
|
|
20
20
|
`,X=t.div`
|
|
21
21
|
display: flex;
|
|
@@ -23,7 +23,7 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
|
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
margin-bottom: ${i=>Se.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
-
`,Pe=t.div``,
|
|
26
|
+
`,Pe=t.div``,V=t.div`
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
29
29
|
align-items: center;
|
|
@@ -49,8 +49,8 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
|
|
|
49
49
|
transform: scale(100%)
|
|
50
50
|
}
|
|
51
51
|
`,G=t.div`
|
|
52
|
-
width: ${
|
|
53
|
-
height: ${
|
|
52
|
+
width: ${s.sp9};
|
|
53
|
+
height: ${s.sp9};
|
|
54
54
|
background: ${i=>i.theme.colors.playButtonBackGroundColor};
|
|
55
55
|
display: flex;
|
|
56
56
|
align-items: center;
|
|
@@ -69,19 +69,19 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
|
|
|
69
69
|
justify-content: center;
|
|
70
70
|
align-items: center;
|
|
71
71
|
`,H=t.div`
|
|
72
|
-
margin-left: ${i=>i.windowSize==="small"?
|
|
73
|
-
margin-bottom: ${i=>i.windowSize==="small"?
|
|
72
|
+
margin-left: ${i=>i.windowSize==="small"?s.sp0:s.sp6};
|
|
73
|
+
margin-bottom: ${i=>i.windowSize==="small"?s.sp4:s.sp0};
|
|
74
74
|
background: ${i=>i.theme.colors.grey3};
|
|
75
75
|
border-radius: 12px;
|
|
76
76
|
border: ${i=>`1px solid ${i.theme.colors.grey3}`};
|
|
77
77
|
padding: 15px;
|
|
78
78
|
`,d=t.div`
|
|
79
|
-
border-radius: ${
|
|
79
|
+
border-radius: ${s.sp12};
|
|
80
80
|
border: ${i=>`1px solid ${i.theme.colors.grey2}`};
|
|
81
|
-
padding: ${i=>i.windowSize==="small"?`${
|
|
81
|
+
padding: ${i=>i.windowSize==="small"?`${s.sp2} ${s.sp4} ${s.sp2} ${s.sp0}`:`${s.sp3} ${s.sp5} ${s.sp3} ${s.sp0}`};
|
|
82
82
|
background: ${i=>i.theme.colors.grey5};
|
|
83
83
|
position: relative;
|
|
84
|
-
margin-bottom: ${
|
|
84
|
+
margin-bottom: ${s.sp3};
|
|
85
85
|
display: flex;
|
|
86
86
|
align-items: center;
|
|
87
87
|
text-align: start;
|
|
@@ -95,9 +95,9 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
|
|
|
95
95
|
`,S=t(we)`
|
|
96
96
|
color: ${i=>i.theme.colors.champion};
|
|
97
97
|
`,p=t.div``,x=t.div`
|
|
98
|
-
padding-left: ${
|
|
99
|
-
`,
|
|
100
|
-
margin: ${i=>i.windowSize==="small"?
|
|
98
|
+
padding-left: ${s.sp3};
|
|
99
|
+
`,Z=t(F)`
|
|
100
|
+
margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
|
|
101
101
|
color: ${i=>i.theme.colors.grey1};
|
|
102
102
|
`,J=t(C)`
|
|
103
103
|
color: ${j.graphColor16Dark};
|
|
@@ -105,8 +105,8 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
|
|
|
105
105
|
color: ${j.graphColor09Dark};
|
|
106
106
|
`,_=t(C)`
|
|
107
107
|
color: ${j.success};
|
|
108
|
-
`,
|
|
109
|
-
margin: ${
|
|
108
|
+
`,E=t(ue)`
|
|
109
|
+
margin: ${s.sp3} auto;
|
|
110
110
|
max-width: 772px;
|
|
111
111
|
color: ${i=>i.theme.colors.hero};
|
|
112
|
-
`,
|
|
112
|
+
`,r=K.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=K.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(Y,{windowSize:o,children:[e.jsx(G,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(q,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(k,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(k,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(k,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(q,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.simplestText.bold}),e.jsx($,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx($,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx($,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsxs(Y,{windowSize:o,children:[e.jsx(G,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},We=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:re,onBackClick:se,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=f.useState(!1),[ne,I]=f.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),b=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=b?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;f.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:r.title,backgroundColor:le.colors.grey4,onBackClick:se,showBackButton:!b,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:b?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:re,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{We as default};
|