@zeniai/web-cockpit-ui 1.15.68-qa → 2.0.0-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/Preview-C3kztGrG.js +1 -0
- package/dist/assets/ScreenRoutes-5hC3wQD-.js +179 -0
- package/dist/assets/SignInScreen-Bw3kDJOY.js +1 -0
- package/dist/assets/{analytics-dIF_tB7z.js → analytics-Ci62SVC6.js} +15 -15
- package/dist/assets/analyticsHelper-DvZ4fRLz.js +1 -0
- package/dist/assets/{core-BkNBJTfZ.js → core-CrJ0HRkP.js} +2 -2
- package/dist/assets/{dash.all.min-DCp0srRm.js → dash.all.min-BC3O3eK3.js} +1 -1
- package/dist/assets/{empty-BEbp_utR.js → empty-DCdjTxMk.js} +1 -1
- package/dist/assets/{index-_FLNHZ7a.js → empty-DewRN75u.js} +1 -1
- package/dist/assets/epic-ButtTfPO.js +2 -0
- package/dist/assets/{index-DfsiX1oL.js → index-BHVDlT_9.js} +1 -1
- package/dist/assets/{index-Bg7enq0w.js → index-BIzFhK6B.js} +1 -1
- package/dist/assets/index-BnSSVzJm.js +1 -0
- package/dist/assets/index-C1011MmK.js +2 -0
- package/dist/assets/index-CS2xkLsB.js +1 -0
- package/dist/assets/index-DrEiJ4Wx.js +1 -0
- package/dist/assets/index-Obh2uEoj.js +75311 -0
- package/dist/assets/{lexical--yBvDuds.js → lexical-Y1MbDrft.js} +1 -1
- package/dist/assets/{liveblocks-CkHat3gw.js → liveblocks-CH5Ytl_r.js} +1 -1
- package/dist/assets/{lottie-CiNEXYTH.js → lottie-jJKhsKLZ.js} +2 -2
- package/dist/assets/{mui-CKa4KRJ2.js → mui-DzLLS9Rs.js} +2 -2
- package/dist/assets/{react-DFgw9ha_.js → react-9Kj1B1wt.js} +2 -2
- package/dist/assets/{react-Bh7KrkxH.js → react-BLe964tg.js} +3 -3
- package/dist/assets/{react-BJmIi--Z.js → react-CNU9DWBw.js} +1 -1
- package/dist/assets/{react-DXNdEWzL.js → react-C_qk_SxL.js} +2 -2
- package/dist/assets/{react-BLv4IrTZ.js → react-CdND5srH.js} +2 -2
- package/dist/assets/{react--zdVa7jE.js → react-D1VJKwtS.js} +2 -2
- package/dist/assets/{react-BTFNn9Bg.js → react-D1lzTawy.js} +2 -2
- package/dist/assets/{react-CWTkMrjw.js → react-DRO7qhGA.js} +4 -4
- package/dist/assets/{recharts-Bm8U4EbE.js → recharts-DE-kxplH.js} +25 -25
- package/dist/assets/{sentry-D1ATZ09m.js → sentry-SNkBC2Al.js} +2 -2
- package/dist/assets/{url-BieQVYgF.js → url-C9VCVVAZ.js} +1 -1
- package/dist/assets/url-h1qG-NI4.js +1 -0
- package/dist/assets/{utils-CYPfyH0l.js → utils-CpsqBQqv.js} +1 -1
- package/dist/assets/zeni-epic-state-B7yJI5lR.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-B5qIuZya-DreI9ztK.js +0 -21
- package/dist/assets/AIPerformancePage-BHB45mP--dlHEfggg.js +0 -539
- package/dist/assets/AccountInfoPage-Cd5xYT1g-7Z-4ZVo7.js +0 -18
- package/dist/assets/AccountInfoPageContent-CJ7ycVIK-r5lMwlUU.js +0 -149
- package/dist/assets/AccountLockedInfoModal-Dox7IuAX-BheVgwP8.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-Bqty08m0-iROkMwT2.js +0 -239
- package/dist/assets/AccountRow-D1cjRJJD-BE-H4Wf8.js +0 -298
- package/dist/assets/AccountsPromoCardStack-Bs3naJHM-D3JqjCfa.js +0 -207
- package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-BdtXe-OU.js +0 -6
- package/dist/assets/AddToWalletPage-CyRfqVDB-BusuwTiS.js +0 -344
- package/dist/assets/AgingReportsPage-xBFff3BM-B3EJ2mJD.js +0 -79
- package/dist/assets/AllUserItems-BJf6WPDo-Cm756gtk.js +0 -192
- package/dist/assets/ApAgingDetailPage-CjBrPyi8-E5jF8UEr.js +0 -46
- package/dist/assets/AppBasePage-CqDm-hnV-Yjdz7-aJ.js +0 -71
- package/dist/assets/AppDrawerContent-CVVWj66i-DG2NhbZY.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-B8rzMPKx.js +0 -47
- package/dist/assets/ArAgingChart-CBsqOd-4-C09lN8GR.js +0 -24
- package/dist/assets/ArAgingDetailPage-i7JObt60-CWbqCyje.js +0 -46
- package/dist/assets/AttachmentView-CzC4skJ3-Bu4UD669.js +0 -101
- package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-Cw_3AGL_.js +0 -38
- package/dist/assets/BankAccountSection-Di4sF52j-ZCgNUGht.js +0 -79
- package/dist/assets/BankAccountWarningSection-Cled-2cR-DVb4w8SQ.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-Ccnzq7st-Di6begXg.js +0 -425
- package/dist/assets/BillDetailPage-XXOwBfO1-DQjZ5T4Z.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-DFZ0csaT-Cw2FQFD_.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-COCypDcS-PzGr2X65.js +0 -241
- package/dist/assets/BillPayPromoPage-DOE2YIqC-QS14J4gh.js +0 -84
- package/dist/assets/BillPaySetUpPage-BCJbZDsV-D07Mdr-N.js +0 -42
- package/dist/assets/BillingSettingsPage-iImtlEmO-EXL61nIT.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B11GWM_0-ByV-VNjF.js +0 -1
- package/dist/assets/BoxItem-Bxa1M4QU-nzwL598W.js +0 -53
- package/dist/assets/BusinessVerificationPage-DSuJFoW1-DaafE5oZ.js +0 -138
- package/dist/assets/CardNumberSubText-_ZZbaz_k-0NwREFmO.js +0 -21
- package/dist/assets/CashbackDetailPage-DAZXitLt-cAPq1-x_.js +0 -285
- package/dist/assets/ChargeCardDetailPage-B1VIpASk-Glkm02eC.js +0 -1467
- package/dist/assets/ChargeCardListPage-BOBepN-x-yGCwOFru.js +0 -412
- package/dist/assets/ChargeCardListTable-YznzSsJo-6gqezgiN.js +0 -711
- package/dist/assets/ChargeCardPaymentHistoryPage--jOwsMla-Cb2-K9Pq.js +0 -565
- package/dist/assets/ChargeCardPromoPage-DIfakIOK-B_qlACus.js +0 -222
- package/dist/assets/ChargeCardSetupPage-0bpVkeJs-CYImhK0W.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-ChWyQlw6-D0jTdagl.js +0 -60
- package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-CWAiXfSS.js +0 -206
- package/dist/assets/CollapsableReportTable-DNfFkAts-C8dmIdO0.js +0 -2982
- package/dist/assets/CompanyOfficerDetailsSection-CrOIN4IW-CNi04YQI.js +0 -331
- package/dist/assets/CompanyPassportCard-CkzYFTrp-Pimw3mP5.js +0 -42
- package/dist/assets/CompanyPassportPage-FE6yli6h-B4PxDpsu.js +0 -417
- package/dist/assets/CompleteProfile-Cb8i1XgZ-BXOZoOlD.js +0 -52
- package/dist/assets/ConfettiBurst-BZCXEGYA-Do0yS2i8.js +0 -1
- package/dist/assets/ConstrainedInnerElement-CgdnMeoA-BpHBKVR8.js +0 -5
- package/dist/assets/CreateOrEditVendorPage-CzpSgxbO-BN8HspAj.js +0 -281
- package/dist/assets/CreditCardPaymentDrawerPage-c_q0MsSO-Cr-gCtRh.js +0 -227
- package/dist/assets/CurrencySelectField-BAh7SHrG-CgfY-43B.js +0 -139
- package/dist/assets/CustomerOnboardingActivationPage-f3Aa6E5r-CCEOw9fE.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-F5PScDkh.js +0 -1
- package/dist/assets/CustomerOnboardingDetailPageSkeleton-DYuiWn8s-DPEjcBhY.js +0 -162
- package/dist/assets/CustomerOnboardingNoStepsPage-Bh_F0-oC-ClcKQXcB.js +0 -66
- package/dist/assets/CustomerOnboardingPage-B9hSO88_-BDyRpdiM.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-CG0HKCpQ-C0roMOz5.js +0 -202
- package/dist/assets/Dashboard-BJ_oIHab-BMBptBWK.js +0 -1611
- package/dist/assets/DashboardReportPage-BemzMw2e-DuF-tyyh.js +0 -371
- package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-cLLo-Xa2.js +0 -12
- package/dist/assets/DepositAccTransactionItem-CyFi1P_L-t2UvwHYc.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-DvBRRUdZ-mvagG3Fg.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DCDo3aHI-B8T0Sqy1.js +0 -21
- package/dist/assets/DownloadOverlay-D_lL1sPW-D5tf77PN.js +0 -439
- package/dist/assets/DrawerPage-DesxXhZk-BY9Jhte8.js +0 -118
- package/dist/assets/EditPeoplePage-QvPy_Six-B-aFxB6M.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-C0ZDkboO-CaUwb4y0.js +0 -865
- package/dist/assets/EntityDetailPage-l7nXIsyF-CUi-kmqG.js +0 -18
- package/dist/assets/EntitySummarySection-BwX0a4JL-BqwAGuNV.js +0 -151
- package/dist/assets/ExpenseAutomationOverviewPage-EdyHjbff-DCBv2K-u.js +0 -281
- package/dist/assets/ExpenseAutomationPage-DA22Qofw-CiNaHcxf.js +0 -3001
- package/dist/assets/ExpressPayPage-EMP6inpX-DZlGHAds.js +0 -168
- package/dist/assets/FeaturePreviewPage-SYJm-3aR-xFnEerKU.js +0 -11
- package/dist/assets/FollowStepsSection-BxESVqJD-DxFAH_h3.js +0 -390
- package/dist/assets/GlobalReviewListPage-D5_ACa-q-BMMI2ntm.js +0 -291
- package/dist/assets/InformationCardStack-B_qQUEYD-CQ0SbwAa.js +0 -31
- package/dist/assets/InsightsCardStack-BsQzoVzj-CjyRghi5.js +0 -79
- package/dist/assets/InsightsSection-B6CNlTNH-B1LSgGwc.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-DP6fAccq-v6tkG7JS.js +0 -57
- package/dist/assets/InternationalWireSwiftDetailsPage-VdG7bDZi-BblPxkFu.js +0 -171
- package/dist/assets/InternationalWireVerificationPage-COC6lZml-oCEJi0X3.js +0 -65
- package/dist/assets/InviteFormPage-DN02jRy5-nGjvuxdk.js +0 -312
- package/dist/assets/InvitePageListView-CP4K9tJi-DR1QifKE.js +0 -739
- package/dist/assets/InvitePeoplePage-VTM6kM1u-DP5iUCV3.js +0 -12
- package/dist/assets/InvoiceUploadSection-it-ZYl1N-D-oO7O3y.js +0 -140
- package/dist/assets/IssueChargeCardPage-CVfuvGey-EGKoaj6m.js +0 -532
- package/dist/assets/LabeledAddressValue-DDrQcHIE-CsDSYeJm.js +0 -49
- package/dist/assets/LabeledAddressValueField-BgWwd5Gw-C6Sd84JD.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CcPO1k23-CZG4Ni3I.js +0 -16
- package/dist/assets/LabeledCountryMultiSelectField-BYYjzwUG-ClkVAIH6.js +0 -237
- package/dist/assets/LabeledCreatableSingleSelectField-CISYMojq-DIFCt9eo.js +0 -208
- package/dist/assets/LabeledDocumentField-C_bcFxdY-CtjexOgx.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-ScGGCap8-B5wH8nK9.js +0 -59
- package/dist/assets/LabeledText-C8Y7EOsX-kS2nKxle.js +0 -42
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-D8iTWuxp.js +0 -229
- package/dist/assets/LabeledZeniRolesDropDownField-BZtreVpj-D8mq_P_F.js +0 -297
- package/dist/assets/LinkJETransactionPage-CKq4oiX9-CzwuDv7K.js +0 -98
- package/dist/assets/LockCardPage-CZENNby7-DHuKzK_P.js +0 -623
- package/dist/assets/LowBalancePopup-1727S1ri-CLn_owQa.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-CQCLG-kg.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-C49U7WGq.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BLRkR6HU.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-QMkZgQLG-B9vDVHgU.js +0 -31
- package/dist/assets/MagicLinkTitleSection-CARU1oLQ-BjGULf6o.js +0 -17
- package/dist/assets/MailingDetailsSection-ByOPaJ05-9VPv0fgJ.js +0 -21
- package/dist/assets/MyBankConnectionsSettingsPage-BdgIIhL1-C8HdioWO.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-CX38bDdq-Dtvvpc2s.js +0 -6
- package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-BrcNb6gY.js +0 -85
- package/dist/assets/NavBarWithPicker-CGGEvLwe-DMufk1Tl.js +0 -30
- package/dist/assets/NavigationArrow-CTNkKUtV-BeKuQdbg.js +0 -47
- package/dist/assets/NavigationDots-Dvce3gHt-BEZo75Mq.js +0 -15
- package/dist/assets/NewGlobalMerchantPage-D_f7z47T-DPDxycDd.js +0 -160
- package/dist/assets/NoDataChart-CrKeqWSr-O1hAzQpH.js +0 -26
- package/dist/assets/NoDataTable-4vPXmPYF-D5e99E2i.js +0 -8
- package/dist/assets/NotFoundPage-BLWPU1wU-BS5U-4en.js +0 -46
- package/dist/assets/NotificationSettingsPage-CDiDLX3A-BTUmGwwX.js +0 -163
- package/dist/assets/NotificationsListConfig-B5pDa4cJ-BrlsFoGd.js +0 -1
- package/dist/assets/NotificationsPage-Ccl7Dny1-CDeyLmel.js +0 -685
- package/dist/assets/OpExByVendorPage-spd-nKV4-DymWDKxZ.js +0 -100
- package/dist/assets/OverlayContainerPage-BG9y5C0t-DHbkSpdr.js +0 -11
- package/dist/assets/PandLWithForecastPage-TSoe4Z7F-DVvQDzF4.js +0 -123
- package/dist/assets/PaymentAccountSetupBillingAddressSection-9ma8SpIa-B61gEeKv.js +0 -107
- package/dist/assets/PeoplePage-b5_I0qOw-CcyzZTOx.js +0 -727
- package/dist/assets/Preview-jSjyb8Wz.js +0 -1
- package/dist/assets/ProductsCarousel-C3M0ocdF-Bt8auSak.js +0 -142
- package/dist/assets/PromoBaseCards-BOGJI2ws-D_mJTIMJ.js +0 -218
- package/dist/assets/QBOConnectionDialog-CmpnnuzP-SYvDug7J.js +0 -51
- package/dist/assets/QBOSetupSection-DjnN9dgv-65xgGpej.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D5NXjrO9-CK4k2_1U.js +0 -32
- package/dist/assets/ReimbursementApprovalRulesPage-BsCTIqUJ-kxyvDxFF.js +0 -243
- package/dist/assets/ReimbursementDetailPage-BbyxE2uL-DHKJBXjf.js +0 -314
- package/dist/assets/ReimbursementPromoPage-CyEgwqcf-DhHbMt9Y.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-RETPkEQd-7NuS22jg.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DnmYl0FM-DRTY5Qrt.js +0 -1
- package/dist/assets/ReloadCard-Bdoo0XiI-De2qYvVJ.js +0 -26
- package/dist/assets/ReportTableViewSelector-Bc1K7mU_-WcN_bkH8.js +0 -151
- package/dist/assets/ReportsPage-BOTHMLWh-CbxRi3Bl.js +0 -269
- package/dist/assets/RevenueChart-DvyZ3aO7-DJIWRApB.js +0 -280
- package/dist/assets/ReviewDetailsPage-BIMg1n2e-Y9hISS-B.js +0 -290
- package/dist/assets/ReviewOverlay-CxwoiOLC-K4xuFYJf.js +0 -152
- package/dist/assets/RoleWithToolTip-Ct3_VuDM-CutV0VSI.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-DiL5Dozk-Dsn_tV_Z.js +0 -37
- package/dist/assets/ScheduleDetailsPage-5FWpLRtd-BkiM-YWE.js +0 -37
- package/dist/assets/ScheduleSequenceTable-R3-PsXES-BzlTpl5i.js +0 -326
- package/dist/assets/ScreenRoutes-CkrPqzsb.js +0 -179
- package/dist/assets/SetUpAccountSection-CctbMmoK-BOF6_9cx.js +0 -378
- package/dist/assets/SignIn-CmgmnRm4-BCJZcyou.js +0 -491
- package/dist/assets/SignInScreen-DSAx5H2X.js +0 -1
- package/dist/assets/SpendManagementListViewPage-CFUxCqkU-CL-5c7Md.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-C-kqNTci-C7N-eI_F.js +0 -754
- package/dist/assets/SpendManagementSection-CIz4nE_w-DEEvDlQ3.js +0 -246
- package/dist/assets/StatementItem-vVtoBN2w-DNhjpRXd.js +0 -31
- package/dist/assets/StatementsPage-As5WOnMR-BGDHNVov.js +0 -58
- package/dist/assets/StatusSwitcher-Bv-ozN6U-DR2exS0w.js +0 -120
- package/dist/assets/SubTabSwitcher-D7QeM6nb-CrqFxDEj.js +0 -58
- package/dist/assets/SummaryCard-C2qoTsAY--GDNjG_3.js +0 -1
- package/dist/assets/TaskManagementPage-BJwp32Ph-DTf-Iv_K.js +0 -508
- package/dist/assets/TimeRangeSwitcher-D00bDDhP-C0DMxgEQ.js +0 -64
- package/dist/assets/TimeframeSwitcher-DA99HdHt-b8QZxwPR.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DyggDIQj-CT6U2a1r.js +0 -53
- package/dist/assets/TopExCard-Z1WabZ8c-B1L2Pds0.js +0 -38
- package/dist/assets/TopExDetailPage-CzHG4f9E-dWSLA4Ws.js +0 -132
- package/dist/assets/TransactionActivityLogPage-CGKnjNfU-Bl38wH2t.js +0 -195
- package/dist/assets/TransactionDetailPage-1-mLOWSz-BmpQvtBx.js +0 -903
- package/dist/assets/TransactionList-BB-xoIGm-Cr5Fw4zn.js +0 -153
- package/dist/assets/TransactionListBig-C5Sf5Xh--slDI8IwT.js +0 -284
- package/dist/assets/TransactionListPage-Cj7h1Ros-rJMcmK0n.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-SsrSOk3O-SPbpEcQG.js +0 -80
- package/dist/assets/TransferDrawerPage-BvKZ7vHF-ByA-FuC8.js +0 -362
- package/dist/assets/TreasuryOverviewPage-DwvjMR4_-BtzvJmQX.js +0 -725
- package/dist/assets/TreasuryPromoPage-CtTFvSQW-CrQtFUyL.js +0 -505
- package/dist/assets/TreasuryStatementsPage-Catz8shX-By_rJK-C.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D8hzCL5o-CCKZ7rcr.js +0 -58
- package/dist/assets/TrendChart-Bnp4Pcdf-CogbW3Ev.js +0 -16
- package/dist/assets/TrendWithTransactions-3D1FvM8G-BT6LIECo.js +0 -116
- package/dist/assets/UncategorizedAccountsMappingPage-DbyY-dYB-COgBKAub.js +0 -244
- package/dist/assets/UnitIntegrationPage-CTzme1te-BGDWnIqI.js +0 -67
- package/dist/assets/UploadAdditionalDocumentOverlay-Wl4Spdpn-DBxdytXh.js +0 -38
- package/dist/assets/Vendor2FAPopup-D0zYKkIv-BWyhVU6Z.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YYX9aQdw-BkRCrsJP.js +0 -1
- package/dist/assets/VendorDetailPage-Br9wIOnI-FU56y_vG.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-CaZ8t3RD.js +0 -1
- package/dist/assets/VendorFiling1099EditablePage-himC7iD3-CNVSOTkz.js +0 -175
- package/dist/assets/VendorFirstReviewPage-BbknTCBD-YVpApymJ.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-CS595Xgc-VsCdYKTp.js +0 -152
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-Cl8K_joJ.js +0 -1
- package/dist/assets/VendorsAccountsSection-CgSJu8wq-Bnudq5ZH.js +0 -68
- package/dist/assets/VerifyDevice-Dvf0JsNN-CH5zYch6.js +0 -112
- package/dist/assets/VideoPlayer-VAzOGCDL-CPK9tgJc.js +0 -78
- package/dist/assets/VideoPopup-BqvZ-XIh-CCnmTOxs.js +0 -31
- package/dist/assets/WarningsDrawerPage-DeNonoNp-pgJgLpVF.js +0 -92
- package/dist/assets/ZeniAccountDetailPage-GcwTJdB8-BXRXRlQ6.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CdwO0Duy-DQagrsIQ.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-BrSIfL36-7mzjBV6X.js +0 -33
- package/dist/assets/ZeniAccountPromoPage-JrcedQYB-YtGWtBwn.js +0 -184
- package/dist/assets/ZeniAccountSetupPage-TKBfbgzJ-B1EzSk8V.js +0 -36
- package/dist/assets/ZeniCopyright-DglqrTpl-Dk0MIlLg.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-BcaZZuAw-DowL9stJ.js +0 -63
- package/dist/assets/add-to-wallet-DgdBD8_G-ClJS_e0H.js +0 -1
- package/dist/assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js +0 -1
- package/dist/assets/analyticsHelper-CAYdbjhS-BBrtDo0R.js +0 -1
- package/dist/assets/analyticsHelper-CQyCjSZv.js +0 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-C2Qodq1b.js +0 -1
- package/dist/assets/auto-transfer-rule-mbafm5D3-z7CMhaGd.js +0 -1
- package/dist/assets/chartTypes-CD3vrBsI-C2xnw0_m.js +0 -1
- package/dist/assets/commonDimensions-Oz1tdAcx-CViekSs7.js +0 -1
- package/dist/assets/commonTypes-5tEXwrX4-BpOxVdsm.js +0 -1
- package/dist/assets/constants-Cjq8462k.js +0 -1
- package/dist/assets/downloadPdf-Dsuxeias-B5CmpDNO.js +0 -1
- package/dist/assets/empty-DXsQa3BK.js +0 -1
- package/dist/assets/epic-D0G0YyT9.js +0 -2
- package/dist/assets/getReferrerType-DjPOy76W-DRP5VHem.js +0 -1
- package/dist/assets/gift-box-Cmt9OgIZ-BCH7CZB4.js +0 -1
- package/dist/assets/graphic-no-data-l-DU4J8fDt-B59LiiVb.js +0 -1
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-Dk2SOx10.js +0 -1
- package/dist/assets/handshake-BPg58FML-3EjHIdOv.js +0 -1
- package/dist/assets/helper-Ckm10Uko-SWsdfsKK.js +0 -223
- package/dist/assets/index-AibcVs8o.js +0 -29875
- package/dist/assets/index-BM0Ejlih.js +0 -1
- package/dist/assets/index-DqeGHA9K.js +0 -39
- package/dist/assets/index-yG2R--DD.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-CCY61uLN.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-Cgyt68f3-7Y3MpMNp.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-BXu-xYLf.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-DaPlbkW0.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-BCb0OomK.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-DijZZ4CV.js +0 -1
- package/dist/assets/page-detail-CWX5S47F-CUPaau1_.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-DRgQ-H7_.js +0 -3
- package/dist/assets/radio-default-CiSgisfh-bweL_OSo.js +0 -1
- package/dist/assets/shield-DOlUxcFf-BxvxIq2Q.js +0 -1
- package/dist/assets/toCOABalancesWithID-aLNB35t7-B5cVmT7y.js +0 -1
- package/dist/assets/toChartData-DUL6vnzJ-CXX2Xql8.js +0 -1
- package/dist/assets/types-DyvtCprH-NFPm5TaG.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-BQXsf36U.js +0 -1
- package/dist/assets/uploadAttachment-Ck4wivBR-4yLuS05P.js +0 -286
- package/dist/assets/uploadReceipts-CIgkuVpu-YZo_087y.js +0 -1
- package/dist/assets/url-Ds5jgdy8.js +0 -1
- package/dist/assets/useLongPress-GCK2COYQ-BWFeH6rN.js +0 -1
- package/dist/assets/usp-line-BBd1wKwW-Ec0FXEcE.js +0 -1
- package/dist/assets/zeni-epic-state-n9DAAepz.js +0 -14
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import{ay as Ft,V as t,gv as Un,e as Kn,g as Hn,bQ as qn,bR as Xn,gw as Gn,gx as Yn,cl as Jn,aS as Qn,x as y,fo as pt,fp as ea,o as a,fq as ta,fr as na,fs as aa,aQ as Ce,ft as ia,ac as x,bE as mt,bq as ut,dE as yt,cy as ht,cz as bt,cA as gt,gy as la,gz as oa,gA as ra,gB as sa,dN as j,gC as $,fz as A,dT as k,fx as da,w as xt,d as re,fy as _t,fF as ca,fA as pa,fB as ma,gD as ua,gE as ya,aT as ha,aq as ft,c1 as De,bU as ba,gF as L,O as ga,u as s,ai as xa,cc as fa,bV as wa,b as Ta,gG as va,fG as wt,N as Da,de as Ia,cq as ja,gH as Tt,b9 as $a,bb as Aa,n as ka,c3 as Wt,df as Sa,gI as Ca,ak as Zt,ax as Pa,b7 as Ba,bv as Ra,gJ as za,an as Ma}from"./index-AibcVs8o.js";import{a as p}from"./sentry-D1ATZ09m.js";import{n as i}from"./mui-CKa4KRJ2.js";import{bY as Na,bL as La,bZ as Ea,GD as Oa,bX as Fa,bH as _a,bh as Wa}from"./zeni-epic-state-n9DAAepz.js";import{o as Za,t as Va}from"./LowBalancePopup-1727S1ri-CLn_owQa.js";import"./liveblocks-CkHat3gw.js";import"./core-BkNBJTfZ.js";import"./recharts-Bm8U4EbE.js";import"./lottie-CiNEXYTH.js";import"./analytics-dIF_tB7z.js";import"./lexical--yBvDuds.js";import"./utils-CYPfyH0l.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="b2308c82-616a-4742-ae06-1dbd85df0d02",e._sentryDebugIdIdentifier="sentry-dbid-b2308c82-616a-4742-ae06-1dbd85df0d02")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Da("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ha,common:{noText:C,strings:{empty:c},currency:vt,via:qa,more:Xa,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Vt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Ya}}}}=ga.getLocalizedStrings(),je=Ha.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:F,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Ht,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:qt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:Yt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Jt,onAttachmentClick:Ee,saveBillDetails:Qt,discardOutsideZeniPaymentData:en,onBackClick:Oe,updateEditRealTimeApproverClicked:tn,onSaveRealTimeApprovals:nn,onRetryPaymentClick:an,onRefundPaymentClick:ln,initialOpenThreadRequest:K})=>{const l=Kn(),o=Ft(),Fe=Hn(),[on,H]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[We,me]=p.useState(!1),[rn,ue]=p.useState(!1),[Ze,Q]=p.useState(!1),g=e.transactionDetails?.id,sn=qt?qn:Xn,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(sn);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&ee(K)},[K,ee]);const[dn,q]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:g,isGlobalComment:!1},f=Re&&g!=null,{threads:X,isLoading:P}=Gn(),Ve=p.useMemo(()=>g==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Yn)),[X,g]).length,D=`dashboard_${o.currentTenant?.companyId}`,cn=p.useCallback((r,u)=>{te(u),q(!1)},[te,q]);p.useEffect(()=>{ye?.threadId!=null&&X.length>0&&!P&&(te(ye.threadId),ee(null))},[ye,X,P,te,ee]);const Ue=p.useRef(!1),[pn,mn]=p.useState(!1),un=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,mn(!0))});Jn({componentName:"bill.details",enabled:pn});const[N,ne]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,He]=p.useState("approved"),[yn,qe]=p.useState(!1),[hn,Xe]=p.useState(!1),[Ge,Ye]=p.useState(!1),Je=()=>qe(!1),bn=()=>qe(!0),Qe=Qn(e.zeniAssist?.refundStatus.fetchState),ae=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ae())},[Qe,e.zeniAssist?.refundStatus,ae]);const w=e.transactionDetails?.billPayInfo.stage,ie=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,gn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ie?.code=="approved"&&G?.code?G:ie,S=Ja(v,e.transactionDetails),E=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?gn:G?.code!=null&&(ie?.code=="approved"||G.code==="mark_as_paid")?G:ie,be=e.transactionDetails?.vendor?.name,B=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},xn=()=>{ne({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),H(!0)},fn=()=>{ne({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},wn=()=>{ne({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},Tn=()=>{M.trackRefundClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ne({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),pe(!0)},vn={onOkClick:()=>{H(!1),N.primaryButtonText===n.delete?Yt?.(e.isRecurring):N.title===n.cancelBillTitle?Ne?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ln())},onCancelClick:()=>{H(!1),pe(!1)}},Dn={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},In=()=>{const[r]=Pa("ZeniAssist");return r!=null?t.jsx(Ba,{"data-testid":x("bill-details-zeni-assist-icon",g),onClick:()=>{me(!We),M.trackZeniAssistClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},ge=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],jn=e.transactionDetails?.recipientTotalAmount.amount??0,xe=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),$n=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,An=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",kn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${An}`,Sn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx($i,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Cn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Sa(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
-
${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`},oe=e.transactionDetails?.billPayInfo!=null?Na(e.transactionDetails?.billPayInfo):void 0,Pn=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?La(Ea(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,nt=e.transactionDetails?.billPayInfo.expectedDepositDate??Pn,at=pt(d?.paymentType?.method??"").replace("Same Day",""),Bn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(ea,{paymentTypeLabel:at,onClick:bn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Rn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Ca,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,it=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&it),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&it),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,zn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Mn=Ht&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&zn===!1,ve=we||Te,Nn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,W=v?.code,Ln=!Nn&&(!tt||v?.code==="processing"&&!B),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),Y=Oa(e.transactionDetails?.bulkProcessingDetail?.type),O=Fa(e.paymentMethodType?.method),En=!Y&&(W!=="processing"&<||W==="processing"&&!B||W==="processing"&&ot||h&&O&&Be),On=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Qt(!0,Ge,r)},st=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Fn=()=>{Ye(!0),st()},_n=()=>{en(),Xe(!1),Ge&&Ye(!1)},Wn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:g??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,g]),Z=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?ta(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{He("approved"),Ze===!0&&Q(!1),Z!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},Zn=()=>{He("rejected"),Z!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},ct=p.useRef(null);return t.jsxs(mi,{windowSize:l,ref:ct,children:[t.jsx(na,{anchor:"right",open:yn,onClose:Je,transitionDuration:250,"data-testid":x("vendor-email-preview-drawer"),children:t.jsx(aa,{companyName:ia(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:at,amount:Ce("0,0.[00]",xe),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(bi,{ref:un.current,windowSize:l,children:[t.jsx(Si,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":x("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Et,{isDisabled:P,"data-testid":x("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Ot,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":x("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":x("bill-detail-nav-bar-small-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":x("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Et,{isDisabled:P,"data-testid":x("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Ot,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":x("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":x("bill-detail-nav-bar-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(gi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,hn?t.jsx(Va,{onCancel:_n,onProceedForMarkAsPaid:On,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,on||ce?t.jsx(ht,{titleComponent:t.jsx(gt,{children:N.title}),descriptionComponent:t.jsx(bt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:vn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Qa(l,e):null}):null,rn?t.jsx(ht,{titleComponent:t.jsx(gt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Dn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(wi,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:a.sp5,width:a.sp5}):null]}):null,F&&S!=null&&S.code==="deleted"?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Pe.tabsById.overdue?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,E!=null&&E.code?l==="small"?t.jsx(la,{progressSectionObj:E,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(oa,{progressSectionObj:E,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ni(Y,e,Z),t.jsx(ra,{sectionId:sa,currentVendorOption:{defaultOptions:[]},billId:g,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Ee,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:le.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:le.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:le.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:le.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(xi,{windowSize:l,children:t.jsx(ke,{children:n.lineItemsTitle})}),ge.length>0?ge.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Vn=>Vn.id===r.lineId)?.recipientAmount;return t.jsxs(ui,{children:[ge.length>1?t.jsx(yi,{windowSize:l,children:t.jsx(hi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:R!=null?Ce("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(Ti,{windowSize:l,children:[t.jsx(vi,{children:n.total}),t.jsx(Di,{children:xe!=null?t.jsx(da,{amount:xe,integerStyles:xt.h6Medium.cssObject,decimalStyles:xt.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?_t(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:Z!=null&&w?.code==="pending_approval"?Vt.addMoney:Z})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(_a)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ii,{children:ca(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?ti(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?kn:d.paymentToPI!=null?d.paymentToPI.displayText:Sn,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:Cn(),additionalInfoLabel:t.jsx(ai,{children:Bn})}),Rn()]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ma(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:pa(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ua,{onAttachmentClick:Ee,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ya,{amount:jn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Jt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:se,signedInUserId:_?.userId,showRealTimeApproval:Ut,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:tn,onSaveRealTimeApprovals:nn},historicActivities:e.billHistory.activities}),t.jsx(Ii,{})]}),e.transactionDetails?.vendor!=null&&!he&&!e.transactionDetails.isDeleted?t.jsx(ha,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:ei(U,rt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{Z!=null?Q(!0):dt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(li,{children:t.jsxs(pi,{windowSize:l,children:[!Y&&_e?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":x("bill-actions-container"),children:[W!=="processing"&<?t.jsx(V,{onClick:xn,"data-testid":x("delete-bill-action-item"),children:n.buttons.deleteBill}):null,W==="processing"&&!B?t.jsx(V,{onClick:fn,"data-testid":x("cancel-bill-action-item"),children:n.buttons.cancel}):null,W==="processing"&&ot?t.jsx(V,{onClick:wn,"data-testid":x("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(V,{onClick:Fn,"data-testid":x("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,We?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":x("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(V,{onClick:()=>{M.trackRetryClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),an()},"data-testid":x("retry-bill-action-item"),children:n.buttons.retry}):null,Te?t.jsx(V,{onClick:Tn,"data-testid":x("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(ci,{windowSize:l,children:[Mn===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:ve?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":x("other-actions-icon-container"),children:ve?t.jsx(In,{}):t.jsx(ri,{})})}):null,!Y&&fe===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(di,{onClick:et,"data-testid":x("edit-bill-icon-container"),children:t.jsx(si,{})})}):null,!Y&&Ln===!0&&En?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":x("more-details-icon-container"),children:t.jsx(oi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(ba,{isDrawerOpen:dn,allowComposer:!0,drawerTitle:Ya,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Wn,onThreadClick:cn,onCloseAllThreadsDrawer:()=>q(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Wi=e=>{const b=Ft(),h=e.billDetails.transactionDetails?.id,F=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!(F&&_!=null&&h!=null))return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Un,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Ja=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Wa(),"date")===!0?{value:Pe.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[h].color,bgColor:L[h].bgColor,borderColor:L[h].borderColor}},Qa=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(ki,{windowSize:e,children:[t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.accountNumber}),t.jsx(Lt,{children:b.withdrawFrom!=null?_t(b.withdrawFrom,e):c})]}),t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.amount}),t.jsx(Lt,{children:h!=null?Ce("0,0[.]00",h):C})]})]})},ei=(e,b)=>e?n.paymentOutsideZeni.markAsPaid:b?n.buttons.approve:n.buttons.approveBill,ti=e=>{const b=e.paymentMode,h=n.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const F=n.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${qa} ${F}`},ni=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const F=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Vt.lowBalanceIn.replace("__account__",F)}`,description:h.replace("Low balance! ","")})}else return null},ai=i.div``,ii=i.div``,li=i.div`
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: flex-end;
|
|
5
|
-
`,oi=i(za)`
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
color: ${e=>e.theme.colors.hero};
|
|
8
|
-
width: ${a.sp4};
|
|
9
|
-
height: ${a.sp4};
|
|
10
|
-
&:hover {
|
|
11
|
-
color: ${e=>e.theme.colors.primary};
|
|
12
|
-
}
|
|
13
|
-
`,At=i.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
margin-left: ${e=>e.windowSize==="small"?e.showEditIcon===!0?a.sp3:a.sp4:m.otherActionsIconContainerMarginLeft.valuePx(e.windowSize)};
|
|
16
|
-
cursor: ${e=>e.isIconClickable===!0?"pointer":"default"};
|
|
17
|
-
color: ${e=>e.theme.colors.grey1};
|
|
18
|
-
&:hover {
|
|
19
|
-
color: ${e=>e.theme.colors.primary};
|
|
20
|
-
}
|
|
21
|
-
`,ri=i(Ua)`
|
|
22
|
-
color: ${e=>e.theme.colors.hero};
|
|
23
|
-
width: ${a.sp5};
|
|
24
|
-
height: ${a.sp5};
|
|
25
|
-
margin-bottom: ${a.sp2};
|
|
26
|
-
&:hover {
|
|
27
|
-
color: ${e=>e.theme.colors.primary};
|
|
28
|
-
}
|
|
29
|
-
`,si=i(Ra)`
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
color: ${e=>e.theme.colors.hero};
|
|
32
|
-
width: ${a.sp4};
|
|
33
|
-
height: ${a.sp4};
|
|
34
|
-
&:hover {
|
|
35
|
-
color: ${e=>e.theme.colors.primary};
|
|
36
|
-
}
|
|
37
|
-
`,di=i.div`
|
|
38
|
-
display: flex;
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
color: ${e=>e.theme.colors.grey1};
|
|
41
|
-
margin-left: ${a.sp4};
|
|
42
|
-
&:hover {
|
|
43
|
-
color: ${e=>e.theme.colors.primary};
|
|
44
|
-
}
|
|
45
|
-
`,ci=i.div`
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
`,kt=i.div`
|
|
50
|
-
display: flex;
|
|
51
|
-
width: max-content;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
56
|
-
color: ${e=>e.theme.colors.hero};
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
padding-top: ${a.sp1};
|
|
59
|
-
padding-bottom: ${a.sp1};
|
|
60
|
-
position: absolute;
|
|
61
|
-
bottom: ${e=>m.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
62
|
-
z-index: 3;
|
|
63
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
64
|
-
border-radius: ${a.sp1};
|
|
65
|
-
right: ${e=>m.right.valuePx(e.windowSize)};
|
|
66
|
-
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.grey1}3D`};
|
|
67
|
-
`,pi=i.div`
|
|
68
|
-
width: auto;
|
|
69
|
-
justify-content: flex-end;
|
|
70
|
-
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
71
|
-
right: ${e=>m.actionsContainerRight.valuePx(e.windowSize)};
|
|
72
|
-
height: 100%;
|
|
73
|
-
display: flex;
|
|
74
|
-
`,V=i(Zt)`
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
width: 100%;
|
|
78
|
-
padding-left: ${a.sp3};
|
|
79
|
-
padding-right: ${a.sp3};
|
|
80
|
-
height: ${a.sp6};
|
|
81
|
-
box-sizing: border-box;
|
|
82
|
-
&:hover {
|
|
83
|
-
background-color: ${e=>e.theme.colors.background};
|
|
84
|
-
}
|
|
85
|
-
`,St=i(fa)`
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
color: ${e=>e.theme.colors.hero};
|
|
88
|
-
width: 20px;
|
|
89
|
-
height: 20px;
|
|
90
|
-
&:hover {
|
|
91
|
-
color: ${e=>e.theme.colors.primary};
|
|
92
|
-
}
|
|
93
|
-
`,Ct=i.div`
|
|
94
|
-
margin-top: ${e=>m.marginTop.valuePx(e.windowSize)};
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
`,Pt=i(Ta)`
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
width: ${a.sp4};
|
|
100
|
-
height: ${a.sp4};
|
|
101
|
-
color: ${e=>e.theme.colors.hero};
|
|
102
|
-
&:hover {
|
|
103
|
-
color: ${e=>e.theme.colors.primary};
|
|
104
|
-
}
|
|
105
|
-
`,Bt=i.div`
|
|
106
|
-
display: flex;
|
|
107
|
-
flex-direction: row;
|
|
108
|
-
align-items: center;
|
|
109
|
-
gap: ${e=>m.rightIconsGap.valuePx(e.windowSize)};
|
|
110
|
-
margin-top: ${e=>m.closeContainerMarginTop.valuePx(e.windowSize)};
|
|
111
|
-
`,Rt=i.div`
|
|
112
|
-
float: right;
|
|
113
|
-
width: ${a.sp4};
|
|
114
|
-
height: ${a.sp4};
|
|
115
|
-
display: flex;
|
|
116
|
-
`,mi=i.div`
|
|
117
|
-
height: 100%;
|
|
118
|
-
overflow: scroll;
|
|
119
|
-
`,$e=i.div`
|
|
120
|
-
display: flex;
|
|
121
|
-
flex-direction: column;
|
|
122
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
123
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
124
|
-
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
125
|
-
border-radius: ${a.sp2};
|
|
126
|
-
margin: ${a.sp3} 0;
|
|
127
|
-
`,Ae=i.div`
|
|
128
|
-
display: flex;
|
|
129
|
-
flex-direction: column;
|
|
130
|
-
padding-top: ${a.sp3};
|
|
131
|
-
`,ui=i.div``,ke=i($a)`
|
|
132
|
-
color: ${e=>e.theme.colors.primary};
|
|
133
|
-
`,z=i.div`
|
|
134
|
-
display: flex;
|
|
135
|
-
flex: 1;
|
|
136
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
137
|
-
min-height: 1px;
|
|
138
|
-
max-height: 1px;
|
|
139
|
-
`,yi=i(Aa)`
|
|
140
|
-
display: flex;
|
|
141
|
-
align-items: center;
|
|
142
|
-
justify-content: space-between;
|
|
143
|
-
color: ${e=>e.theme.colors.champion};
|
|
144
|
-
margin-top: ${a.sp2};
|
|
145
|
-
height: 31px;
|
|
146
|
-
`,hi=i(ka)`
|
|
147
|
-
color: ${e=>e.theme.colors.champion};
|
|
148
|
-
`,bi=i.div`
|
|
149
|
-
display: flex;
|
|
150
|
-
flex-direction: column;
|
|
151
|
-
`,gi=i.div`
|
|
152
|
-
display: flex;
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
155
|
-
padding-left: ${e=>m.containerPaddingLeft.valuePx(e.windowSize)};
|
|
156
|
-
padding-right: ${e=>m.containerPaddingRight.valuePx(e.windowSize)};
|
|
157
|
-
overflow-x: hidden;
|
|
158
|
-
margin-top: ${e=>m.navBarHeight.valuePx(e.windowSize)};
|
|
159
|
-
`,xi=i.div`
|
|
160
|
-
display: flex;
|
|
161
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
162
|
-
align-items: ${e=>e.windowSize==="small"?"unset":"center"};
|
|
163
|
-
width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
|
|
164
|
-
`,fi=i.div`
|
|
165
|
-
display: flex;
|
|
166
|
-
margin-bottom: ${a.sp3};
|
|
167
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
168
|
-
align-items: ${e=>e.windowSize==="small"?"unset":"center"};
|
|
169
|
-
width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
|
|
170
|
-
`,wi=i(Ia)`
|
|
171
|
-
display: flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
flex-grow: 1;
|
|
174
|
-
${e=>`${Ka.formTitle.style(e.windowSize)}`};
|
|
175
|
-
color: ${e=>e.theme.colors.primary};
|
|
176
|
-
margin-bottom: ${e=>m.formTitleMarginTopBottom.valuePx(e.windowSize)};
|
|
177
|
-
margin-bottom: ${e=>m.formTitleMarginTopBottom.valuePx(e.windowSize)};
|
|
178
|
-
word-break: break-all;
|
|
179
|
-
padding: ${e=>`${a.sp0} ${m.formTitlePaddingLeftRight.valuePx(e.windowSize)}`};
|
|
180
|
-
`,Ti=i.div`
|
|
181
|
-
padding: ${a.sp3};
|
|
182
|
-
display: flex;
|
|
183
|
-
align-items: center;
|
|
184
|
-
justify-content: center;
|
|
185
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
186
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
187
|
-
border-radius: ${a.sp2};
|
|
188
|
-
color: ${e=>e.theme.colors.hero};
|
|
189
|
-
margin-bottom: ${e=>m.marginBottom.valuePx(e.windowSize)};
|
|
190
|
-
`,vi=i(Wt)`
|
|
191
|
-
display: flex;
|
|
192
|
-
width: 176px;
|
|
193
|
-
color: ${e=>e.theme.colors.primary};
|
|
194
|
-
`,Di=i(Wt)`
|
|
195
|
-
display: flex;
|
|
196
|
-
width: calc(100% - 176px);
|
|
197
|
-
justify-content: flex-end;
|
|
198
|
-
color: ${e=>e.theme.colors.primary};
|
|
199
|
-
`,zt=i(ja)`
|
|
200
|
-
display: flex;
|
|
201
|
-
color: ${e=>e.borderColor};
|
|
202
|
-
align-items: center;
|
|
203
|
-
justify-content: flex-end;
|
|
204
|
-
padding: 1px 6px 1px 6px;
|
|
205
|
-
border: ${e=>`1px solid ${e.borderColor}`};
|
|
206
|
-
border-radius: ${a.sp1};
|
|
207
|
-
min-width: fit-content;
|
|
208
|
-
`,Ii=i.div`
|
|
209
|
-
display: flex;
|
|
210
|
-
flex-direction: column;
|
|
211
|
-
height: ${a.sp11};
|
|
212
|
-
`,ji=i(xa)`
|
|
213
|
-
height: ${a.sp3};
|
|
214
|
-
width: ${a.sp3};
|
|
215
|
-
color: ${e=>e.theme.colors.hero};
|
|
216
|
-
`,$i=i.div`
|
|
217
|
-
display: flex;
|
|
218
|
-
align-items: center;
|
|
219
|
-
margin-left: ${a.sp2};
|
|
220
|
-
margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.windowSize)};
|
|
221
|
-
align-self: center;
|
|
222
|
-
`,Se=i(va)`
|
|
223
|
-
margin-left: ${a.sp2};
|
|
224
|
-
color: ${e=>e.theme.colors.hero};
|
|
225
|
-
`,Ai=i.div``,ki=i.div`
|
|
226
|
-
display: flex;
|
|
227
|
-
flex-direction: column;
|
|
228
|
-
gap: ${a.sp2};
|
|
229
|
-
margin: ${e=>e.windowSize==="small"?`0 ${a.sp3} ${a.sp6} ${a.sp3}`:`0 ${a.sp8} ${a.sp5} ${a.sp8}`};
|
|
230
|
-
`,Mt=i.div`
|
|
231
|
-
display: flex;
|
|
232
|
-
justify-content: space-between;
|
|
233
|
-
width: ${e=>m.refundPopupWidth.valuePx(e.windowSize)};
|
|
234
|
-
`,Nt=i(Zt)`
|
|
235
|
-
text-align: left;
|
|
236
|
-
color: ${e=>e.theme.colors.grey1};
|
|
237
|
-
`,Lt=i(Ma)`
|
|
238
|
-
justify-content: end;
|
|
239
|
-
display: flex;
|
|
240
|
-
flex: 1;
|
|
241
|
-
`,Et=i.div`
|
|
242
|
-
display: flex;
|
|
243
|
-
align-items: center;
|
|
244
|
-
justify-content: center;
|
|
245
|
-
position: relative;
|
|
246
|
-
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
247
|
-
color: ${e=>e.theme.colors.hero};
|
|
248
|
-
opacity: ${e=>e.isDisabled?.5:1};
|
|
249
|
-
&:hover {
|
|
250
|
-
color: ${e=>e.theme.colors.primary};
|
|
251
|
-
}
|
|
252
|
-
`,Ot=i(wa)`
|
|
253
|
-
display: flex;
|
|
254
|
-
width: ${a.sp4};
|
|
255
|
-
height: ${a.sp4};
|
|
256
|
-
align-items: center;
|
|
257
|
-
justify-content: center;
|
|
258
|
-
`,Si=i.div`
|
|
259
|
-
display: flex;
|
|
260
|
-
justify-content: space-evenly;
|
|
261
|
-
margin-top: 0px;
|
|
262
|
-
position: fixed;
|
|
263
|
-
top: 0px;
|
|
264
|
-
width: ${e=>m.navBarContainerWidth.valuePercentage(e.windowSize)};
|
|
265
|
-
z-index: 3;
|
|
266
|
-
`;export{Wi as default};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{x as F,u as L,e as M,O as T,aa as W,aS as G,aM as H,cQ as Q,V as r,bE as X,ae as J,aT as K,o as u,gl as Y}from"./index-AibcVs8o.js";import{a as U}from"./sentry-D1ATZ09m.js";import{n as h}from"./mui-CKa4KRJ2.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-BxESVqJD-DxFAH_h3.js";import"./liveblocks-CkHat3gw.js";import"./core-BkNBJTfZ.js";import"./recharts-Bm8U4EbE.js";import"./zeni-epic-state-n9DAAepz.js";import"./lottie-CiNEXYTH.js";import"./analytics-dIF_tB7z.js";import"./lexical--yBvDuds.js";import"./utils-CYPfyH0l.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="b97046b6-44fa-498f-80b7-80a8a31cbc84",e._sentryDebugIdIdentifier="sentry-dbid-b97046b6-44fa-498f-80b7-80a8a31cbc84")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new F(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=M(),t=T.getLocalizedStrings().commonSetUp.approval,P=T.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:V,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const O=x.handleSubmit(()=>{N()}),q=async(i,d)=>{s(d)};return U.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const z=H(d);Q(()=>q($,z))}});return()=>{i.unsubscribe()}}),U.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(J,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:O,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(K,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
width: 100%;
|
|
6
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
-
box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
8
|
-
`,ie=h.div`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
12
|
-
box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
13
|
-
border-radius: ${u.sp2};
|
|
14
|
-
`,ne=h.div`
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: flex-start;
|
|
17
|
-
height: 100%;
|
|
18
|
-
overflow-y: auto;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
align-items: center;
|
|
21
|
-
`,pe=h.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
flex: 1;
|
|
24
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
25
|
-
min-height: 1px;
|
|
26
|
-
max-height: 1px;
|
|
27
|
-
`;export{le as D,Ae as default,k as uniqueFormName,Ie as uniqueName};
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import{e as W,O as S,V as t,bE as G,L as V,ac as b,x as r,an as N,o as i,aQ as z,c1 as P,cy as q,cz as F,cA as O,da as J,u as l,bb as K,N as k,ba as Q,d as j,d9 as X,bv as Y,w as Z}from"./index-AibcVs8o.js";import{n as o}from"./mui-CKa4KRJ2.js";import{a as ee}from"./sentry-D1ATZ09m.js";import"./liveblocks-CkHat3gw.js";import"./core-BkNBJTfZ.js";import"./recharts-Bm8U4EbE.js";import"./zeni-epic-state-n9DAAepz.js";import"./lottie-CiNEXYTH.js";import"./analytics-dIF_tB7z.js";import"./lexical--yBvDuds.js";import"./utils-CYPfyH0l.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="598f0075-8dbb-4899-9e22-c8bd471156bf",e._sentryDebugIdIdentifier="sentry-dbid-598f0075-8dbb-4899-9e22-c8bd471156bf")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,M=()=>{h(!0)},U={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(T,{}),t.jsx(le,{}),t.jsx(T,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:M,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{y(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(q,{titleComponent:t.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(F,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=o.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
5
|
-
margin-bottom: ${e=>e.isLastSection?s.lastWrapperMarginBottom.valuePx(e.windowSize):s.wrapperMarginBottom.valuePx(e.windowSize)};
|
|
6
|
-
.icons {
|
|
7
|
-
display: none;
|
|
8
|
-
}
|
|
9
|
-
&:hover {
|
|
10
|
-
.icons {
|
|
11
|
-
display: flex;
|
|
12
|
-
}
|
|
13
|
-
> div:last-of-type {
|
|
14
|
-
border-color: ${e=>e.isUpdatingApprovalRules===!0?e.theme.colors.grey3:e.theme.colors.primary};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
`,ie=o(K)`
|
|
18
|
-
display: flex;
|
|
19
|
-
position: relative;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: space-between;
|
|
22
|
-
text-align: center;
|
|
23
|
-
width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
|
|
24
|
-
gap: ${i.sp2};
|
|
25
|
-
`,re=o.div`
|
|
26
|
-
align-items: center;
|
|
27
|
-
display: flex;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
`,le=o.div`
|
|
30
|
-
width: ${i.sp8};
|
|
31
|
-
height: 2px;
|
|
32
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
33
|
-
`,T=o.div`
|
|
34
|
-
width: 6px;
|
|
35
|
-
height: 6px;
|
|
36
|
-
border-radius: 3px;
|
|
37
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
38
|
-
`,se=o.div`
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
align-items: flex-start;
|
|
42
|
-
padding: ${e=>s.ruleWrapperPadding.valuePx(e.windowSize)};
|
|
43
|
-
gap: 10px;
|
|
44
|
-
|
|
45
|
-
width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
|
|
46
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
47
|
-
|
|
48
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
49
|
-
|
|
50
|
-
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
51
|
-
border-radius: ${i.sp2};
|
|
52
|
-
|
|
53
|
-
flex: none;
|
|
54
|
-
order: 1;
|
|
55
|
-
flex-grow: 0;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
position: relative;
|
|
59
|
-
`,ae=o.ul`
|
|
60
|
-
${e=>`${E.stepper.style(e.windowSize)}`};
|
|
61
|
-
position: relative;
|
|
62
|
-
padding-left: ${i.sp6};
|
|
63
|
-
list-style: none;
|
|
64
|
-
box-sizing: initial;
|
|
65
|
-
margin: 0;
|
|
66
|
-
&::before {
|
|
67
|
-
display: inline-block;
|
|
68
|
-
content: "";
|
|
69
|
-
position: absolute;
|
|
70
|
-
top: ${e=>s.stepperTop.valuePx(e.windowSize)};
|
|
71
|
-
left: ${e=>s.stepperLeft.valuePx(e.windowSize)};
|
|
72
|
-
width: 10px;
|
|
73
|
-
height: ${e=>e.isSingleStep?"0%":"100%"};
|
|
74
|
-
border-left: 2px solid ${e=>e.theme.colors.grey1};
|
|
75
|
-
}
|
|
76
|
-
`,ne=o.li`
|
|
77
|
-
position: relative;
|
|
78
|
-
counter-increment: list;
|
|
79
|
-
min-height: ${e=>s.stepperItemMinHeight.valuePx(e.windowSize)};
|
|
80
|
-
display: flex;
|
|
81
|
-
justify-content: flex-start;
|
|
82
|
-
align-items: center;
|
|
83
|
-
padding-left: ${e=>s.stepperItemPaddingLeft.valuePx(e.windowSize)};
|
|
84
|
-
gap: ${i.sp1};
|
|
85
|
-
|
|
86
|
-
> div:last-of-type > span.operator:last-of-type {
|
|
87
|
-
visibility: hidden;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&:not(:last-child) {
|
|
91
|
-
padding-bottom: 20px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&::before {
|
|
95
|
-
display: inline-block;
|
|
96
|
-
content: "";
|
|
97
|
-
position: absolute;
|
|
98
|
-
top: ${e=>s.stepperItemTop.valuePx(e.windowSize)};
|
|
99
|
-
left: ${e=>s.stepperItemLeft.valuePx(e.windowSize)};
|
|
100
|
-
height: ${e=>e.isSingleStep?"0%":"100%"};
|
|
101
|
-
width: 10px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&.stepperItem {
|
|
105
|
-
flex-wrap: wrap;
|
|
106
|
-
&::before {
|
|
107
|
-
border-left: 2px solid ${e=>e.theme.colors.grey1};
|
|
108
|
-
}
|
|
109
|
-
&:last-child::before {
|
|
110
|
-
border-left: 2px solid ${e=>e.theme.colors.grey5};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&::after {
|
|
114
|
-
content: counter(list);
|
|
115
|
-
position: absolute;
|
|
116
|
-
width: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
|
|
117
|
-
height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
|
|
118
|
-
top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
|
|
119
|
-
left: -${i.sp6};
|
|
120
|
-
${Z.standardMedium.css};
|
|
121
|
-
text-align: center;
|
|
122
|
-
color: ${e=>e.theme.colors.grey1};
|
|
123
|
-
border: 2px solid ${e=>e.theme.colors.grey1};
|
|
124
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
125
|
-
display: flex;
|
|
126
|
-
justify-content: center;
|
|
127
|
-
align-items: center;
|
|
128
|
-
border-radius: 50%;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
`,pe=o.span`
|
|
132
|
-
color: ${j.alertDark};
|
|
133
|
-
`,de=o.span`
|
|
134
|
-
color: ${j.successDark};
|
|
135
|
-
`,R=o.span`
|
|
136
|
-
color: ${e=>e.theme.colors.primary};
|
|
137
|
-
`,ce=o.div`
|
|
138
|
-
display: flex;
|
|
139
|
-
align-items: center;
|
|
140
|
-
gap: ${i.sp2};
|
|
141
|
-
`,ue=o.div`
|
|
142
|
-
display: flex;
|
|
143
|
-
gap: ${i.sp5};
|
|
144
|
-
`,I=o(X)`
|
|
145
|
-
width: ${i.sp3};
|
|
146
|
-
height: ${i.sp3};
|
|
147
|
-
cursor: ${e=>e.$isDisabled===!0?"not-allowed":"pointer"};
|
|
148
|
-
color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:e.theme.colors.hero};
|
|
149
|
-
pointer-events: ${e=>e.$isDisabled===!0?"none":"auto"};
|
|
150
|
-
&:hover {
|
|
151
|
-
color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:j.important};
|
|
152
|
-
}
|
|
153
|
-
`,D=o.span`
|
|
154
|
-
display: inline-flex;
|
|
155
|
-
cursor: not-allowed;
|
|
156
|
-
`,C=o(Y)`
|
|
157
|
-
width: ${i.sp3};
|
|
158
|
-
height: ${i.sp3};
|
|
159
|
-
cursor: ${e=>e.$isDisabled===!0?"not-allowed":"pointer"};
|
|
160
|
-
color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:e.theme.colors.hero};
|
|
161
|
-
pointer-events: ${e=>e.$isDisabled===!0?"none":"auto"};
|
|
162
|
-
&:hover {
|
|
163
|
-
color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:e.theme.colors.primary};
|
|
164
|
-
}
|
|
165
|
-
`,he=o(Q)`
|
|
166
|
-
width: ${i.sp4};
|
|
167
|
-
height: ${i.sp4};
|
|
168
|
-
color: ${e=>e.theme.colors.hero};
|
|
169
|
-
`,B=o.span`
|
|
170
|
-
color: ${e=>e.theme.colors.hero};
|
|
171
|
-
`,A=o.div`
|
|
172
|
-
display: inherit;
|
|
173
|
-
gap: inherit;
|
|
174
|
-
`,L=o.span`
|
|
175
|
-
${e=>`${E.amount.style(e.windowSize)}`};
|
|
176
|
-
color: ${e=>e.theme.colors.primary};
|
|
177
|
-
word-break: break-word;
|
|
178
|
-
`,f={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Ce=({approvalView:e,onBackClick:d,onEditRuleClick:w,onDeleteRuleClick:c})=>{const y=W(),{fetchState:g,deleteStatus:v}=e,h=S.getLocalizedStrings().commonSetUp.approval,n=S.getLocalizedStrings().spendManagement.billPay.billPayApproval,m=v.fetchState,$=e.listeningToPusherEvent;return t.jsxs(me,{children:[t.jsx(G,{title:h.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{d()},source:"BillPayApprovalRulesPage"}),t.jsxs(xe,{children:[t.jsx(ge,{windowSize:y,children:n.approvalPageSubTitle}),g==="In-Progress"||g==="Not-Started"||m==="In-Progress"?t.jsx(we,{children:t.jsx(V,{size:"ExtraLarge",start:!0})}):g==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((x,a)=>t.jsx(te,{showDeleteBtn:a!==0,disableButtons:$===!0&&x.approvalRuleId===e.newApprovalRuleId,approvalRule:x,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:w,onDeleteRuleClick:c},x.approvalRuleId)),t.jsxs($e,{windowSize:y,onClick:()=>{w()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(be,{}),t.jsx(fe,{children:h.addApprovalText})]})]}):null]})]})},me=o.div`
|
|
179
|
-
display: flex;
|
|
180
|
-
min-height: 100%;
|
|
181
|
-
flex-direction: column;
|
|
182
|
-
width: 100%;
|
|
183
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
184
|
-
`,xe=o.div`
|
|
185
|
-
display: flex;
|
|
186
|
-
justify-content: flex-start;
|
|
187
|
-
height: 100%;
|
|
188
|
-
overflow-y: auto;
|
|
189
|
-
flex-direction: column;
|
|
190
|
-
align-items: center;
|
|
191
|
-
`,we=o.div`
|
|
192
|
-
display: flex;
|
|
193
|
-
width: 100%;
|
|
194
|
-
min-height: calc(100vh - 150px);
|
|
195
|
-
flex-direction: column;
|
|
196
|
-
justify-content: center;
|
|
197
|
-
align-items: center;
|
|
198
|
-
gap: ${i.sp3};
|
|
199
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
200
|
-
`,ge=o(N)`
|
|
201
|
-
color: ${e=>e.theme.colors.hero};
|
|
202
|
-
display: flex;
|
|
203
|
-
justify-content: center;
|
|
204
|
-
width: ${e=>f.titleWidth.valuePx(e.windowSize)};
|
|
205
|
-
padding-top: ${e=>f.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
206
|
-
padding-bottom: ${e=>f.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
207
|
-
`,$e=o(N)`
|
|
208
|
-
cursor: pointer;
|
|
209
|
-
display: flex;
|
|
210
|
-
flex-direction: row;
|
|
211
|
-
justify-content: center;
|
|
212
|
-
align-items: center;
|
|
213
|
-
padding: ${i.sp3} ${i.sp4};
|
|
214
|
-
gap: ${e=>f.addApprovalGap.valuePx(e.windowSize)};
|
|
215
|
-
|
|
216
|
-
width: ${e=>f.width.valuePx(e.windowSize)};
|
|
217
|
-
height: ${i.sp8};
|
|
218
|
-
|
|
219
|
-
background: ${e=>e.theme.colors.grey5};
|
|
220
|
-
|
|
221
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
222
|
-
|
|
223
|
-
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1}
|
|
224
|
-
${e.theme.colors.dropShadowNormal}`};
|
|
225
|
-
border-radius: ${i.sp2};
|
|
226
|
-
box-sizing: border-box;
|
|
227
|
-
color: ${e=>e.theme.colors.hero};
|
|
228
|
-
&:hover {
|
|
229
|
-
color: ${e=>e.theme.colors.primary};
|
|
230
|
-
div {
|
|
231
|
-
color: ${e=>e.theme.colors.primary};
|
|
232
|
-
}
|
|
233
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
234
|
-
}
|
|
235
|
-
margin-bottom: ${i.sp6};
|
|
236
|
-
`,be=o(J)`
|
|
237
|
-
width: ${i.sp3};
|
|
238
|
-
height: ${i.sp3};
|
|
239
|
-
`,fe=o.div`
|
|
240
|
-
color: ${e=>e.theme.colors.hero};
|
|
241
|
-
`;export{Ce as default};
|