@zeniai/web-cockpit-ui 1.14.72-dev-betaSK01 → 1.14.73-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-BZFkcCOG-WfBPHoUX.js → ACHDetailsPage-FHBR2PCA-DLva-SPh.js} +2 -2
- package/dist/assets/{AIPerformancePage-DtNLjoUW-CinUSJg2.js → AIPerformancePage-CiYLvD6Z-bHSk8bLC.js} +124 -124
- package/dist/assets/AccountInfoPage-B0uMPZhx-BIQF2gH2.js +18 -0
- package/dist/assets/{AccountInfoPageContent-B8GKrtCm-10kK72ec.js → AccountInfoPageContent-CdgOtpop-AHRejHe6.js} +13 -13
- package/dist/assets/AccountLockedInfoModal-DnQEp6tD-BW8Fp--s.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-BxjUNX_b-C4CXpIA8.js +239 -0
- package/dist/assets/AccountRow-C6z4Ft3r-BFimoTCg.js +298 -0
- package/dist/assets/AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js +207 -0
- package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-DzFp-OyN.js → AddAddressForCardDrawer-qa7RqzlX-DAOW06gk.js} +2 -2
- package/dist/assets/{AddToWalletPage-nSq-9dQy-D56Hf4hb.js → AddToWalletPage-DNjsPMFK-r8gZ63eR.js} +22 -22
- package/dist/assets/AgingReportsPage-Dmgvzu2b-DiSOGn-n.js +79 -0
- package/dist/assets/AllUserItems-BBC-qn-o-D2MAzw4F.js +192 -0
- package/dist/assets/ApAgingDetailPage-YWdtNxkt-5BxHOM_M.js +46 -0
- package/dist/assets/{AppBasePage-Br0WbQRY-BAK8zLlg.js → AppBasePage-BnA8ceAD-BvanHCQt.js} +5 -5
- package/dist/assets/AppDrawerContent-DKHWPZQW-CEAxNC9t.js +91 -0
- package/dist/assets/ApprovalRulesSettingsPage-D4Vz_gLv-DJSQNR5P.js +47 -0
- package/dist/assets/ArAgingChart-CuHk_U2p-D7juYPVe.js +24 -0
- package/dist/assets/{ArAgingDetailPage-BlV3iJeW-D0lCDh_0.js → ArAgingDetailPage-H77B2AWo-DYwzxBIW.js} +3 -3
- package/dist/assets/{AttachmentView-DhluaeAV-DsM43aN0.js → AttachmentView-D1SPuem6-CmH4xHN2.js} +9 -9
- package/dist/assets/{BankAccountSection-GDEQdiGL-CmBLlIS1.js → BankAccountSection-ByfDYmEM-WCmaTn1f.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js → BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js} +9 -9
- package/dist/assets/BankConnectionsSettingsPage-L62aMW_s-Ce_PfdvA.js +425 -0
- package/dist/assets/BillDetailPage-BBQJpRTI-D0MlJ03G.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-DxDRXjZW.js → BillPayApprovalRuleDetailPage-ByLLupWf-BGMDsIwH.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-B-4hhNoy.js → BillPayApprovalRulesPage-D4d-6Jnf-CF6fIJls.js} +7 -7
- package/dist/assets/BillPayPromoPage-CPGYF3vl-DVnbNH0W.js +84 -0
- package/dist/assets/BillPaySetUpPage-CeciDq-c-NzaXshML.js +42 -0
- package/dist/assets/BillingSettingsPage-DknUlTgB-CcR7ugmH.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-BIjlRcX--CZ4DepwQ.js +1 -0
- package/dist/assets/{BoxItem-COIjjFrn-CYZK_lth.js → BoxItem-D4K0YgBP-Bm_px4kT.js} +4 -4
- package/dist/assets/BusinessVerificationPage-CWioKmMC--fpYbOGK.js +138 -0
- package/dist/assets/{CardNumberSubText-CmhH95Ff-D70_vfvB.js → CardNumberSubText-C_03r_B--CXrhgc3z.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BPLjvuA3-D2AlurqK.js → CashbackDetailPage-BaImXBc2-BqUQeIYw.js} +56 -56
- package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-CMQ9x73T.js → ChargeCardDetailPage-Ba7cRz0p-DYtlHHMF.js} +214 -214
- package/dist/assets/ChargeCardListPage-BTH_OAht-CJvC6mTi.js +406 -0
- package/dist/assets/{ChargeCardListTable-BGWV4zJl-CcT6S7FA.js → ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js} +54 -54
- package/dist/assets/ChargeCardPromoPage-B3bc_Qcj-DVNboRNz.js +222 -0
- package/dist/assets/ChargeCardSetupPage-3-7oaikG-BYx_BUtm.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BY-SWhAj.js → ChargeCardStatementsPage-3HMKClyw-mCs_-TXo.js} +4 -4
- package/dist/assets/ChargeCardUtils-Cx6ntaue-CziTslau.js +1 -0
- package/dist/assets/{ChaseOverlay-BC_4vwtb-BQqHx8M-.js → ChaseOverlay-1PyDzocW-DV1roPs3.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-CKNKZDF1.js → CheckDepositDrawerPage-DTADpJQC-sqk-xG07.js} +20 -20
- package/dist/assets/CollapsableReportTable-rEGCWPrN-DiziLVLU.js +2932 -0
- package/dist/assets/CompanyOfficerDetailsSection-Dpe50aqM-B1Sor9Us.js +260 -0
- package/dist/assets/{CompanyPassportCard-D3F01eJL-BhEJq4YF.js → CompanyPassportCard-l9sgkbw_-BXrIXjOn.js} +3 -3
- package/dist/assets/CompanyPassportPage-DQPGAnFq-DsQ6naIu.js +574 -0
- package/dist/assets/CompleteProfile-DJBScNev-5kVXmwEh.js +52 -0
- package/dist/assets/{ConfettiBurst--HIHB7Os-S4QyIwiq.js → ConfettiBurst-DukumtTx-CSzALiwF.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-DpdjBsSE.js → CreateOrEditVendorPage-C39AEROO-Df_MDMmD.js} +11 -11
- package/dist/assets/CreditCardPaymentDrawerPage-D8VUjeG2-Nczpa7J9.js +224 -0
- package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-COciJwfu.js → CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js} +10 -10
- package/dist/assets/{CurrencySelectField-nhg_dhDw-nZHVWMo0.js → CurrencySelectField-yIymL1et-BBkhU934.js} +6 -6
- package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-1Tt5lNh3.js → CustomerOnboardingActivationPage-BKBFtr-o-B3t33ZLt.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-Di0CtCSz.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-ClKlbRH6.js → CustomerOnboardingDetailPageSkeleton-BsnPvucg-BEvywTxp.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-Pt9D5fwX.js → CustomerOnboardingNoStepsPage-Db1DFgQR-DfT9hNRl.js} +2 -2
- package/dist/assets/CustomerOnboardingPage-BoF4bXiW-CKAc0RQX.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-BdGFZtH3-DLLnRFgg.js +202 -0
- package/dist/assets/{Dashboard-D6Ba5oj0-C5iZr7Dc.js → Dashboard-hADP7IBB-Bk1vjezx.js} +262 -262
- package/dist/assets/DashboardReportPage-BwTchCvy-O2bBIky3.js +371 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-Bhgpjfq-.js → DashboardSidebarBackgroundAnimation-B-w4cVMW-BWggpu2o.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-Cwta5ei3.js → DepositAccTransactionItem-BMkCcz-U-g-iJ8Z3m.js} +4 -4
- package/dist/assets/DepositAccTransactionListPage-D6h0mu0p-Cba8Z-zG.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js +21 -0
- package/dist/assets/DownloadOverlay-mXe-oklf-DPD6fOSt.js +439 -0
- package/dist/assets/{DrawerPage-BRD6cE6J-1UMYAHb7.js → DrawerPage-DSbF_bCc-BOfcYWDU.js} +13 -13
- package/dist/assets/EditPeoplePage-DnE5ud-m-STxMbpu_.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-CtHzBFwx-CcMSn1Z9.js +865 -0
- package/dist/assets/EntityDetailPage-CSR_wxIn-C3ytfDma.js +18 -0
- package/dist/assets/{EntitySummarySection-BRt1kPDf-DQbEIQFx.js → EntitySummarySection-BP9sqkp_-C8j67E3x.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-CHnaqssF.js → ExpenseAutomationOverviewPage-C-ZrFIVW-LPRP5OZt.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-BEhjUkgs-DU0Mp3Bk.js +1650 -0
- package/dist/assets/ExpressPayPage-C9rqylRE-fd6R9yCg.js +168 -0
- package/dist/assets/{FeaturePreviewPage-CQN2xThT-DJXN60Ac.js → FeaturePreviewPage-BcRRbP7e-DlhiW3MZ.js} +3 -3
- package/dist/assets/{FollowStepsSection-DdwEVWhG-yjJ5FRCa.js → FollowStepsSection-B3Kyt5j4-CgmrU6eD.js} +7 -7
- package/dist/assets/GlobalReviewListPage-Bz-YyIK8-B-UTCvpv.js +291 -0
- package/dist/assets/HelpButton-38HaKgFL-BugYIsvp.js +28 -0
- package/dist/assets/{InformationCardStack-Cw7c9Pnd-BX2LTL8l.js → InformationCardStack-BY26HFGi-BLGIbInA.js} +4 -4
- package/dist/assets/InsightsCardStack-BI7iTuQ_-DQl2fOce.js +79 -0
- package/dist/assets/{InsightsSection-JIKb9lz3-Hi0aN8hq.js → InsightsSection-AQ5yTmGG-DS0VgX7W.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CxqwarZy.js → IntegrationsSettingsPage-BEAFHjYf-d2P0RMG5.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-CzlIxaS1.js → InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-BCCRbUea.js → InternationalWireVerificationPage-BdUXxMgU-DhF9zfHu.js} +27 -27
- package/dist/assets/{InviteFormPage-CrtH0cSG-eVIYbN0r.js → InviteFormPage-CY-8DzRS-Bfynw6ME.js} +16 -16
- package/dist/assets/{InvitePageListView-DUoopPip-D5qrm4ww.js → InvitePageListView-DXjKBR4k-Np2jy73K.js} +164 -164
- package/dist/assets/InvitePeoplePage-CIafIgkR-BdmOchmq.js +12 -0
- package/dist/assets/InvoiceUploadSection-cXNOY5jR-DGuQgS61.js +140 -0
- package/dist/assets/{IssueChargeCardPage-D6DCohbK-BMG4Ljit.js → IssueChargeCardPage-DN1zD_YI-i_-kvzIl.js} +1 -1
- package/dist/assets/{LabeledAddressValue-C3R0DSjj-CpxXKm9c.js → LabeledAddressValue-Bk3vXfZU-CU4YMzA1.js} +1 -1
- package/dist/assets/LabeledAddressValueField-6MpVMde--DXTq8JS8.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-B44wDW2V.js → LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js → LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js} +7 -7
- package/dist/assets/LabeledDocumentField-CAWaftIF-CSQ4X3Cr.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-hUkbh0bF.js → LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.js} +5 -5
- package/dist/assets/{LabeledText-BESSkt5Z-CPDVK04g.js → LabeledText-B3JYr4tU-laTDcIhJ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js → LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-5w6248s9.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js → LabeledZeniRolesDropDownField-DcUdbKa4-fYq87dcd.js} +34 -34
- package/dist/assets/LinkJETransactionPage-B1XJOlhU-DdWugwxQ.js +98 -0
- package/dist/assets/{LockCardPage-DYfgK11k-BFAZ4k7o.js → LockCardPage-B-EvOmPO-B73f-ypE.js} +66 -66
- package/dist/assets/LowBalancePopup-BoFHsW5A-B3QtlbXZ.js +34 -0
- package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--B-X6oebP.js → MagicLinkACHDetailsPage-D5-czDfb-D9jHfcHK.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-DllJxuHV.js → MagicLinkDomesticWireDetailsPage-DxtWixFB-79ayjypJ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-BIaiGIsd.js → MagicLinkInternationalWireDetailsPage-kmj9pdzN-DnNURYN2.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-6rfZopUb.js → MagicLinkSuccessPage-BPzk03R8-SXgLVDgR.js} +3 -3
- package/dist/assets/MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js +17 -0
- package/dist/assets/{MailingDetailsSection-9RwlQxVG-_UrE81Sw.js → MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-BXGtVHle.js → MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js} +4 -4
- package/dist/assets/{Menu-B6iTf2H7-Cu2Vb11u.js → Menu-CV1BBSGW-DKOqAYYS.js} +2 -2
- package/dist/assets/MyBankConnectionsSettingsPage-CMyrZ4nS-BheEjXSF.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-DuOoKlPP-thKNb-ry.js +6 -0
- package/dist/assets/MyProfileSettingsPage-CA-5gU5k-BFEIvdNu.js +85 -0
- package/dist/assets/{NavBarWithPicker-CKh_HMfV-i4ObGPrS.js → NavBarWithPicker-DuazRsm7-BXAVo-zX.js} +4 -4
- package/dist/assets/{NavigationArrow-XZmJpDrE-DolsLofY.js → NavigationArrow-DnZuPnXh-BOLYjEri.js} +2 -2
- package/dist/assets/{NavigationDots-BxPgEW_p-Cjr25BX_.js → NavigationDots-DarWlthl-CEtLiSj-.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-K2NUXsKS.js → NewGlobalMerchantPage-C5zI88lM-DBDRlSHQ.js} +35 -35
- package/dist/assets/{NoDataChart-5E72SElf-3CnLxisw.js → NoDataChart-Dwrv5FXT-BktYGhJl.js} +4 -4
- package/dist/assets/{NoDataTable-BwHbkm3l-VTHrTfOq.js → NoDataTable-BT9VQUID-B1zJzLW9.js} +2 -2
- package/dist/assets/{NotFoundPage-6udaksBZ-DUgTbMe0.js → NotFoundPage-BpVYjIy9-CAwSGm4b.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DkYmxMgg-BVRECpS0.js → NotificationSettingsPage-Br1VS7sj-D72VzMEy.js} +32 -32
- package/dist/assets/{NotificationsListConfig-FGxLgO1o-C0kfEx8A.js → NotificationsListConfig-COCJ7xUp-B665e_3O.js} +1 -1
- package/dist/assets/NotificationsPage-CtIcIo4T-DuWbZv_Q.js +685 -0
- package/dist/assets/{OpExByVendorPage-CM0RluUk-PZB-G7xm.js → OpExByVendorPage-CTdChrGD-CvW5Vepn.js} +6 -6
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-CSsJiY_P.js → OverlayContainerPage-CU1AAMcq-ai6w2Y-V.js} +2 -2
- package/dist/assets/PandLWithForecastPage-DVhAvUAV-CoqLEkYS.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-Cwm2aoR2.js → PaymentAccountSetupBillingAddressSection-Cqk9_T2U-B2k-ZLJe.js} +9 -9
- package/dist/assets/{PeoplePage-CB3T3u_F-BR69e4ui.js → PeoplePage-BR4qd-jm-CBOJNYwE.js} +95 -95
- package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-1mutznS7.js → PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js} +13 -13
- package/dist/assets/{PortfolioDetails-D4yT8r35-BZAutCbg.js → PortfolioDetails-6ElQWU58-ByHc7XYH.js} +35 -35
- package/dist/assets/{ProductsCarousel-CR7_rk0K-CKMGS-I4.js → ProductsCarousel-CijsxgpU-C19z6U57.js} +10 -10
- package/dist/assets/{PromoBaseCards-BAPolzxE-DjUVr5kX.js → PromoBaseCards-BWsv2pTB-B6b592gJ.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-D3eazhj7-DCdAj667.js → QBOConnectionDialog-ChKHWoK7-CSeEHm2_.js} +7 -7
- package/dist/assets/{QBOSetupSection-Cjjhm_Ee-CX61tnWs.js → QBOSetupSection-C4gt0qc8-DTKMvJ4_.js} +12 -12
- package/dist/assets/ReimbursementApprovalRuleDetailPage-BwgWdSTd-NVamJEor.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-DOLnlfRe.js → ReimbursementApprovalRulesPage-C2asBtuf-DT1aAQsK.js} +12 -12
- package/dist/assets/ReimbursementDetailPage-DS1ewUKC-CVEFgQmR.js +314 -0
- package/dist/assets/ReimbursementPromoPage-5OaQjA8F-DErLTtUx.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-Bl8jzyRg-3jDcWgfT.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DIesC2GA-CmjN--dc.js +1 -0
- package/dist/assets/{ReloadCard-Dpoxd9nE-_RGkkZLm.js → ReloadCard-0q5pQ13T-CKzHIqK2.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-D0sA8766.js → ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js} +29 -29
- package/dist/assets/ReportsPage-GTIPR29D-BtSUMj6k.js +121 -0
- package/dist/assets/{RevenueChart-CXMBT3cr-BigDcfmP.js → RevenueChart-C099OBIz-BCjETeYD.js} +29 -29
- package/dist/assets/ReviewDetailsPage-Dj29qJWr-znzq99Zm.js +290 -0
- package/dist/assets/{ReviewOverlay-C6Kx7Hfm-Aab2M4el.js → ReviewOverlay-OPfHsiEH-DYnwxQBa.js} +13 -13
- package/dist/assets/{RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js → RoleWithToolTip-CnJMJF5X-DPQwf2SV.js} +2 -2
- package/dist/assets/ScheduleDetailsFixedAssetsPage-BojehSaf-CqIP5z2b.js +37 -0
- package/dist/assets/ScheduleDetailsPage-aZbK93Nq-BFB854u3.js +37 -0
- package/dist/assets/ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js +324 -0
- package/dist/assets/ScreenRoutes-m-9CX7nW.js +206 -0
- package/dist/assets/SetUpAccountSection-B_VtQMHv-v5HWkW-2.js +378 -0
- package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js → SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js} +15 -15
- package/dist/assets/{SignIn-BlISBvt5-BSeULTEW.js → SignIn-DlL4Ve5C-CS2k0j8x.js} +28 -28
- package/dist/assets/SignInScreen-82F821nF.js +1 -0
- package/dist/assets/SpendManagementListViewPage-hcbJnpe0-Dx5Mkywb.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-CZMtZLLG-BwL9QJKu.js +754 -0
- package/dist/assets/SpendManagementSection-v3VQ4WLv-BgJcZL_k.js +230 -0
- package/dist/assets/SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js +206 -0
- package/dist/assets/{StatementItem-BVIVLdDn-DWQxeT2X.js → StatementItem-DHN42swg-QQn_8xP5.js} +2 -2
- package/dist/assets/StatementsPage-BuWUMrMJ-ClESyfR5.js +58 -0
- package/dist/assets/{StatusSwitcher-aAizq1mr-c-jcIGD9.js → StatusSwitcher-BQIZqQby-CwGTf6Yt.js} +2 -2
- package/dist/assets/{SubTabSwitcher-COrYJ6CW-BIZF-iNv.js → SubTabSwitcher-BwULcWpV-KD7oZVm0.js} +1 -1
- package/dist/assets/{SummaryCard-Dv0dWKBw-CGu-GHYa.js → SummaryCard-sp4k0Xek-DgWj-oz4.js} +1 -1
- package/dist/assets/TaskManagementPage-N2Egdy4r-qGkYEZ7q.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-VY1vzvIS.js → TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-BP-PxO5g-DxTIS9PI.js → TimeframeSwitcher-CqP9hXqB-r5frPdgi.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-D7U0L-cV.js → TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js} +1 -1
- package/dist/assets/{TopExCard-Bam-Q4MV-BsP_HKjG.js → TopExCard-CLw0PDAU-BbYnCf3a.js} +5 -5
- package/dist/assets/{TopExDetailPage-P0Twt5zZ-CoHp8hDQ.js → TopExDetailPage-GLquKOoy-kMqzF42L.js} +12 -12
- package/dist/assets/TransactionDetailPage-cTLfJiHb-1yZP6Zin.js +912 -0
- package/dist/assets/TransactionList-SkjGKFn_-BwaaUL7x.js +147 -0
- package/dist/assets/TransactionListBig-B4CiUxir-C15l10qy.js +284 -0
- package/dist/assets/{TransactionListPage-D4GJ6i3l-yaso0Nlb.js → TransactionListPage-eiEKrfCB-CXZ0iEN3.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-kFca8x3E.js → TransactionVendorDetailPage-CySokm3L-BpHJwA9m.js} +5 -5
- package/dist/assets/{TransferDrawerPage-GD2I8ptj-CANT8JC_.js → TransferDrawerPage-BSv0D4Zs-BT9NFCI4.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-C5hIMuk--DxAuBNvx.js +708 -0
- package/dist/assets/{TreasuryPromoPage-DW1f8_q1-CkWefV3r.js → TreasuryPromoPage-DSJHOwhj-BeQhN-a8.js} +6 -6
- package/dist/assets/{TreasurySetupPage-53k6ARHC-DuoYqIOy.js → TreasurySetupPage-B_EmY_UY-DAaCNRGd.js} +5 -5
- package/dist/assets/{TreasuryStatementsPage-pIshKNaR--8vN-IgR.js → TreasuryStatementsPage-BrZVJwAL-Bs1LrL-1.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CkqZdxpj.js → TreasuryTaxLetterPage-DsmLrBId-CRVnttNh.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.js +576 -0
- package/dist/assets/TrendChart-CWR5JV7S-Bu3AQa_8.js +16 -0
- package/dist/assets/{TrendWithTransactions-mI_El5D1-DUVZm_U-.js → TrendWithTransactions-D9x71aZs-CM8kaEfz.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-BNgZRg4x.js → UncategorizedAccountsMappingPage-Tx1NEXyX-DoWK8o5r.js} +47 -47
- package/dist/assets/{UnitIntegrationPage-XOWqGHla-BIoTpmZ_.js → UnitIntegrationPage-aTpJwSQj-BYrPkyiL.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-BVMdCZ9e-BITtYlPW.js +38 -0
- package/dist/assets/Vendor2FAPopup-BtVySDI--nsMiWnZu.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CswCvAFH-DqnJleBx.js → VendorACHDetailsPage-Cx9VUYTN-CUP3Cq5s.js} +1 -1
- package/dist/assets/VendorDetailPage-BTBlddyH-Bc_YJfHo.js +257 -0
- package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-GbXdyYXP.js → VendorDomesticWireDetailsPage-DIQg-f5b-Bwf6L3re.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-GKQT7vTw.js → VendorFiling1099EditablePage-CZzpO5dU-BLT7WxiF.js} +32 -32
- package/dist/assets/VendorFirstReviewPage-_Bf2O8Hk-B9tTYmRJ.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-DmM691ao-Dzdr5mG2.js +152 -0
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-eVlfJ9f_.js → VendorInternationalWireSwiftDetailsPage-CmfDU583-Dk7aONaM.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C13Z2HN9-DvGRJwYY.js → VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js} +4 -4
- package/dist/assets/VerifyDevice-pndtId1R-C8OsQHlo.js +112 -0
- package/dist/assets/{VideoPlayer-ByyqUuhG-CcmvFcG0.js → VideoPlayer-Cv2VluI6-D2yBmBgw.js} +1 -1
- package/dist/assets/{VideoPopup-DJrQQTPq-BZRShVLd.js → VideoPopup-DwltINTO-0GPyihNZ.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-C_aFzWZK.js → WarningsDrawerPage-I6fXTo8V-B0kNeHBS.js} +5 -5
- package/dist/assets/ZeniAccountDetailPage-BhqYqyk--DeI4__gE.js +300 -0
- package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-wW_PUJNB.js → ZeniAccountListViewPage-M7S_ZBj4-94TU34gP.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-Crjx7iNX-DK8JxCJS.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-CoCFGvia.js → ZeniAccountPromoPage-rK7P_Dpk-DmoLuwn8.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-CPTq7KjK.js → ZeniAccountSetupPage-B8yrjDVW-gPUnEzAZ.js} +1 -1
- package/dist/assets/{ZeniCopyright-B7Q6IUGC-DjtbTVnp.js → ZeniCopyright-BDsnkVlH-C00Fssys.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-D-BoRJmd.js → ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js} +3 -3
- package/dist/assets/{analyticsHelper-L-FpsGLH.js → analyticsHelper-CS2u9ax9.js} +1 -1
- package/dist/assets/analyticsHelper-D8CGsPLU-DJI9oEaD.js +1 -0
- package/dist/assets/{chartTypes-DCvOVjlS-CF3jsUNb.js → chartTypes-DLnePN0T-B_54UqyM.js} +1 -1
- package/dist/assets/{commonDimensions-C32v1F7H-C9uaBJ8J.js → commonDimensions-CWOH4KIa-zIW9i9kk.js} +1 -1
- package/dist/assets/{detailCommon-CRAGrqoO-5xMc7u9M.js → detailCommon-COLWOJB--3sJPi-qA.js} +8 -8
- package/dist/assets/downloadPdf-DmVZhHLH-D1xNlFUJ.js +1 -0
- package/dist/assets/{index-kF4u7Flm.js → index-MAXVX6UR.js} +2202 -2025
- package/dist/assets/{lodash-B66NTFTY.js → lodash-D52QloPU.js} +6 -6
- package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-CLLcsBiK.js → mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-4sjxXlit.js → mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-CeZutbYy.js → mapSpacerToTreeNode-toSXbVwB-B0PNlKW1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-rcfKFEh1.js → mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-BmreU2CJ.js → mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-CkRgUU-m.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js} +1 -1
- package/dist/assets/redux-CEhZD0hA.js +12 -0
- package/dist/assets/{toCOABalancesWithID-B3yVGPrV-Dj01dEre.js → toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js} +1 -1
- package/dist/assets/toChartData-BIN4xqGz-BcU_F8Ix.js +1 -0
- package/dist/assets/{treasuryColorHelper-13LJ_xhk-5-aGYtqD.js → treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js} +1 -1
- package/dist/assets/{uploadAttachment-DVy2pZeJ-DL6B1oGY.js → uploadAttachment-DwI0nG8D-VCODDzfq.js} +23 -23
- package/dist/assets/{uploadReceipts-Dp1dvCjf-BQPyxtgi.js → uploadReceipts-9DTOr0BG-pwNYcimh.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +6 -9
- package/dist/assets/AccountInfoPage-D-E_-WpE-DJyb7x4k.js +0 -18
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-ZCs8qzoa.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-BuvZZBZ-.js +0 -239
- package/dist/assets/AccountRow-Be3LIHO--BjLJB43L.js +0 -298
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-CkQ7kJh8.js +0 -207
- package/dist/assets/AgingReportsPage-L0zQxwCf-D3sUJmot.js +0 -79
- package/dist/assets/AllUserItems-CvwaOEhu-DISgj-9d.js +0 -192
- package/dist/assets/ApAgingDetailPage-B_78aSEv-DLL7XkHo.js +0 -46
- package/dist/assets/AppDrawerContent-BZODvVvi-DQ-V9QL0.js +0 -91
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-CRTSWRxG.js +0 -47
- package/dist/assets/ArAgingChart-BezVy1Sm-ClcQ64wd.js +0 -24
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-ik9FJnty.js +0 -425
- package/dist/assets/BillDetailPage-CDAh8Jtl-wk3WJY1W.js +0 -266
- package/dist/assets/BillPayPromoPage-B2YcxWc9-ChjVVUdj.js +0 -84
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-ZQ44J65y.js +0 -42
- package/dist/assets/BillingSettingsPage-BRsKYzT5-C1YZEc97.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-09a60H-u.js +0 -1
- package/dist/assets/BusinessVerificationPage-Nw_fedst-Ce7UF4J6.js +0 -138
- package/dist/assets/ChargeCardListPage-v5hH98Wi-BhiUhdgm.js +0 -406
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-CiA1pNTj.js +0 -222
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-Bqw8Kqbv.js +0 -36
- package/dist/assets/ChargeCardUtils-BRgkrCTs-Bo37IpfS.js +0 -1
- package/dist/assets/CollapsableReportTable-7iAngywY-BhPujiYA.js +0 -2932
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-B2MTqDnr.js +0 -260
- package/dist/assets/CompanyPassportPage-BQoEcPJr-CLTXsXdq.js +0 -574
- package/dist/assets/CompleteProfile-D5e9TQgy-B3NCfzYL.js +0 -52
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-C-tETdxW.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-CdqN8qku.js +0 -1
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-BMM-roBm.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-DgRG1l8f.js +0 -202
- package/dist/assets/DashboardReportPage-DTMbYOWH-B0H-UpGg.js +0 -371
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-D1h5XemH.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bhq4tM9b.js +0 -21
- package/dist/assets/DownloadOverlay-DRcasKoB-BTfb8tZj.js +0 -439
- package/dist/assets/EditPeoplePage-Zzo62if7-Clw_H_tG.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-DgdwTZwz.js +0 -865
- package/dist/assets/EntityDetailPage-CzlzOW8n-CjIrlTQm.js +0 -18
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-DxIRsn8B.js +0 -1650
- package/dist/assets/ExpressPayPage-DdQiFzDu-CXe6diRB.js +0 -168
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Dz5cpAt1.js +0 -291
- package/dist/assets/HelpButton-BNMy-6ce-CVlMGZqS.js +0 -28
- package/dist/assets/InsightsCardStack-CaMZiCnn-DLt2ZmbV.js +0 -79
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-olYxQVFB.js +0 -12
- package/dist/assets/InvoiceUploadSection-DoR834b4-CjFOCIIZ.js +0 -140
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-D9-PqJNp.js +0 -45
- package/dist/assets/LabeledDocumentField-ED03S2kQ-BGespvxP.js +0 -41
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-C6IEO3Ec.js +0 -98
- package/dist/assets/LowBalancePopup-CZDcHxyW-BSR036zV.js +0 -34
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-Dx0fyRw5.js +0 -17
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-uU5Nku5W.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-yyVAdXqO.js +0 -6
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2-BCkp79gR.js +0 -85
- package/dist/assets/NotificationsPage-C7lSAnUb-CEUwTZM_.js +0 -685
- package/dist/assets/PandLWithForecastPage-W4jlNjml-8wxKAhbo.js +0 -107
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DDLdjGbX.js +0 -26
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-ByJDRCe5.js +0 -314
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-CEBQKb7P.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-BMbaH1eU.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-CEJlVV08.js +0 -1
- package/dist/assets/ReportsPage-C7zirS74-oNrbhh6a.js +0 -121
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-rKSUEvaS.js +0 -290
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-Dm8QVj-0.js +0 -37
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-D97uCI5t.js +0 -37
- package/dist/assets/ScheduleSequenceTable-lTN7r0p4-BmAjQVGV.js +0 -324
- package/dist/assets/ScreenRoutes-Du6t5Ig_.js +0 -206
- package/dist/assets/SetUpAccountSection-Bnbi8X23-7-Jadv9H.js +0 -378
- package/dist/assets/SignInScreen-BN2xWnU-.js +0 -1
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-ByNxcaX6.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-C5z49u7s.js +0 -754
- package/dist/assets/SpendManagementSection-kucZgC-H-Cqflt6S1.js +0 -230
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-9bAK-YlL.js +0 -206
- package/dist/assets/StatementsPage-KnLUSJbm-DVR36Ge4.js +0 -58
- package/dist/assets/TaskManagementPage-CPLyyK1Y-BZe-OFxL.js +0 -508
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-BPMl_wDr.js +0 -912
- package/dist/assets/TransactionList-BzJEbOV9-0ST5sY1-.js +0 -147
- package/dist/assets/TransactionListBig-u4SJBZTE-BlGBIBoN.js +0 -284
- package/dist/assets/TreasuryOverviewPage-DySunaqy-Du5jK6WV.js +0 -708
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-DKViGoiZ.js +0 -576
- package/dist/assets/TrendChart-B_5D-Zud-Cw_zgD-R.js +0 -16
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-BNMbNbJQ.js +0 -38
- package/dist/assets/Vendor2FAPopup-BfqIHZBb-DUpQFrOM.js +0 -1
- package/dist/assets/VendorDetailPage-CEX7xMIN-D29fVYfj.js +0 -257
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-DwoL9x7s.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-N7HCxAFy.js +0 -152
- package/dist/assets/VerifyDevice-C27gEWkZ-BrEq9dHz.js +0 -112
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-CX7srLCt.js +0 -300
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-azEwN9c2.js +0 -14
- package/dist/assets/addSubtractPeriod-CFvkmqm8.js +0 -1
- package/dist/assets/analyticsHelper-or1KkBWk-CU2Z2CeD.js +0 -1
- package/dist/assets/downloadPdf-D7p3yKmg-DrJJdcEl.js +0 -1
- package/dist/assets/redux-D-TY61DZ.js +0 -12
- package/dist/assets/toChartData-DEW0iT7T-DaQT4Adc.js +0 -1
package/dist/assets/{ReviewOverlay-C6Kx7Hfm-Aab2M4el.js → ReviewOverlay-OPfHsiEH-DYnwxQBa.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import{q as
|
|
1
|
+
import{q as M,j as e,aM as x,o as r,aQ as B,y as d,A as L,b as C,H as W,h as s,am as $,cP as R,P as D,ai as j,bl as I,u as n,eC as G,M as A,iV as H,k0 as q}from"./index-MAXVX6UR.js";import{n as t}from"./vendor-Bs1fkIUX.js";const a={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])},F={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:P,onCloseReviewItem:k})=>{const l=M();return e.jsxs(J,{children:[e.jsx(Y,{windowSize:l,children:e.jsx(Z,{children:e.jsx(_,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:P,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(Q,{windowSize:l,children:[e.jsxs(V,{windowSize:l,children:[e.jsx(K,{children:e.jsx(N,{windowSize:l,children:i})}),e.jsx(U,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(X,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>k(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:O(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(B,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},O=i=>i.reviewStatus.isLoading?e.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),J=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
|
5
|
-
`,
|
|
5
|
+
`,Q=t.div`
|
|
6
6
|
min-height: 100vh;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
margin-top: ${i=>a.containerMarginTop.valuePx(i.windowSize)};
|
|
10
10
|
margin-bottom: ${r.sp8};
|
|
11
|
-
`,
|
|
11
|
+
`,V=t.div`
|
|
12
12
|
position: sticky;
|
|
13
13
|
top: ${r.sp0};
|
|
14
14
|
background-color: ${i=>i.theme.colors.grey4};
|
|
15
15
|
z-index: 1;
|
|
16
16
|
padding-left: ${i=>a.containerMarginLeft.valuePx(i.windowSize)};
|
|
17
17
|
padding-right: ${i=>a.containerMarginRight.valuePx(i.windowSize)};
|
|
18
|
-
`,
|
|
18
|
+
`,K=t.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
|
-
`,
|
|
22
|
-
${i=>`${
|
|
21
|
+
`,N=t(W)`
|
|
22
|
+
${i=>`${F.title.style(i.windowSize)}`};
|
|
23
23
|
color: ${i=>i.theme.colors.primary};
|
|
24
24
|
margin-top: ${r.sp2};
|
|
25
25
|
margin-bottom: ${i=>a.titleMarginBotom.valuePx(i.windowSize)};
|
|
@@ -27,13 +27,13 @@ import{q as k,j as e,cF as x,o as r,cK as B,y as d,A as L,b as C,H as W,h as s,c
|
|
|
27
27
|
`,U=t($)`
|
|
28
28
|
margin-bottom: ${i=>a.subTitleMarginBottom.valuePx(i.windowSize)};
|
|
29
29
|
color: ${i=>i.isError?s.important:i.theme.colors.hero};
|
|
30
|
-
`,
|
|
30
|
+
`,X=t.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
margin-top: ${r.sp3};
|
|
34
34
|
margin-left: ${i=>a.containerMarginLeft.valuePx(i.windowSize)};
|
|
35
35
|
margin-right: ${i=>a.containerMarginRight.valuePx(i.windowSize)};
|
|
36
|
-
`,
|
|
36
|
+
`,Y=t.div`
|
|
37
37
|
min-height: ${i=>a.navBarHeight.valuePx(i.windowSize)};
|
|
38
38
|
position: sticky;
|
|
39
39
|
border-bottom: 1px solid transparent;
|
|
@@ -105,15 +105,15 @@ import{q as k,j as e,cF as x,o as r,cK as B,y as d,A as L,b as C,H as W,h as s,c
|
|
|
105
105
|
display: flex;
|
|
106
106
|
margin-top: -5px;
|
|
107
107
|
color: ${i=>i.isError?s.important:i.isWarning?s.brandColorGoldDark:i.theme.colors.primary};
|
|
108
|
-
`,
|
|
108
|
+
`,v=t(G)`
|
|
109
109
|
width: ${r.sp4};
|
|
110
110
|
height: ${r.sp4};
|
|
111
111
|
color: ${i=>i.isError?s.important:s.brandColorGoldDark};
|
|
112
|
-
`,li=t(
|
|
112
|
+
`,li=t(A)`
|
|
113
113
|
width: ${r.sp4};
|
|
114
114
|
height: ${r.sp4};
|
|
115
115
|
color: ${s.success};
|
|
116
|
-
`,ai=t(
|
|
116
|
+
`,ai=t(q)`
|
|
117
117
|
width: ${r.sp4};
|
|
118
118
|
height: ${r.sp4};
|
|
119
119
|
color: ${i=>i.theme.colors.grey2};
|
|
@@ -136,7 +136,7 @@ import{q as k,j as e,cF as x,o as r,cK as B,y as d,A as L,b as C,H as W,h as s,c
|
|
|
136
136
|
height: ${r.sp4};
|
|
137
137
|
border-radius: 50%;
|
|
138
138
|
background-color: ${i=>i.theme.colors.grey5};
|
|
139
|
-
`,
|
|
139
|
+
`,f=t.div`
|
|
140
140
|
display: flex;
|
|
141
141
|
align-items: center;
|
|
142
142
|
justify-content: center;
|
|
@@ -145,7 +145,7 @@ import{q as k,j as e,cF as x,o as r,cK as B,y as d,A as L,b as C,H as W,h as s,c
|
|
|
145
145
|
color: ${i=>i.theme.colors.brandColorJade};
|
|
146
146
|
width: ${r.sp3};
|
|
147
147
|
height: ${r.sp3};
|
|
148
|
-
`,hi=t(
|
|
148
|
+
`,hi=t(H)`
|
|
149
149
|
color: ${i=>i.theme.colors.brandColorGoldDark};
|
|
150
150
|
width: ${r.sp4};
|
|
151
151
|
height: ${r.sp4};
|
package/dist/assets/{RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js → RoleWithToolTip-CnJMJF5X-DPQwf2SV.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{f4 as h,f5 as x,j as t,c5 as m,o as n,aM as i,O as g,ao as j,ai as p}from"./index-MAXVX6UR.js";import{n as s}from"./vendor-Bs1fkIUX.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -19,4 +19,4 @@ import{i1 as h,i2 as x,j as t,eh as m,o as n,cF as i,O as g,cf as j,c9 as p}from
|
|
|
19
19
|
justify-content: center;
|
|
20
20
|
color: 1px solid ${e=>e.theme.colors.grey1};
|
|
21
21
|
margin-left: ${n.sp1};
|
|
22
|
-
`,
|
|
22
|
+
`,C=({roles:e})=>{let r=a,l=[];r=h(e),l=x(e);const c=()=>l.length>0?t.jsx(y,{children:l.map(o=>t.jsxs(f,{children:[t.jsx(b,{children:o[0]}),t.jsx(u,{children:o[1]})]},o.join(",")))}):t.jsx(t.Fragment,{children:a});return l.length>0?t.jsx(m,{enterDelay:600,"data-testid":i("roles-tooltip",r),title:c(),placement:"top-end",style:{marginLeft:n.sp1,padding:"6px 12px"},maxWidth:"264px",children:t.jsxs(d,{"data-testid":i("roles-label-wrapper",r),children:[r,t.jsx(w,{className:"roles-count-wrapper","data-testid":i("roles-count-wrapper",r),children:l.length})]})}):t.jsx(d,{"data-testid":i("roles-label-wrapper",r),children:r})};export{C as T};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import{aP as H,l as me,im as ee,gO as fe,eR as we,io as Je,aa as Me,ip as Ve,cS as _e,cT as Pe,j as a,O as xe,ad as Fe,cD as $e,cE as Ne,cF as qe,aQ as Re,iq as We,ir as Ue,ab as he,is as Se,it as Be,d3 as ze,q as Ge,iH as He,gT as re,u as R,h as De,y as Ce,cV as Ye,iu as Ke,iv as Ze,iw as Qe,o as _}from"./index-MAXVX6UR.js";import{b as m,n as U}from"./vendor-Bs1fkIUX.js";import{i as Xe,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
background-color: ${t=>t.theme.colors.grey5};
|
|
6
|
+
border: 1px solid ${t=>t.theme.colors.grey3};
|
|
7
|
+
|
|
8
|
+
border-top-left-radius: ${_.sp2};
|
|
9
|
+
border-top-right-radius: ${_.sp2};
|
|
10
|
+
border-bottom-left-radius: ${_.sp0};
|
|
11
|
+
border-bottom-right-radius: ${_.sp0};
|
|
12
|
+
`,Y=U.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
flex: 1;
|
|
15
|
+
background-color: ${t=>t.theme.colors.grey3};
|
|
16
|
+
min-height: 1px;
|
|
17
|
+
`,st=U.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin: ${_.sp4} ${_.sp8} ${_.sp0} ${_.sp8};
|
|
21
|
+
`,V=(t,d)=>`${t}.${d}`;function ot({sectionId:t,jeScheduledTransaction:d,updateStatus:g,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:y,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:O,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:w,selectedMonths:T,selectedPostingDay:E,lastDayOfMonth:j,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Z}){const{resetField:f}=ze(),se=V(t,"scheduleExpenseCategory"),oe=V(t,"scheduleClass"),ne=V(t,"accumulatedDepreciationCategory"),de=V(t,"assetId"),Q=V(t,"startDate"),S=V(t,"postingDate"),r=V(t,"months"),e=xe.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,x=o=>s.filter(N=>N.qboId===o)[0]?.qboId,b=o=>p.filter(N=>N.qboId===o)[0]?.qboId,ie=o=>u.filter(N=>N.classId===o)[0]?.accountingClassNumber,K={valueContainer:o=>({...o,overflow:"unset"})},I=Ge(),B=He({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),z=()=>{f(S)},G=E==null&&j==null?void 0:j===!0?"lastDayOfMonth":"day",$=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{d.jeScheduleId!=null&&ae(d.jeScheduleId)},D=d.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(st,{children:[a.jsx(tt,{status:d.status.code,jeScheduleId:d.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:g==="In-Progress",onMarkAsComplete:Z,onCreateSchedule:i}),a.jsx(he,{controller:J===!0,children:a.jsxs(at,{children:[a.jsx(re,{isDisabled:D.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.expenseCategory,width:W.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:e.expenseCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:O,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},disableCurrentOption:$,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(Y,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:e.class,width:W.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:e.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(Y,{}),a.jsx(re,{isDisabled:D.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:e.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:F,allOptions:y},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},disableCurrentOption:$,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(Y,{}),a.jsx(Ye,{label:{label:e.assetId,width:W.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:L,placeholder:e.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(Y,{}),a.jsx(Ke,{label:{label:e.startMonth,width:W.labelWidth.value(I)},monthSelectorField:{name:Q,placeholder:e.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:B},isDisabled:h}),a.jsx(Y,{}),a.jsx(lt,{label:{label:e.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:e.postingDatePlaceholder,name:S,defaultValue:{type:G,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:z}}),a.jsx(Y,{}),a.jsx(Ze,{label:{label:e.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:e.monthsPlaceholder,defaultValue:{selectedOption:T!=null?v[T-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Qe,{text:e.scheduleMarkedAsCompleted})})]})}const nt=U.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
min-height: 100vh;
|
|
27
|
+
background-color: ${t=>t.theme.colors.grey4};
|
|
28
|
+
`,dt=U.div`
|
|
29
|
+
display: flex;
|
|
30
|
+
z-index: 2;
|
|
31
|
+
`,it=U.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
`,ct=U.div`
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
`,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",rt=xe.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ut}}=rt;function Et({analytics:t,controllerUserDetails:d,expenseAutomationSelectedPeriod:g,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:y,onJELinkClick:v,onSave:k,onDelete:O,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:T}){const[E,j]=m.useState(!1),h=H(l.updateStatus.fetchState),J=H(l.selectedJEScheduleTransaction?.status.code),i=H(l.deleteStatus.fetchState),[ae,Z]=m.useState(!1),f=l.scheduleDetailsLocalData.fixed_assets,se=H(f.jeScheduleDetails.length),oe=H(f.selectedDate),ne=H(f.selectedDayOfMonth),[de,Q]=m.useState(!0),S=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,e=l.selectedJEScheduleTransaction,x=me.getFirstControllerEmail(d.controllers),b=me.getFirstControllerId(d.controllerUserIds),ie={onOkClick:()=>{j(!1),p()},onCancelClick:()=>{j(!1)}},K=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...Be(r)},scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(C)},vendorName:S!=null?S.name:M.strings.hyphen,controllerEmails:x,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),v(n)},I=(n,C)=>{const A=e?.scheduledJournalEntry[C];r!=null&&A!=null&&e!=null&&t.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(A),controllerEmails:x,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),F(n)};m.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&e!=null&&t.trackScheduleDetailsSaved(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:x,controllerUserIds:b})),c===!0&&e?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&T(e.jeScheduleTransactionKey,{month:g.month,year:g.year}),p())},[g,J,l.selectedJEScheduleTransaction?.status.code,t,p,h,T,c,l.updateStatus,e,r,S,x,b]),m.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const B=fe(l.accountListNestedAccountHierarchy),z=fe(l.allDepreciationAccountListNestedAccountHierarchy),G=we(l.classListNestedAccountHierarchy),$=Je("fixed_assets"),X=m.useRef(),D=Me({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,B,G,z,$,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,B,G,z,$,u.entityAutoCompleteView)}),o=D.watch("scheduleDetailsFixedAssetsSection.vendor");m.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(n,C)=>{s.onAutoCompleteInputChange?.(n,"vendor"),X.current=C},be=D.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,C)=>{const A=C[te].vendor;if(n.includes("vendor")){const ce=A?.defaultOptions.map(q=>q.value);if(A?.selectedOption!=null&&ce?.includes(A.selectedOption)!==!0){const q=u.entityAutoCompleteView.vendor.find(Le=>Le.id===A.selectedOption);q!=null&&D.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:q.name??"",value:q.id}])}}const ke=n.includes("amount");if(P(C,ke),n.includes("amount")){const ce=n.split(".")[1],q=parseInt(ce);Z(!0),y(q,l.selectedJEScheduleTransaction?.jeScheduleId)}};m.useEffect(()=>{const n=D.watch((C,{name:A})=>{A!=null&&C!=null&&_e(()=>ve(A,C))});return()=>{n.unsubscribe()}}),m.useEffect(()=>{(se!==f.jeScheduleDetails.length||oe!==f.selectedDate||ne!==f.selectedDayOfMonth)&&ae===!0&&(D.resetField(le,{defaultValue:ue(l,B,G,z,$,u.entityAutoCompleteView)[le],keepDirty:!1}),Z(!1))},[f.jeScheduleDetails.length,f.selectedDate,f.selectedDayOfMonth]),m.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Q(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(Pe(D.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&f.jeScheduleDetails.length>0,Ee=()=>{pe===!0?j(!0):(r!=null&&e!=null&&t.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:x,controllerUserIds:b})),p())},je=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Ae=m.useCallback(()=>{Q(!0)},[]),Oe=m.useCallback(()=>{r!=null&&e!=null&&t.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:x,controllerUserIds:b})),w()},[t,x,b,e,w,r,S]),Te=m.useCallback(n=>{r!=null&&e!=null&&t.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:x,controllerUserIds:b})),O(n)},[t,x,b,e,O,r,S]),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;return a.jsxs(nt,{children:[a.jsx(ht,{title:Ie??M.strings.empty,onNavigateBack:Ee,onTransactionClick:je}),a.jsx(dt,{children:a.jsx(Fe,{...D,children:a.jsxs("form",{style:{width:"100%"},id:ye(ge),onSubmit:be,children:[a.jsx(pt,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:B,allClassOptions:G,allMonthOptions:$,allDepAccountOptions:z,onEditAmount:y,onDelete:Te,onJELinkClick:K,onViewLinkedJE:I,onMarkAsComplete:Oe,allowCreateSchedule:de,onCreateSchedule:Ae}),E===!0?a.jsx($e,{titleComponent:a.jsx(qe,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Ne,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(Re,{formId:ye(ge),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:()=>{j(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function ht({onNavigateBack:t,onTransactionClick:d,title:g}){return a.jsx(Ue,{title:g,tooltipTextOnLaunch:ut.showTransactionTooltip,onBackClick:t,onLaunchClick:d,style:{zIndex:3}})}function pt({vendorField:t,vendorLoadOptions:d,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:y,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:O,onDelete:P,onJELinkClick:F,onViewLinkedJE:L,onMarkAsComplete:w}){const T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(it,{children:[a.jsx(ct,{children:a.jsx(Xe,{vendorLoadOptions:d,vendorField:t,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(ot,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:y,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(he,{controller:v===!0,children:a.jsx(et,{sectionId:le,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:O,onJELinkClick:F,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ye=t=>`${t}_form`,ue=(t,d,g,l,s,u)=>{const c=t.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,y=c.selectedVendor,v=y!=null?u.vendor.find(i=>i.zeniId===y.id):void 0,k=p!=null?t.allAccountList.find(i=>i.accountId===p):void 0,O=c.selectedAccumulatedDepreciationCategory,P=O!=null?t.allDepreciationAccountList.find(i=>i.accountId===O):void 0,F=c.assetId,L=c.selectedClass,w=L!=null?t.allClassList.find(i=>i.classId===L):void 0,T=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})),j=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=j==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:w?.classId,allOptions:g},startDate:c.selectedDate,months:{selectedOption:T,allOptions:s},vendor:{selectedOption:v?.id??y?.id,defaultOptions:We(u,v??y)},postingDate:{type:J,dayOfMonth:j}},[le]:E}};export{Et as default};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import{aP as $,l as ie,im as Q,gO as ke,eR as Ie,io as Je,aa as Le,ip as we,cS as Me,cT as Ve,j as a,O as De,ad as Pe,cD as Fe,cE as $e,cF as _e,aQ as Ne,iq as qe,ir as Ue,ab as re,is as pe,it as ze,d3 as Be,q as Re,gT as me,u as X,h as We,y as Ke,iu as Ge,iv as Ye,iw as He,o as L}from"./index-MAXVX6UR.js";import{b as D,n as P}from"./vendor-Bs1fkIUX.js";import{i as Qe,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const U={labelWidth:new Ke(160,160,160)},tt=P.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
6
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
7
|
+
|
|
8
|
+
border-top-left-radius: ${L.sp2};
|
|
9
|
+
border-top-right-radius: ${L.sp2};
|
|
10
|
+
border-bottom-left-radius: ${L.sp0};
|
|
11
|
+
border-bottom-right-radius: ${L.sp0};
|
|
12
|
+
`,Z=P.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
flex: 1;
|
|
15
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
16
|
+
min-height: 1px;
|
|
17
|
+
`,lt=P.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin: ${L.sp4} ${L.sp8} ${L.sp0} ${L.sp8};
|
|
21
|
+
`,_=(e,n)=>`${e}.${n}`;function at({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:v,allMonthOptions:o,uncategorizedAccounts:p,selectedAccount:r,selectedClass:C,selectedDate:w,selectedMonths:I,selectedPostingDay:O,lastDayOfMonth:A,isDisabled:S,allowCreateSchedule:b,onCreateSchedule:u,onDelete:le,onMarkAsComplete:F}){const{resetField:z}=Be(),B=_(e,"scheduleExpenseCategory"),R=_(e,"scheduleClass"),ae=_(e,"startDate"),N=_(e,"postingDate"),y=_(e,"months"),f=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(q=>q.qboId===d)[0]?.qboId,oe=d=>i.filter(q=>q.classId===d)[0]?.accountingClassNumber,W={valueContainer:d=>({...d,overflow:"unset"})},J=Re(),x=st({startDate:n.baseTransaction.date,endDate:n.baseTransaction.date.add(1,"year")}),h=()=>{z(N)},s=O==null&&A==null?void 0:A===!0?"lastDayOfMonth":"day",E=d=>[p.expense?.qboId,p.income?.qboId].includes(d),j=()=>{n.jeScheduleId!=null&&le(n.jeScheduleId)},K=n.scheduledJournalEntry.flatMap(d=>d.error);return a.jsxs(lt,{children:[a.jsx(Ze,{isUpdating:m==="In-Progress",status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:b,onDelete:j,onMarkAsComplete:F,onCreateSchedule:u}),a.jsx(re,{controller:b===!0,children:a.jsxs(tt,{children:[a.jsx(me,{isDisabled:K.includes("debit_category_deleted")?void 0:S,isLoading:!1,label:{label:f.expenseCategory,width:U.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?We.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:B,placeholder:f.expenseCategoryPlaceholder,valueToId:d=>se(d),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},disableCurrentOption:E,style:{borderTopLeftRadius:X[2],borderTopRightRadius:X[2]}}),a.jsx(Z,{}),a.jsx(me,{isDisabled:S,isLoading:!1,label:{label:f.class,width:U.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:R,placeholder:f.classPlaceholder,valueToId:d=>oe(d),defaultValue:{selectedOption:C,allOptions:v},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(Ge,{label:{label:f.startMonth,width:U.labelWidth.value(J)},monthSelectorField:{name:ae,placeholder:f.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:S,monthsAndYears:x},isDisabled:S}),a.jsx(Z,{}),a.jsx(et,{label:{label:f.postingDate,width:U.labelWidth.value(J)},isDisabled:S,dayOfMonthField:{placeholder:f.postingDatePlaceholder,name:N,defaultValue:{type:s,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(Ye,{label:{label:f.months,width:U.labelWidth.value(J)},singleSelectNumericField:{name:y,isDisabled:S,placeholder:f.monthsPlaceholder,defaultValue:{selectedOption:I!=null?o[I-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:d=>!!d.selectedOption}}})]})}),a.jsx(re,{controller:b===!1,children:a.jsx(He,{text:f.scheduleMarkedAsCompleted})})]})}const st=e=>{const n={},m=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(m).fill(l).map((i,v)=>{const o=i-v,p=o.toString();let r=[];if(o===t){const C=e.startDate.month();r=e.startDate.localeData().monthsShort(),C!==0&&r.splice(0,C)}else r=ie.zeniDate(`${o}-01-01`).localeData().monthsShort();return n[p]=r,p}).reverse(),months:n}},ot=P.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
min-height: 100vh;
|
|
27
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
28
|
+
`,nt=P.div`
|
|
29
|
+
display: flex;
|
|
30
|
+
z-index: 2;
|
|
31
|
+
`,dt=P.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
`,ct=P.div`
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
`,Se="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",it=De.getLocalizedStrings(),{common:k,jeSchedules:{scheduleDetails:rt}}=it;function xt({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:v,vendorSearchAutoCompleteData:o,onMarkAsComplete:p,onNavigateBack:r,onEditAmount:C,onJELinkClick:w,onSave:I,onDelete:O,onDetailPageChange:A,onViewLinkedJE:S,onTransactionClick:b,removeJeScheduleTransactionKey:u}){const[le,F]=D.useState(!1),z=$(l.updateStatus.fetchState),B=$(l.selectedJEScheduleTransaction?.status.code),R=$(l.deleteStatus.fetchState),[ae,N]=D.useState(!1),y=l.scheduleDetailsLocalData.prepaid_expenses,f=$(y.jeScheduleDetails.length),se=$(y.selectedDate),oe=$(y.selectedDayOfMonth),[W,J]=D.useState(!0),x=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,s=l.selectedJEScheduleTransaction,E=ie.getFirstControllerEmail(n.controllers),j=ie.getFirstControllerId(n.controllerUserIds),K={onOkClick:()=>{F(!1),r()},onCancelClick:()=>{F(!1)}},d=c=>{const g=s?.scheduledJournalEntry[c];h!=null&&g!=null&&s!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...ze(h)},scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:{...pe(g)},vendorName:x!=null?x.name:k.strings.hyphen,controllerEmails:E,controllerUserIds:j}),w(c)},q=(c,g)=>{const T=s?.scheduledJournalEntry[g];h!=null&&T!=null&&s!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(T),controllerEmails:E,controllerUserIds:j}),S(c)};D.useEffect(()=>{z==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&s!=null&&e.trackScheduleDetailsSaved(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),i===!0&&s?.jeScheduleTransactionKey!=null&&B==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(s.jeScheduleTransactionKey,{month:m.month,year:m.year}),r())},[B,l.selectedJEScheduleTransaction?.status.code,e,r,m,z,l.updateStatus,u,t,i,s,h,x,E,j]),D.useEffect(()=>{R==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[R,l.deleteStatus,r]);const G=ke(l.accountListNestedAccountHierarchy),Y=Ie(l.classListNestedAccountHierarchy),H=Je(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,G,Y,H,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,G,Y,H,o.entityAutoCompleteView)}),ne=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(we(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const Ce=(c,g)=>{v.onAutoCompleteInputChange?.(c,"vendor"),ue.current=g},ye=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(c,g)=>{const T=g[ee].vendor;if(c.includes("vendor")){const de=T?.defaultOptions.map(V=>V.value);if(T?.selectedOption!=null&&de?.includes(T.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(Ae=>Ae.id===T.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??k.strings.empty,value:V.id}])}}const Oe=c.includes("amount");if(A(g,Oe),c.includes("amount")){const de=c.split(".")[1],V=parseInt(de);N(!0),C(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{const c=M.watch((g,{name:T})=>{T!=null&&g!=null&&Me(()=>ge(T,g))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(f!==y.jeScheduleDetails.length||se!==y.selectedDate||oe!==y.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,G,Y,H,o.entityAutoCompleteView)[te],keepDirty:!1}),N(!1))},[y.jeScheduleDetails.length,y.selectedDate,y.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Ve(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&y.jeScheduleDetails.length>0,ve=()=>{he===!0?F(!0):(h!=null&&s!=null&&e.trackScheduleDetailsCanceled(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),r())},be=()=>{l.selectedJEScheduleTransaction!=null&&b({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=D.useCallback(()=>{J(!0)},[]),Ee=D.useCallback(()=>{h!=null&&s!=null&&e.trackScheduleDetailsMarkedAsCompleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),p()},[e,s,p,t,h,x,E,j]),je=D.useCallback(c=>{h!=null&&s!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),O(c)},[e,s,O,t,h,x,E,j]),Te=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(c=>c.error??[]).filter(c=>!!c)??[])?.includes("vendor_deleted")===!0?ne?.defaultOptions.find(c=>c.value===ne?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(ot,{children:[a.jsx(ut,{onNavigateBack:ve,onTransactionClick:be,title:Te??k.strings.empty}),a.jsx(nt,{children:a.jsx(Pe,{...M,children:a.jsxs("form",{style:{width:"100%"},id:fe(Se),onSubmit:ye,children:[a.jsx(ht,{vendorLoadOptions:Ce,vendorField:ne,vendorSearchAutoCompleteActions:v,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:G,allClassOptions:Y,allMonthOptions:H,allowCreateSchedule:W,onEditAmount:C,onDelete:je,onJELinkClick:d,onViewLinkedJE:q,onMarkAsComplete:Ee,onCreateSchedule:xe}),le===!0?a.jsx(Fe,{titleComponent:a.jsx(_e,{children:k.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:k.confirmationPopup.discardDescription}),primaryButtonText:k.confirmationPopup.discard,secondaryButtonText:k.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,he===!0?a.jsx(Ne,{formId:fe(Se),primaryBtn:{label:k.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:k.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{F(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function ut({title:e,onNavigateBack:n,onTransactionClick:m}){return a.jsx(Ue,{title:e,tooltipTextOnLaunch:rt.showTransactionTooltip,onBackClick:n,onLaunchClick:m,style:{zIndex:3}})}function ht({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:v,allMonthOptions:o,allowCreateSchedule:p,onCreateSchedule:r,onMarkAsComplete:C,onEditAmount:w,onDelete:I,onJELinkClick:O,onViewLinkedJE:A}){const S=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(b=>b.error??[]).filter(b=>!!b)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(dt,{children:[a.jsx(ct,{children:a.jsx(Qe,{errors:S,vendorLoadOptions:n,vendorField:e,vendorFieldName:_(ee,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(at,{sectionId:ee,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:v,allMonthOptions:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:p,onCreateSchedule:r,onDelete:I,onMarkAsComplete:C,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:p===!0,children:a.jsx(Xe,{sectionId:te,totalAmount:t.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:t.fetchState,scheduleJournalEntries:t.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:t.selectedJEScheduleTransaction.jeScheduleId==null,localData:t.scheduleDetailsLocalData.prepaid_expenses.jeScheduleDetails,uiState:t.uiState,onEditAmount:w,onJELinkClick:O,onViewLinkedJE:A,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const fe=e=>`${e}_form`,ce=(e,n,m,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,v=i.selectedAccount,o=i.selectedVendor,p=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=v!=null?e.allAccountList.find(u=>u.accountId===v):void 0,C=i.selectedClass,w=C!=null?e.allClassList.find(u=>u.classId===C):void 0,I=i.selectedMonths,O=i.jeScheduleDetails.map(u=>({postingDate:u.postingDate,amount:u.amount.amount,runningBalance:u.runningBalance.amount,postingStatus:u.postingStatus,jeLink:u.jeLink.thirdPartyTransactionId})),A=i.selectedDayOfMonth,S=i.lastDayOfMonth,b=A==null&&S==null?void 0:S===!0?"lastDayOfMonth":"day";return{[ee]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:n},scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:i.selectedDate,months:{selectedOption:I,allOptions:l},vendor:{selectedOption:p?.id??o?.id,defaultOptions:qe(t,p??o)},postingDate:{type:b,dayOfMonth:A}},[te]:O}};export{xt as default};
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import{q as F,c as X,j as t,ix as ie,O as N,iy as le,b as oe,iz as ge,e7 as fe,ft as we,C as A,iA as ye,iw as be,o as i,y as b,h as j,s as $e,ab as re,e3 as je,cD as Se,cF as ke,d3 as Z,db as ee,d9 as ve,iB as U,iC as Ce,b3 as De,iD as Me,cH as ze,iE as Oe,u as h,am as O,b8 as Ee,cE as Le,ap as pe,dc as Ae,b1 as ne,dn as Fe,aQ as Ie,l as Y,iF as I,gq as Te,aN as Ve,iG as Je,aU as _,dd as Be,bl as Pe}from"./index-MAXVX6UR.js";import{b as D,n as o,i as B}from"./vendor-Bs1fkIUX.js";const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=F(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ke,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Xe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Re({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ye,{isDisabled:s!=null,children:[l?.type==null?t.jsx(_e,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Qe,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Y.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
`,Ye=o.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
padding-right: ${i.sp3};
|
|
6
|
+
`,ae=o.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
background-color: ${e=>e.isSelected===!0?e.theme.colors.background:e.theme.colors.grey5};
|
|
10
|
+
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
11
|
+
`,Ge=o.div`
|
|
12
|
+
position: absolute;
|
|
13
|
+
z-index: 9;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
top: ${i.sp5};
|
|
16
|
+
${e=>e.alignLeft?B`
|
|
17
|
+
left: 0;
|
|
18
|
+
`:B`
|
|
19
|
+
right: 0;
|
|
20
|
+
`};
|
|
21
|
+
color: ${e=>e.theme.colors.primary};
|
|
22
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
23
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
24
|
+
border-radius: ${i.sp2};
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
width: 270px;
|
|
28
|
+
`,_e=o(O)`
|
|
29
|
+
color: ${e=>e.theme.colors.grey1};
|
|
30
|
+
margin-right: ${i.sp1};
|
|
31
|
+
`,W=o(O)`
|
|
32
|
+
color: ${e=>e.theme.colors.primary};
|
|
33
|
+
`,Ue=o(O)`
|
|
34
|
+
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
35
|
+
`,de=o.div`
|
|
36
|
+
display: flex;
|
|
37
|
+
gap: ${i.sp1};
|
|
38
|
+
`,Ke=o.div`
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
position: relative;
|
|
43
|
+
cursor: ${e=>e.isDisabled?"default":"pointer"};
|
|
44
|
+
border-radius: ${i.sp1};
|
|
45
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
46
|
+
color: ${e=>e.theme.colors.primary};
|
|
47
|
+
&:hover {
|
|
48
|
+
background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
|
|
49
|
+
}
|
|
50
|
+
`,Qe=o.div`
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
width: fit-content;
|
|
54
|
+
margin: ${i.sp0} ${i.sp3};
|
|
55
|
+
color: ${e=>e.theme.colors.hero};
|
|
56
|
+
`,q=o.div`
|
|
57
|
+
display: flex;
|
|
58
|
+
`,H=o(O)`
|
|
59
|
+
padding: ${i.sp1} ${i.sp2};
|
|
60
|
+
max-width: ${i.sp5};
|
|
61
|
+
min-width: 18px;
|
|
62
|
+
flex-grow: 1;
|
|
63
|
+
text-align: end;
|
|
64
|
+
border-radius: ${i.sp1};
|
|
65
|
+
${e=>e.isSelected?B`
|
|
66
|
+
color: ${e.theme.colors.background};
|
|
67
|
+
background-color: ${e.theme.colors.primary};
|
|
68
|
+
`:null}
|
|
69
|
+
`,Xe=o.div`
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
background-color: ${e=>e.isError?j.importantLight:"transparent"};
|
|
73
|
+
&:hover {
|
|
74
|
+
div {
|
|
75
|
+
color: ${e=>e.theme.colors.primary};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
input {
|
|
79
|
+
:checked {
|
|
80
|
+
background-color: ${e=>e.isError?j.important:e.theme.colors.primary};
|
|
81
|
+
border-color: ${e=>e.isError?j.important:e.theme.colors.primary};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
`,Ze=o.div`
|
|
85
|
+
width: 100%;
|
|
86
|
+
margin-top: ${i.sp1};
|
|
87
|
+
height: 1px;
|
|
88
|
+
`,et=o.div`
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 1px;
|
|
91
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
92
|
+
`,z={height:new b(h[6],h[6]),controlHeight:new b(h[6],h[6]),paddingTopBottom:new b(h[2],h[2]),marginRight:new b(h[2],h[2]),labelMarginLeft:new b(h[3],h[4]),labelMarginRight:new b(h[3],h[4]),labelMarginTop:new b(h[2],h[2])};function _t({label:e,dayOfMonthField:l,isDisabled:s,style:r}){const p=F(),{formState:{errors:n}}=Z(),d=ee(n,l.name);return t.jsxs(tt,{size:p,style:r,isDisabled:s!=null,isError:d,children:[t.jsx(ve,{isDisabled:s,label:e.label,htmlFor:l.name,style:{marginLeft:z.labelMarginLeft.value(p),marginRight:z.labelMarginRight.value(p),marginTop:z.labelMarginTop.value(p),width:e.width??"auto"}}),t.jsx(it,{labelWidth:e.width,children:t.jsx(Ne,{...l,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const tt=o.div`
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: flex-start;
|
|
96
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
97
|
+
min-height: ${e=>z.height.valuePx(e.size)};
|
|
98
|
+
padding-right: ${e=>z.marginRight.valuePx(e.size)};
|
|
99
|
+
padding-top: ${e=>z.paddingTopBottom.valuePx(e.size)};
|
|
100
|
+
padding-bottom: ${e=>z.paddingTopBottom.valuePx(e.size)};
|
|
101
|
+
|
|
102
|
+
:first-of-type {
|
|
103
|
+
border-top-left-radius: inherit;
|
|
104
|
+
border-top-right-radius: inherit;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:last-of-type {
|
|
108
|
+
border-bottom-left-radius: inherit;
|
|
109
|
+
border-bottom-right-radius: inherit;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:focus-within {
|
|
113
|
+
z-index: 2;
|
|
114
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
115
|
+
.react-datepicker-wrapper {
|
|
116
|
+
background-color: ${e=>e.isError?j.importantLight:e.theme.colors.background};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.react-datepicker-wrapper {
|
|
121
|
+
background-color: ${e=>e.isError?j.importantLight:e.theme.colors.grey5};
|
|
122
|
+
}
|
|
123
|
+
&:hover {
|
|
124
|
+
z-index: 1;
|
|
125
|
+
outline: 1px solid
|
|
126
|
+
${e=>e.isDisabled===!0?e.theme.colors.grey3:e.theme.colors.primary};
|
|
127
|
+
.react-datepicker-wrapper {
|
|
128
|
+
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?j.importantLight:e.theme.colors.background};
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`,it=o.div`
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
135
|
+
align-items: flex-end;
|
|
136
|
+
flex-grow: 1;
|
|
137
|
+
`,lt=o.div`
|
|
138
|
+
display: flex;
|
|
139
|
+
width: 100%;
|
|
140
|
+
justify-content: space-between;
|
|
141
|
+
`,ot=o(Ee)`
|
|
142
|
+
color: ${e=>e.theme.colors.primary};
|
|
143
|
+
margin: ${i.sp3} ${i.sp1};
|
|
144
|
+
`,ce=o.div`
|
|
145
|
+
margin-bottom: ${i.sp2};
|
|
146
|
+
`,{common:T,jeSchedules:{scheduleDetails:C}}=N.getLocalizedStrings();function Ut({isUpdating:e,status:l,jeScheduleId:s,allowCreateSchedule:r,onDelete:p,onMarkAsComplete:n,onCreateSchedule:d}){const[c,y]=D.useState(!1),f={onOkClick:()=>{p()},onCancelClick:()=>{y(!1)}},u=()=>null,m=[];return(l==="new"||l=="draft")&&m.push({label:C.scheduleDetailsSection.markAsCompleted,value:C.scheduleDetailsSection.markAsCompleted}),s!=null&&l!=="draft"&&(l==="marked_as_completed"?r===!1&&m.push({label:C.scheduleDetailsSection.createSchedule,value:C.scheduleDetailsSection.createSchedule}):m.push({label:T.delete,value:T.delete})),t.jsxs(lt,{children:[t.jsx(ot,{children:C.scheduleDetailsSection.header}),t.jsx(re,{controller:m.length>0,children:t.jsx(je,{moreIconType:"plain",options:m,customStyleConfig:{valueContainer:()=>({".more-icon":{width:i.sp3,height:i.sp3}})},menuPlacement:"top",onOptionSelection:g=>{g===T.delete&&y(!0),g===C.scheduleDetailsSection.markAsCompleted&&n(),g===C.scheduleDetailsSection.createSchedule&&d()},valueToIcon:u})}),t.jsx(re,{controller:c===!0,children:t.jsx(Se,{titleComponent:t.jsx(ke,{children:C.scheduleDetailsSection.confirmDeletionTitle}),descriptionComponent:t.jsx(rt,{}),action:f,primaryButtonText:T.yes,proceedButtonVariant:"danger",secondaryButtonText:T.no,isLoading:e})})]})}function rt(){return t.jsxs(Le,{children:[t.jsx(ce,{children:C.scheduleDetailsSection.confirmDeletionDescription}),t.jsx(ce,{children:C.scheduleDetailsSection.confirmDeletionDescriptionNote})]})}const P={containerPadding:new b(h[3],h[8]),containerMarginTop:new b(h[3],h[4]),containerMarginBottom:new b(h[4],h[5]),transactionLabelMarginTop:new b(h[2],h[0]),transactionTitleContainerWidth:new b(187,480)},K={transactionLabel:new oe("standardMedium","largeMedium"),transactionTitle:new oe("h6SemiBold","h5SemiBold")},nt=o.div``,ue=o.div`
|
|
147
|
+
margin: ${i.sp0} ${i.sp3} ${i.sp0} ${i.sp0};
|
|
148
|
+
max-width: ${e=>P.transactionTitleContainerWidth.valuePx(e.windowSize)};
|
|
149
|
+
`,st=o($e)`
|
|
150
|
+
color: ${j.neutralGrey5Light};
|
|
151
|
+
margin-top: ${e=>P.transactionLabelMarginTop.valuePx(e.windowSize)};
|
|
152
|
+
${e=>`${K.transactionLabel.style(e.windowSize)}`};
|
|
153
|
+
background-color: ${e=>e.labelColor.toString()};
|
|
154
|
+
border-radius: ${i.sp1};
|
|
155
|
+
padding: ${i.sp0} ${i.sp2} ${i.sp0} ${i.sp2};
|
|
156
|
+
`,at=o.div`
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
`,dt=o.div`
|
|
160
|
+
display: flex;
|
|
161
|
+
flex: 0 0 auto;
|
|
162
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
163
|
+
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
164
|
+
gap: ${i.sp3};
|
|
165
|
+
`,ct=o.div`
|
|
166
|
+
display: flex;
|
|
167
|
+
width: 100%;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
170
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
171
|
+
padding: ${e=>`${i.sp0} ${P.containerPadding.valuePx(e.windowSize)}`};
|
|
172
|
+
`,ut=o.div`
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-direction: row;
|
|
175
|
+
width: 100%;
|
|
176
|
+
flex-direction: row;
|
|
177
|
+
flex-wrap: wrap;
|
|
178
|
+
align-items: flex-start;
|
|
179
|
+
justify-content: space-between;
|
|
180
|
+
margin-top: ${e=>P.containerMarginTop.valuePx(e.windowSize)};
|
|
181
|
+
margin-bottom: ${e=>P.containerMarginBottom.valuePx(e.windowSize)};
|
|
182
|
+
`,ht=o(O)`
|
|
183
|
+
color: ${e=>e.theme.colors.hero};
|
|
184
|
+
height: ${i.sp4};
|
|
185
|
+
`,pt=o(O)`
|
|
186
|
+
color: ${e=>e.theme.colors.primary};
|
|
187
|
+
word-break: break-all;
|
|
188
|
+
text-align: right;
|
|
189
|
+
`,mt=o.div`
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: row;
|
|
192
|
+
justify-content: space-between;
|
|
193
|
+
gap: ${i.sp3};
|
|
194
|
+
`,xt=o.div`
|
|
195
|
+
margin-top: ${i.sp3};
|
|
196
|
+
width: 100%;
|
|
197
|
+
`,gt=o.div`
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
margin: ${i.sp3} ${i.sp0} ${i.sp6} ${i.sp0};
|
|
201
|
+
`,ft=o.div`
|
|
202
|
+
display: flex;
|
|
203
|
+
width: 100%;
|
|
204
|
+
height: 1px;
|
|
205
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
206
|
+
`,wt=({title:e,value:l})=>t.jsxs(mt,{children:[t.jsx(ht,{children:e}),t.jsx(pt,{children:l||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:L},scheduleAccruedDetails:{placeholders:{selectVendor:yt}}},dateFormat:{visual:{MMMDCommaYYYYformat:bt}},common:{strings:{hyphen:me}}}=N.getLocalizedStrings();function Kt({transaction:e,vendorField:l,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=F(),c=X(),[y,f]=D.useState(!1),u=$t(e),m=r?.includes("vendor_deleted"),[g,S]=D.useState(r?.includes("vendor_deleted")),v=l?.defaultOptions.find(w=>w.value===l?.selectedOption);return t.jsxs(ct,{windowSize:d,children:[t.jsxs(ut,{windowSize:d,children:[t.jsxs(dt,{windowSize:d,children:[t.jsx(t.Fragment,{children:m===!0?t.jsx(t.Fragment,{children:g===!0?t.jsx(ie,{text:L.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:y===!1?t.jsx(nt,{onClick:()=>f(!0),children:v!=null?t.jsx(ue,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...K.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary,cursor:"default"},text:v.label})}):t.jsx(ie,{text:L.addVendor,handleClick:()=>{S(!1),f(!0)}})}):t.jsx(ge,{autoFocus:!0,menuIsOpen:y,name:p??"",placeholder:yt,valueToId:w=>w,defaultValue:{selectedOption:l?.selectedOption,defaultOptions:l?.defaultOptions??[]},onMenuClose:()=>f(!1),customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"})},style:{width:250},registerOptions:{required:!0,validate:w=>!!w.selectedOption},loadOptions:s})})}):t.jsx(ue,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...K.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary},text:n.name})})}),t.jsx(st,{windowSize:d,labelColor:fe(e.type,c),children:e.typeName??e.type})]}),t.jsx(at,{children:t.jsx(we,{amount:e.amount,integerStyles:A.h6SemiBold.cssObject,decimalStyles:A.standardMedium.cssObject})})]}),t.jsx(ft,{}),t.jsx(gt,{children:u.map((w,k)=>t.jsx(xt,{children:t.jsx(wt,{title:w.title,value:w.value})},k))})]})}function $t(e){const l=[];return l.push({title:L.transactionDate,value:e.date.format(bt)}),l.push({title:L.category,value:e.account.accountName}),l.push({title:L.class,value:e.classBase?.className??me}),l.push({title:L.memo,value:e.memo}),l}const he=(e,l)=>`${e}.${l}`,jt={webkitLineClamp:new b(2,2,1,1,1)},St=N.getLocalizedStrings(),{dateFormat:kt,jeSchedules:{scheduleDetails:Q}}=St,vt=({sectionId:e,rowId:l,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:y,onViewLinkedJE:f})=>{const u=F(),m=X(),[g,S]=D.useState(!1),{formState:{errors:v}}=Z(),w=D.useCallback(()=>{y(l)},[y,l]),k=d?.jeScheduleId!=null&&d.status.code==="unknown",x=n===!1?"disabled":s,a=d?.jeScheduleId!=null&&d.status.code==="posted"&&c.jeLink.transactionDetailID!=null,$=()=>{a&&c.jeLink.transactionDetailID!=null&&f(c.jeLink.transactionDetailID,l)},G=he(e,"amount"),E=ee(v,G);return t.jsxs(Mt,{windowSize:u,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(V,{windowSize:u,widthSize:I[0].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(V,{windowSize:u,widthSize:I[1].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,children:c.postingDate.format(kt.visual.MMMDCommaYYYYformat)})}),t.jsx(V,{windowSize:u,widthSize:I[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(J,{windowSize:u,onClick:()=>{(a||n)&&S(!0)},isClickable:a||n,children:t.jsx(Te,{style:{height:i.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:i.sp3,color:E===!0?j.important:g===!1?m.colors.hero:m.colors.primary},type:"number",autoFocus:!1,focus:g,name:he(e,"amount"),placeholder:Q.sequenceSchedule.sequenceData.amountPlaceholder,autoComplete:"new-password",defaultValue:c.amount.amount,returnValueType:"floatValue",allowEmptyFormatting:!0,hoverBgColor:s==null?m.colors.background:m.colors.grey5,bgColor:E===!0?j.importantLight:g===!1?m.colors.grey5:m.colors.background,prefix:c.amount.currencySymbol,decimalScale:2,allowNegative:!0,isNumericString:!1,isFieldError:E,registerOptions:{required:x==null,min:p.min,max:p.max},isDisabled:x,thousandsGroupStyle:"thousand",thousandSeparator:!0})})})}),t.jsx(V,{windowSize:u,widthSize:I[3].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,children:Ve("0,0.00",c.runningBalance)})}),t.jsx(V,{windowSize:u,widthSize:I[4].width,children:t.jsx(J,{windowSize:u,isLastItem:!0,isClickable:a||n,children:t.jsxs(At,{children:[t.jsx(Je,{textColor:Dt(c.postingStatus,m),onClick:a||n?$:void 0,text:Q.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(Lt,{onClick:a?$:w,children:t.jsx(Ct,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Ct({jeLink:e,isJElinkAllowed:l}){const[s,r]=D.useState(!1);return e.type==="linked"&&l?t.jsx(t.Fragment,{}):l&&(e.type==="unknown"||e.type==="recommended")?t.jsxs(zt,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(Ft,{}),s?t.jsxs(Ot,{children:[e.type==="recommended"?t.jsx(It,{}):null,t.jsx(Et,{children:Q.linkJE.linkJE})]}):null]}):null}const Dt=(e,l)=>{switch(e){case"pending":case"canceled":case"recorded":return new _(l.colors.grey1);case"posted":return new _(j.success);case"unknown":return new _(j.alert)}},Mt=o.div`
|
|
207
|
+
display: flex;
|
|
208
|
+
height: ${U}px;
|
|
209
|
+
justify-content: space-between;
|
|
210
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
211
|
+
color: ${e=>e.theme.colors.hero};
|
|
212
|
+
${e=>e.isRowEditable?B`
|
|
213
|
+
&:hover {
|
|
214
|
+
border-bottom: 1px solid ${e.theme.colors.primary};
|
|
215
|
+
div {
|
|
216
|
+
color: ${e.theme.colors.primary};
|
|
217
|
+
}
|
|
218
|
+
input{
|
|
219
|
+
background-color: ${e.theme.colors.background}
|
|
220
|
+
}`:null};
|
|
221
|
+
|
|
222
|
+
${e=>e.isClickable?B`
|
|
223
|
+
&:hover {
|
|
224
|
+
border-bottom: 1px solid ${e.theme.colors.primary};
|
|
225
|
+
div {
|
|
226
|
+
color: ${e.theme.colors.primary};
|
|
227
|
+
}`:null};
|
|
228
|
+
|
|
229
|
+
box-sizing: border-box;
|
|
230
|
+
align-items: center;
|
|
231
|
+
|
|
232
|
+
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
233
|
+
`,V=o.div`
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
width: ${e=>e.widthSize.valuePx(e.windowSize)};
|
|
237
|
+
max-width: ${e=>e.widthSize.valuePx(e.windowSize)};
|
|
238
|
+
:last-of-type {
|
|
239
|
+
padding-right: 0;
|
|
240
|
+
}
|
|
241
|
+
`,zt=o.div`
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
gap: ${i.sp1};
|
|
245
|
+
cursor: pointer;
|
|
246
|
+
color: ${e=>e.theme.colors.hero};
|
|
247
|
+
&:hover {
|
|
248
|
+
color: ${e=>e.theme.colors.primary};
|
|
249
|
+
}
|
|
250
|
+
`,Ot=o.div`
|
|
251
|
+
display: flex;
|
|
252
|
+
align-items: center;
|
|
253
|
+
gap: ${i.sp1};
|
|
254
|
+
`,Et=o(O)``,Lt=o.div``,At=o.div`
|
|
255
|
+
display: flex;
|
|
256
|
+
gap: ${i.sp3};
|
|
257
|
+
align-items: center;
|
|
258
|
+
`,Ft=o(Be)`
|
|
259
|
+
width: ${i.sp3};
|
|
260
|
+
height: ${i.sp3};
|
|
261
|
+
`,It=o(Pe)`
|
|
262
|
+
width: ${i.sp3};
|
|
263
|
+
height: ${i.sp3};
|
|
264
|
+
`,J=o(O)`
|
|
265
|
+
flex-grow: 1;
|
|
266
|
+
word-break: break-word;
|
|
267
|
+
white-space: nowrap;
|
|
268
|
+
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
269
|
+
-webkit-line-clamp: ${e=>jt.webkitLineClamp.value(e.windowSize)};
|
|
270
|
+
-webkit-box-orient: vertical;
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
text-align: "left";
|
|
273
|
+
text-overflow: ellipsis;
|
|
274
|
+
width: ${e=>e.windowSize==="small"?"200px":"initial"};
|
|
275
|
+
min-width: ${e=>e.windowSize==="small"?"200px":"initial"};
|
|
276
|
+
justify-content: unset;
|
|
277
|
+
display: ${e=>e.isLastItem===!0?"flex":"inline-block"};
|
|
278
|
+
margin-right: ${e=>e.isLastItem===!0?0:i.sp4};
|
|
279
|
+
padding-right: ${i.sp0};
|
|
280
|
+
`,xe={scheduleDetailsWrapperContainerMarginTop:new b(h[3],h[3]),paddingRight:new b(h[4],0)},Qt=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})=>{const g=F(),S=p==="Not-Started"||p==="In-Progress"&&n.length===0,v=p==="Completed"&&d.length===0,w=N.getLocalizedStrings().jeSchedules.scheduleDetails.sequenceSchedule;return t.jsxs(Wt,{windowSize:g,children:[t.jsx(Ht,{windowSize:g,children:w.header}),S?t.jsx(ye,{}):v?t.jsx(qt,{windowSize:g,children:t.jsx(be,{text:w.notCreated})}):t.jsx(Pt,{children:t.jsx(Tt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:l,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})})]})},Tt=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u})=>{const m=D.useRef(null),g=F(),S=x=>U,v=n.length*U+Ce;D.useEffect(()=>{m.current?.resetAfterIndex(0)},[p]);const w=(x,a,$)=>{if(x===a.length-1)return!1;if($?.jeScheduleId==null)return!0;const G=Y.dateNow(),E=Y.dateNow().startOf("month"),te=Y.dateNow().endOf("month");if(a[x].postingDate!=null){if(a[x].postingDate.month()===G.month()&&a[x].postingDate.isBetween(E,te)===!0)return(a[x].postingStatus==="pending"||a[x].postingStatus==="canceled")&&n[x].runningBalance.amount!==0;if(a[x].postingDate.isBefore(E)===!0)return!1;if(a[x].postingDate.isAfter(te)===!0&&x!==0&&n[x-1].postingStatus==="posted"&&n[x-1].runningBalance.amount!==0)return!0}return!1},k=x=>{const a=l<0;if(x===0)return{min:a?l:0,max:a?0:l};{const $=n[x-1].runningBalance.amount;return{min:a?$:0,max:a?0:$}}};return t.jsx(Jt,{windowSize:g,containerHeight:v,children:t.jsx(De,{children:({height:x,width:a})=>t.jsxs(Rt,{style:{height:x,width:a},children:[t.jsx(Bt,{children:t.jsx(Me,{hideMemo:r})}),t.jsx(ze,{height:x,itemCount:n.length,itemSize:S,itemData:{sectionId:e,scheduleJournalEntries:p,localData:n,onEditAmount:y,onJELinkClick:f,uiState:d,windowSize:g,isDisabled:s,isAmountEditable:w,hideMemoField:r,getMinMaxValuesForAmount:k,onViewLinkedJE:u,jeScheduleId:c},width:a,ref:m,overscanCount:Oe,initialScrollOffset:0,children:Vt})]})})})},Vt=({index:e,data:l})=>{const{sectionId:s,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:y,isAmountEditable:f,getMinMaxValuesForAmount:u,onViewLinkedJE:m,jeScheduleId:g}=l;return t.jsx(Nt,{windowSize:d,children:t.jsx(vt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:y,minMaxValuesForAmount:u(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},g+e)},Jt=o.div`
|
|
281
|
+
height: ${e=>e.containerHeight}px;
|
|
282
|
+
width: 100%;
|
|
283
|
+
margin-right: ${i.sp8};
|
|
284
|
+
`,Bt=o.div`
|
|
285
|
+
width: auto;
|
|
286
|
+
`,Pt=o.div`
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-direction: column;
|
|
289
|
+
`,Nt=o.div`
|
|
290
|
+
top: ${i.sp0};
|
|
291
|
+
left: ${i.sp0};
|
|
292
|
+
padding-bottom: ${i.sp3};
|
|
293
|
+
box-sizing: border-box;
|
|
294
|
+
width: 100%;
|
|
295
|
+
padding: ${e=>`${i.sp0} ${xe.paddingRight.valuePx(e.windowSize)} ${i.sp0} ${i.sp0}`};
|
|
296
|
+
`,Rt=o.div``,Wt=o.div`
|
|
297
|
+
display: flex;
|
|
298
|
+
min-height: 100%;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
border-left: 1px solid ${e=>e.theme.colors.grey3};
|
|
301
|
+
border-right: 1px solid ${e=>e.theme.colors.grey3};
|
|
302
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
303
|
+
|
|
304
|
+
border-top-left-radius: ${i.sp0};
|
|
305
|
+
border-top-right-radius: ${i.sp0};
|
|
306
|
+
border-bottom-left-radius: ${i.sp2};
|
|
307
|
+
border-bottom-right-radius: ${i.sp2};
|
|
308
|
+
|
|
309
|
+
margin-left: ${i.sp8};
|
|
310
|
+
margin-right: ${i.sp8};
|
|
311
|
+
margin-bottom: ${i.sp8};
|
|
312
|
+
padding: ${i.sp0} ${i.sp4} ${i.sp4} ${i.sp4};
|
|
313
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
314
|
+
`,qt=o.div`
|
|
315
|
+
display: flex;
|
|
316
|
+
height: 100%;
|
|
317
|
+
flex-direction: column;
|
|
318
|
+
width: 100%;
|
|
319
|
+
margin-top: ${e=>xe.scheduleDetailsWrapperContainerMarginTop.valuePx(e.windowSize)};
|
|
320
|
+
`,Ht=o.div`
|
|
321
|
+
color: ${e=>e.theme.colors.hero};
|
|
322
|
+
margin: ${i.sp3} ${i.sp0};
|
|
323
|
+
${A.standardRegular.css};
|
|
324
|
+
`;export{Kt as i,Ut as n,_t as o,Qt as r};
|