@zeniai/web-cockpit-ui 1.15.24-qa → 1.15.25-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-DsLMYxB2-DKIqWfd5.js → ACHDetailsPage-Davpg8eW-BWDILC-H.js} +3 -3
- package/dist/assets/{AIPerformancePage-Do1Jme84-BQuxssWs.js → AIPerformancePage-BXF0kUqR-BgyTM2y7.js} +104 -104
- package/dist/assets/AccountInfoPage-Cefnidcc-Bp5rUTr8.js +18 -0
- package/dist/assets/{AccountInfoPageContent-DLxvkpvG-DlM7C5lw.js → AccountInfoPageContent-QMyPHCdY-DP0akuHx.js} +15 -15
- package/dist/assets/AccountLockedInfoModal-BdFY6p56-RTWbIB_l.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-BMhGA2Nw-Z2PUl5SJ.js → AccountReconDetailsDrawerPage-CoXPQka7-DFQZksfD.js} +11 -11
- package/dist/assets/AccountRow-DHB-ETil-0INUiG8Z.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-Cq1lsoaV-GSf-HLu0.js → AccountsPromoCardStack-Dkz2VyEk-BJf7WrAq.js} +22 -22
- package/dist/assets/AddAddressForCardDrawer-CUKknbhJ-CnCLxax6.js +6 -0
- package/dist/assets/{AddToWalletPage-CEhxUk5V-BYjPBKkY.js → AddToWalletPage-p0T8VFfo-WTTL1b0G.js} +47 -47
- package/dist/assets/{AgingReportsPage-CYrw-ffE-5eIk6Dcl.js → AgingReportsPage-CTzjRkV2-CkKYMdrC.js} +15 -15
- package/dist/assets/{AllUserItems-CUPJzOon-ByAd3cpG.js → AllUserItems-Dt9rMGJk-D2oOTLOS.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-BHfoAgPL-Z6JXUJ8l.js → ApAgingDetailPage-71VQk7px-BPdIn6ZS.js} +7 -7
- package/dist/assets/AppBasePage-tDs92z31-B3gR6k96.js +71 -0
- package/dist/assets/{AppDrawerContent-CxmXgxbq-CR8uI5HI.js → AppDrawerContent-ULUH1WZ3-CblzrDc2.js} +4 -4
- package/dist/assets/{ApprovalRulesSettingsPage-gu0Fjo8W-DPQDhehm.js → ApprovalRulesSettingsPage-Ciz-iaE5-ghG5WVzt.js} +1 -1
- package/dist/assets/{ArAgingChart-CxGoJ-eL-Blphsvqz.js → ArAgingChart-DcwM2rpv-C36SsOV8.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CNKe5FGf-BfLy-wH_.js → ArAgingDetailPage-eGCSFdAM-BJk9vCxH.js} +4 -4
- package/dist/assets/{AttachmentView-BNb1kv2i-DkhgYBN2.js → AttachmentView-CA6PRg4p-DDr9TCOl.js} +4 -4
- package/dist/assets/{BankAccountSection-nxf2HgVE-G54ZtA0k.js → BankAccountSection-mWUT-G8y-2k5xTeyX.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-b7VJzhDr-CptxWENX.js → BankAccountWarningSection-IMtILLfL-BhKJ6bLn.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-Dj5RPseY-TdFPSmBq.js → BankConnectionsSettingsPage-COyH3rdC-Be8G7lph.js} +10 -10
- package/dist/assets/{BillDetailPage-B8vxUUjs-C-CFBqEj.js → BillDetailPage-BR_9uHRC-mLWBTrh1.js} +13 -13
- package/dist/assets/{BillPayApprovalRuleDetailPage-RxCSuM7j-BqEZg33H.js → BillPayApprovalRuleDetailPage-cRAudMvm-CWVbYb1D.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-qB8FSNxF-rbTYrF-M.js → BillPayApprovalRulesPage-Cd0aJtip-BTxbg4yL.js} +8 -8
- package/dist/assets/{BillPayPromoPage-C-MLRBwj-vOq8U5gh.js → BillPayPromoPage-BYW097HT-D4YnpN75.js} +10 -10
- package/dist/assets/{BillPaySetUpPage-DUcVwFf0-CYjbtEEg.js → BillPaySetUpPage-BahrLUn4-CqC29kIw.js} +4 -4
- package/dist/assets/BillingSettingsPage-BjMeQKM0-CpnNOiGS.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-Cm2iOzT8-6b_1kNK1.js → BillsBulkReviewDrawerPage-CJ-GbBhL-B7DfrKfl.js} +1 -1
- package/dist/assets/{BoxItem-BIGbJrpV-BZ7_ozC2.js → BoxItem-CvhcNreT-DxmoznPD.js} +1 -1
- package/dist/assets/BusinessVerificationPage-LKrdd6Ej-BKb49OWB.js +138 -0
- package/dist/assets/{CardNumberSubText-lCdVj97_-CAB_Kln4.js → CardNumberSubText-CfoSPAZU-BdVhRiwJ.js} +3 -3
- package/dist/assets/{CashbackDetailPage-DyqE-V7x-DhQHhGde.js → CashbackDetailPage-CWlaZrqz-DvIAxVRW.js} +13 -13
- package/dist/assets/{ChargeCardDetailPage-0a7KVsQ4-DT0O76Wc.js → ChargeCardDetailPage-BNNbd3G1-BtUCuJum.js} +35 -35
- package/dist/assets/{ChargeCardListPage-DZgzRmUt-D6J_weNw.js → ChargeCardListPage-BzIvl8RY-Ncd3QF6u.js} +16 -16
- package/dist/assets/{ChargeCardListTable-CrPIqCYY-CgNAiVSn.js → ChargeCardListTable-D-uQKI4t-lkMdiYYu.js} +46 -46
- package/dist/assets/{ChargeCardPaymentHistoryPage-BenEXh0n-Cun1p0sn.js → ChargeCardPaymentHistoryPage-DmzlfD-l-OAmKFjuL.js} +12 -12
- package/dist/assets/ChargeCardPromoPage-DOYqOs6K-xBYShKSz.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BQdagLKY-BUWz2gWE.js → ChargeCardSetupPage-CSnLMycu-BkjYVqCn.js} +3 -3
- package/dist/assets/ChargeCardStatementsPage-C82CsaNY-DzvzbShn.js +60 -0
- package/dist/assets/{CheckDepositDrawerPage-Bbe3YMhk-DlMo_ctS.js → CheckDepositDrawerPage-DN5Ok0Y6-DOjKYa5p.js} +21 -21
- package/dist/assets/{CollapsableReportTable-Bjp9ufA3-BUww2EPB.js → CollapsableReportTable-CncMWpFI-CnBbDhbn.js} +93 -93
- package/dist/assets/CompanyOfficerDetailsSection-5Gmlo5HX-mf8toy40.js +331 -0
- package/dist/assets/{CompanyPassportCard-B9yLuYoV-7uXZA6qZ.js → CompanyPassportCard-Ccw8l9iz-CwNj32nj.js} +3 -3
- package/dist/assets/CompanyPassportPage-IjpU53y_-BF5RjsoV.js +417 -0
- package/dist/assets/{CompleteProfile-DlDJUF9s-Ds-cc2Li.js → CompleteProfile-CQUDJ-nI-DJVg2OT2.js} +1 -1
- package/dist/assets/ConfettiBurst-C_6Uy7eR-Np_3vQFo.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CPRMOwDl.js → ConstrainedInnerElement-BeIpAPjB-BVda4Dj4.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C0zQBkip-Bwlp-KX1.js → CreateOrEditVendorPage-DM90rr4S-BcABoxWR.js} +16 -16
- package/dist/assets/{CreditCardPaymentDrawerPage-BonuuJrp-D6Esu5Ka.js → CreditCardPaymentDrawerPage-Bh0QdxXh-Dti2BnoN.js} +11 -11
- package/dist/assets/{CurrencySelectField-CcwMU19m-Dv2FTyMF.js → CurrencySelectField-BDfEzwpU-4zlCOdOf.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-CnLIuUI_-DOyaYse5.js → CustomerOnboardingActivationPage-CJGtq19l-BpCso2Fz.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-CP6DdMkC-CnaDFGWF.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DFnaf7ny-DHFbJUSq.js → CustomerOnboardingDetailPageSkeleton-DSqc1_bS-CATYZXta.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-BuWnQGPi-BSZV9BI0.js +66 -0
- package/dist/assets/CustomerOnboardingPage-Bl2oAvin-B7GmsFRo.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DrUE-f0H-CurdzAi_.js → CustomerOnboardingProductSuitePage-CZDipU2j-BbQ2Iy2J.js} +4 -4
- package/dist/assets/{Dashboard-Cgrcdi17-XnHxKrKg.js → Dashboard-DyQZQS2X-mxU1Jkng.js} +66 -66
- package/dist/assets/{DashboardReportPage-DbhRTdc4-CpN5HaDx.js → DashboardReportPage-Dn7pVdG9-DtcRvxDO.js} +13 -13
- package/dist/assets/DashboardSidebarBackgroundAnimation-iiFGhvRQ-y0LRofZR.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-D1o4IBkT-BgfivdRm.js → DepositAccTransactionItem-DDdkQsmn-B5pGW8gX.js} +6 -6
- package/dist/assets/{DepositAccTransactionListPage-xxNjjtT--BvwZH-r8.js → DepositAccTransactionListPage-BHdmR6m5-7yonpKjA.js} +5 -5
- package/dist/assets/{DomesticWireDetailsPage-CwJaUAl--xZbxKmq6.js → DomesticWireDetailsPage-CpwSOc_0-CElrVONi.js} +1 -1
- package/dist/assets/{DownloadOverlay-DQhWlo3j-ou1Zr3sv.js → DownloadOverlay-Dhib22Hz-D3Lt9Smx.js} +11 -11
- package/dist/assets/{DrawerPage-Cy3cU-ts-DL-hvylm.js → DrawerPage-nxxj86nQ-CJOa9BEO.js} +14 -14
- package/dist/assets/EditPeoplePage-CG5gmNTR-CH2Xt3X8.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-CPtNF3lE-BUz5GUcq.js → EditReimbursementDetailPage-C2kqq9QP-Bbzp1pVf.js} +73 -73
- package/dist/assets/EntityDetailPage-CL0FCU_m-BGtD2JCX.js +18 -0
- package/dist/assets/{EntitySummarySection-DKVe_auH-BhjgU5OF.js → EntitySummarySection-C29GLBzF-CWqpKadr.js} +8 -8
- package/dist/assets/{ExpenseAutomationOverviewPage-BerWhvvC-DBNdoj-V.js → ExpenseAutomationOverviewPage-B4kcx-VG-CGPR3A1h.js} +22 -22
- package/dist/assets/{ExpenseAutomationPage-ZFDuZKVx-BOLEz3OZ.js → ExpenseAutomationPage-DNwnoyPg-DCSz-PUa.js} +295 -285
- package/dist/assets/{ExpressPayPage-DWGFzFY1-kbQqZZxK.js → ExpressPayPage-K-InpYtZ-DIVfrk0c.js} +19 -19
- package/dist/assets/{FeaturePreviewPage-CTROYslk-DNnHSl_T.js → FeaturePreviewPage-IsRBHkoD-e3f7mixU.js} +2 -2
- package/dist/assets/{FollowStepsSection-Cdw8tftg-LjozyTXw.js → FollowStepsSection-ClyCs5f_-Dx038WgT.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-FIiMWDt4-D2ht755B.js → GlobalReviewListPage-n8XrBXXp-BZl-OsOG.js} +16 -16
- package/dist/assets/{InformationCardStack-DRM_CrnR-Dr6abp-W.js → InformationCardStack-BnOF2kCh-C7gNsonq.js} +7 -7
- package/dist/assets/{InsightsCardStack-B6KSNBOO-ivzZWeJo.js → InsightsCardStack-Bgzkang3-CA8GAaRZ.js} +9 -9
- package/dist/assets/InsightsSection-C16f1RZL-BLvjZ1kW.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-VPy6IQco-B18SLH29.js → IntegrationsSettingsPage-D1QWrVQw-BXx7A_Fv.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-CbztUTOk-C1ODTgTQ.js → InternationalWireSwiftDetailsPage-DNNEqdWS-B78a52iW.js} +20 -20
- package/dist/assets/InternationalWireVerificationPage-xmHZ6XN7-DwVwtiyi.js +65 -0
- package/dist/assets/{InviteFormPage-BBHD1wv7-C_4SKmOY.js → InviteFormPage-C-Io8wxr-DZ679TjD.js} +21 -21
- package/dist/assets/{InvitePageListView-Gpf4q2HF-CEWnpXn7.js → InvitePageListView-B1PLdKSn-3WJcdIb9.js} +55 -55
- package/dist/assets/InvitePeoplePage-BArxsNxE-BXI3n59t.js +12 -0
- package/dist/assets/InvoiceUploadSection-Eo7dq75t-C9QkPoGX.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CiL8yWbI-CIy8MoIn.js → IssueChargeCardPage-CC6D-uPl-dzV4_AJm.js} +15 -15
- package/dist/assets/{LabeledAddressValue-DGEHzZ-x-CfIKvo1E.js → LabeledAddressValue-CKZJgaV5-cxiw5XUU.js} +2 -2
- package/dist/assets/LabeledAddressValueField-DNGOSAvq-BXE6xS8k.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CR2DslKs-Cl2J9WYt.js +16 -0
- package/dist/assets/LabeledCountryMultiSelectField-B8Lbv837-DgWr30M7.js +237 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-BzOLZcSy-C22qT18Z.js → LabeledCreatableSingleSelectField-N1wb0l0p-Dc3bkr-e.js} +17 -13
- package/dist/assets/LabeledDocumentField-vSq1xSUM-C_0QT0Hr.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-CqDEmdfe-DrhnwOAX.js +59 -0
- package/dist/assets/{LabeledText-CYRn3LhA-DWGTPjd2.js → LabeledText-DiJE8avC-CseM5wCJ.js} +5 -5
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BzsLAAeQ-BmguFMb2.js → LabeledUserSingleSelectWithSubtitlesField-CLup6THe-B8wjUmse.js} +20 -20
- package/dist/assets/{LabeledZeniRolesDropDownField-UiY4N_NF-Djo3S0ey.js → LabeledZeniRolesDropDownField-CVg9PTpl-CmXvnZ1S.js} +33 -33
- package/dist/assets/{LinkJETransactionPage-PvLzGCy_-B6huT0SK.js → LinkJETransactionPage-DaGHGCIJ-ZPmKuaes.js} +8 -8
- package/dist/assets/{LockCardPage-Cv1mXAE9-DETgYyCF.js → LockCardPage-CGYlmPkB-BpMPFgRW.js} +24 -24
- package/dist/assets/{LowBalancePopup-go-1GM2R-ClVuygNj.js → LowBalancePopup-YJW7eKud-C5-4WX6d.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-C3TnWCqC-ByYEbu_t.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BUjap5Q7-Bvcp-odv.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-COXCHYYI-DrkXHgBT.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-CdHOdUZ5-CSa0Vcf2.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CPs72o7_-DBHt9Igm.js → MagicLinkTitleSection-CCF7Ahgh-BraYyP_S.js} +4 -4
- package/dist/assets/MailingDetailsSection-WMvjKFiS-C1_EkXyZ.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-Xo-zsUV_-B9fPJRoq.js → MyBankConnectionsSettingsPage-BJi0owDl-C6fsBM4C.js} +9 -9
- package/dist/assets/{MyPendingActivationChargeCardListPage-pMnrYxHt-D-heAgjR.js → MyPendingActivationChargeCardListPage-BWIla-hh-BQ4ym9Ei.js} +2 -2
- package/dist/assets/MyProfileSettingsPage-B0uYhezS-DbNVKwps.js +85 -0
- package/dist/assets/{NavBarWithPicker-DFywcKz8-BdsjK4vI.js → NavBarWithPicker-BGZvvByA-4hcBX9YX.js} +5 -5
- package/dist/assets/{NavigationArrow-BiYMk3Wz-CV64X4HQ.js → NavigationArrow-C3pN6F3u-tAd2nukx.js} +7 -7
- package/dist/assets/{NavigationDots-CCLpxuwG-33BZJiro.js → NavigationDots-D1rJnVkZ-DI_AwSe8.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-C48VzTEf-BhyO826c.js → NewGlobalMerchantPage-DU2Z_NYb-CczYC_Cy.js} +12 -12
- package/dist/assets/{NoDataChart-sGr0o2BN-CgZmA0TN.js → NoDataChart-DuEsebs4-BQTTXvg9.js} +2 -2
- package/dist/assets/NoDataTable-B7LkfAQX-CdTNbZgo.js +8 -0
- package/dist/assets/{NotFoundPage-DFw9HBCT-0UwPngI1.js → NotFoundPage-DLtikmoi-CJn1LsuA.js} +9 -9
- package/dist/assets/{NotificationSettingsPage-D1rRNeRj-Bw3eepl1.js → NotificationSettingsPage-DwsCKyVM-AIL1SOh9.js} +12 -12
- package/dist/assets/{NotificationsListConfig-LrfChZUx-RWUkV3Sx.js → NotificationsListConfig-CMtBeX4D-Dg29H_7b.js} +1 -1
- package/dist/assets/{NotificationsPage-Cx4eb-l6-Bmwqr_H4.js → NotificationsPage-CZrXzWli-9C2iwOMz.js} +24 -24
- package/dist/assets/{OpExByVendorPage-LpdEEb1U-CiRx5TKb.js → OpExByVendorPage-0PLAOQu5-DLLDMhgS.js} +20 -20
- package/dist/assets/OverlayContainerPage-D4QU0p4o-D2G-CVv7.js +11 -0
- package/dist/assets/{PandLWithForecastPage-DwaVCK2R-DvQKQu5s.js → PandLWithForecastPage-PkrBqcAR-Djqg6ntv.js} +10 -10
- package/dist/assets/PaymentAccountSetupBillingAddressSection-C026Xg59-Du1LULBI.js +107 -0
- package/dist/assets/PeoplePage-PyWOVc5M-DILaV4hT.js +727 -0
- package/dist/assets/{Preview-BCmMZb_d.js → Preview-DaDKYAzg.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dp5Of83--C9TEcIb9.js → ProductsCarousel-fMS3PJAc-r1K9Xxoj.js} +5 -5
- package/dist/assets/{PromoBaseCards-Bpmi7do2-DeOoBn1O.js → PromoBaseCards-HY42c1kU-DSpx7Fy3.js} +17 -17
- package/dist/assets/{QBOConnectionDialog-BCOigpzW-BBWvt6M8.js → QBOConnectionDialog-B_AOC_hG-BSWcu79k.js} +3 -3
- package/dist/assets/{QBOSetupSection-Blf2QxYu-Bt1Iazrw.js → QBOSetupSection-CQHdqpJF-CH_S6Ewi.js} +10 -10
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D0oeO5MZ-95x-7hZW.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-Cq3lTD4B-BL73XOQv.js → ReimbursementApprovalRulesPage-Beg7ljMA-Cr4MOQVc.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-CxP7ZEyW-DzWZJWkr.js → ReimbursementDetailPage-DBxKNhum-DE3tfEga.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-tSycJK9l-DgiKrFaE.js → ReimbursementPromoPage-DxZeTOQW-CNGgL2HL.js} +22 -22
- package/dist/assets/{ReimbursementSetUpPage-iGjNkC8E-B8NnEeyY.js → ReimbursementSetUpPage-CN4LhFrS-BfRZlJ5w.js} +10 -10
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HrLSNRHq-CeYe3rfm.js → ReimbursementsBulkReviewDrawerPage--6OUmjzW-D3GoPfdC.js} +1 -1
- package/dist/assets/{ReloadCard-CuRTghCv-3_xFCAvr.js → ReloadCard-BluhBNO--D0eilzgR.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-C2oaqgZL-LiKiujIv.js → ReportTableViewSelector-8KYimU0G-YYB33_Xu.js} +31 -31
- package/dist/assets/{ReportsPage-D5DDZHox-oQcDXAqo.js → ReportsPage-D-UfdQ34-CNx_b_ly.js} +5 -5
- package/dist/assets/{RevenueChart-Na7paK3w-xsPSohkz.js → RevenueChart-C9EztEKi-BbW9YFNy.js} +18 -18
- package/dist/assets/{ReviewDetailsPage-BFj3ZJyp-C3ZZt6ZX.js → ReviewDetailsPage-B6SYtYUA-d0bXCGW4.js} +32 -32
- package/dist/assets/{ReviewOverlay-Cz8LqkKC-LpMuOjyz.js → ReviewOverlay-C2enVZqt-C_vH9CpL.js} +18 -18
- package/dist/assets/RoleWithToolTip-DA3BIg5j-DG-Lih0N.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-UVIM7eda-DfB6eFkU.js → ScheduleDetailsFixedAssetsPage-DmBVVX79-6-1NS4t6.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-_mUOLW28-BO_4j_pg.js → ScheduleDetailsPage-Bp3d9tdD-Ct_0Fci8.js} +8 -8
- package/dist/assets/ScheduleSequenceTable-B1fJ-_4f-VSvFhL5f.js +324 -0
- package/dist/assets/{ScreenRoutes-CtQ8gAzw.js → ScreenRoutes-CvjimsD0.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C_DCt5R8-CR6h0hZw.js → SetUpAccountSection-DiEFZwFL-DC1aQ-pj.js} +5 -5
- package/dist/assets/SignIn-T74bkrxk-ptxkK8PP.js +491 -0
- package/dist/assets/SignInScreen-BYcec7re.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-Cxe5movK-Cp5y9Fyu.js → SpendManagementListViewPage-BoWIPx5V-DXR-HLOL.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-Dj9VrJCp-DyydCk6c.js → SpendManagementPerTabPage-DRrECrxC-dCEqiObE.js} +25 -25
- package/dist/assets/{SpendManagementSection-DGGqh0xs-DYfYRUAC.js → SpendManagementSection-xoH8d-PB-6nPhw1xu.js} +23 -23
- package/dist/assets/StatementItem-BthXwXFQ-j2l7jY5v.js +31 -0
- package/dist/assets/StatementsPage-FmjXzQ3g-oWNeSYKv.js +58 -0
- package/dist/assets/{StatusSwitcher-DsSflF9D-C9Uj39S-.js → StatusSwitcher-C-2QxP_3-DVOlvAn4.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DxUZTJB0-BcVJNQoB.js → SubTabSwitcher-D3iTZY-F-CSjMFn8K.js} +2 -2
- package/dist/assets/{SummaryCard-B1mg84fd-BMICGbB9.js → SummaryCard-BbzDLzif-jCXiXuPT.js} +1 -1
- package/dist/assets/{TaskManagementPage-Z40FApxJ-DL--AmQh.js → TaskManagementPage-DI_lMbra-CdUdFSOY.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-B4sHEx1F-DFE9Lsm5.js → TimeRangeSwitcher-C3mH2YE7-CZoVUBkm.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-D8zfgEX_-De-R1snt.js → TimeframeSwitcher-C8iVJfJz-B35AQLzW.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-CdFx3214-DF2bdFav.js +31 -0
- package/dist/assets/{TopExCard-BpicN73M-Dj1d-6JO.js → TopExCard-DlberdWy-AXYKUOGt.js} +6 -6
- package/dist/assets/{TopExDetailPage-iw-7HulH-BloggZUw.js → TopExDetailPage-DZyUPQ9i-kejvgUv1.js} +9 -9
- package/dist/assets/{TransactionActivityLogPage-D7oH2hs_-CmbXQuTN.js → TransactionActivityLogPage-Bpdbc21v-DQ1FP9jB.js} +15 -15
- package/dist/assets/TransactionDetailPage-CaRcJukf-CnifEZvn.js +903 -0
- package/dist/assets/TransactionList-BAziC6eS-6qNOgl8E.js +153 -0
- package/dist/assets/{TransactionListBig-BYHLJtlB-7uyuVHel.js → TransactionListBig-D6Q9QimF-DjvcRG58.js} +13 -13
- package/dist/assets/TransactionListPage-Ce_lSS6C-YqGl74XY.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-CEAFUrTl-DPFjrUzW.js → TransactionVendorDetailPage-B4A4amjV-rbnaqzN7.js} +7 -7
- package/dist/assets/{TransferDrawerPage-C6hdavbT-D88FiI-0.js → TransferDrawerPage-Dfhpu5Yd-D-lZQHfG.js} +27 -27
- package/dist/assets/{TreasuryOverviewPage-BP26JP5_-CseTVHsp.js → TreasuryOverviewPage-B6WhqRDb-BYZSOn3C.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DjVR20gs-CLIAZ8sX.js → TreasuryPromoPage-C5DXueHJ-DvuJR2wv.js} +131 -131
- package/dist/assets/TreasuryStatementsPage-8qXJLq1U-C7VbrxO2.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-ClJA2mWI-xsnS5RHz.js +58 -0
- package/dist/assets/{TrendChart-sup0F9JZ-DSEAIHAe.js → TrendChart-FPLC1aMv-BpKn1lA4.js} +3 -3
- package/dist/assets/{TrendWithTransactions-C7azwT25-Bax9K_N2.js → TrendWithTransactions-_O4Fz3pt-B_P0jc9Y.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-Etkl_fAG-CrNZiboy.js → UncategorizedAccountsMappingPage-rdMygvxx-CB5luTSv.js} +22 -22
- package/dist/assets/{UnitIntegrationPage-ZsJHRr7Z-DnB4_Zct.js → UnitIntegrationPage-WfFukh9_-Db1kSxll.js} +11 -11
- package/dist/assets/{UploadAdditionalDocumentOverlay-Z5AuwaDQ-B2Cs9t2G.js → UploadAdditionalDocumentOverlay-xiqklxM_-C-ghpumD.js} +1 -1
- package/dist/assets/Vendor2FAPopup-DK98Bntc-CHLdTtz5.js +1 -0
- package/dist/assets/VendorACHDetailsPage-Bxo11l9N-DiVKko5M.js +1 -0
- package/dist/assets/{VendorDetailPage-Dnr8_eWj-oFCPIA59.js → VendorDetailPage-Cexet52V-fximdJ6Q.js} +25 -25
- package/dist/assets/VendorDomesticWireDetailsPage-DbhChvIp-Cn8HKuB3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-C7SK3oAX-BeOVSOYX.js → VendorFiling1099EditablePage-Bnwp2JiZ-B1voyhYV.js} +38 -38
- package/dist/assets/{VendorFirstReviewPage-sMOzaFlZ-DmFO_p3M.js → VendorFirstReviewPage-C_xSf47L-YlGbjVwi.js} +37 -37
- package/dist/assets/{VendorInternationalWireDetailsPage-B2c1Rev--CSKl1Vjc.js → VendorInternationalWireDetailsPage-DVuenbq8-CpmeIHQG.js} +9 -9
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BNySLbxk-CvXAX7v6.js +1 -0
- package/dist/assets/{VendorsAccountsSection-Df4nOfCb-DAl3nupW.js → VendorsAccountsSection-DYSlIqnJ-D8aKvLQv.js} +2 -2
- package/dist/assets/{VerifyDevice-ogibIJ0s-BnNQtXiS.js → VerifyDevice-MbuunHNJ-0NsL1ICM.js} +9 -9
- package/dist/assets/{VideoPlayer-C5JZyeyT-DadgGvmc.js → VideoPlayer-B-oV4gcS-IlmjYyud.js} +2 -2
- package/dist/assets/{VideoPopup-Dw-9lQNK-yoJdS8GI.js → VideoPopup-DFfn4tne-e-69xGLM.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-CR9wWm5g-C6z513Mb.js → WarningsDrawerPage-C_nKfBpS-CgVWLVpY.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-CP6XbPoi-BIH8iyXn.js → ZeniAccountDetailPage-jYwDoLiN-C9ExO4Jo.js} +17 -17
- package/dist/assets/{ZeniAccountListViewPage-B-8rvc59-BKuFOztM.js → ZeniAccountListViewPage-CWiWh2ld-BsZ-NitY.js} +20 -20
- package/dist/assets/ZeniAccountNavBarPieces-BK32R48c-BhUfl-Q9.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-DmXuuPc3-LNpY_fdO.js → ZeniAccountPromoPage-DPab5PDZ-CdBoWbQ6.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-CiLrh0yu-AtE9vx6M.js → ZeniAccountSetupPage-Dbqa1LpU-DR-JNx31.js} +1 -1
- package/dist/assets/{ZeniCopyright-DIzbP27w-BBhz6Xwh.js → ZeniCopyright-SDIPg48K-6zG7DJUz.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CYZYkuN_-ZAbh5fe3.js → ZeniTransferAmountSlider-Bg59KBt9-PXMuIYqh.js} +11 -11
- package/dist/assets/{add-to-wallet-DgdBD8_G-DsabBTTA.js → add-to-wallet-DgdBD8_G-4MTVGYLk.js} +1 -1
- package/dist/assets/{analytics-DyCH8fdj.js → analytics-DkApCpAh.js} +1 -1
- package/dist/assets/analyticsHelper-DAh0LrcL.js +1 -0
- package/dist/assets/{analyticsHelper-CirorDP7-BBwgJh2i.js → analyticsHelper-DfCXurTN-CSH8s8BS.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-u4TBRWYh.js → arrow-south-east-round-PEovUgvH-sjXlUHVP.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CKdpG0Wv.js → auto-transfer-rule-mbafm5D3-8P5UKTjR.js} +1 -1
- package/dist/assets/{chartTypes-B9iWOG3r-B1tHasb2.js → chartTypes-H306f0ce-DSh0OTeZ.js} +1 -1
- package/dist/assets/{commonDimensions-SFn2jHVc-W5oDY-Cl.js → commonDimensions-CWffpElu-DyTXC1xY.js} +1 -1
- package/dist/assets/commonTypes-DP3nDhtI-D-fLD29s.js +1 -0
- package/dist/assets/{constants-BPypkR2d.js → constants-42un7CRh.js} +1 -1
- package/dist/assets/{core-abG3s-mt.js → core-DQ8U4CJb.js} +1 -1
- package/dist/assets/{dash.all.min-BxgXbuTP.js → dash.all.min-xDoItceu.js} +1 -1
- package/dist/assets/{detailCommon-BTjqps8N-BxbaqYHY.js → detailCommon-CfrL4ryy-K2hvWKyD.js} +2 -2
- package/dist/assets/downloadPdf-C1zKY9Rq-Bj2M-x0n.js +1 -0
- package/dist/assets/{empty-CpBaMiET.js → empty-DBMIDect.js} +1 -1
- package/dist/assets/{empty-DqczoxtD.js → empty-DMdKDWd5.js} +1 -1
- package/dist/assets/epic-av5bi8Jm.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-muscVLug.js → gift-box-Cmt9OgIZ-CKZgCX5V.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-BDzwyc71.js → graphic-no-data-l-DU4J8fDt-B74xUk4A.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DuFj4Okf.js → graphic-no-data-net-burn-l-CzmycA0m-CY998Ry-.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BnjdTShZ.js → handshake-BPg58FML-ci6EVnAm.js} +1 -1
- package/dist/assets/helper-Byvbf3nO-BTmT7Zux.js +223 -0
- package/dist/assets/{index-c9CJIpO5.js → index-BIYLqgct.js} +4065 -4076
- package/dist/assets/{index-BR6z2Cuo.js → index-C-yZdmSC.js} +1 -1
- package/dist/assets/{index-CLsoD8lW.js → index-CP7n6qbn.js} +1 -1
- package/dist/assets/{index-DKJteqIE.js → index-Ci8_ElRT.js} +1 -1
- package/dist/assets/{index-BBfcm2Yq.js → index-DlHdI3-w.js} +1 -1
- package/dist/assets/{index-CzmKgKhh.js → index-MLR605z1.js} +1 -1
- package/dist/assets/{index-CRcaYiy_.js → index-uFwLgEj2.js} +1 -1
- package/dist/assets/{lexical-Ce5kgHxh.js → lexical-CvUIM9vD.js} +1 -1
- package/dist/assets/{liveblocks-CPDN-bxu.js → liveblocks-DXGUxn7J.js} +1 -1
- package/dist/assets/{lottie-DoLcJmSl.js → lottie-C1yptpVV.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-9Rpdq0ZF-lTETWBpR.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BywQAVX8-BWy9Izzl.js → mapSectionWithAcOnlyToTreeNode-CH8Zwu7Z-DxWz5zBn.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-BCRaNO17-Byu958vH.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cc1RpGkM-aNtvWBak.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CKjqanKd-DENH9FkH.js → mapTimeframeBalancesToTreeNode-DRCseSgo-Bs0MPeVL.js} +1 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BnHYlJ_0-DmtLnyQB.js +1 -0
- package/dist/assets/{mui-D41H02IU.js → mui-rLvQ8A4a.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-22LFYKTK.js → page-detail-CWX5S47F-DxBKGqnW.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-CUpBjaaO.js +3 -0
- package/dist/assets/{radio-default-CiSgisfh-DEBUIxiL.js → radio-default-CiSgisfh-D50TMWyl.js} +1 -1
- package/dist/assets/{react--SQFx4Kx.js → react-BFvwO_Qx.js} +1 -1
- package/dist/assets/{react-CGgueq7f.js → react-BGRcEI9e.js} +1 -1
- package/dist/assets/{react-Cm0EHNfW.js → react-CD-rvAYw.js} +1 -1
- package/dist/assets/{react-BqjJcaMR.js → react-CKPzfXiX.js} +1 -1
- package/dist/assets/{react-DUspGHoH.js → react-CaPJ_R38.js} +2 -2
- package/dist/assets/{react-CtY0Cknp.js → react-CeXW-10t.js} +1 -1
- package/dist/assets/{react-DDATozhB.js → react-D5l7wk4q.js} +2 -2
- package/dist/assets/{react-B04F0wBA.js → react-XCvfp0dN.js} +1 -1
- package/dist/assets/{recharts-B5Zd2InX.js → recharts-BYppTjSs.js} +1 -1
- package/dist/assets/{sentry-BhPnLTGd.js → sentry-DhNwX3jk.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CNdwFJ12.js → shield-DOlUxcFf-1dcmCA6e.js} +1 -1
- package/dist/assets/toCOABalancesWithID-BDzeodcz-CM7cQRcs.js +1 -0
- package/dist/assets/{toChartData-mAeXlYNV-BLp7cdZE.js → toChartData-ILqaSUrn-x9ixmlfa.js} +1 -1
- package/dist/assets/{uploadAttachment-BAVcYsOo-CMKItCdP.js → uploadAttachment-BO1VJaKW-DrgLpT8c.js} +18 -18
- package/dist/assets/{uploadReceipts-Dge0cNF1-MU4yxAi1.js → uploadReceipts-Dge0cNF1-BX-9R6_Z.js} +1 -1
- package/dist/assets/{url-DE7671Su.js → url-C7FJoqre.js} +1 -1
- package/dist/assets/{url-Cp1oOvVY.js → url-DrmuGGE4.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DzBEsit3.js → useLongPress-GCK2COYQ-nce713S8.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-D5KVlHSv.js → usp-line-BBd1wKwW-BIn3NV9C.js} +1 -1
- package/dist/assets/{utils-B-wjDpf0.js → utils-BdIPH7k8.js} +1 -1
- package/dist/assets/{zeni-epic-state-CqFcQgfC.js → zeni-epic-state-DwkN4IvA.js} +18 -18
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-DBm3kSeD-DgZsiQsc.js +0 -18
- package/dist/assets/AccountLockedInfoModal-Dbzdjjk6-CQuhFPxK.js +0 -59
- package/dist/assets/AccountRow-D5S7-AKx-DFEd0gRx.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-Cfd3TMpf-DS6Q-S6T.js +0 -6
- package/dist/assets/AppBasePage-BhcC9bkH-DY-zqUv_.js +0 -71
- package/dist/assets/BillingSettingsPage-Br6yvoDv-BVZt-mIm.js +0 -44
- package/dist/assets/BusinessVerificationPage-orZNuqPA-DN6BhpnL.js +0 -138
- package/dist/assets/ChargeCardPromoPage-Dv8vSGMv-DO14uvec.js +0 -222
- package/dist/assets/ChargeCardStatementsPage-1ntqN8-C-uWaZK7Rq.js +0 -60
- package/dist/assets/CompanyOfficerDetailsSection-DQYR5DxB-Dzg2SYW5.js +0 -260
- package/dist/assets/CompanyPassportPage-DrNN8V93-TiBtr88b.js +0 -574
- package/dist/assets/ConfettiBurst-arWK85ba-Dxqk_qSJ.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-_uAzzeQT-BdhST5rY.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-Dabc1DIn-Bqk6osmf.js +0 -66
- package/dist/assets/CustomerOnboardingPage-Dt4u_Cnq-MYrZCy5c.js +0 -107
- package/dist/assets/DashboardSidebarBackgroundAnimation-C8g6lMFj-DhpqWc07.js +0 -12
- package/dist/assets/EditPeoplePage-XMLOGiwc-DwxtBXpN.js +0 -55
- package/dist/assets/EntityDetailPage-CtIcsfb_-CIHO5j6s.js +0 -18
- package/dist/assets/InsightsSection-CwYXRQBN-ojTww2r2.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-YuglosZT-CTIGwFwe.js +0 -292
- package/dist/assets/InvitePeoplePage-C0n05Aw5-Dsg4dRJP.js +0 -12
- package/dist/assets/InvoiceUploadSection-UXlA1jqD-LW2eaB-9.js +0 -140
- package/dist/assets/LabeledAddressValueField-ClBxKhYQ-IyPU1pJT.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-B8sC2eqF-Cc7yYQUL.js +0 -16
- package/dist/assets/LabeledDocumentField-D520KMMj-Ca86pecT.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-BwoAMxs1-CvSeEIy1.js +0 -59
- package/dist/assets/MagicLinkACHDetailsPage-C7hjYeuM-C-VMVcjc.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Cv6pT3w6-BY_F4ivB.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CfMDImmz-je_9TTbm.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-D9Xys0GC-B16t-MQB.js +0 -31
- package/dist/assets/MailingDetailsSection-wmwBSANL-CATLTkX5.js +0 -21
- package/dist/assets/MyProfileSettingsPage-BKCzLBD9-POWCCK43.js +0 -85
- package/dist/assets/NoDataTable-0l_09Wxn-B_nhuKqo.js +0 -8
- package/dist/assets/OverlayContainerPage-D4QU0p4o-COZLtgYN.js +0 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-CBVazVlJ-CZjIpPrr.js +0 -107
- package/dist/assets/PeoplePage-z8ZDLJp4-C8fD_Q1w.js +0 -675
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D4G5Zc8u-DOAEAlFb.js +0 -32
- package/dist/assets/RoleWithToolTip-CSC65531-D3hYJ9aX.js +0 -22
- package/dist/assets/ScheduleSequenceTable-DQlMdMO0-DgF9ktNo.js +0 -324
- package/dist/assets/SignIn-1fhq5RCV-CQjnMsbe.js +0 -491
- package/dist/assets/SignInScreen-DXMVSzLX.js +0 -1
- package/dist/assets/StatementItem-ChfKUse--4KWnN4Iu.js +0 -31
- package/dist/assets/StatementsPage-BAg2GA58-DVyh5doh.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-CD1f2F9o-Co90HEzt.js +0 -31
- package/dist/assets/TransactionDetailPage-DLiA4XLe-CZEokP0a.js +0 -903
- package/dist/assets/TransactionList-CFz4Gf7Z-DDUxkM97.js +0 -153
- package/dist/assets/TransactionListPage-BxtVNNib-BUJHEG2b.js +0 -35
- package/dist/assets/TreasuryStatementsPage-Beixz0Ou-CYBR4Dk7.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-BW2fTHN--Cd-eOWfE.js +0 -58
- package/dist/assets/Vendor2FAPopup-BcnPzCr1-iYA-Hjx9.js +0 -1
- package/dist/assets/VendorACHDetailsPage-D5SdrDy6-C-r4VMgU.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-Bv2OKF0M-CYnwGxHP.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CRpoKTWj-BHvGh8LV.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-D_Jdtql7-0Xy7FGjE.js +0 -14
- package/dist/assets/analyticsHelper-THi-SdkR.js +0 -1
- package/dist/assets/downloadPdf-CqjEwKR5-D2e_dzuk.js +0 -1
- package/dist/assets/epic-ChSldDcQ.js +0 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-DkhO3K0B-zvmTcvmi.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-nn83cq1C-BG8mZHCj.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CmXuntuz-Ksjnj8VQ.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Bs8iGys9-DZGfgxcv.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-eIiX1Dum.js +0 -4
- package/dist/assets/toCOABalancesWithID-DvC1wuTC-BtXflXCv.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as le,fa as At,fb as Mt,fc as Bt,fd as Ft,aO as A,fe as Rt,aQ as j,ff as Lt,fg as Me,fh as Be,fi as Fe,b as U,fj as O,p as S,fk as Nt,fl as E,fm as _,fn as zt,fo as Ot,bU as Re,o as n,aS as Et,u as d,F as _t,ag as Zt,c3 as Wt,N as Vt,a as Yt,fp as qt,cj as Ht,al as de,am as ce,fq as Ut,fr as Gt,bj as Kt,d as Jt,ba as Xt,fs as Qt,aq as et,bL as en,ai as tt,bu as tn,ft as nn}from"./index-c9CJIpO5.js";import{a as W}from"./sentry-BhPnLTGd.js";import{n as i}from"./mui-D41H02IU.js";import{bo as Le,bm as Ne,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-CqFcQgfC.js";import{t as rn,o as sn}from"./LowBalancePopup-go-1GM2R-ClVuygNj.js";import{S as Z}from"./LabeledText-CYRn3LhA-DWGTPjd2.js";import"./liveblocks-CPDN-bxu.js";import"./core-abG3s-mt.js";import"./recharts-B5Zd2InX.js";import"./lottie-DoLcJmSl.js";import"./analytics-DyCH8fdj.js";import"./lexical-Ce5kgHxh.js";import"./utils-B-wjDpf0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="051c17cc-26e4-4570-be06-7ee7d6884c7b",e._sentryDebugIdIdentifier="sentry-dbid-051c17cc-26e4-4570-be06-7ee7d6884c7b")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:ze,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,g]=W.useState(!1),M=()=>{g(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Gt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:dt})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=g&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),N=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=ze.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},z={amount:o?.method.includes("international")===!0?kt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=W.useState(!1),[mt,xe]=W.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);W.useEffect(()=>{(N?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[N,Q,he,pe,ye]);const $=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:k?.code=="approved"&&V?.code?V:k,ht=e.billPayInfo?.isRefundInitiated===!0?yt:k?.code=="approved"&&V?.code?V:k,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,q=y.allApprovalRules.length>0,ft=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-z.amount:p.amount,o?.fee.currencyCode??Ne.currencyCode,o?.fee.currencySymbol??Ne.currencySymbol),f=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{st(),xe(!1)},P=f&&($?.code!=null?$.code==="draft"||k?.code==="approved":!0),b=P&&!ot,je=Ze(b,q,e.isBillMarkedForRetry),wt=()=>f?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=f?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(ze.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=k?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Pe=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,ke,Pe,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,ke,Pe,Ae)}}},Se=()=>{Te===!0&&H(!1),e.isBillMarkedForRetry===!0?(dt(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,H]=W.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:N?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{H(!1),ne()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:s,style:at,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ge,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ge,{onClick:we})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Wn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ue,{children:t.jsx(Fe,{amount:ft,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ue,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(G,{}),!f&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,f?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),f||lt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:zt(s,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(Ve,{children:[t.jsx(se,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(se,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(se,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?ve:ne,style:{width:We(!1,P,b,q,s)}},primaryBtn:{label:Ze(b,q,e.isBillMarkedForRetry),isLoading:N?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?H(!0):Se()},style:{width:We(!0,P,b,q,s)}},rightSideComponent:P&&!b&&N.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:s,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Gn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(Nn,{children:[a.internationalText1,t.jsx(zn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ze=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,We=(e,y,g,M,T)=>g?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
1
|
+
import{J as Ct,ax as Tt,y as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Lt,ab as j,fi as Rt,fj as Me,fk as Be,fl as Fe,b as K,fm as O,p as S,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bU as Le,o as n,aS as Et,u as s,F as Wt,ah as _t,c3 as Zt,H as Vt,a as Ht,fs as Yt,cj as Gt,am as se,an as ce,ft as Kt,fu as Ut,bj as qt,c as Jt,ba as Xt,fv as Qt,ar as et,bL as en,aj as tt,bu as tn,fw as nn}from"./index-BIYLqgct.js";import{a as Z}from"./sentry-DhNwX3jk.js";import{n as i}from"./mui-rLvQ8A4a.js";import{bo as Re,bm as ze,bH as I,bN as an,FF as ln,bL as oe,bP as on}from"./zeni-epic-state-DwkN4IvA.js";import{t as rn,o as dn}from"./LowBalancePopup-YJW7eKud-C5-4WX6d.js";import{S as _}from"./LabeledText-DiJE8avC-CseM5wCJ.js";import"./liveblocks-DXGUxn7J.js";import"./core-DQ8U4CJb.js";import"./recharts-BYppTjSs.js";import"./lottie-C1yptpVV.js";import"./analytics-DkApCpAh.js";import"./lexical-CvUIM9vD.js";import"./utils-BdIPH7k8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="d06c0324-7760-43da-8520-e02c9f9cbad2",e._sentryDebugIdIdentifier="sentry-dbid-d06c0324-7760-43da-8520-e02c9f9cbad2")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=Z.useState(!1),M=()=>{f(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:st})=>{const d=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:d,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=Re(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,Y,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:H?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(He,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Hn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Rt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(Ye,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsx(q,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(q,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ye,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(q,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(q,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ge,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ge,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:H.format(T),additionalInfoLabel:`${a.estimatedArrival}${oe(on(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Re(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,Y,d)}},primaryBtn:{label:_e(b,Y,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?G(!0):Se()},style:{width:Ze(!0,k,b,Y,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Le,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,f,M,C)=>f?128:y&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),pn=i(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -11,7 +11,7 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
11
11
|
padding-bottom: ${n.sp1};
|
|
12
12
|
`,re=i.div`
|
|
13
13
|
color: ${e=>e.theme.colors.brandColorPearl};
|
|
14
|
-
`,
|
|
14
|
+
`,de=i.div`
|
|
15
15
|
color: ${e=>e.theme.colors.hero};
|
|
16
16
|
`,un=i(tt)`
|
|
17
17
|
display: flex;
|
|
@@ -21,7 +21,7 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
21
21
|
background-color: ${S.neutralGrey3Dark};
|
|
22
22
|
height: 1px;
|
|
23
23
|
width: 280px;
|
|
24
|
-
`,
|
|
24
|
+
`,fn=i.div``,gn=i.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
width: 100%;
|
|
27
27
|
box-sizing: border-box;
|
|
@@ -68,21 +68,21 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
68
68
|
border-radius: ${n.sp2};
|
|
69
69
|
margin-bottom: ${n.sp3};
|
|
70
70
|
margin-top: ${n.sp3};
|
|
71
|
-
`,
|
|
71
|
+
`,U=i.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
flex: 1;
|
|
74
74
|
background-color: ${e=>e.theme.colors.grey3};
|
|
75
75
|
min-height: 1px;
|
|
76
76
|
max-height: 1px;
|
|
77
|
-
`,
|
|
77
|
+
`,He=i(Ht)`
|
|
78
78
|
color: ${e=>e.theme.colors.primary};
|
|
79
|
-
${e=>`${
|
|
79
|
+
${e=>`${sn.sectionTitle.style(e.windowSize)}`};
|
|
80
80
|
margin-left: ${e=>m.sectionTitleMarginLeft.valuePx(e.windowSize)};
|
|
81
81
|
`,Sn=i.div`
|
|
82
82
|
display: flex;
|
|
83
83
|
margin-bottom: ${n.sp3};
|
|
84
84
|
margin-top: ${n.sp3};
|
|
85
|
-
`,
|
|
85
|
+
`,Cn=i.div`
|
|
86
86
|
display: flex;
|
|
87
87
|
flex-direction: column;
|
|
88
88
|
border-radius: ${n.sp2};
|
|
@@ -90,7 +90,7 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
90
90
|
background-color: ${e=>e.theme.colors.grey5};
|
|
91
91
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
92
92
|
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
93
|
-
`,
|
|
93
|
+
`,Tn=i.div`
|
|
94
94
|
background-color: ${S.alertLight};
|
|
95
95
|
border-radius: ${n.sp2};
|
|
96
96
|
width: 100%;
|
|
@@ -99,17 +99,17 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
99
99
|
display: flex;
|
|
100
100
|
flex-direction: column;
|
|
101
101
|
padding-left: ${n.sp2};
|
|
102
|
-
`,In=i(
|
|
102
|
+
`,In=i(se)`
|
|
103
103
|
padding-bottom: ${n.sp3};
|
|
104
104
|
color: ${S.brandColorGoldDark};
|
|
105
|
-
`,
|
|
105
|
+
`,Pn=i(Gt)`
|
|
106
106
|
padding-top: ${n.sp3};
|
|
107
107
|
color: ${S.brandColorGoldDark};
|
|
108
|
-
`,
|
|
108
|
+
`,Ye=i.div`
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: ${e=>nt.includes(e.windowSize)?"column":"row"};
|
|
111
111
|
width: 100%;
|
|
112
|
-
`,
|
|
112
|
+
`,kn=i.div`
|
|
113
113
|
display: flex;
|
|
114
114
|
justify-content: space-between;
|
|
115
115
|
align-items: center;
|
|
@@ -121,15 +121,15 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
121
121
|
`,Mn=i.div`
|
|
122
122
|
display: flex;
|
|
123
123
|
padding-top: ${n.sp3};
|
|
124
|
-
`,
|
|
124
|
+
`,Ge=i(Jt)`
|
|
125
125
|
display: flex;
|
|
126
126
|
color: ${e=>e.theme.colors.hero};
|
|
127
127
|
margin-right: ${n.sp1};
|
|
128
|
-
`,
|
|
128
|
+
`,Ke=i(Xt)`
|
|
129
129
|
display: flex;
|
|
130
130
|
color: ${e=>e.theme.colors.primary};
|
|
131
131
|
margin-right: ${n.sp1};
|
|
132
|
-
`,
|
|
132
|
+
`,Ue=i(Zt)`
|
|
133
133
|
cursor: pointer;
|
|
134
134
|
color: ${e=>e.theme.colors.hero};
|
|
135
135
|
width: 20px;
|
|
@@ -152,23 +152,23 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
152
152
|
padding-left: ${n.sp0};
|
|
153
153
|
z-index: 2;
|
|
154
154
|
background-color: ${e=>e.theme.colors.grey4};
|
|
155
|
-
`,
|
|
155
|
+
`,Ln=i(_t)`
|
|
156
156
|
height: ${n.sp3};
|
|
157
157
|
width: ${n.sp3};
|
|
158
158
|
color: ${e=>e.theme.colors.hero};
|
|
159
|
-
`,
|
|
159
|
+
`,Rn=i.span`
|
|
160
160
|
display: flex;
|
|
161
161
|
align-items: center;
|
|
162
162
|
margin-left: ${n.sp2};
|
|
163
163
|
margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.size)};
|
|
164
164
|
align-self: ${e=>e.size==="small"?"baseline":"center"};
|
|
165
|
-
`,
|
|
165
|
+
`,zn=i(ce)`
|
|
166
166
|
color: ${e=>e.theme.colors.grey1};
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-wrap: wrap;
|
|
169
169
|
justify-content: center;
|
|
170
170
|
align-items: center;
|
|
171
|
-
`,
|
|
171
|
+
`,Nn=i.a`
|
|
172
172
|
color: ${e=>e.theme.colors.grey1};
|
|
173
173
|
text-decoration: underline;
|
|
174
174
|
margin-right: ${n.sp1};
|
|
@@ -193,30 +193,30 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
193
193
|
width: ${n.sp4};
|
|
194
194
|
height: ${n.sp4};
|
|
195
195
|
display: flex;
|
|
196
|
-
`,
|
|
196
|
+
`,qe=i.div`
|
|
197
197
|
cursor: default;
|
|
198
198
|
display: flex;
|
|
199
199
|
align-items: center;
|
|
200
200
|
margin-right: ${n.sp1};
|
|
201
|
-
`,Je=i(
|
|
201
|
+
`,Je=i(qt)`
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
width: ${n.sp4};
|
|
204
204
|
height: ${n.sp4};
|
|
205
205
|
color: ${e=>e.theme.colors.hero};
|
|
206
|
-
`,
|
|
206
|
+
`,q=i(se)`
|
|
207
207
|
display: flex;
|
|
208
208
|
color: ${e=>e.theme.colors.hero};
|
|
209
209
|
align-items: center;
|
|
210
210
|
min-width: 142px;
|
|
211
211
|
flex-grow: 1;
|
|
212
|
-
`,Xe=i(
|
|
212
|
+
`,Xe=i(se)`
|
|
213
213
|
display: flex;
|
|
214
214
|
color: ${e=>e.theme.colors.primary};
|
|
215
215
|
align-items: center;
|
|
216
216
|
margin-right: ${e=>m.infoMarginRight.valuePx(e.windowSize)};
|
|
217
217
|
min-width: ${e=>m.infoMinWidth.valuePx(e.windowSize)};
|
|
218
218
|
justify-content: flex-end;
|
|
219
|
-
`,
|
|
219
|
+
`,Wn=i.div`
|
|
220
220
|
display: flex;
|
|
221
221
|
cursor: pointer;
|
|
222
222
|
column-gap: ${n.sp1};
|
|
@@ -226,7 +226,7 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
226
226
|
display: flex;
|
|
227
227
|
justify-content: flex-end;
|
|
228
228
|
align-items: center;
|
|
229
|
-
`,
|
|
229
|
+
`,_n=i.div`
|
|
230
230
|
display: flex;
|
|
231
231
|
flex-grow: 1;
|
|
232
232
|
cursor: pointer;
|
|
@@ -247,7 +247,7 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
247
247
|
padding: 1px 6px;
|
|
248
248
|
border: ${e=>`1px solid ${e.borderColor}`};
|
|
249
249
|
border-radius: ${n.sp1};
|
|
250
|
-
`,
|
|
250
|
+
`,Zn=i.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
flex-direction: column;
|
|
253
253
|
`,Vn=i.div`
|
|
@@ -257,21 +257,21 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
257
257
|
padding-top: ${n.sp2};
|
|
258
258
|
padding-bottom: ${n.sp2};
|
|
259
259
|
border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
260
|
-
`,
|
|
260
|
+
`,Hn=i(ce)`
|
|
261
261
|
margin-top: ${n.sp3};
|
|
262
262
|
color: ${S.alert};
|
|
263
|
-
`,
|
|
263
|
+
`,Yn=i(Yt)`
|
|
264
264
|
min-width: ${n.sp4};
|
|
265
265
|
height: ${n.sp4};
|
|
266
266
|
width: ${n.sp4};
|
|
267
267
|
margin-top: ${n.sp3};
|
|
268
268
|
margin-left: ${n.sp4};
|
|
269
269
|
color: ${S.brandColorGoldDark};
|
|
270
|
-
`,
|
|
270
|
+
`,Gn=i.div`
|
|
271
271
|
display: flex;
|
|
272
272
|
justify-content: flex-end;
|
|
273
273
|
margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
|
|
274
|
-
`,
|
|
274
|
+
`,Kn=i(tn)`
|
|
275
275
|
cursor: pointer;
|
|
276
276
|
color: ${e=>e.theme.colors.hero};
|
|
277
277
|
width: ${n.sp4};
|
|
@@ -279,7 +279,7 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
279
279
|
&:hover {
|
|
280
280
|
color: ${e=>e.theme.colors.primary};
|
|
281
281
|
}
|
|
282
|
-
`,
|
|
282
|
+
`,Un=i.div`
|
|
283
283
|
display: flex;
|
|
284
284
|
cursor: pointer;
|
|
285
285
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -287,4 +287,4 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
|
|
|
287
287
|
&:hover {
|
|
288
288
|
color: ${e=>e.theme.colors.primary};
|
|
289
289
|
}
|
|
290
|
-
`;export{
|
|
290
|
+
`;export{si as default};
|
package/dist/assets/{ReviewOverlay-Cz8LqkKC-LpMuOjyz.js → ReviewOverlay-C2enVZqt-C_vH9CpL.js}
RENAMED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import{J as P,V as i,
|
|
1
|
+
import{J as P,V as i,ab as m,o as r,aS as L,y as d,x as M,H as I,a as C,p as s,am as j,cE as W,T as D,aj as b,bi as R,u as n,eo as G,h as H,i$ as _,kc as J}from"./index-BIYLqgct.js";import{n as t}from"./mui-rLvQ8A4a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="dcf3effa-0dce-423e-906c-4fb189bea73f",e._sentryDebugIdIdentifier="sentry-dbid-dcf3effa-0dce-423e-906c-4fb189bea73f")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:a,children:[i.jsxs(q,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
|
5
|
-
`,
|
|
5
|
+
`,O=t.div`
|
|
6
6
|
min-height: 100vh;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
margin-top: ${e=>l.containerMarginTop.valuePx(e.windowSize)};
|
|
10
10
|
margin-bottom: ${r.sp8};
|
|
11
|
-
`,
|
|
11
|
+
`,q=t.div`
|
|
12
12
|
position: sticky;
|
|
13
13
|
top: ${r.sp0};
|
|
14
14
|
background-color: ${e=>e.theme.colors.grey4};
|
|
15
15
|
z-index: 1;
|
|
16
16
|
padding-left: ${e=>l.containerMarginLeft.valuePx(e.windowSize)};
|
|
17
17
|
padding-right: ${e=>l.containerMarginRight.valuePx(e.windowSize)};
|
|
18
|
-
`,
|
|
18
|
+
`,K=t.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
|
-
`,
|
|
22
|
-
${e=>`${
|
|
21
|
+
`,N=t(C)`
|
|
22
|
+
${e=>`${A.title.style(e.windowSize)}`};
|
|
23
23
|
color: ${e=>e.theme.colors.primary};
|
|
24
24
|
margin-top: ${r.sp2};
|
|
25
25
|
margin-bottom: ${e=>l.titleMarginBotom.valuePx(e.windowSize)};
|
|
26
26
|
margin-right: ${e=>l.titleMarginRight.valuePx(e.windowSize)};
|
|
27
|
-
`,
|
|
27
|
+
`,Q=t(j)`
|
|
28
28
|
margin-bottom: ${e=>l.subTitleMarginBottom.valuePx(e.windowSize)};
|
|
29
29
|
color: ${e=>e.isError?s.important:e.theme.colors.hero};
|
|
30
|
-
`,
|
|
30
|
+
`,U=t.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
margin-top: ${r.sp3};
|
|
34
34
|
margin-left: ${e=>l.containerMarginLeft.valuePx(e.windowSize)};
|
|
35
35
|
margin-right: ${e=>l.containerMarginRight.valuePx(e.windowSize)};
|
|
36
|
-
`,
|
|
36
|
+
`,X=t.div`
|
|
37
37
|
min-height: ${e=>l.navBarHeight.valuePx(e.windowSize)};
|
|
38
38
|
position: sticky;
|
|
39
39
|
border-bottom: 1px solid transparent;
|
|
40
40
|
z-index: 2;
|
|
41
41
|
top: ${r.sp0};
|
|
42
42
|
width: 100%;
|
|
43
|
-
`,
|
|
43
|
+
`,Y=t.div`
|
|
44
44
|
position: relative;
|
|
45
45
|
min-height: 62px;
|
|
46
|
-
`,
|
|
46
|
+
`,Z=t.div`
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: row;
|
|
49
49
|
align-items: center;
|
|
@@ -96,12 +96,12 @@ import{J as P,V as i,aQ as m,o as r,aS as L,y as d,c as M,N as I,a as C,p as s,a
|
|
|
96
96
|
display: flex;
|
|
97
97
|
flex-direction: column;
|
|
98
98
|
align-items: ${e=>e.windowSize==="small"?"self-start":"self-end"};
|
|
99
|
-
`,f=t(
|
|
99
|
+
`,f=t(j)`
|
|
100
100
|
color: ${e=>e.isError||e.isWarning?e.theme.mode==="dark"?s.neutralGrey4Dark:e.isWarning:e.theme.colors.primary};
|
|
101
|
-
`,se=t(
|
|
101
|
+
`,se=t(b)`
|
|
102
102
|
margin-top: -5px;
|
|
103
103
|
color: ${e=>e.theme.mode==="dark"?s.neutralGrey1Dark:e.theme.colors.primary};
|
|
104
|
-
`,p=t(
|
|
104
|
+
`,p=t(b)`
|
|
105
105
|
display: flex;
|
|
106
106
|
margin-top: -5px;
|
|
107
107
|
color: ${e=>e.isError?s.important:e.isWarning?s.brandColorGoldDark:e.theme.colors.primary};
|
|
@@ -109,18 +109,18 @@ import{J as P,V as i,aQ as m,o as r,aS as L,y as d,c as M,N as I,a as C,p as s,a
|
|
|
109
109
|
width: ${r.sp4};
|
|
110
110
|
height: ${r.sp4};
|
|
111
111
|
color: ${e=>e.isError?s.important:s.brandColorGoldDark};
|
|
112
|
-
`,ae=t(
|
|
112
|
+
`,ae=t(H)`
|
|
113
113
|
width: ${r.sp4};
|
|
114
114
|
height: ${r.sp4};
|
|
115
115
|
color: ${s.success};
|
|
116
|
-
`,le=t(
|
|
116
|
+
`,le=t(J)`
|
|
117
117
|
width: ${r.sp4};
|
|
118
118
|
height: ${r.sp4};
|
|
119
119
|
color: ${e=>e.theme.colors.grey2};
|
|
120
120
|
`,de=t.div`
|
|
121
121
|
margin-top: 2px;
|
|
122
122
|
display: flex;
|
|
123
|
-
`,ce=t(
|
|
123
|
+
`,ce=t(W)`
|
|
124
124
|
cursor: pointer;
|
|
125
125
|
color: ${e=>e.theme.colors.hero};
|
|
126
126
|
&:hover {
|
|
@@ -145,7 +145,7 @@ import{J as P,V as i,aQ as m,o as r,aS as L,y as d,c as M,N as I,a as C,p as s,a
|
|
|
145
145
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
146
146
|
width: ${r.sp3};
|
|
147
147
|
height: ${r.sp3};
|
|
148
|
-
`,he=t(
|
|
148
|
+
`,he=t(_)`
|
|
149
149
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
150
150
|
width: ${r.sp4};
|
|
151
151
|
height: ${r.sp4};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{eT as f,eU as h,V as s,bU as g,o,ab as l,F as b,ao as x,aj as c}from"./index-BIYLqgct.js";import{n as d}from"./mui-rLvQ8A4a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="82007ed3-1f11-4cbe-9dcf-6bceed265128",e._sentryDebugIdIdentifier="sentry-dbid-82007ed3-1f11-4cbe-9dcf-6bceed265128")}catch{}})();const{hyphen:i}=b.getLocalizedStrings().common.strings,y=d.div``,m=d.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
min-width: 192px;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
`,u=d(c)`
|
|
6
|
+
color: ${e=>e.theme.colors.hero};
|
|
7
|
+
`,j=d(c)`
|
|
8
|
+
color: ${e=>e.theme.colors.brandColorPearl};
|
|
9
|
+
`,a=d.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
`,w=d(x)`
|
|
13
|
+
border-radius: ${o.sp12};
|
|
14
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
15
|
+
display: flex;
|
|
16
|
+
height: 18px;
|
|
17
|
+
width: 18px;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
color: 1px solid ${e=>e.theme.colors.grey1};
|
|
21
|
+
margin-left: ${o.sp1};
|
|
22
|
+
`,$=({roles:e})=>{let t=i,r=[];t=f(e),r=h(e);const p=()=>r.length>0?s.jsx(y,{children:r.map(n=>s.jsxs(m,{children:[s.jsx(u,{children:n[0]}),s.jsx(j,{children:n[1]})]},n.join(",")))}):s.jsx(s.Fragment,{children:i});return r.length>0?s.jsx(g,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:p(),placement:"top-end",style:{marginLeft:o.sp1,padding:"6px 12px"},maxWidth:"264px",children:s.jsxs(a,{"data-testid":l("roles-label-wrapper",t),children:[t,s.jsx(w,{className:"roles-count-wrapper","data-testid":l("roles-count-wrapper",t),children:r.length})]})}):s.jsx(a,{"data-testid":l("roles-label-wrapper",t),children:t})};export{$ as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aR as
|
|
1
|
+
import{aR as K,ir as te,gL as me,eF as Je,is as Me,a9 as _e,it as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Re,ct as Be,aS as We,iu as ze,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cL as Ge,J as Ke,iL as He,gQ as ue,u as B,p as De,y as ye,cM as Xe,iy as Ye,iz as Ze,iA as Qe,o as V}from"./index-BIYLqgct.js";import{a as f}from"./sentry-DhNwX3jk.js";import{n as z}from"./mui-rLvQ8A4a.js";import{G8 as et,G9 as tt}from"./zeni-epic-state-DwkN4IvA.js";import{r as lt,s as at,n as st,i as ot}from"./ScheduleSequenceTable-B1fJ-_4f-VSvFhL5f.js";import"./liveblocks-DXGUxn7J.js";import"./core-DQ8U4CJb.js";import"./recharts-BYppTjSs.js";import"./lottie-C1yptpVV.js";import"./analytics-DkApCpAh.js";import"./lexical-CvUIM9vD.js";import"./utils-BdIPH7k8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="3d086cd9-929d-4b63-9091-830b2d62e2cf",e._sentryDebugIdIdentifier="sentry-dbid-3d086cd9-929d-4b63-9091-830b2d62e2cf")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -9,29 +9,29 @@ import{aR as H,ip as te,gI as me,eE as Je,iq as Me,a9 as _e,ir as Ve,cG as Fe,cH
|
|
|
9
9
|
border-top-right-radius: ${V.sp2};
|
|
10
10
|
border-bottom-left-radius: ${V.sp0};
|
|
11
11
|
border-bottom-right-radius: ${V.sp0};
|
|
12
|
-
`,
|
|
12
|
+
`,H=z.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex: 1;
|
|
15
15
|
background-color: ${e=>e.theme.colors.grey3};
|
|
16
16
|
min-height: 1px;
|
|
17
|
-
`,dt=
|
|
17
|
+
`,dt=z.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
margin: ${V.sp4} ${V.sp8} ${V.sp0} ${V.sp8};
|
|
21
|
-
`,_=(e,d)=>`${e}.${d}`;function it({sectionId:e,jeScheduledTransaction:d,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:C,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:
|
|
21
|
+
`,_=(e,d)=>`${e}.${d}`;function it({sectionId:e,jeScheduledTransaction:d,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:C,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:T,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:w,selectedMonths:j,selectedPostingDay:A,lastDayOfMonth:E,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:se,onMarkAsComplete:Y}){const{resetField:S}=Ge(),oe=_(e,"scheduleExpenseCategory"),ne=_(e,"scheduleClass"),de=_(e,"accumulatedDepreciationCategory"),ie=_(e,"assetId"),Z=_(e,"startDate"),D=_(e,"postingDate"),r=_(e,"months"),t=be.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,g=o=>s.filter(q=>q.qboId===o)[0]?.qboId,b=o=>p.filter(q=>q.qboId===o)[0]?.qboId,ce=o=>u.filter(q=>q.classId===o)[0]?.accountingClassNumber,X={valueContainer:o=>({...o,overflow:"unset"})},I=Ke(),U=He({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=A==null&&E==null?void 0:E===!0?"lastDayOfMonth":"day",N=o=>[k.expense?.qboId,k.income?.qboId].includes(o),Q=()=>{d.jeScheduleId!=null&&se(d.jeScheduleId)},y=d.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(dt,{children:[a.jsx(st,{status:d.status.code,jeScheduleId:d.jeScheduleId,allowCreateSchedule:J,onDelete:Q,isUpdating:m==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(pe,{controller:J===!0,children:a.jsxs(nt,{children:[a.jsx(ue,{isDisabled:y.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:W.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:y.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:oe,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>g(o),defaultValue:{selectedOption:T,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},disableCurrentOption:N,style:{borderTopLeftRadius:B[2],borderTopRightRadius:B[2]}}),a.jsx(H,{}),a.jsx(ue,{isDisabled:h,isLoading:!1,label:{label:t.class,width:W.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ne,placeholder:t.classPlaceholder,valueToId:o=>ce(o),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(H,{}),a.jsx(ue,{isDisabled:y.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:y.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:de,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:F,allOptions:C},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},disableCurrentOption:N,style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(H,{}),a.jsx(Xe,{label:{label:t.assetId,width:W.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:ie,defaultValue:L,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:B[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(Ye,{label:{label:t.startMonth,width:W.labelWidth.value(I)},monthSelectorField:{name:Z,placeholder:t.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:U},isDisabled:h}),a.jsx(H,{}),a.jsx(ot,{label:{label:t.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:A},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Ze,{label:{label:t.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:j!=null?v[j-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(pe,{controller:J===!1,children:a.jsx(Qe,{text:t.scheduleMarkedAsCompleted})})]})}const ct=z.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
width: 100%;
|
|
25
25
|
height: 100%;
|
|
26
26
|
min-height: 100vh;
|
|
27
27
|
background-color: ${e=>e.theme.colors.grey4};
|
|
28
|
-
`,rt=
|
|
28
|
+
`,rt=z.div`
|
|
29
29
|
display: flex;
|
|
30
30
|
z-index: 2;
|
|
31
|
-
`,ut=
|
|
31
|
+
`,ut=z.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
`,ht=
|
|
34
|
+
`,ht=z.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
`,Ce="scheduleDetailsPage",le="scheduleDetailsFixedAssetsSection",ae="scheduleDetailsListSection",pt=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ft}}=pt;function It({analytics:e,controllerUserDetails:d,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:C,onJELinkClick:v,onSave:k,onDelete:j,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:A}){const[E,O]=f.useState(!1),h=H(l.updateStatus.fetchState),J=H(l.selectedJEScheduleTransaction?.status.code),i=H(l.deleteStatus.fetchState),[se,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,oe=H(S.jeScheduleDetails.length),ne=H(S.selectedDate),de=H(S.selectedDayOfMonth),[ie,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,g=et(d.controllers),b=tt(d.controllerUserIds),ce={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},X=n=>{const x=t?.scheduledJournalEntry[n];r!=null&&x!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...$e(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(x)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(n)},I=(n,x)=>{const T=t?.scheduledJournalEntry[x];r!=null&&T!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(T),controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(n)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&A(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,A,c,l.updateStatus,t,r,D,g,b]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const z=me(l.accountListNestedAccountHierarchy),$=me(l.allDepreciationAccountListNestedAccountHierarchy),G=Je(l.classListNestedAccountHierarchy),N=Me("fixed_assets"),Q=f.useRef(),y=_e({mode:"all",reValidateMode:"onChange",defaultValues:he(l,z,G,$,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:he(l,z,G,$,N,u.entityAutoCompleteView)}),o=y.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Q.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const q=(n,x)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Q.current=x},xe=y.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,x)=>{const T=x[le].vendor;if(n.includes("vendor")){const re=T?.defaultOptions.map(R=>R.value);if(T?.selectedOption!=null&&re?.includes(T.selectedOption)!==!0){const R=u.entityAutoCompleteView.vendor.find(we=>we.id===T.selectedOption);R!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:R.name??"",value:R.id}])}}const ee=n.includes("amount");if(F(x,ee),n.includes("amount")){const re=n.split(".")[1],R=parseInt(re);Y(!0),C(R,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{let n=!0;const x=y.watch((T,{name:ee})=>{ee!=null&&T!=null&&Fe(()=>{n&&ve(ee,T)})});return()=>{n=!1,x.unsubscribe()}}),f.useEffect(()=>{(oe!==S.jeScheduleDetails.length||ne!==S.selectedDate||de!==S.selectedDayOfMonth)&&se===!0&&(y.resetField(ae,{defaultValue:he(l,z,G,$,N,u.entityAutoCompleteView)[ae],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const fe=(Pe(y.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,Ee=()=>{fe===!0?O(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),p())},Oe=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Te=f.useCallback(()=>{Z(!0)},[]),je=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),w()},[e,g,b,t,w,r,D]),Ae=f.useCallback(n=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),j(n)},[e,g,b,t,j,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(n=>n.error??[]).filter(n=>!!n)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(n=>n.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,ke=a.jsx(mt,{title:Ie??M.strings.empty,onNavigateBack:Ee,onTransactionClick:Oe}),Le=a.jsx(rt,{children:a.jsx(Ne,{...y,children:a.jsxs("form",{style:{width:"100%"},id:ge(Ce),onSubmit:xe,children:[a.jsx(St,{vendorLoadOptions:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:z,allClassOptions:G,allMonthOptions:N,allDepAccountOptions:$,onEditAmount:C,onDelete:Ae,onJELinkClick:X,onViewLinkedJE:I,onMarkAsComplete:je,allowCreateSchedule:ie,onCreateSchedule:Te}),E===!0?a.jsx(qe,{titleComponent:a.jsx(Be,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Re,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ce}):null,fe===!0?a.jsx(We,{formId:ge(Ce),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(ct,{children:[ke,Le]})}function mt({onNavigateBack:e,onTransactionClick:d,title:m}){return a.jsx(ze,{title:m,tooltipTextOnLaunch:ft.showTransactionTooltip,onBackClick:e,onLaunchClick:d,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:d,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:C,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:j,onDelete:F,onJELinkClick:P,onViewLinkedJE:L,onMarkAsComplete:w}){const A=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(lt,{vendorLoadOptions:d,vendorField:e,vendorFieldName:_(le,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:A,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(it,{sectionId:le,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:C,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:w,onCreateSchedule:k}),a.jsx(pe,{controller:v===!0,children:a.jsx(at,{sectionId:ae,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:j,onJELinkClick:P,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ge=e=>`${e}_form`,he=(e,d,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,C=c.selectedVendor,v=C!=null?u.vendor.find(i=>i.zeniId===C.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,j=c.selectedAccumulatedDepreciationCategory,F=j!=null?e.allDepreciationAccountList.find(i=>i.accountId===j):void 0,P=c.assetId,L=c.selectedClass,w=L!=null?e.allClassList.find(i=>i.classId===L):void 0,A=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[le]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:A,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:Ue(u,v??C)},postingDate:{type:J,dayOfMonth:O}},[ae]:E}};export{It as default};
|
|
37
|
+
`,Ce="scheduleDetailsPage",le="scheduleDetailsFixedAssetsSection",ae="scheduleDetailsListSection",pt=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ft}}=pt;function It({analytics:e,controllerUserDetails:d,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:C,onJELinkClick:v,onSave:k,onDelete:T,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:j}){const[A,E]=f.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[se,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,oe=K(S.jeScheduleDetails.length),ne=K(S.selectedDate),de=K(S.selectedDayOfMonth),[ie,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,g=et(d.controllers),b=tt(d.controllerUserIds),ce={onOkClick:()=>{E(!1),p()},onCancelClick:()=>{E(!1)}},X=n=>{const x=t?.scheduledJournalEntry[n];r!=null&&x!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...$e(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(x)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(n)},I=(n,x)=>{const O=t?.scheduledJournalEntry[x];r!=null&&O!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(O),controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),F(n)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&j(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,j,c,l.updateStatus,t,r,D,g,b]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=me(l.accountListNestedAccountHierarchy),$=me(l.allDepreciationAccountListNestedAccountHierarchy),G=Je(l.classListNestedAccountHierarchy),N=Me("fixed_assets"),Q=f.useRef(),y=_e({mode:"all",reValidateMode:"onChange",defaultValues:he(l,U,G,$,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:he(l,U,G,$,N,u.entityAutoCompleteView)}),o=y.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Q.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const q=(n,x)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Q.current=x},xe=y.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,x)=>{const O=x[le].vendor;if(n.includes("vendor")){const re=O?.defaultOptions.map(R=>R.value);if(O?.selectedOption!=null&&re?.includes(O.selectedOption)!==!0){const R=u.entityAutoCompleteView.vendor.find(we=>we.id===O.selectedOption);R!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:R.name??"",value:R.id}])}}const ee=n.includes("amount");if(P(x,ee),n.includes("amount")){const re=n.split(".")[1],R=parseInt(re);Y(!0),C(R,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{let n=!0;const x=y.watch((O,{name:ee})=>{ee!=null&&O!=null&&Pe(()=>{n&&ve(ee,O)})});return()=>{n=!1,x.unsubscribe()}}),f.useEffect(()=>{(oe!==S.jeScheduleDetails.length||ne!==S.selectedDate||de!==S.selectedDayOfMonth)&&se===!0&&(y.resetField(ae,{defaultValue:he(l,U,G,$,N,u.entityAutoCompleteView)[ae],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const fe=(Fe(y.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,Ae=()=>{fe===!0?E(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=f.useCallback(()=>{Z(!0)},[]),Te=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),w()},[e,g,b,t,w,r,D]),je=f.useCallback(n=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),T(n)},[e,g,b,t,T,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(n=>n.error??[]).filter(n=>!!n)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(n=>n.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,ke=a.jsx(mt,{title:Ie??M.strings.empty,onNavigateBack:Ae,onTransactionClick:Ee}),Le=a.jsx(rt,{children:a.jsx(Ne,{...y,children:a.jsxs("form",{style:{width:"100%"},id:ge(Ce),onSubmit:xe,children:[a.jsx(St,{vendorLoadOptions:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:G,allMonthOptions:N,allDepAccountOptions:$,onEditAmount:C,onDelete:je,onJELinkClick:X,onViewLinkedJE:I,onMarkAsComplete:Te,allowCreateSchedule:ie,onCreateSchedule:Oe}),A===!0?a.jsx(qe,{titleComponent:a.jsx(Be,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Re,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ce}):null,fe===!0?a.jsx(We,{formId:ge(Ce),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{E(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(ct,{children:[ke,Le]})}function mt({onNavigateBack:e,onTransactionClick:d,title:m}){return a.jsx(Ue,{title:m,tooltipTextOnLaunch:ft.showTransactionTooltip,onBackClick:e,onLaunchClick:d,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:d,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:C,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:T,onDelete:P,onJELinkClick:F,onViewLinkedJE:L,onMarkAsComplete:w}){const j=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(A=>A.error).filter(A=>!!A)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(lt,{vendorLoadOptions:d,vendorField:e,vendorFieldName:_(le,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:j,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(it,{sectionId:le,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:C,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:P,onMarkAsComplete:w,onCreateSchedule:k}),a.jsx(pe,{controller:v===!0,children:a.jsx(at,{sectionId:ae,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:T,onJELinkClick:F,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ge=e=>`${e}_form`,he=(e,d,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,C=c.selectedVendor,v=C!=null?u.vendor.find(i=>i.zeniId===C.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,T=c.selectedAccumulatedDepreciationCategory,P=T!=null?e.allDepreciationAccountList.find(i=>i.accountId===T):void 0,F=c.assetId,L=c.selectedClass,w=L!=null?e.allClassList.find(i=>i.classId===L):void 0,j=c.selectedMonths,A=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),E=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=E==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[le]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:j,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:ze(u,v??C)},postingDate:{type:J,dayOfMonth:E}},[ae]:A}};export{It as default};
|