@zeniai/web-cockpit-ui 1.14.16-prod → 1.14.17-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-BwrF_fEr-DkyA5i2K.js +21 -0
- package/dist/assets/{AIPerformancePage-Do5bswa_-C_3AQSmW.js → AIPerformancePage-4oC8MJWN-DKgtdhwX.js} +44 -44
- package/dist/assets/{AccountInfoPage-BBhgLi_k-BEL-d9SH.js → AccountInfoPage-mOPytffA-CHwRigZs.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-BJqXMkH6-DyTAoC-w.js → AccountInfoPageContent-VULusDEd-6lGswsvl.js} +14 -14
- package/dist/assets/{AccountReconDetailsDrawerPage-CV09UnoU-C2cwjlKW.js → AccountReconDetailsDrawerPage-89APlrhb-BX-kF9hA.js} +18 -18
- package/dist/assets/{AccountRow-TlJ0aU9H-Bsj_tL7f.js → AccountRow-DJd-IAIl-CfLQe7at.js} +33 -33
- package/dist/assets/{AccountsPromoCardStack-D8Y5MNXA-C-d7RQtl.js → AccountsPromoCardStack-DE39TpIu-DvYK9R7k.js} +33 -33
- package/dist/assets/{AddAddressForCardDrawer-DKJpGW7r-BYzzdY7P.js → AddAddressForCardDrawer-CKdcU_pi-IPZLStMw.js} +2 -2
- package/dist/assets/{AddToWalletPage-1gMvHWq2-Ch9o-ffZ.js → AddToWalletPage-DPXW2fbY-CNPYHMH9.js} +24 -24
- package/dist/assets/{AgingReportsPage-Bzn9xmRs-DNxufvky.js → AgingReportsPage--CLUwcIa-DcSCN91R.js} +17 -17
- package/dist/assets/{AllUserItems-BPSpj-dO-D8kos4-M.js → AllUserItems-CC9l-O5G-DJbAuU58.js} +11 -11
- package/dist/assets/ApAgingDetailPage-CsQ3DujX-DWGGqNtg.js +46 -0
- package/dist/assets/AppBasePage-CgHKYFmd-Bs3-qi9M.js +68 -0
- package/dist/assets/{AppDrawerContent-Cq8GkRBD-DuDQINc_.js → AppDrawerContent-Cofo0-5p-DYgesCt7.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-zKh1CLv3-B247RgIT.js → ApprovalRulesSettingsPage-DsshEbzW-DLpKueGV.js} +7 -7
- package/dist/assets/{ArAgingChart-Bs2fblA6-ChlWBnho.js → ArAgingChart-K2LSe8mo-CcrD54Kp.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BWsV1tQP-Dp4cKRq1.js → ArAgingDetailPage-DCFL9YAy-Cw3hCUfd.js} +4 -4
- package/dist/assets/{AttachmentView-BDkq5i_5-DRAfPUB_.js → AttachmentView-Cn3VnVyO-BPJCq-4t.js} +9 -9
- package/dist/assets/{BankAccountSection-DL-Qgypb-ntt1culv.js → BankAccountSection-Au9_D0Ji-bmPPOv5B.js} +8 -8
- package/dist/assets/{BankAccountWarningSection-PFOmZUmz-DYoYlhmR.js → BankAccountWarningSection-927iR_QB-BLBTF_Hr.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-BiPEOltR-BNfKQDuY.js → BankConnectionsSettingsPage-CXab8fzD-0RsCLwrp.js} +49 -49
- package/dist/assets/{BillDetailPage-nUoy5Pib-bkWIkiZj.js → BillDetailPage-yIdrE7YG-CO1_hc0X.js} +21 -21
- package/dist/assets/{BillPayApprovalRuleDetailPage-uCd9CD_--AeSZKocD.js → BillPayApprovalRuleDetailPage-BJl_-eJN-DcYLdRk3.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BsvzOO92-BCvs-L8u.js → BillPayApprovalRulesPage-rXaFCSLp-DOP05VDc.js} +8 -8
- package/dist/assets/{BillPayPromoPage-D9tHxFrw-C5rtanfF.js → BillPayPromoPage-BLi_wIbj-CZGLSHx_.js} +10 -10
- package/dist/assets/{BillPaySetUpPage-Ci__X7jC-lnXNoOeF.js → BillPaySetUpPage-BFmpWT_x-zTzNnL_X.js} +2 -2
- package/dist/assets/{BillingSettingsPage-JcOqMK9G-BLXc3fsE.js → BillingSettingsPage-Da01aYql-DLGfaRzo.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-FeZEMsS6-CBeL4kBc.js → BillsBulkReviewDrawerPage-J2kO9_8C-B_ZetdEJ.js} +1 -1
- package/dist/assets/{BoxItem-BcQH7ATF-C3uqvDXb.js → BoxItem-CQlEDklH-QYh8SK8x.js} +4 -4
- package/dist/assets/BusinessVerificationPage-DWhXCuG5-BlJy48X_.js +140 -0
- package/dist/assets/{CardNumberSubText-CRythvN3-DBYBtHe-.js → CardNumberSubText-BTjxrF3b-CNbVWSfp.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CDa_GOsq-Df17bkjp.js → CashbackDetailPage-qcMtGUQ0-ClM0O4ek.js} +22 -22
- package/dist/assets/{ChargeCardDetailPage-BVxvmvYF-CrmcdJfR.js → ChargeCardDetailPage-BurpUHl9-ks5Ylh0a.js} +32 -32
- package/dist/assets/{ChargeCardListPage-Dk_9p-sM-BKvDCZzD.js → ChargeCardListPage-CBIYOllB-hsormxMA.js} +22 -22
- package/dist/assets/{ChargeCardListTable-DLAZTf8n-YBAKvrSJ.js → ChargeCardListTable-BTZu7ldI-Dtf0dVvX.js} +104 -104
- package/dist/assets/ChargeCardPromoPage-us_v89rV-C0HHgs2t.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-QPLpJN2z-BSMBjY30.js → ChargeCardSetupPage-QOdjFcsr-C35vd8Nk.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-DwJYJjcf-CZn6_bQP.js → ChargeCardStatementsPage-C1UmjyIW-CQoBe4qC.js} +8 -8
- package/dist/assets/{ChargeCardUtils-BbByGmi9-MWdIZgnF.js → ChargeCardUtils-C3fhOMpV-CuPIdUk0.js} +1 -1
- package/dist/assets/{ChaseOverlay-CvXMdD8r-C6JvY114.js → ChaseOverlay-RPex2o5e-Smu9780P.js} +6 -6
- package/dist/assets/CheckDepositDrawerPage-XZJ1F0aC-kws9zCak.js +206 -0
- package/dist/assets/{CollapsableReportTable-BptltmMq-BmHW8pgs.js → CollapsableReportTable-Ds0h8x1N-DplOjSEj.js} +93 -93
- package/dist/assets/{CompanyOfficerDetailsSection-DTbhxCCJ-BSXATmyq.js → CompanyOfficerDetailsSection-B8yGAFVj-BXFGaLke.js} +24 -24
- package/dist/assets/{CompanyPassportCard-CRgbazO4-BRdnM0W_.js → CompanyPassportCard-BDei9Pfp-eYqW_Kg9.js} +6 -6
- package/dist/assets/{CompanyPassportPage-wdWKvOuO-D1RBsSbf.js → CompanyPassportPage-DFA733vS-D6CEIM7b.js} +32 -32
- package/dist/assets/CompleteProfile-BpX6H4vJ-BVnH0M9g.js +52 -0
- package/dist/assets/ConfettiBurst-97CCPVCH-9-b-8JXj.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-DTbrZv48-CQUpdvD5.js → CreateOrEditVendorPage-BSi6pOXN-DT6XT0bI.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-CGGM52ND-DELB_-OP.js → CreditCardPaymentDrawerPage-ZletyeGG-umQmaf0k.js} +17 -17
- package/dist/assets/{CreditCardPaymentPlgSection-BS99Rbz7-CRQRdFP6.js → CreditCardPaymentPlgSection-BE982atG-B6gcx6zm.js} +13 -14
- package/dist/assets/{CurrencySelectField-Cz1ZFZNL-DZM2eCDn.js → CurrencySelectField-cnP09xH2-COp3JBgC.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-Bw2z91CF-DSDFVCnm.js → CustomerOnboardingActivationPage-DhcKiTJ_-B4Bo0l5a.js} +9 -9
- package/dist/assets/CustomerOnboardingContainerPage-C1higvpq-CPTgkuej.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BY4rv3eB-DpN2U-_L.js → CustomerOnboardingDetailPageSkeleton-jguCmaVx-CPLJBFIe.js} +9 -9
- package/dist/assets/{CustomerOnboardingNoStepsPage-ByTpLszW-BOTerMcQ.js → CustomerOnboardingNoStepsPage-xakP7IDr-j9vb9__e.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-eyRDjOy--BiXwJMYF.js → CustomerOnboardingPage-Ct5YbyHs-BO0Sy5Lx.js} +9 -9
- package/dist/assets/{CustomerOnboardingProductSuitePage-C_GOhUsC-CUW7-7xZ.js → CustomerOnboardingProductSuitePage-CugfvMkw-B6aWX1Xf.js} +11 -11
- package/dist/assets/{Dashboard-DXTfxwrE-CdTiAowm.js → Dashboard-XbVGCnvI-Cwm6wdq7.js} +260 -242
- package/dist/assets/{DashboardReportPage-C7LmV0rQ-BbkdxNaL.js → DashboardReportPage-OeEPg2kx-DUWAiMA5.js} +21 -21
- package/dist/assets/{DepositAccTransactionItem-BH6np-wq-C1ri8NnK.js → DepositAccTransactionItem-Dy6qzuSL-bj1K9hi4.js} +10 -10
- package/dist/assets/DepositAccTransactionListPage-BisaE6sH-CXEjoVG5.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DhM2CLtr-CA7eP7w9.js → DomesticWireDetailsPage-B0tbjNLO-ByvPg7x-.js} +1 -1
- package/dist/assets/{DownloadOverlay-CwqxQGbr-DXP8KffI.js → DownloadOverlay-BKKO1nm1-BQ5P_IH7.js} +15 -15
- package/dist/assets/{DrawerPage-C3k5XFW6-CsvAYe3c.js → DrawerPage-osM8gPVn-2LgFt42m.js} +10 -10
- package/dist/assets/EditPeoplePage-ixJkT03_-nZc9QeAd.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DXLAtkkp-CbzO6uDg.js → EditReimbursementDetailPage-DvLeCixY-TeZdMP4Z.js} +23 -23
- package/dist/assets/{EntityDetailPage-_060OpVJ-CyhCOk00.js → EntityDetailPage-BzJbAOSj-9yzQeWus.js} +3 -3
- package/dist/assets/{EntitySummarySection-0QXWkpbX-B7-JCudu.js → EntitySummarySection-Drj07P9h-6nsX9189.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-GPO42_rS-PTg4tOdM.js → ExpenseAutomationOverviewPage-BQ9dwGkq-BSO9oU-G.js} +23 -23
- package/dist/assets/{ExpenseAutomationPage-BQArYLAG-BzVHNQ4g.js → ExpenseAutomationPage-DLld6Lux-C9UiIoPt.js} +56 -56
- package/dist/assets/{ExpressPayPage-DacK02lD-CKwnL4bJ.js → ExpressPayPage-QBNV0dC8-pBCRR5Rb.js} +12 -12
- package/dist/assets/FeaturePreviewPage-CpBX-Xic-BYSOYP2k.js +11 -0
- package/dist/assets/{FollowStepsSection-CMTo4gYl-Bjx6twPv.js → FollowStepsSection-1RCO2W7K-C-MoCYne.js} +25 -25
- package/dist/assets/{GlobalReviewListPage-BbI2YDxl-k0ysjeTV.js → GlobalReviewListPage-ByMZFe7Y-CdorqsTM.js} +14 -14
- package/dist/assets/{HelpButton-Coe4ii48-krhIkYJy.js → HelpButton-CzTfBZQj-DZRTwrFl.js} +2 -2
- package/dist/assets/{InformationCardStack-BIumm5SJ-C1s5cfXO.js → InformationCardStack-C0AmMOu2-RArJXysN.js} +6 -6
- package/dist/assets/{InsightsCardStack-nndLG-Gx-Bbm-yvFB.js → InsightsCardStack-BiIDBYY8-5lf82tLY.js} +7 -7
- package/dist/assets/InsightsSection-C-kpIvRH-CdqlGqmg.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-BRH3t6mo-CGhczdJp.js → IntegrationsSettingsPage-7wAnV8kG-PXEXvEB6.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-vgA7iek9-DvYFFVKn.js → InternationalWireSwiftDetailsPage-C7D15jtK-Li0eKKsY.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-DEIs1ydr-BWxwXlea.js → InternationalWireVerificationPage-GDKPXtU--j4IpooKm.js} +20 -20
- package/dist/assets/{InviteFormPage-Bowy0arK-CUyq4iu1.js → InviteFormPage-CKGJHYWa-DWj-EAub.js} +20 -20
- package/dist/assets/{InvitePageListView-DuXb15Ll-AB5e7fm2.js → InvitePageListView-CWXyDZU2-DCU4lB3m.js} +54 -54
- package/dist/assets/InvitePeoplePage-CPBMZNa--DlK3foAM.js +12 -0
- package/dist/assets/InvoiceUploadSection-C0WzT0uv-Cn2JF08l.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BIL4e5I_-CIFRPoHj.js → IssueChargeCardPage-DLX44XaR-CcflhM3M.js} +31 -31
- package/dist/assets/LabeledAddressValue-B8awEVKI-DfzIlkwb.js +49 -0
- package/dist/assets/LabeledAddressValueField-Dl5yKg2N-CzXWQu_Y.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-CwiyOI1Z-D_Avv8B8.js → LabeledControlledCheckBoxField-B6cLYSmS-taSeLw3M.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-yLzlQU6_-Ju9uxk3s.js → LabeledCreatableSingleSelectField-CV4GQQ7F-G2kg_Moc.js} +8 -8
- package/dist/assets/LabeledDocumentField-BFhyNqP8-B0rZURtH.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-M_7KWHOd-DVW-K4s5.js → LabeledDropDownFormattedTextField-gE3aWP_T-BOWWoTF_.js} +6 -6
- package/dist/assets/{LabeledText-CO_4w9Rx-xHGRFTa6.js → LabeledText-0pRIcJw5-Bl9-fI1Z.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-zPoNOgP7-BN8LY8_q.js → LabeledUserSingleSelectWithSubtitlesField-C-32ySGI-DFmPy8AM.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-C8-KfR-4-B0UPMMuM.js → LabeledZeniRolesDropDownField--l6D29VX-CyvURl9h.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-CZVlsT4d-C3vBspYy.js → LinkJETransactionPage-DLcpx9ns-AgvCjDXO.js} +10 -10
- package/dist/assets/{LowBalancePopup-Dl5IXVvh-DAy2ciDD.js → LowBalancePopup-BuelKDeS-DZAUOSm3.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-CP6ti0Ic-CsFI4O-m.js → MagicLinkACHDetailsPage-NIkquHvv-CI7Zc7xz.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BhpSDeQW-CrbT-zrP.js → MagicLinkDomesticWireDetailsPage-CdaNz396-BGT3axjJ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BXxTeh0G-COpL4rAF.js → MagicLinkInternationalWireDetailsPage-CnEhS5PP-DPChbPBR.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bix48QB5-D1kS8RTp.js → MagicLinkSuccessPage-D_VJZV0O-FtY4wcd1.js} +2 -2
- package/dist/assets/MagicLinkTitleSection-tHh2d5Ld-_QN59pd4.js +17 -0
- package/dist/assets/MailingDetailsSection-CTrx1xoB-By7vG4Hi.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-DlnppXL_-BiSyzpy5.js → MeetingCalenderPopup-DWvpTRQJ-Bt4xdKnr.js} +1 -1
- package/dist/assets/{Menu-B_GJLZiP-DFhEZOah.js → Menu-CbQ6Zkdp-B0rPvp7W.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-2DAYVmHh-qP9m1w3C.js → MyBankConnectionsSettingsPage-9dQLb8iw-C8Rj57bA.js} +17 -17
- package/dist/assets/{MyPendingActivationChargeCardListPage-CWQq9D2t-D2B3tZ2t.js → MyPendingActivationChargeCardListPage-B2-YthuF-cm2yxhR4.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-imD_-Umc-Bx10sGY-.js → MyProfileSettingsPage-CfmYPv4_-aC1znwk8.js} +5 -5
- package/dist/assets/NavBarWithPicker-Bzkl4W0x-CDy3Aggh.js +30 -0
- package/dist/assets/{NavigationArrow-De1st3tA-B9w4webb.js → NavigationArrow-9pvhzLz8-DNW8ChSX.js} +1 -1
- package/dist/assets/NavigationDots-CXPwKFh1-CN4i4rO7.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-euJK3CXB-C5YkICvd.js → NewGlobalMerchantPage-D6ZpP6J1-D56cB-sU.js} +12 -12
- package/dist/assets/{NoDataChart-D_S6Pfkm-LLnc33cc.js → NoDataChart-BUR7CF8w-JBqV9jC1.js} +1 -1
- package/dist/assets/{NoDataTable-CLwNCXFE-Bjg0bIl4.js → NoDataTable-3L4pbKR0-B7fSM3B6.js} +1 -1
- package/dist/assets/{NotFoundPage-JfbMP3OG-CY7i_Kfb.js → NotFoundPage-CgZfmKbj-BRxQmcCY.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-YBgrQBb2-EJXBvlGY.js → NotificationSettingsPage-BwYT3Tdc-D89puZca.js} +14 -14
- package/dist/assets/NotificationsListConfig-CeeJpJ2p-8AiJrLfH.js +1 -0
- package/dist/assets/{NotificationsPage-C3pnQT-K-CJiJ_UTA.js → NotificationsPage-6qNQYQK4-DLvnPKkn.js} +39 -39
- package/dist/assets/{OpExByVendorPage-7FEOhvd--CnoWp8DX.js → OpExByVendorPage-C28MBvmW-CYPqi7IY.js} +6 -6
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-BFHFEcwT.js → OverlayContainerPage-9K5jaX8Z-BZxsFO4t.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D0f5zvhp-DeUoKhKB.js → PandLWithForecastPage-onJJ3Fh4-_QaDHG-Z.js} +12 -12
- package/dist/assets/PaymentAccountSetupBillingAddressSection-nGuJ5fbq-D3E47Aos.js +107 -0
- package/dist/assets/{PeoplePage-B-j04rvc-DqLWuIxr.js → PeoplePage-CKzezKqB-ByzrDmy1.js} +33 -33
- package/dist/assets/PortfolioAllocationFormPage-28Rg5Um0-BlYwyLHy.js +207 -0
- package/dist/assets/{PortfolioDetails-C-YfZonF-C0LO_lmx.js → PortfolioDetails-CIv1yXo2-BXO78bZH.js} +34 -34
- package/dist/assets/{ProductsCarousel-9USsVLuf-DvG85ADA.js → ProductsCarousel-CSUQ6rVw-BjLG54WQ.js} +7 -7
- package/dist/assets/{PromoBaseCards-OKpdHchW-C8RUmLQR.js → PromoBaseCards-2L1JfY-v-8Fx_ViSz.js} +5 -5
- package/dist/assets/{QBOConnectionDialog-BUr2NQiK-D_4NV4Ob.js → QBOConnectionDialog-DNP_b7aK-BzvUOq7o.js} +5 -5
- package/dist/assets/{QBOSetupSection-Cmf7-3wv-CEW6_Dgm.js → QBOSetupSection-CGrGCC2j-CuJwLC6X.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Dev4FHVt-D2i8KVdM.js → ReimbursementApprovalRuleDetailPage-DqxyCfuQ-BcbdBa6J.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BLMJY7El-CUqIlEIu.js → ReimbursementApprovalRulesPage-D_RMSSoW-DW4d-zUH.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-BIyq0BC0-DjKUxnpq.js → ReimbursementDetailPage-BkT7zJoE-BUepvklz.js} +20 -20
- package/dist/assets/ReimbursementPromoPage-DQsLI50f-DvpBhx7F.js +112 -0
- package/dist/assets/{ReimbursementSetUpPage-VKXRSodl-Djprhgo8.js → ReimbursementSetUpPage-lH4Z7Lqi-C3uS6udC.js} +15 -15
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BmUcVSjU-DWFwC8Be.js → ReimbursementsBulkReviewDrawerPage-Bvh4mRws-DVwJvL8d.js} +1 -1
- package/dist/assets/{ReloadCard-DZhxB7Ar-BBcsZOJA.js → ReloadCard-BQKVLlzZ-CTM6ZQom.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-DSfx5ZD--C8F9v0zJ.js → ReportTableViewSelector-Cvk4LxRf-eJ2TbRx4.js} +10 -10
- package/dist/assets/{ReportsPage-CLH0u0Bh-DRLLUOMA.js → ReportsPage-C2cIfu51-BxZnm0Ag.js} +5 -5
- package/dist/assets/{RevenueChart-BeqQveLu-CL7EicIj.js → RevenueChart-ByCekdyG-8uQwfY47.js} +17 -17
- package/dist/assets/{ReviewDetailsPage-Dq7hRX5W-pUpjYQJZ.js → ReviewDetailsPage-DGyfz9q5-BKYXEzMr.js} +25 -25
- package/dist/assets/{ReviewOverlay-BNHqYk2g-J_dzfLEw.js → ReviewOverlay-Dp5yLAdR-BtQ_1SYB.js} +24 -24
- package/dist/assets/RoleWithToolTip-B7xRZ-3a-DOUAAL_V.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-QE0wa196-C6RpkKjE.js → ScheduleDetailsFixedAssetsPage-BvJX-G-F-EcV0Ga4I.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-BVyX-Z0H-Eq5Kzwpf.js → ScheduleDetailsPage-CNpkuW7O-B_ravSuG.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-D1FYbPfU-g7L-_vJ3.js → ScheduleSequenceTable-B_90qPjE-CouAcwmm.js} +16 -16
- package/dist/assets/{ScreenRoutes-CV4K1eft.js → ScreenRoutes-AFpRn9FR.js} +62 -62
- package/dist/assets/{SetUpAccountSection-CYn2o43t-BAIcfhcV.js → SetUpAccountSection-D5x8PZG1-DygZSmwk.js} +17 -17
- package/dist/assets/{SetUpDefaultSection-C0-L2ZyA-BZCNHHjT.js → SetUpDefaultSection-BsOdnADR-CaLnvPCj.js} +10 -10
- package/dist/assets/{SignIn-BIxTodeo-xl1UQLqg.js → SignIn-Bt7hCYjV-EKx-pTxB.js} +20 -20
- package/dist/assets/{SignInScreen-BPfKNMHp.js → SignInScreen-rurSzHF5.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DXtvYcrg-yIFYJuPE.js → SpendManagementListViewPage-C5cJKuRq-BvXZ8iTI.js} +12 -12
- package/dist/assets/{SpendManagementPerTabPage-Cn-UsxaR-BSQJxeEs.js → SpendManagementPerTabPage-IBAw8wc4-CqequpCF.js} +45 -45
- package/dist/assets/{SpendManagementSection-BBR4aFIT-BNxALG4B.js → SpendManagementSection-yNP3swb6-CDpN_vFS.js} +14 -14
- package/dist/assets/{SpendMgmtSetupAccountSection-DedLETSm-Ret-PfmC.js → SpendMgmtSetupAccountSection-CYxt9dN8-jE6ury5g.js} +19 -19
- package/dist/assets/{StatementItem-CnpTW8qb-OJhscqJG.js → StatementItem-q9U89Htr-Dnon4hoE.js} +9 -9
- package/dist/assets/{StatementsPage-Pdhh6wDA-QYGCUpat.js → StatementsPage-BM5Glizw-CQVS_jKg.js} +6 -6
- package/dist/assets/{StatusSwitcher-CY3fhZpk-CZLiE467.js → StatusSwitcher-CtuL5COG-G6MVUY78.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BgzS4on6-BHvnj1rf.js → SubTabSwitcher-DHiC-mOv-DT2nPRyj.js} +3 -3
- package/dist/assets/{SummaryCard-DB_r9qW_-DgDS1FE9.js → SummaryCard-D4Me-qWU-DQUY-zeO.js} +1 -1
- package/dist/assets/{TaskManagementPage-B0gR2j1v-BHfuaSkL.js → TaskManagementPage-D-F7ufTD-e1fJ4aPt.js} +34 -34
- package/dist/assets/{TimeRangeSwitcher-BbdpFsMU-mxUiCV_7.js → TimeRangeSwitcher-CGN9Hq2L-r0shmfu7.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-CUpsv6b1-BsTQ_4Lb.js → TimeframeSwitcher-BN4-ACoQ-D22kJoI6.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DZbOWm8e-0cxkGofr.js → TimeframeSwitcherWithToggle-BkzCFclG-CPGMypUZ.js} +2 -2
- package/dist/assets/{TopExCard-Bn5xXUvj-_4iG4dk9.js → TopExCard-Wuzj4gLV-Dr3lX9dX.js} +5 -5
- package/dist/assets/{TopExDetailPage-DRjO-pGo-BX7dG4ka.js → TopExDetailPage-DMYNc-gj-DbGIeoCc.js} +10 -10
- package/dist/assets/{TransactionDetailPage-L-yLO1SI-CZncMNWY.js → TransactionDetailPage-CcryBjJ4-DTQbu83x.js} +43 -43
- package/dist/assets/{TransactionList-CSb5yqQj-CZz3Dorl.js → TransactionList-BrOpzi25-Db-4cinW.js} +9 -9
- package/dist/assets/{TransactionListBig-f2x4xrky-BskZiapH.js → TransactionListBig-D6QMNaV6-CAdEtJgN.js} +26 -26
- package/dist/assets/TransactionListPage-BB_LkPKR-hsIp58b2.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-RajWBB1I-BdySPl7M.js +80 -0
- package/dist/assets/TransferDrawerPage-D-KFK0BM-lEsdgmBR.js +362 -0
- package/dist/assets/{TreasuryOverviewPage-B01cSfUQ-CoSXkaeB.js → TreasuryOverviewPage-EDaXKMNQ-CrrmzIet.js} +59 -59
- package/dist/assets/{TreasuryPromoPage-DC46ObGy-DJ1swnNW.js → TreasuryPromoPage-Brja4nGR-DglH7Il8.js} +26 -25
- package/dist/assets/{TreasurySetupPage-CiIqfQLR-b0uqhhM3.js → TreasurySetupPage-8ZXXBvyU-l9-yURTU.js} +9 -9
- package/dist/assets/{TreasuryStatementsPage-C_pfPvgz-Da7ziP7d.js → TreasuryStatementsPage-BjT1FVfa-wIBwl3Q0.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-D-4Ntky2-BixhQEkS.js → TreasuryTaxLetterPage-Cxk8TjrI-DPLTc42N.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-DrNld8H2-DCvG8LPc.js +506 -0
- package/dist/assets/{TrendChart-DKIa4o8k-DmG5FDN6.js → TrendChart-D2B0mwGW-BG_v97N6.js} +5 -5
- package/dist/assets/{TrendWithTransactions-BumhCIjm-CcFQ1c6V.js → TrendWithTransactions-Ch8smOOz-jen0aqye.js} +6 -6
- package/dist/assets/{UncategorizedAccountsMappingPage-C4Njvj_H-Cg_asPOb.js → UncategorizedAccountsMappingPage-CCIn9g7v-pUmVA_Xq.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-D_tfUXdS-DcsOhCUr.js → UnitIntegrationPage-SY0L_D7Z-Cbnt8xFH.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-CSdTPTA3-sOgdeqjQ.js → UploadAdditionalDocumentOverlay-BowxerPw-ByoVxHT3.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-DgKVft1G-DQoFQWGk.js → Vendor2FAPopup-DvWVDx58-nCTKo0G7.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DdAbrbpS-DQBPQCCa.js → VendorACHDetailsPage-Ba1oMHkp-BxaJZz_l.js} +1 -1
- package/dist/assets/{VendorDetailPage-CSPbUx-h-BBS6ud2p.js → VendorDetailPage-CjBeVAkw-CNG6GTiT.js} +12 -12
- package/dist/assets/{VendorDomesticWireDetailsPage-GODvpEne-CKeD8fZ2.js → VendorDomesticWireDetailsPage-DJcyNUun-B_mMtp62.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-ByfEwSZJ-B7esT-KU.js → VendorFiling1099EditablePage-CUWkLY0f-CFmjh1GG.js} +10 -10
- package/dist/assets/{VendorFirstReviewPage-B2-UtNMO-BwGd6yu3.js → VendorFirstReviewPage-XUgEai-M-DTz6r_sf.js} +14 -14
- package/dist/assets/{VendorInternationalWireDetailsPage-DSziQ0jO-PISWviKk.js → VendorInternationalWireDetailsPage-BgHCBv0S-CqCl2AuO.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dqc7XLbW-itlt2nNB.js → VendorInternationalWireSwiftDetailsPage-axseacZL-DJ6kdu0R.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BLwMi5AB-BsJP-LC0.js → VendorsAccountsSection-oYghWvs6-YBKazVEG.js} +4 -4
- package/dist/assets/VerifyDevice-XUExnmR9-Dvl0QizA.js +67 -0
- package/dist/assets/{WarningsDrawerPage-3h7UME3Y-Dj4ukktP.js → WarningsDrawerPage-B1his2AN-wDPc6ygf.js} +11 -11
- package/dist/assets/{ZeniAccountDetailPage-Dn70Xhjm-D7PpnMAm.js → ZeniAccountDetailPage-B21kawRR-cYQnKtb2.js} +26 -26
- package/dist/assets/{ZeniAccountListViewPage-C7CX6-Bl-cFXwuwrK.js → ZeniAccountListViewPage-D9lefqbT-BqcU0pmn.js} +26 -26
- package/dist/assets/ZeniAccountNavBarPieces-5yZFq-zt-jLGGdcn1.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CLufbB-B-1rX7JdIx.js → ZeniAccountPromoPage-B8aWqCOQ-CKv07I8x.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-rLdRA3Ld-DNRI9WUg.js → ZeniAccountSetupPage-BmFF5yvk-D-AdXd5I.js} +3 -3
- package/dist/assets/{ZeniCopyright-BItiuePl-krUoL6Cx.js → ZeniCopyright-eQoaUH08-BVCPJkWr.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DYCK5UWr-vjRL3HXw.js → ZeniTransferAmountSlider-B6ftMZ_m-C-6X1EH-.js} +2 -2
- package/dist/assets/{analyticsHelper-D4zFEqKN-2_QyWwnT.js → analyticsHelper-Bns4muDg-CtVpldLz.js} +1 -1
- package/dist/assets/{analyticsHelper-C0R52dsk.js → analyticsHelper-u4uoMPvS.js} +1 -1
- package/dist/assets/{chartTypes-yiqF7w9Y-ClX5-pAK.js → chartTypes-ZJYcsh-k-BCVVPSGZ.js} +1 -1
- package/dist/assets/{commonDimensions-PPvas5dK-CFISpej6.js → commonDimensions-NUQEpowf-g8lux_Te.js} +1 -1
- package/dist/assets/{detailCommon-mCAXI64G-a_lZ_CZU.js → detailCommon-DMKakaa6-DVMNrgCv.js} +7 -7
- package/dist/assets/{downloadPdf-C3XpsGeN-C6jtczmZ.js → downloadPdf-CNrmv_yZ-BgWfIYNz.js} +1 -1
- package/dist/assets/{index-BrN88eSe.js → index-CnrHU8WN.js} +4373 -4206
- package/dist/assets/{liveblocks-sSQ9JElv.js → liveblocks-DZpRS25q.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-7wU2HX2P-waYQk5QB.js → mapLoadingInProgressToTreeNode-CwLhcXcQ-nJqrr22I.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dSxF1sWM-CHqhyTKB.js → mapSectionWithAcOnlyToTreeNode-D8iLkGEE-Bl5usORJ.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-1mXbBuNs-9BpF4PJZ.js → mapSpacerToTreeNode-CF_gEYDy-aRE98CQL.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DXVQrusd-4VNebFso.js → mapTimeframeBalancesToTreeNode-B672MK55-v1Bjh3U8.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DtAULIDB-0AeuAW-4.js → mapTimeframeBalancesToTreeNode-Dp2QmYvb-Cr-c38Jl.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DAqn8gdX-CRyeRR0p.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaEMd-vj-CsyeIH1c.js} +1 -1
- package/dist/assets/mui-Bi8r7UDG.js +25 -0
- package/dist/assets/{play-icon-NvLdXSYk-BED2_JCG.js → play-icon-CgWP2Myd-BVsSsxSg.js} +1 -1
- package/dist/assets/{redux-ByjIRbhZ.js → redux-CC-tnuv1.js} +1 -1
- package/dist/assets/{routing-Cpaypegg.js → routing-CxYXTKiv.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-C9fWPLt9-CuIz_cup.js → toCOABalancesWithID-DJNZCEmi-D5UU_YFX.js} +1 -1
- package/dist/assets/{toChartData-BMDCuCgs-Ca5j5Dv_.js → toChartData-HYsxUPzh-De2YqXiL.js} +1 -1
- package/dist/assets/{treasuryColorHelper-COfuUI3C-Ctxr5wUh.js → treasuryColorHelper-BgV2H9Kv-BBqEUahx.js} +1 -1
- package/dist/assets/{uploadAttachment-DSku547V-DjGPqTKv.js → uploadAttachment-BgjFjkkw-DJYt86D-.js} +34 -34
- package/dist/assets/{uploadReceipts-D80JLNY4-BN-02WEC.js → uploadReceipts-CwjPukNh-SrJVbi2t.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-DyEK-yAb-Dqec5oS9.js +0 -21
- package/dist/assets/ApAgingDetailPage-C2HUvxWk-C2ApdV7h.js +0 -46
- package/dist/assets/AppBasePage-C63xauck-CL9cAUG1.js +0 -68
- package/dist/assets/BusinessVerificationPage-ClBQ39GB-C6UTT9g_.js +0 -140
- package/dist/assets/ChargeCardPromoPage-COA7csMK-BMyJqQkH.js +0 -219
- package/dist/assets/CheckDepositDrawerPage-Cfdkbh0L-SIuwPUlZ.js +0 -206
- package/dist/assets/CompleteProfile-Cp_nXCBI-DjK0K2gW.js +0 -36
- package/dist/assets/ConfettiBurst-tf23hrA_-D4E2Rz_s.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-DXWtttsb-e0citU6h.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-BTZovTIK-uNz03KBJ.js +0 -66
- package/dist/assets/EditPeoplePage-D2zQG-_T-WZZxav2N.js +0 -55
- package/dist/assets/FeaturePreviewPage-Bv0D92ik-IctXHExY.js +0 -11
- package/dist/assets/InsightsSection-CSG5sVaE-BrL3KAS8.js +0 -27
- package/dist/assets/InvitePeoplePage-By3sTPj1-C4Ze5bbl.js +0 -12
- package/dist/assets/InvoiceUploadSection-B8OA6oqe-CeX7qFoF.js +0 -140
- package/dist/assets/LabeledAddressValue-BJ1dXCb1-siykGbUk.js +0 -49
- package/dist/assets/LabeledAddressValueField-DZCn1w6m-CSJvv5iy.js +0 -45
- package/dist/assets/LabeledDocumentField-gxNaFx2j-CxqYn8AB.js +0 -41
- package/dist/assets/MagicLinkTitleSection-DdTLuD-8-BxzYy6hn.js +0 -17
- package/dist/assets/MailingDetailsSection-Bo_v3Gp2-DGQdenpL.js +0 -21
- package/dist/assets/NavBarWithPicker-D0Bv9P4m-W153gset.js +0 -30
- package/dist/assets/NavigationDots-BfJxPG2K-DsedS7eT.js +0 -14
- package/dist/assets/NotificationsListConfig-TCmn6L9k-DfP_1Bdh.js +0 -1
- package/dist/assets/PaymentAccountSetupBillingAddressSection-CBvjcBEH-DwTC1Tj4.js +0 -106
- package/dist/assets/PortfolioAllocationFormPage-yvAHgF_R-CRL7B_ue.js +0 -207
- package/dist/assets/ReimbursementPromoPage-Dox8Q_BC-B4yNteoX.js +0 -112
- package/dist/assets/RoleWithToolTip-Cob2-Ppj-D_c_NDbd.js +0 -22
- package/dist/assets/TransactionListPage-XP6Axg1M-I8kgwBug.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-CY9kUYZc-BzyApvHn.js +0 -80
- package/dist/assets/TransferDrawerPage-DOMX4_HE-Cr4BLbeU.js +0 -362
- package/dist/assets/TreasuryTransferOrReviewPage-CjxiFUqO-g0_nGlvv.js +0 -506
- package/dist/assets/ZeniAccountNavBarPieces-Cl1zQVNd-Bhr_7M-Y.js +0 -14
- package/dist/assets/mui-C5LQ0bMa.js +0 -25
package/dist/assets/{ReviewOverlay-BNHqYk2g-J_dzfLEw.js → ReviewOverlay-Dp5yLAdR-BtQ_1SYB.js}
RENAMED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as B,j as e,$ as m,o as r,a4 as L,C as d,a3 as M,X as C,h as W,g as s,n as y,c3 as R,m as I,d as j,aB as D,q as n,eh as G,az as A,jg as F,jh as J}from"./index-CnrHU8WN.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},X={title:new C("h6Regular","h5Regular")},mi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=B();return e.jsxs(H,{children:[e.jsx(V,{windowSize:a,children:e.jsx(Y,{children:e.jsx(Z,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":m("review-overlay-close",i)})})})})}),e.jsxs(O,{windowSize:a,children:[e.jsxs(Q,{windowSize:a,children:[e.jsx(_,{children:e.jsx(K,{windowSize:a,children:i})}),e.jsx(N,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(U,{windowSize:a,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:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:q(o)}),e.jsxs(oi,{children:[e.jsxs(x,{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(x,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?e.jsxs(w,{windowSize:a,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($,{})}):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(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},q=i=>i.reviewStatus.isLoading?e.jsx(I,{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(ai,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(li,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
|
5
|
-
`,
|
|
5
|
+
`,O=t.div`
|
|
6
6
|
min-height: 100vh;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
margin-top: ${i=>
|
|
9
|
+
margin-top: ${i=>l.containerMarginTop.valuePx(i.windowSize)};
|
|
10
10
|
margin-bottom: ${r.sp8};
|
|
11
|
-
`,
|
|
11
|
+
`,Q=t.div`
|
|
12
12
|
position: sticky;
|
|
13
13
|
top: ${r.sp0};
|
|
14
14
|
background-color: ${i=>i.theme.colors.grey4};
|
|
15
15
|
z-index: 1;
|
|
16
|
-
padding-left: ${i=>
|
|
17
|
-
padding-right: ${i=>
|
|
18
|
-
`,
|
|
16
|
+
padding-left: ${i=>l.containerMarginLeft.valuePx(i.windowSize)};
|
|
17
|
+
padding-right: ${i=>l.containerMarginRight.valuePx(i.windowSize)};
|
|
18
|
+
`,_=t.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
|
-
`,
|
|
22
|
-
${i=>`${
|
|
21
|
+
`,K=t(W)`
|
|
22
|
+
${i=>`${X.title.style(i.windowSize)}`};
|
|
23
23
|
color: ${i=>i.theme.colors.primary};
|
|
24
24
|
margin-top: ${r.sp2};
|
|
25
|
-
margin-bottom: ${i=>
|
|
26
|
-
margin-right: ${i=>
|
|
27
|
-
`,N=t(
|
|
28
|
-
margin-bottom: ${i=>
|
|
25
|
+
margin-bottom: ${i=>l.titleMarginBotom.valuePx(i.windowSize)};
|
|
26
|
+
margin-right: ${i=>l.titleMarginRight.valuePx(i.windowSize)};
|
|
27
|
+
`,N=t(y)`
|
|
28
|
+
margin-bottom: ${i=>l.subTitleMarginBottom.valuePx(i.windowSize)};
|
|
29
29
|
color: ${i=>i.isError?s.important:i.theme.colors.hero};
|
|
30
30
|
`,U=t.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
margin-top: ${r.sp3};
|
|
34
|
-
margin-left: ${i=>
|
|
35
|
-
margin-right: ${i=>
|
|
34
|
+
margin-left: ${i=>l.containerMarginLeft.valuePx(i.windowSize)};
|
|
35
|
+
margin-right: ${i=>l.containerMarginRight.valuePx(i.windowSize)};
|
|
36
36
|
`,V=t.div`
|
|
37
|
-
min-height: ${i=>
|
|
37
|
+
min-height: ${i=>l.navBarHeight.valuePx(i.windowSize)};
|
|
38
38
|
position: sticky;
|
|
39
39
|
border-bottom: 1px solid transparent;
|
|
40
40
|
z-index: 2;
|
|
@@ -52,8 +52,8 @@ import{X as B,j as e,_ as x,o as r,a4 as L,C as d,a3 as M,Q as C,h as W,g as s,e
|
|
|
52
52
|
top: ${r.sp0};
|
|
53
53
|
left: ${r.sp0};
|
|
54
54
|
right: ${r.sp0};
|
|
55
|
-
padding-right: ${i=>
|
|
56
|
-
padding-left: ${i=>
|
|
55
|
+
padding-right: ${i=>l.navBarPaddingRight.valuePx(i.windowSize)};
|
|
56
|
+
padding-left: ${i=>l.navBarPaddingLeft.valuePx(i.windowSize)};
|
|
57
57
|
height: 100%;
|
|
58
58
|
`,ii=t.div`
|
|
59
59
|
display: flex;
|
|
@@ -88,7 +88,7 @@ import{X as B,j as e,_ as x,o as r,a4 as L,C as d,a3 as M,Q as C,h as W,g as s,e
|
|
|
88
88
|
flex-direction: column;
|
|
89
89
|
width: 100%;
|
|
90
90
|
align-items: center;
|
|
91
|
-
`,
|
|
91
|
+
`,x=t.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
width: 100%;
|
|
94
94
|
justify-content: space-between;
|
|
@@ -96,7 +96,7 @@ import{X as B,j as e,_ as x,o as r,a4 as L,C as d,a3 as M,Q as C,h as W,g as s,e
|
|
|
96
96
|
display: flex;
|
|
97
97
|
flex-direction: column;
|
|
98
98
|
align-items: ${i=>i.windowSize==="small"?"self-start":"self-end"};
|
|
99
|
-
`,u=t(
|
|
99
|
+
`,u=t(y)`
|
|
100
100
|
color: ${i=>i.isError||i.isWarning?i.theme.mode==="dark"?s.neutralGrey4Dark:i.isWarning:i.theme.colors.primary};
|
|
101
101
|
`,si=t(j)`
|
|
102
102
|
margin-top: -5px;
|
|
@@ -109,11 +109,11 @@ import{X as B,j as e,_ as x,o as r,a4 as L,C as d,a3 as M,Q as C,h as W,g as s,e
|
|
|
109
109
|
width: ${r.sp4};
|
|
110
110
|
height: ${r.sp4};
|
|
111
111
|
color: ${i=>i.isError?s.important:s.brandColorGoldDark};
|
|
112
|
-
`,
|
|
112
|
+
`,ai=t(A)`
|
|
113
113
|
width: ${r.sp4};
|
|
114
114
|
height: ${r.sp4};
|
|
115
115
|
color: ${s.success};
|
|
116
|
-
`,
|
|
116
|
+
`,li=t(J)`
|
|
117
117
|
width: ${r.sp4};
|
|
118
118
|
height: ${r.sp4};
|
|
119
119
|
color: ${i=>i.theme.colors.grey2};
|
|
@@ -141,7 +141,7 @@ import{X as B,j as e,_ as x,o as r,a4 as L,C as d,a3 as M,Q as C,h as W,g as s,e
|
|
|
141
141
|
align-items: center;
|
|
142
142
|
justify-content: center;
|
|
143
143
|
margin-right: ${r.sp1};
|
|
144
|
-
|
|
144
|
+
`,$=t(D)`
|
|
145
145
|
color: ${i=>i.theme.colors.brandColorJade};
|
|
146
146
|
width: ${r.sp3};
|
|
147
147
|
height: ${r.sp3};
|
|
@@ -149,4 +149,4 @@ import{X as B,j as e,_ as x,o as r,a4 as L,C as d,a3 as M,Q as C,h as W,g as s,e
|
|
|
149
149
|
color: ${i=>i.theme.colors.brandColorGoldDark};
|
|
150
150
|
width: ${r.sp4};
|
|
151
151
|
height: ${r.sp4};
|
|
152
|
-
`;export{
|
|
152
|
+
`;export{mi as m};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{eM as h,eN as x,j as t,bx as m,o as n,$ as o,M as g,r as j,d as p}from"./index-CnrHU8WN.js";import{n as s}from"./vendor-CnQcJ2Lu.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
min-width: 192px;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
`,b=s(p)`
|
|
6
|
+
color: ${e=>e.theme.colors.hero};
|
|
7
|
+
`,u=s(p)`
|
|
8
|
+
color: ${e=>e.theme.colors.brandColorPearl};
|
|
9
|
+
`,d=s.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
`,w=s(j)`
|
|
13
|
+
border-radius: ${n.sp12};
|
|
14
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
15
|
+
display: flex;
|
|
16
|
+
height: 18px;
|
|
17
|
+
width: 18px;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
color: 1px solid ${e=>e.theme.colors.grey1};
|
|
21
|
+
margin-left: ${n.sp1};
|
|
22
|
+
`,M=({roles:e})=>{let r=a,l=[];r=h(e),l=x(e);const c=()=>l.length>0?t.jsx(y,{children:l.map(i=>t.jsxs(f,{children:[t.jsx(b,{children:i[0]}),t.jsx(u,{children:i[1]})]},i.join(",")))}):t.jsx(t.Fragment,{children:a});return l.length>0?t.jsx(m,{enterDelay:600,"data-testid":o("roles-tooltip",r),title:c(),placement:"top-end",style:{marginLeft:n.sp1,padding:"6px 12px"},maxWidth:"264px",children:t.jsxs(d,{"data-testid":o("roles-label-wrapper",r),children:[r,t.jsx(w,{className:"roles-count-wrapper","data-testid":o("roles-count-wrapper",r),children:l.length})]})}):t.jsx(d,{"data-testid":o("roles-label-wrapper",r),children:r})};export{M as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as H,l as me,
|
|
1
|
+
import{a2 as H,l as me,hH as ee,g6 as fe,ew as we,hI as Je,a as Me,hJ as Ve,c7 as _e,c8 as Pe,j as a,M as be,F as Fe,bS as $e,bU as Ne,bV as qe,a4 as Re,hK as Be,hL as Ue,T as he,hM as Se,hN as We,ck as ze,e as Ke,h$ as He,gb as re,q as R,g as De,C as Ce,ca as Ge,hO as Ye,hP as Qe,hQ as Xe,o as _}from"./index-CnrHU8WN.js";import{b as m,n as U}from"./vendor-CnQcJ2Lu.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-B_90qPjE-CouAcwmm.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -9,29 +9,29 @@ import{a2 as H,l as me,hK as ee,g3 as fe,es as we,hL as Je,a as Me,hM as Ve,c3 a
|
|
|
9
9
|
border-top-right-radius: ${_.sp2};
|
|
10
10
|
border-bottom-left-radius: ${_.sp0};
|
|
11
11
|
border-bottom-right-radius: ${_.sp0};
|
|
12
|
-
`,
|
|
12
|
+
`,G=U.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex: 1;
|
|
15
15
|
background-color: ${t=>t.theme.colors.grey3};
|
|
16
16
|
min-height: 1px;
|
|
17
|
-
`,st=
|
|
17
|
+
`,st=U.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
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:
|
|
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:A,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:w,selectedMonths:T,selectedPostingDay:E,lastDayOfMonth:j,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Q}){const{resetField:f}=ze(),se=V(t,"scheduleExpenseCategory"),oe=V(t,"scheduleClass"),ne=V(t,"accumulatedDepreciationCategory"),de=V(t,"assetId"),X=V(t,"startDate"),S=V(t,"postingDate"),r=V(t,"months"),e=be.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,b=o=>s.filter(N=>N.qboId===o)[0]?.qboId,x=o=>p.filter(N=>N.qboId===o)[0]?.qboId,ie=o=>u.filter(N=>N.classId===o)[0]?.accountingClassNumber,Y={valueContainer:o=>({...o,overflow:"unset"})},I=Ke(),W=He({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),z=()=>{f(S)},K=E==null&&j==null?void 0:j===!0?"lastDayOfMonth":"day",$=o=>[k.expense?.qboId,k.income?.qboId].includes(o),Z=()=>{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:Z,isUpdating:g==="In-Progress",onMarkAsComplete:Q,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:B.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:e.expenseCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:A,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Y},disableCurrentOption:$,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(G,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:e.class,width:B.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:Y},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(G,{}),a.jsx(re,{isDisabled:D.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.accumulatedDepreciationCategory,width:B.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:e.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:F,allOptions:y},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Y},disableCurrentOption:$,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(G,{}),a.jsx(Ge,{label:{label:e.assetId,width:B.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(G,{}),a.jsx(Ye,{label:{label:e.startMonth,width:B.labelWidth.value(I)},monthSelectorField:{name:X,placeholder:e.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:W},isDisabled:h}),a.jsx(G,{}),a.jsx(lt,{label:{label:e.postingDate,width:B.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:e.postingDatePlaceholder,name:S,defaultValue:{type:K,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:z}}),a.jsx(G,{}),a.jsx(Qe,{label:{label:e.months,width:B.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(Xe,{text:e.scheduleMarkedAsCompleted})})]})}const nt=U.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
width: 100%;
|
|
25
25
|
height: 100%;
|
|
26
26
|
min-height: 100vh;
|
|
27
27
|
background-color: ${t=>t.theme.colors.grey4};
|
|
28
|
-
`,dt=
|
|
28
|
+
`,dt=U.div`
|
|
29
29
|
display: flex;
|
|
30
30
|
z-index: 2;
|
|
31
|
-
`,it=
|
|
31
|
+
`,it=U.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
`,ct=
|
|
34
|
+
`,ct=U.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
`,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",rt=be.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:T,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:A}){const[E,j]=m.useState(!1),h=H(l.updateStatus.fetchState),J=H(l.selectedJEScheduleTransaction?.status.code),i=H(l.deleteStatus.fetchState),[ae,Y]=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,b=me.getFirstControllerEmail(d.controllers),x=me.getFirstControllerId(d.controllerUserIds),ie={onOkClick:()=>{j(!1),p()},onCancelClick:()=>{j(!1)}},X=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...Ue(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:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),v(n)},I=(n,C)=>{const O=e?.scheduledJournalEntry[C];r!=null&&O!=null&&e!=null&&t.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(O),controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),P(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:b,controllerUserIds:x})),c===!0&&e?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&A(e.jeScheduleTransactionKey,{month:g.month,year:g.year}),p())},[g,J,l.selectedJEScheduleTransaction?.status.code,t,p,h,A,c,l.updateStatus,e,r,S,b,x]),m.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=fe(l.accountListNestedAccountHierarchy),W=fe(l.allDepreciationAccountListNestedAccountHierarchy),G=we(l.classListNestedAccountHierarchy),$=Je("fixed_assets"),Z=m.useRef(),D=Me({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,U,G,W,$,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,U,G,W,$,u.entityAutoCompleteView)}),o=D.watch("scheduleDetailsFixedAssetsSection.vendor");m.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Z.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(n,C)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Z.current=C},xe=D.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,C)=>{const O=C[te].vendor;if(n.includes("vendor")){const ce=O?.defaultOptions.map(q=>q.value);if(O?.selectedOption!=null&&ce?.includes(O.selectedOption)!==!0){const q=u.entityAutoCompleteView.vendor.find(Le=>Le.id===O.selectedOption);q!=null&&D.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:q.name??"",value:q.id}])}}const ke=n.includes("amount");if(F(C,ke),n.includes("amount")){const ce=n.split(".")[1],q=parseInt(ce);Y(!0),y(q,l.selectedJEScheduleTransaction?.jeScheduleId)}};m.useEffect(()=>{const n=D.watch((C,{name:O})=>{O!=null&&C!=null&&_e(()=>ve(O,C))});return()=>{n.unsubscribe()}}),m.useEffect(()=>{(se!==f.jeScheduleDetails.length||oe!==f.selectedDate||ne!==f.selectedDayOfMonth)&&ae===!0&&(D.resetField(le,{defaultValue:ue(l,U,G,W,$,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!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=(Fe(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:b,controllerUserIds:x})),p())},je=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=m.useCallback(()=>{Q(!0)},[]),Te=m.useCallback(()=>{r!=null&&e!=null&&t.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),w()},[t,b,x,e,w,r,S]),Ae=m.useCallback(n=>{r!=null&&e!=null&&t.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),T(n)},[t,b,x,e,T,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(Pe,{...D,children:a.jsxs("form",{style:{width:"100%"},id:ye(ge),onSubmit:xe,children:[a.jsx(pt,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:G,allMonthOptions:$,allDepAccountOptions:W,onEditAmount:y,onDelete:Ae,onJELinkClick:X,onViewLinkedJE:I,onMarkAsComplete:Te,allowCreateSchedule:de,onCreateSchedule:Oe}),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(Be,{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:T,onDelete:F,onJELinkClick:P,onViewLinkedJE:L,onMarkAsComplete:w}){const A=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(it,{children:[a.jsx(ct,{children:a.jsx(Ze,{vendorLoadOptions:d,vendorField:t,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,errors:A,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:F,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:T,onJELinkClick:P,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,T=c.selectedAccumulatedDepreciationCategory,F=T!=null?t.allDepreciationAccountList.find(i=>i.accountId===T):void 0,P=c.assetId,L=c.selectedClass,w=L!=null?t.allClassList.find(i=>i.classId===L):void 0,A=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),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:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:w?.classId,allOptions:g},startDate:c.selectedDate,months:{selectedOption:A,allOptions:s},vendor:{selectedOption:v?.id??y?.id,defaultOptions:ze(u,v??y)},postingDate:{type:J,dayOfMonth:j}},[le]:E}};export{Et as default};
|
|
37
|
+
`,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",rt=be.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:A,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,Q]=m.useState(!1),f=l.scheduleDetailsLocalData.fixed_assets,se=H(f.jeScheduleDetails.length),oe=H(f.selectedDate),ne=H(f.selectedDayOfMonth),[de,X]=m.useState(!0),S=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,e=l.selectedJEScheduleTransaction,b=me.getFirstControllerEmail(d.controllers),x=me.getFirstControllerId(d.controllerUserIds),ie={onOkClick:()=>{j(!1),p()},onCancelClick:()=>{j(!1)}},Y=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...We(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:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),v(n)},I=(n,C)=>{const O=e?.scheduledJournalEntry[C];r!=null&&O!=null&&e!=null&&t.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(O),controllerEmails:b,controllerUserIds:x,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:b,controllerUserIds:x})),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,b,x]),m.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const W=fe(l.accountListNestedAccountHierarchy),z=fe(l.allDepreciationAccountListNestedAccountHierarchy),K=we(l.classListNestedAccountHierarchy),$=Je("fixed_assets"),Z=m.useRef(),D=Me({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,W,K,z,$,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,W,K,z,$,u.entityAutoCompleteView)}),o=D.watch("scheduleDetailsFixedAssetsSection.vendor");m.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Z.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(n,C)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Z.current=C},xe=D.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,C)=>{const O=C[te].vendor;if(n.includes("vendor")){const ce=O?.defaultOptions.map(q=>q.value);if(O?.selectedOption!=null&&ce?.includes(O.selectedOption)!==!0){const q=u.entityAutoCompleteView.vendor.find(Le=>Le.id===O.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);Q(!0),y(q,l.selectedJEScheduleTransaction?.jeScheduleId)}};m.useEffect(()=>{const n=D.watch((C,{name:O})=>{O!=null&&C!=null&&_e(()=>ve(O,C))});return()=>{n.unsubscribe()}}),m.useEffect(()=>{(se!==f.jeScheduleDetails.length||oe!==f.selectedDate||ne!==f.selectedDayOfMonth)&&ae===!0&&(D.resetField(le,{defaultValue:ue(l,W,K,z,$,u.entityAutoCompleteView)[le],keepDirty:!1}),Q(!1))},[f.jeScheduleDetails.length,f.selectedDate,f.selectedDayOfMonth]),m.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&X(!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:b,controllerUserIds:x})),p())},je=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=m.useCallback(()=>{X(!0)},[]),Ae=m.useCallback(()=>{r!=null&&e!=null&&t.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),w()},[t,b,x,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:b,controllerUserIds:x})),A(n)},[t,b,x,e,A,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:xe,children:[a.jsx(pt,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:W,allClassOptions:K,allMonthOptions:$,allDepAccountOptions:z,onEditAmount:y,onDelete:Te,onJELinkClick:Y,onViewLinkedJE:I,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:Oe}),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:A,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(Ze,{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:A,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,A=c.selectedAccumulatedDepreciationCategory,P=A!=null?t.allDepreciationAccountList.find(i=>i.accountId===A):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:Be(u,v??y)},postingDate:{type:J,dayOfMonth:j}},[le]:E}};export{Et as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as $,l as ie,
|
|
1
|
+
import{a2 as $,l as ie,hH as Y,g6 as Ae,ew as Ie,hI as Je,a as Le,hJ as we,c7 as Me,c8 as Ve,j as a,M as De,F as Pe,bS as Fe,bU as $e,bV as _e,a4 as Ne,hK as Be,hL as Ue,T as re,hM as pe,hN as ze,ck as qe,e as Re,gb as me,q as X,g as We,C as Ke,hO as He,hP as Qe,hQ as Ge,o as L}from"./index-CnrHU8WN.js";import{b as D,n as P}from"./vendor-CnQcJ2Lu.js";import{i as Ye,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-B_90qPjE-CouAcwmm.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const U={labelWidth:new Ke(160,160,160)},tt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -18,7 +18,7 @@ import{a2 as $,l as ie,hK as Y,g3 as Ae,es as Je,hL as Ie,a as Le,hM as we,c3 as
|
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
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:b,allMonthOptions:o,uncategorizedAccounts:p,selectedAccount:r,selectedClass:C,selectedDate:w,selectedMonths:
|
|
21
|
+
`,_=(e,n)=>`${e}.${n}`;function at({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:b,allMonthOptions:o,uncategorizedAccounts:p,selectedAccount:r,selectedClass:C,selectedDate:w,selectedMonths:I,selectedPostingDay:O,lastDayOfMonth:k,isDisabled:S,allowCreateSchedule:v,onCreateSchedule:u,onDelete:le,onMarkAsComplete:F}){const{resetField:z}=qe(),q=_(e,"scheduleExpenseCategory"),R=_(e,"scheduleClass"),ae=_(e,"startDate"),N=_(e,"postingDate"),y=_(e,"months"),f=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(B=>B.qboId===d)[0]?.qboId,oe=d=>i.filter(B=>B.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&&k==null?void 0:k===!0?"lastDayOfMonth":"day",E=d=>[p.expense?.qboId,p.income?.qboId].includes(d),T=()=>{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:v,onDelete:T,onMarkAsComplete:F,onCreateSchedule:u}),a.jsx(re,{controller:v===!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:q,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:b},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(He,{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(Qe,{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:v===!1,children:a.jsx(Ge,{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,b)=>{const o=i-b,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
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
width: 100%;
|
|
@@ -34,4 +34,4 @@ import{a2 as $,l as ie,hK as Y,g3 as Ae,es as Je,hL as Ie,a as Le,hM as we,c3 as
|
|
|
34
34
|
`,ct=P.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
`,Se="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",it=De.getLocalizedStrings(),{common:A,jeSchedules:{scheduleDetails:rt}}=it;function xt({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,onMarkAsComplete:p,onNavigateBack:r,onEditAmount:C,onJELinkClick:w,onSave:
|
|
37
|
+
`,Se="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",it=De.getLocalizedStrings(),{common:A,jeSchedules:{scheduleDetails:rt}}=it;function xt({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,onMarkAsComplete:p,onNavigateBack:r,onEditAmount:C,onJELinkClick:w,onSave:I,onDelete:O,onDetailPageChange:k,onViewLinkedJE:S,onTransactionClick:v,removeJeScheduleTransactionKey:u}){const[le,F]=D.useState(!1),z=$(l.updateStatus.fetchState),q=$(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),T=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:A.strings.hyphen,controllerEmails:E,controllerUserIds:T}),w(c)},B=(c,g)=>{const j=s?.scheduledJournalEntry[g];h!=null&&j!=null&&s!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(j),controllerEmails:E,controllerUserIds:T}),S(c)};D.useEffect(()=>{z==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&s!=null&&e.trackScheduleDetailsSaved(Y({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),i===!0&&s?.jeScheduleTransactionKey!=null&&q==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(s.jeScheduleTransactionKey,{month:m.month,year:m.year}),r())},[q,l.selectedJEScheduleTransaction?.status.code,e,r,m,z,l.updateStatus,u,t,i,s,h,x,E,T]),D.useEffect(()=>{R==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[R,l.deleteStatus,r]);const H=Ae(l.accountListNestedAccountHierarchy),Q=Ie(l.classListNestedAccountHierarchy),G=Je(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,H,Q,G,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,H,Q,G,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)=>{b.onAutoCompleteInputChange?.(c,"vendor"),ue.current=g},ye=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(c,g)=>{const j=g[ee].vendor;if(c.includes("vendor")){const de=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&de?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(ke=>ke.id===j.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??A.strings.empty,value:V.id}])}}const Oe=c.includes("amount");if(k(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:j})=>{j!=null&&g!=null&&Me(()=>ge(j,g))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(f!==y.jeScheduleDetails.length||se!==y.selectedDate||oe!==y.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,H,Q,G,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,be=()=>{he===!0?F(!0):(h!=null&&s!=null&&e.trackScheduleDetailsCanceled(Y({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&v({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=D.useCallback(()=>{J(!0)},[]),Ee=D.useCallback(()=>{h!=null&&s!=null&&e.trackScheduleDetailsMarkedAsCompleted(Y({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),p()},[e,s,p,t,h,x,E,T]),Te=D.useCallback(c=>{h!=null&&s!=null&&e.trackScheduleDetailsDeleted(Y({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),O(c)},[e,s,O,t,h,x,E,T]),je=(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:be,onTransactionClick:ve,title:je??A.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:b,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:H,allClassOptions:Q,allMonthOptions:G,allowCreateSchedule:W,onEditAmount:C,onDelete:Te,onJELinkClick:d,onViewLinkedJE:B,onMarkAsComplete:Ee,onCreateSchedule:xe}),le===!0?a.jsx(Fe,{titleComponent:a.jsx(_e,{children:A.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:A.confirmationPopup.discardDescription}),primaryButtonText:A.confirmationPopup.discard,secondaryButtonText:A.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,he===!0?a.jsx(Ne,{formId:fe(Se),primaryBtn:{label:A.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:A.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:b,allMonthOptions:o,allowCreateSchedule:p,onCreateSchedule:r,onMarkAsComplete:C,onEditAmount:w,onDelete:I,onJELinkClick:O,onViewLinkedJE:k}){const S=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(v=>v.error??[]).filter(v=>!!v)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(dt,{children:[a.jsx(ct,{children:a.jsx(Ye,{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:b,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:k,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const fe=e=>`${e}_form`,ce=(e,n,m,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,b=i.selectedAccount,o=i.selectedVendor,p=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=b!=null?e.allAccountList.find(u=>u.accountId===b):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})),k=i.selectedDayOfMonth,S=i.lastDayOfMonth,v=k==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:Be(t,p??o)},postingDate:{type:v,dayOfMonth:k}},[te]:O}};export{xt as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as T,u as Z,j as t,hR as ie,M as R,hS as oe,X as le,hT as ge,dO as fe,cS as we,v as A,hU as ye,hQ as be,o as i,C as b,g as j,L as $e,T as re,dL as je,bS as Se,bV as ke,ck as Q,cs as ee,cq as ve,hV as X,hW as Ce,aj as De,hX as Me,bX as ze,hY as Le,q as u,n as L,ao as Ee,bU as Oe,p as pe,ct as Ae,ah as ne,cE as Te,a4 as Ie,l as H,hZ as I,fK as Ve,a0 as Fe,h_ as Je,a8 as G,cu as Be,aB as Pe}from"./index-CnrHU8WN.js";import{b as D,n as l,j as B}from"./vendor-CnQcJ2Lu.js";const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:o,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,h]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Q(),v=()=>{k||(c(),h(!1))},w=()=>{y(),h(!1)},k=ee(g,o),x=T(),a=Z();return t.jsx(pe,{onClickAway:()=>{h(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&h(!0)},children:t.jsx(Ae,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Qe,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"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(Te,{name:N(o,"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(Xe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(o,"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:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ne({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ge,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.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:o}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(q,{isSelected:r===e,onClick:()=>o(H.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
|
|
2
2
|
position: relative;
|
|
3
|
-
`,
|
|
3
|
+
`,He=l.div`
|
|
4
4
|
display: flex;
|
|
5
5
|
padding-right: ${i.sp3};
|
|
6
6
|
`,ae=l.div`
|
|
@@ -55,7 +55,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
55
55
|
color: ${e=>e.theme.colors.hero};
|
|
56
56
|
`,Y=l.div`
|
|
57
57
|
display: flex;
|
|
58
|
-
`,
|
|
58
|
+
`,q=l(L)`
|
|
59
59
|
padding: ${i.sp1} ${i.sp2};
|
|
60
60
|
max-width: ${i.sp5};
|
|
61
61
|
min-width: 18px;
|
|
@@ -66,7 +66,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
66
66
|
color: ${e.theme.colors.background};
|
|
67
67
|
background-color: ${e.theme.colors.primary};
|
|
68
68
|
`:null}
|
|
69
|
-
`,
|
|
69
|
+
`,Ze=l.div`
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: center;
|
|
72
72
|
background-color: ${e=>e.isError?j.importantLight:"transparent"};
|
|
@@ -81,7 +81,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
81
81
|
border-color: ${e=>e.isError?j.important:e.theme.colors.primary};
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,Qe=l.div`
|
|
85
85
|
width: 100%;
|
|
86
86
|
margin-top: ${i.sp1};
|
|
87
87
|
height: 1px;
|
|
@@ -89,7 +89,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
89
89
|
width: 100%;
|
|
90
90
|
height: 1px;
|
|
91
91
|
background-color: ${e=>e.theme.colors.grey3};
|
|
92
|
-
`,z={height:new b(
|
|
92
|
+
`,z={height:new b(u[6],u[6]),controlHeight:new b(u[6],u[6]),paddingTopBottom:new b(u[2],u[2]),marginRight:new b(u[2],u[2]),labelMarginLeft:new b(u[3],u[4]),labelMarginRight:new b(u[3],u[4]),labelMarginTop:new b(u[2],u[2])};function Gt({label:e,dayOfMonthField:o,isDisabled:s,style:r}){const p=T(),{formState:{errors:n}}=Q(),d=ee(n,o.name);return t.jsxs(tt,{size:p,style:r,isDisabled:s!=null,isError:d,children:[t.jsx(ve,{isDisabled:s,label:e.label,htmlFor:o.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(Re,{...o,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const tt=l.div`
|
|
93
93
|
display: flex;
|
|
94
94
|
flex-direction: row;
|
|
95
95
|
align-items: flex-start;
|
|
@@ -138,12 +138,12 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
138
138
|
display: flex;
|
|
139
139
|
width: 100%;
|
|
140
140
|
justify-content: space-between;
|
|
141
|
-
`,lt=l(
|
|
141
|
+
`,lt=l(Ee)`
|
|
142
142
|
color: ${e=>e.theme.colors.primary};
|
|
143
143
|
margin: ${i.sp3} ${i.sp1};
|
|
144
144
|
`,ce=l.div`
|
|
145
145
|
margin-bottom: ${i.sp2};
|
|
146
|
-
`,{common:
|
|
146
|
+
`,{common:V,jeSchedules:{scheduleDetails:C}}=R.getLocalizedStrings();function Xt({isUpdating:e,status:o,jeScheduleId:s,allowCreateSchedule:r,onDelete:p,onMarkAsComplete:n,onCreateSchedule:d}){const[c,y]=D.useState(!1),f={onOkClick:()=>{p()},onCancelClick:()=>{y(!1)}},h=()=>null,m=[];return(o==="new"||o=="draft")&&m.push({label:C.scheduleDetailsSection.markAsCompleted,value:C.scheduleDetailsSection.markAsCompleted}),s!=null&&o!=="draft"&&(o==="marked_as_completed"?r===!1&&m.push({label:C.scheduleDetailsSection.createSchedule,value:C.scheduleDetailsSection.createSchedule}):m.push({label:V.delete,value:V.delete})),t.jsxs(ot,{children:[t.jsx(lt,{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===V.delete&&y(!0),g===C.scheduleDetailsSection.markAsCompleted&&n(),g===C.scheduleDetailsSection.createSchedule&&d()},valueToIcon:h})}),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:V.yes,proceedButtonVariant:"danger",secondaryButtonText:V.no,isLoading:e})})]})}function rt(){return t.jsxs(Oe,{children:[t.jsx(ce,{children:C.scheduleDetailsSection.confirmDeletionDescription}),t.jsx(ce,{children:C.scheduleDetailsSection.confirmDeletionDescriptionNote})]})}const P={containerPadding:new b(u[3],u[8]),containerMarginTop:new b(u[3],u[4]),containerMarginBottom:new b(u[4],u[5]),transactionLabelMarginTop:new b(u[2],u[0]),transactionTitleContainerWidth:new b(187,480)},U={transactionLabel:new le("standardMedium","largeMedium"),transactionTitle:new le("h6SemiBold","h5SemiBold")},nt=l.div``,he=l.div`
|
|
147
147
|
margin: ${i.sp0} ${i.sp3} ${i.sp0} ${i.sp0};
|
|
148
148
|
max-width: ${e=>P.transactionTitleContainerWidth.valuePx(e.windowSize)};
|
|
149
149
|
`,st=l($e)`
|
|
@@ -169,7 +169,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
169
169
|
background-color: ${e=>e.theme.colors.grey5};
|
|
170
170
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
171
171
|
padding: ${e=>`${i.sp0} ${P.containerPadding.valuePx(e.windowSize)}`};
|
|
172
|
-
`,
|
|
172
|
+
`,ht=l.div`
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-direction: row;
|
|
175
175
|
width: 100%;
|
|
@@ -179,7 +179,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
179
179
|
justify-content: space-between;
|
|
180
180
|
margin-top: ${e=>P.containerMarginTop.valuePx(e.windowSize)};
|
|
181
181
|
margin-bottom: ${e=>P.containerMarginBottom.valuePx(e.windowSize)};
|
|
182
|
-
`,
|
|
182
|
+
`,ut=l(L)`
|
|
183
183
|
color: ${e=>e.theme.colors.hero};
|
|
184
184
|
height: ${i.sp4};
|
|
185
185
|
`,pt=l(L)`
|
|
@@ -203,7 +203,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
203
203
|
width: 100%;
|
|
204
204
|
height: 1px;
|
|
205
205
|
background-color: ${e=>e.theme.colors.grey3};
|
|
206
|
-
`,wt=({title:e,value:o})=>t.jsxs(mt,{children:[t.jsx(
|
|
206
|
+
`,wt=({title:e,value:o})=>t.jsxs(mt,{children:[t.jsx(ut,{children:e}),t.jsx(pt,{children:o||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:O},scheduleAccruedDetails:{placeholders:{selectVendor:yt}}},dateFormat:{visual:{MMMDCommaYYYYformat:bt}},common:{strings:{hyphen:me}}}=R.getLocalizedStrings();function Ut({transaction:e,vendorField:o,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=T(),c=Z(),[y,f]=D.useState(!1),h=$t(e),m=r?.includes("vendor_deleted"),[g,S]=D.useState(r?.includes("vendor_deleted")),v=o?.defaultOptions.find(w=>w.value===o?.selectedOption);return t.jsxs(ct,{windowSize:d,children:[t.jsxs(ht,{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:O.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:y===!1?t.jsx(nt,{onClick:()=>f(!0),children:v!=null?t.jsx(he,{windowSize:d,children:t.jsx(oe,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary,cursor:"default"},text:v.label})}):t.jsx(ie,{text:O.addVendor,handleClick:()=>{S(!1),f(!0)}})}):t.jsx(ge,{autoFocus:!0,menuIsOpen:y,name:p??"",placeholder:yt,valueToId:w=>w,defaultValue:{selectedOption:o?.selectedOption,defaultOptions:o?.defaultOptions??[]},onMenuClose:()=>f(!1),customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"})},style:{width:250},registerOptions:{required:!0,validate:w=>!!w.selectedOption},loadOptions:s})})}):t.jsx(he,{windowSize:d,children:t.jsx(oe,{itemTextStyle:{...U.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:h.map((w,k)=>t.jsx(xt,{children:t.jsx(wt,{title:w.title,value:w.value})},k))})]})}function $t(e){const o=[];return o.push({title:O.transactionDate,value:e.date.format(bt)}),o.push({title:O.category,value:e.account.accountName}),o.push({title:O.class,value:e.classBase?.className??me}),o.push({title:O.memo,value:e.memo}),o}const ue=(e,o)=>`${e}.${o}`,jt={webkitLineClamp:new b(2,2,1,1,1)},St=R.getLocalizedStrings(),{dateFormat:kt,jeSchedules:{scheduleDetails:K}}=St,vt=({sectionId:e,rowId:o,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:y,onViewLinkedJE:f})=>{const h=T(),m=Z(),[g,S]=D.useState(!1),{formState:{errors:v}}=Q(),w=D.useCallback(()=>{y(o)},[y,o]),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,o)},_=ue(e,"amount"),E=ee(v,_);return t.jsxs(Mt,{windowSize:h,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(F,{windowSize:h,widthSize:I[0].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(F,{windowSize:h,widthSize:I[1].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,children:c.postingDate.format(kt.visual.MMMDCommaYYYYformat)})}),t.jsx(F,{windowSize:h,widthSize:I[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(J,{windowSize:h,onClick:()=>{(a||n)&&S(!0)},isClickable:a||n,children:t.jsx(Ve,{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:ue(e,"amount"),placeholder:K.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(F,{windowSize:h,widthSize:I[3].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,children:Fe("0,0.00",c.runningBalance)})}),t.jsx(F,{windowSize:h,widthSize:I[4].width,children:t.jsx(J,{windowSize:h,isLastItem:!0,isClickable:a||n,children:t.jsxs(At,{children:[t.jsx(Je,{textColor:Dt(c.postingStatus,m),onClick:a||n?$:void 0,text:K.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(Ot,{onClick:a?$:w,children:t.jsx(Ct,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Ct({jeLink:e,isJElinkAllowed:o}){const[s,r]=D.useState(!1);return e.type==="linked"&&o?t.jsx(t.Fragment,{}):o&&(e.type==="unknown"||e.type==="recommended")?t.jsxs(zt,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(Tt,{}),s?t.jsxs(Lt,{children:[e.type==="recommended"?t.jsx(It,{}):null,t.jsx(Et,{children:K.linkJE.linkJE})]}):null]}):null}const Dt=(e,o)=>{switch(e){case"pending":case"canceled":case"recorded":return new G(o.colors.grey1);case"posted":return new G(j.success);case"unknown":return new G(j.alert)}},Mt=l.div`
|
|
207
207
|
display: flex;
|
|
208
208
|
height: ${X}px;
|
|
209
209
|
justify-content: space-between;
|
|
@@ -230,7 +230,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
230
230
|
align-items: center;
|
|
231
231
|
|
|
232
232
|
cursor: ${e=>e.isClickable===!0?"pointer":"default"};
|
|
233
|
-
`,
|
|
233
|
+
`,F=l.div`
|
|
234
234
|
display: flex;
|
|
235
235
|
align-items: center;
|
|
236
236
|
width: ${e=>e.widthSize.valuePx(e.windowSize)};
|
|
@@ -251,7 +251,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
251
251
|
display: flex;
|
|
252
252
|
align-items: center;
|
|
253
253
|
gap: ${i.sp1};
|
|
254
|
-
`,
|
|
254
|
+
`,Et=l(L)``,Ot=l.div``,At=l.div`
|
|
255
255
|
display: flex;
|
|
256
256
|
gap: ${i.sp3};
|
|
257
257
|
align-items: center;
|
|
@@ -261,7 +261,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
261
261
|
`,It=l(Pe)`
|
|
262
262
|
width: ${i.sp3};
|
|
263
263
|
height: ${i.sp3};
|
|
264
|
-
`,
|
|
264
|
+
`,J=l(L)`
|
|
265
265
|
flex-grow: 1;
|
|
266
266
|
word-break: break-word;
|
|
267
267
|
white-space: nowrap;
|
|
@@ -277,7 +277,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
277
277
|
display: ${e=>e.isLastItem===!0?"flex":"inline-block"};
|
|
278
278
|
margin-right: ${e=>e.isLastItem===!0?0:i.sp4};
|
|
279
279
|
padding-right: ${i.sp0};
|
|
280
|
-
`,xe={scheduleDetailsWrapperContainerMarginTop:new b(
|
|
280
|
+
`,xe={scheduleDetailsWrapperContainerMarginTop:new b(u[3],u[3]),paddingRight:new b(u[4],0)},Kt=({sectionId:e,totalAmount:o,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h,jeScheduleId:m})=>{const g=T(),S=p==="Not-Started"||p==="In-Progress"&&n.length===0,v=p==="Completed"&&d.length===0,w=R.getLocalizedStrings().jeSchedules.scheduleDetails.sequenceSchedule;return t.jsxs(Wt,{windowSize:g,children:[t.jsx(qt,{windowSize:g,children:w.header}),S?t.jsx(ye,{}):v?t.jsx(Yt,{windowSize:g,children:t.jsx(be,{text:w.notCreated})}):t.jsx(Pt,{children:t.jsx(Vt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:o,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h,jeScheduleId:m})})]})},Vt=({sectionId:e,totalAmount:o,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h})=>{const m=D.useRef(null),g=T(),S=x=>X,v=n.length*X+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 _=H.dateNow(),E=H.dateNow().startOf("month"),te=H.dateNow().endOf("month");if(a[x].postingDate!=null){if(a[x].postingDate.month()===_.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=o<0;if(x===0)return{min:a?o:0,max:a?0:o};{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(Nt,{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:h,jeScheduleId:c},width:a,ref:m,overscanCount:Le,initialScrollOffset:0,children:Ft})]})})})},Ft=({index:e,data:o})=>{const{sectionId:s,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:y,isAmountEditable:f,getMinMaxValuesForAmount:h,onViewLinkedJE:m,jeScheduleId:g}=o;return t.jsx(Rt,{windowSize:d,children:t.jsx(vt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:y,minMaxValuesForAmount:h(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},g+e)},Jt=l.div`
|
|
281
281
|
height: ${e=>e.containerHeight}px;
|
|
282
282
|
width: 100%;
|
|
283
283
|
margin-right: ${i.sp8};
|
|
@@ -317,7 +317,7 @@ import{X as T,u as Q,j as t,hU as ie,M as R,hV as oe,Q as le,hW as ge,dK as fe,c
|
|
|
317
317
|
flex-direction: column;
|
|
318
318
|
width: 100%;
|
|
319
319
|
margin-top: ${e=>xe.scheduleDetailsWrapperContainerMarginTop.valuePx(e.windowSize)};
|
|
320
|
-
`,
|
|
320
|
+
`,qt=l.div`
|
|
321
321
|
color: ${e=>e.theme.colors.hero};
|
|
322
322
|
margin: ${i.sp3} ${i.sp0};
|
|
323
323
|
${A.standardRegular.css};
|