@zeniai/web-cockpit-ui 1.14.98-qa → 1.14.99-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-BRWOdhMx-B-izv--D.js +21 -0
- package/dist/assets/{AIPerformancePage-TtdFArUl-uXser-uf.js → AIPerformancePage-4v4Fkm9f-8H5taohv.js} +108 -108
- package/dist/assets/AccountInfoPage-Ca_vKG58--BfC_vXh.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BXX4TyeS-C4EJ3VMJ.js → AccountInfoPageContent-Dv1IPcdF-BHWFRnzI.js} +19 -19
- package/dist/assets/AccountLockedInfoModal-CEk5d9hq-BMstREsN.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-BZsVhDyw-B570cCNk.js → AccountReconDetailsDrawerPage-DYKjrPwN-Drg0SGIJ.js} +54 -54
- package/dist/assets/{AccountRow-COxNWv3J-B4EUrg0i.js → AccountRow-BM3xLbeh-BSdpkM-d.js} +30 -30
- package/dist/assets/{AccountsPromoCardStack-BW7r2R96-D8N78ah8.js → AccountsPromoCardStack-CTkwARBJ-Cy5pYNXf.js} +30 -30
- package/dist/assets/AddAddressForCardDrawer-DfOyebHX-DhjpIE6j.js +6 -0
- package/dist/assets/{AddToWalletPage-CXhBOHda-BeDX9RGw.js → AddToWalletPage-OJBvAKUj-B4ZmMeKh.js} +13 -13
- package/dist/assets/{AgingReportsPage-CX3Te0mD-BIMPcWZD.js → AgingReportsPage-n-UKn3Ei-CZEEMMir.js} +10 -10
- package/dist/assets/{AllUserItems-Cd2jEIM9-B9hdjONU.js → AllUserItems-BsvKEVcx-lxn8aic0.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-BCBhgQDY-C0EKPdXU.js → ApAgingDetailPage-Duu2uAEr-DUMvdGKK.js} +5 -5
- package/dist/assets/{AppBasePage-BRcQ7IPJ-DutcAwno.js → AppBasePage-DoCF494Z-qPWVG34b.js} +16 -16
- package/dist/assets/{AppDrawerContent-DQlHQEcs-DLSmKyRJ.js → AppDrawerContent-DM1t0oLS-9US_DgsB.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-Cqt8FvLJ-Dcokd50I.js → ApprovalRulesSettingsPage-GZCo6_i2-CJH6P32S.js} +6 -6
- package/dist/assets/{ArAgingChart-BvAQf_dB-DuZvWO-Q.js → ArAgingChart-CsFDVdeO-C4PujVrW.js} +4 -4
- package/dist/assets/ArAgingDetailPage-CaOr6vAU-B5uL9zyI.js +46 -0
- package/dist/assets/{AttachmentView-e6OZT5St-DqYOouQl.js → AttachmentView-B0d42oAf-DVHm34mB.js} +6 -6
- package/dist/assets/{BankAccountSection-DWKYMZid-VBEJaF0G.js → BankAccountSection-Bgdk93V0-Cg5PjZDc.js} +7 -7
- package/dist/assets/BankAccountWarningSection-DMRmF2yM-BgfDzJHZ.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-DLnQeHtD-BXUv6CG7.js → BankConnectionsSettingsPage-BpwKq93l-Brctq4SF.js} +16 -16
- package/dist/assets/BillDetailPage-BG7FhHEq-DUv2nuJK.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-A9_oblKa.js +27 -0
- package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-BjMEKdHG.js +235 -0
- package/dist/assets/BillPayPromoPage-aGKOv8Ur-eBwd93N4.js +84 -0
- package/dist/assets/{BillPaySetUpPage-CneIMbul-BFdnuBwg.js → BillPaySetUpPage-DRCjyEfB-XKTwWmRS.js} +2 -2
- package/dist/assets/{BillingSettingsPage-35KDGxi0-CUXbiJI4.js → BillingSettingsPage-CdYb74V7-HQVzU-6G.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-B2SeSM_K-KjC1YEHo.js → BillsBulkReviewDrawerPage-D8EGfY5P-B0Wqyx4s.js} +1 -1
- package/dist/assets/{BoxItem-BGDuiQll-SbLnCH_S.js → BoxItem-WOrvBzns-DN4WYKEf.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-GZnJ9G9I-BIwYlUUz.js → BusinessVerificationPage-CbqJIVpz-DVX5hTQl.js} +10 -10
- package/dist/assets/{CardNumberSubText-COHmqgEx-CwfhKSB3.js → CardNumberSubText-DBOH0_yP-3HOBgKpF.js} +8 -8
- package/dist/assets/{CashbackDetailPage-DvA_0POP-zs6KXs-G.js → CashbackDetailPage-D-kXy6LW-CbbkR_T0.js} +26 -26
- package/dist/assets/{ChargeCardDetailPage-DF69jsTG-hPfyciQI.js → ChargeCardDetailPage-BQnJsfn5-C0NtbZa-.js} +244 -244
- package/dist/assets/ChargeCardListPage-130ILwkr-ZB2yzsHG.js +412 -0
- package/dist/assets/{ChargeCardListTable-BEYWfP5G-BRCBGTIM.js → ChargeCardListTable-EGkwcy7i-DEc29h5o.js} +67 -67
- package/dist/assets/ChargeCardPromoPage-BwqrXrY--IstKF_Na.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BsTAJGSf-CKUm4_l7.js → ChargeCardSetupPage-DRzB7Rt4-DmQFjafd.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-BwuOooT4-CHM4k28L.js → ChargeCardStatementsPage-C3NxKjmB-C8FsLWHJ.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-CC3EUXpO-CF5fGfSc.js → CheckDepositDrawerPage-ClxKj2js-Do24RzJh.js} +17 -17
- package/dist/assets/{CollapsableReportTable-Bju2JSCg-BSE4kNvo.js → CollapsableReportTable-xkNXkjfh-CtzSwjPt.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CtHtINKb-CFehJGSv.js → CompanyOfficerDetailsSection-BtUBatbQ-Con3Jm3w.js} +30 -30
- package/dist/assets/{CompanyPassportCard-ClihOV6I-GVUlJP8e.js → CompanyPassportCard-BOxM716U-TVvNmGP9.js} +7 -7
- package/dist/assets/{CompanyPassportPage-Bzbp9vtj-4dA0AY_q.js → CompanyPassportPage-DzE7sm8S-Bu9tLN80.js} +40 -40
- package/dist/assets/{CompleteProfile-C88rpvIR-DxWKc-5-.js → CompleteProfile-BjGSPASa-AWB6Qzlv.js} +3 -3
- package/dist/assets/ConfettiBurst-1rYKpbAj-DRsprSNw.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-DJWcJCPR-Dl9O0TVh.js → CreateOrEditVendorPage-WQeDCj-E-D6Y6HtQ7.js} +20 -20
- package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-CloaEiop.js +224 -0
- package/dist/assets/{CurrencySelectField-9MMlAXHh-ORBioImf.js → CurrencySelectField-AjAWhg6e-BY-FVQ5N.js} +4 -4
- package/dist/assets/CustomerOnboardingActivationPage-BJhw-PvI-BRcGbX9s.js +88 -0
- package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-ByC2CvtB.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-EBEAYH3x-XKk3Vj6i.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-DKx0xsM-.js} +15 -15
- package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-pyXbZEvq.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-BWvGF8wk-BF0Atf4b.js → CustomerOnboardingPage-CvN9Jrdy-CzriWSkS.js} +4 -4
- package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-7zbQywoe.js +202 -0
- package/dist/assets/{Dashboard-Zq5BpBhF-Clq5EYRk.js → Dashboard-_o0Ftdv8-_2fT5Ubv.js} +55 -55
- package/dist/assets/{DashboardReportPage-Pie-FQ1e-WfSD6Vb-.js → DashboardReportPage-Cu5wqWkj-BHVvAcwu.js} +20 -20
- package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-Ds_VkWfq.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-C6o7UraM-13lTBs69.js → DepositAccTransactionItem-BOPK7-7P-CUK10p36.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-DWIzj9EC-aUyx_5K-.js → DepositAccTransactionListPage-oj9tntbI-BS3VI9z2.js} +4 -4
- package/dist/assets/{DomesticWireDetailsPage-BbuaFhlm-Dq9oLE4F.js → DomesticWireDetailsPage-FGdEilUB-DiafQBWa.js} +1 -1
- package/dist/assets/{DownloadOverlay-smXqu_-_-HaHQ4oPo.js → DownloadOverlay-c57lEf_V-LFGP7g4c.js} +39 -39
- package/dist/assets/{DrawerPage-C-NGhaFc-C_xh6M62.js → DrawerPage-inbhWwND-Db0y8xmo.js} +18 -18
- package/dist/assets/EditPeoplePage-DJthuIP4-C5mu6ajz.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-CsQHoeMv.js +865 -0
- package/dist/assets/EntityDetailPage-DbTiF9Hs-C-1lJOCB.js +18 -0
- package/dist/assets/{EntitySummarySection-D7ui3VxW-CERyjpXQ.js → EntitySummarySection-CHgrPo86-DQf0eS91.js} +9 -9
- package/dist/assets/{ExpenseAutomationOverviewPage-Cci1pEY4-1sL_AHg7.js → ExpenseAutomationOverviewPage-QZT_UFXf-CqWIAvtS.js} +27 -27
- package/dist/assets/{ExpenseAutomationPage-DsPGEQpL-DKHafJ5b.js → ExpenseAutomationPage-Y7V_Z8rd-BtMIiHAT.js} +63 -63
- package/dist/assets/{ExpressPayPage-ddPMg7wE-DPR1g8Lc.js → ExpressPayPage-CIp_R6ZQ-bLqdW2c-.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-B7rx89MJ-D3LB_wGw.js → FeaturePreviewPage-qsUO3mUu-Bg5tciIN.js} +3 -3
- package/dist/assets/{FollowStepsSection-WUNvyjJh-B3nIPwPh.js → FollowStepsSection-ebmR-eLP-DUvk8yUe.js} +49 -49
- package/dist/assets/{GlobalReviewListPage-CrEL8cxP-qAlR9aFX.js → GlobalReviewListPage-9V-xoqvs-DgQFHT5d.js} +14 -14
- package/dist/assets/{InformationCardStack-cYN7bwE3-sO0pAOzz.js → InformationCardStack-DnB7TmOk-DRRzuuUg.js} +8 -8
- package/dist/assets/{InsightsCardStack-CAuhoPST-B5pOanGY.js → InsightsCardStack-BBczCYEz-DTWoyTqN.js} +12 -12
- package/dist/assets/InsightsSection-BTXj5WUe-ByTIWrkc.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CBqEJpyq-GRgtPKr0.js → IntegrationsSettingsPage-CByj2tO4-C70tL_8j.js} +10 -10
- package/dist/assets/{InternationalWireSwiftDetailsPage-Bg2_G0O4-BSPnTjV8.js → InternationalWireSwiftDetailsPage-4-pl1ozv-BerAwOXU.js} +17 -17
- package/dist/assets/{InternationalWireVerificationPage-BdaKAePs-CkGYQoGn.js → InternationalWireVerificationPage-kIajgPZt-CeT00ZG8.js} +26 -26
- package/dist/assets/{InviteFormPage-a7CtHDQi-DSGkeOn0.js → InviteFormPage-XsnZcAvb-CP-m9x5T.js} +24 -24
- package/dist/assets/{InvitePageListView-D0flsJMi-0Jk6a2Yk.js → InvitePageListView-HfsehyxK-NVvr8Ith.js} +78 -78
- package/dist/assets/InvitePeoplePage-DrBtwpMH-CbYg413Q.js +12 -0
- package/dist/assets/{InvoiceUploadSection-D6gMuygS-DsLHKXnW.js → InvoiceUploadSection-DPd4VmqZ-CDlXjsFg.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-_zy-SJN0-pxLtKqbn.js → IssueChargeCardPage-xbfFhV0O-D9cPo91Q.js} +34 -34
- package/dist/assets/{LabeledAddressValue-CXqpyfBQ-C92S2n2L.js → LabeledAddressValue-CB_KH7v5-BfaoCJC2.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-D-0wb98p-CikvqVxv.js → LabeledAddressValueField-Bt41wdNQ-C-99cOeY.js} +4 -4
- package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-BqFptUno.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-B-OgiRpS-OWY6lxtT.js → LabeledCreatableSingleSelectField-fycRE7PX-Hf4cCYiq.js} +4 -4
- package/dist/assets/LabeledDocumentField-C73vQNgq-BAncal8r.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-D54g8qxW-StSaD31c.js → LabeledDropDownFormattedTextField-DGb_bDyp-BCPR37EJ.js} +7 -7
- package/dist/assets/{LabeledText-BJi28Cmu-D9lfYP7U.js → LabeledText-yhm8qxrA-Bs5CTGJn.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-DWc0c9MZ.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DC0r0kWN.js} +23 -23
- package/dist/assets/{LabeledZeniRolesDropDownField--9AjGtEh-BGkQVvtD.js → LabeledZeniRolesDropDownField-DGkU72cd-ub025LyJ.js} +25 -25
- package/dist/assets/LinkJETransactionPage-C0onrP5t-BH-iwj4o.js +98 -0
- package/dist/assets/{LockCardPage-4ihNCAhG-BCEngBp6.js → LockCardPage-DaVzuRMw-Dq4q5Qyn.js} +21 -21
- package/dist/assets/{LowBalancePopup-YdUL24Wb-Cp0qxN-v.js → LowBalancePopup-Dd9HLWlh-9AO78nGr.js} +4 -4
- package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-CbO6Gy8N.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-6hv3VXVe.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-DGyc9KKZ.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-B-YTZWYj-Dgy0fFVg.js → MagicLinkSuccessPage-DbhdGmhh-Dlqur3CF.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-RHv_GuEq-y4Cr3bt2.js → MagicLinkTitleSection-Bx92291D-eyJD0RqY.js} +4 -4
- package/dist/assets/MailingDetailsSection-D-tnK244-DkMA7qYY.js +21 -0
- package/dist/assets/Menu-0YHUdU0n-DClJzSBJ.js +17 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-CryrCaA2-BKVxzlg0.js → MyBankConnectionsSettingsPage-Dn9AT8p1-DOZcDQsI.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-DmmwfwjV-D-UqXttD.js → MyPendingActivationChargeCardListPage-DrQu6s7j-CuceVEXz.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BspAqqsh-DUIa5pOA.js → MyProfileSettingsPage-CBvjEd7r-BTYXHZnd.js} +10 -10
- package/dist/assets/{NavBarWithPicker-C7xr7tTs-CXcnIkbM.js → NavBarWithPicker-aXn2QYh1-wbQMsyuO.js} +5 -5
- package/dist/assets/{NavigationArrow-rBOsZ92g-fpwJrM5H.js → NavigationArrow-JLUXaIrz-Dqbhc2Cm.js} +8 -8
- package/dist/assets/{NavigationDots-CautbD-g-BZ85pLrg.js → NavigationDots-B0_dDbgu-D0YfkCXB.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-DD4raaWT-DqQ8tI0s.js → NewGlobalMerchantPage-B_019EtP-DM6Ow8UK.js} +12 -12
- package/dist/assets/NoDataChart-DLKHNXD4-tDLmbg2P.js +26 -0
- package/dist/assets/NoDataTable-BMD2qygC-BimI42bf.js +8 -0
- package/dist/assets/{NotFoundPage-D-nIKeoL-BrOOdcPB.js → NotFoundPage-BEya4LS2-BAtVahFo.js} +7 -7
- package/dist/assets/{NotificationSettingsPage-DP3xTLvr-D68mpAoX.js → NotificationSettingsPage-C9SjRKCu-AB1K2bpw.js} +23 -23
- package/dist/assets/NotificationsListConfig-OCeJNw1G-D_0tuWLm.js +1 -0
- package/dist/assets/{NotificationsPage-DkDGBzhT-BJUrRrH6.js → NotificationsPage-FJHx_WBG-DVMmN4nH.js} +49 -49
- package/dist/assets/{OpExByVendorPage-CtcdC3f9-2hXVNqVf.js → OpExByVendorPage-Dxk68R6U-DAiWfakx.js} +12 -12
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DZQfrAEK.js → OverlayContainerPage-Daz3A7cI-8v0sqF2w.js} +1 -1
- package/dist/assets/PandLWithForecastPage-Bu49FbWD-CfqbniUD.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BjcqKBLG-CUIvRQIH.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-ByN70cgf.js} +8 -8
- package/dist/assets/{PeoplePage-DCI7v6ru-BGUJ5TP9.js → PeoplePage-DN5VtG7Q-BobeSyfg.js} +29 -29
- package/dist/assets/Preview-B4cYjk3Q.js +1 -0
- package/dist/assets/{ProductsCarousel-Dqm1bC2_-D6IxIf3S.js → ProductsCarousel-6gthLCkf-CBWUX5-H.js} +8 -8
- package/dist/assets/{PromoBaseCards-dqE7GIJ6-D0yVIiC6.js → PromoBaseCards-CzPzj69A-VNtWOXHP.js} +6 -6
- package/dist/assets/{QBOConnectionDialog-CGPNOde4-CR0zHLvc.js → QBOConnectionDialog-BFy0lMZd-DQ6dF1fn.js} +6 -6
- package/dist/assets/{QBOSetupSection-HhIe91hw-DHN5dIMI.js → QBOSetupSection-DcLYyQ5m-BZmieU8G.js} +16 -16
- package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DMhGskvy.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-17BV5IdU.js +237 -0
- package/dist/assets/ReimbursementDetailPage-DatcF8rt-DDHL4NDq.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-BZoZAydM-gLfgxCqS.js → ReimbursementPromoPage-MweW-4DO-DOu17agw.js} +10 -10
- package/dist/assets/{ReimbursementSetUpPage-C8Oat8g_-B0DjcA85.js → ReimbursementSetUpPage-BD2LWlbW-CPGJalxA.js} +10 -10
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DX28exoT.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-C-hMp3nk.js} +1 -1
- package/dist/assets/{ReloadCard-BMn_7fNI-yFHo4tad.js → ReloadCard-9KpQCrce-CJxth4v-.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BE2BuEqj-BMoVH1Lv.js → ReportTableViewSelector-BPliEsuo-CYSspAKt.js} +8 -8
- package/dist/assets/{ReportsPage-C4HDLBDq-Dbvzy9RX.js → ReportsPage-h2DAaQfK-BbjLhSlv.js} +14 -14
- package/dist/assets/{RevenueChart-q15U89i8-9Vc-OWiF.js → RevenueChart-DY2s_upY-BrlpK408.js} +2 -2
- package/dist/assets/{ReviewDetailsPage-4mhC2jOb-Dm0CnUM2.js → ReviewDetailsPage-BiYxRnvA-B6yUj6Im.js} +20 -20
- package/dist/assets/{ReviewOverlay-Co22Cju1-CN_x1DtX.js → ReviewOverlay-BvPN7IKD-Dzf2W2o-.js} +12 -12
- package/dist/assets/RoleWithToolTip-aW95rpRe-BSqBI82l.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-2Be8yY-W.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-DCo0J0MC.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-B98XJtoQ-C92Z9nEO.js → ScheduleDetailsPage-DebosLND-Dr3_f1Ao.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DXLxjeWw-D6kfx-k4.js → ScheduleSequenceTable-Dd4Ep_c0-BGLZarfG.js} +36 -36
- package/dist/assets/ScreenRoutes-RCtfctxM.js +201 -0
- package/dist/assets/{SetUpAccountSection-AZk8_IC3-BgpEt7W0.js → SetUpAccountSection-Dhb8A0Oe-DTgzquEa.js} +8 -8
- package/dist/assets/SignIn-DQBJB5ad-Df-bXPXY.js +448 -0
- package/dist/assets/{SignInScreen-BeMNwV2Z.js → SignInScreen-ymJeGv_l.js} +1 -1
- package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-DDL7odAh.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-B-iCv2wr.js +754 -0
- package/dist/assets/SpendManagementSection-Ci2yOCJ9-Cl4Y2hmX.js +230 -0
- package/dist/assets/StatementItem-hcBoe79o-3MewkfUT.js +31 -0
- package/dist/assets/{StatementsPage-CBIa00EK-CDNYK1KG.js → StatementsPage-DVR5LhTi-yR6sBvKB.js} +3 -3
- package/dist/assets/{StatusSwitcher-Blc3-MDg-DCe5aCTB.js → StatusSwitcher-Cy5ITFgi-BPjCuaKT.js} +1 -1
- package/dist/assets/{SubTabSwitcher-3oir5lzq-BbfbzkBT.js → SubTabSwitcher-DhsES2OW-Bo9PDg54.js} +4 -4
- package/dist/assets/{SummaryCard-DO09QLUp-Cm1UBlTE.js → SummaryCard-Byv4Hw8Q-CRXX5OyN.js} +1 -1
- package/dist/assets/{TaskManagementPage-C_EZJRtM-DEHqnRmR.js → TaskManagementPage-CVXMOPf2-BPgLGH37.js} +42 -42
- package/dist/assets/TimeRangeSwitcher-jct2_5PE-CLdBT1H-.js +64 -0
- package/dist/assets/{TimeframeSwitcher-BsGp8KOv-CZ-VtILM.js → TimeframeSwitcher-BK-qliOX-H_AqcOc6.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-B90xLHLZ.js +31 -0
- package/dist/assets/{TopExCard-Cn8iW3fO-CG_XDz13.js → TopExCard-o4Q3ze1b-BhWZC02k.js} +12 -12
- package/dist/assets/{TopExDetailPage-BS8qCkLq-DlPS1xGU.js → TopExDetailPage-BsCwwwDi-CQb-1xKa.js} +12 -12
- package/dist/assets/{TransactionDetailPage-CUeVImfA-FAGZgaG8.js → TransactionDetailPage-rpCG65yC-DrwxmLfQ.js} +36 -36
- package/dist/assets/{TransactionList-CnjoEn7K-C0NzRtWS.js → TransactionList-YI4oZaim-BA7WlPL4.js} +15 -15
- package/dist/assets/{TransactionListBig-xVKV1MCm-BPazwMDR.js → TransactionListBig-D_Jw9Ip2-D2rLxw32.js} +12 -12
- package/dist/assets/TransactionListPage-B2yWm7eA-DHwvAIPN.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-Dr5C4-7q-cB0L9hlJ.js +80 -0
- package/dist/assets/{TransferDrawerPage-uBmvyc-P-26b9HxZW.js → TransferDrawerPage-BnEVH7Mc-BoQvOiLs.js} +34 -34
- package/dist/assets/{TreasuryOverviewPage-DJcUyLa4-BnA9LVmq.js → TreasuryOverviewPage-C927Rdkg-CauQRw4k.js} +47 -47
- package/dist/assets/{TreasuryPromoPage-DymCO6nN-YVkYCZi3.js → TreasuryPromoPage-C6D3bF2f-OrOyQ7OO.js} +14 -14
- package/dist/assets/{TreasuryStatementsPage-YEgI38zU-CTshBTHF.js → TreasuryStatementsPage-BE54gWl6-D5_ViYZY.js} +4 -4
- package/dist/assets/{TreasuryTaxLetterPage-CYO6JXCO-C06DT4sF.js → TreasuryTaxLetterPage-BaHut8Wc-CEbpmHg1.js} +3 -3
- package/dist/assets/{TrendChart-Dzc9yPKs-DCcvZ56Z.js → TrendChart-BI4Tz813-fFdjYEGq.js} +4 -4
- package/dist/assets/{TrendWithTransactions-C2HIrxbU-DAMM6QVL.js → TrendWithTransactions-BicIDSlC-CR1UupOW.js} +7 -7
- package/dist/assets/{UncategorizedAccountsMappingPage-CN3CI6bw-CpvcuXEX.js → UncategorizedAccountsMappingPage-sbn4Sdr2-Cp0yxgAi.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-EaVWz4pX-Bz0x6lsY.js → UnitIntegrationPage-CZUyjeh5-CHXW7rW2.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-4AWDV_HK-BN630Ftn.js +38 -0
- package/dist/assets/Vendor2FAPopup-C_PmEAQ7-CPcuM1Lv.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DMMoCytX-D0o8agib.js +1 -0
- package/dist/assets/{VendorDetailPage-C_B_CmoV-DhDUfade.js → VendorDetailPage-CLFKkF8I-C1yDRJ_V.js} +87 -87
- package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-C47siTp3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Dzgzl_4E-C6CtI7F3.js → VendorFiling1099EditablePage-CrWrhHZl-jwDcG4lR.js} +17 -17
- package/dist/assets/{VendorFirstReviewPage-mfIvCyFK-BDtrVL1t.js → VendorFirstReviewPage-C6MnbIan-DEgAFFp_.js} +60 -60
- package/dist/assets/{VendorInternationalWireDetailsPage-CNs1VqUa-AxRoZVqc.js → VendorInternationalWireDetailsPage-CzPRK4E2-DPbUqt-0.js} +17 -17
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-OZPxcMNL.js +1 -0
- package/dist/assets/{VendorsAccountsSection-B6DkSP2a-TGZHJo6b.js → VendorsAccountsSection-CVh1n81R-DKMXaRY8.js} +5 -5
- package/dist/assets/{VerifyDevice-Cu9P83rS-BXogqvvq.js → VerifyDevice-BHocExfO-BBG3ubvW.js} +7 -7
- package/dist/assets/{VideoPlayer-Dml6r7Q7-kG7O2GEB.js → VideoPlayer-9rYRtSLf-BqgUiaDS.js} +2 -2
- package/dist/assets/{VideoPopup-B7E5ZfFp-2GwUp8oI.js → VideoPopup-D1o92dj6-CPKE8Mhx.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-BZU8XDHH-5F-nZ5Wh.js → WarningsDrawerPage-CzufXgaN-PU9KYQuW.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-Do5LJYN4-C5VZ1IHc.js → ZeniAccountDetailPage-ZZ3Ra-Jf-C6vBQEO7.js} +31 -31
- package/dist/assets/{ZeniAccountListViewPage-Be5rl4e6-B2LuzKy3.js → ZeniAccountListViewPage-Cxid0mfh-BWdmN1tO.js} +10 -10
- package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-CakYiqJV.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BMULic13-DqiBlrLz.js → ZeniAccountPromoPage-YIYFkPIB-DeTeBxx_.js} +22 -22
- package/dist/assets/{ZeniAccountSetupPage-D_doc0Sf-DbkyYaRI.js → ZeniAccountSetupPage-BJ9UJ0dP-BVBV8wvJ.js} +1 -1
- package/dist/assets/{ZeniCopyright-CDfvakjf-DdFXxWan.js → ZeniCopyright-CztmWsFm-BfzonAhy.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BdZ5l3Hh-B0z6Ak2I.js → ZeniTransferAmountSlider-g9qU5Lsq-Xlt7u852.js} +7 -7
- package/dist/assets/{add-to-wallet-DgdBD8_G-Bp_adk0W.js → add-to-wallet-DgdBD8_G-C9HdEEg2.js} +1 -1
- package/dist/assets/{analytics-GoB8GGlk.js → analytics-DHoFVrJa.js} +1 -1
- package/dist/assets/{analyticsHelper-C164AjRf-BUQv6elD.js → analyticsHelper-D4lKCWjQ-D3kvyQYi.js} +1 -1
- package/dist/assets/analyticsHelper-ogjXN0a1.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BlptIYjS.js → arrow-south-east-round-PEovUgvH-DTpfnp7v.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DNmdc0t7.js → auto-transfer-rule-mbafm5D3-Drj2iH_J.js} +1 -1
- package/dist/assets/{chartTypes-DQ1OffIu-DkB5GpFi.js → chartTypes-BPPSjkhb-B7nnCmyE.js} +1 -1
- package/dist/assets/{commonDimensions-j5_IHOmP-BbAWTMhB.js → commonDimensions-Ds75pRzR-BWQNp0GW.js} +1 -1
- package/dist/assets/{constants-DTxI1rHn.js → constants-JMxq3kKJ.js} +1 -1
- package/dist/assets/{core-cG0U1y2d.js → core-DbjebHB2.js} +2 -2
- package/dist/assets/{dash.all.min-CKz_ZRDI.js → dash.all.min-DW9Kl4IB.js} +1 -1
- package/dist/assets/{detailCommon-BdYIBs8o-C7RP83q0.js → detailCommon-DdZdfmYT-DKTM1aWX.js} +6 -6
- package/dist/assets/downloadPdf-B8UMaJCC-DUveB_dN.js +1 -0
- package/dist/assets/{empty-DAIP1XxB.js → empty-6lxZMaF0.js} +1 -1
- package/dist/assets/{index-BMQnSjFr.js → empty-wNjVfCDj.js} +1 -1
- package/dist/assets/epic-DThgZpcq.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CTtI5cXz.js → gift-box-Cmt9OgIZ-CNk2xYWr.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-PUQeicgl.js → graphic-no-data-l-DU4J8fDt-ClpG2ri3.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BwRajxvj.js → graphic-no-data-net-burn-l-CzmycA0m-BOz-3nes.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BXfsCAUf.js → handshake-BPg58FML-k1WIZYu1.js} +1 -1
- package/dist/assets/{index-BqrFe7eC.js → index-7ciVtOQ7.js} +1 -1
- package/dist/assets/{index-DL_zrSsq.js → index-BqVFY7NZ.js} +4410 -4418
- package/dist/assets/{index-DVGnYxP0.js → index-C1PhqSzi.js} +1 -1
- package/dist/assets/{index-uRSEmDsl.js → index-Cryszh5n.js} +1 -1
- package/dist/assets/{index-CpulHfxu.js → index-JDXIN5Fj.js} +1 -1
- package/dist/assets/index-JN-1XlIu.js +1 -0
- package/dist/assets/index-TZkjLPoA.js +1 -0
- package/dist/assets/{lexical-CUq6kk0g.js → lexical-B-aBuW2Y.js} +1 -1
- package/dist/assets/{liveblocks-BOlC_Koo.js → liveblocks-DBgNWxtT.js} +1 -1
- package/dist/assets/{lottie-DQ5EyuJ6.js → lottie-DbNQVAcx.js} +2 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-DGzOqzir.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-rrJBbsC8-TBViCt8n.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-CWvamMX2-HhIsCvlh.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-CrmG1KLX.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-D-1vMkLl.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-DDk9yv3G.js +1 -0
- package/dist/assets/{mui-ByF8ZmHV.js → mui-BdKs9UwT.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-C2KjOx45.js → page-detail-CWX5S47F-Dil4tjIc.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-B7-vB3nP.js → radio-default-CiSgisfh-DIcxqpZX.js} +1 -1
- package/dist/assets/{react-B3-oq61_.js → react--GRYl8Vw.js} +2 -2
- package/dist/assets/{react-B1eYDq6e.js → react-1ymFMNft.js} +3 -3
- package/dist/assets/{react-B20ZDkLv.js → react-2NSNcP_P.js} +2 -2
- package/dist/assets/{react-osFWCkxJ.js → react-D1OXMWSN.js} +2 -2
- package/dist/assets/{react-D74rpLXu.js → react-DEyP-vQs.js} +1 -1
- package/dist/assets/{react-CeCukAHo.js → react-DaVNNE91.js} +1 -1
- package/dist/assets/{react-BU_tzuye.js → react-DfSxWhpD.js} +1 -1
- package/dist/assets/{react-iY_JqSpg.js → react-Dmst1txh.js} +2 -2
- package/dist/assets/{recharts-C9z9JCsM.js → recharts-CU0wfbyQ.js} +1 -1
- package/dist/assets/{sentry-DdXOXL3j.js → sentry-DfYwagp9.js} +2 -2
- package/dist/assets/{shield-DOlUxcFf-hMFlex27.js → shield-DOlUxcFf-C7eXS_DD.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CkjRB0sJ-BaA2_x3K.js +1 -0
- package/dist/assets/toChartData-CMi2WgAy-JL4zgl5e.js +1 -0
- package/dist/assets/transaction-placeholder-CpOwZAMG-C6Cgts33.js +1 -0
- package/dist/assets/{uploadAttachment-DiJJciQx-CTJnPHjt.js → uploadAttachment-B4ddYCCL-BXwz-FZi.js} +27 -27
- package/dist/assets/{uploadReceipts-CPw64UYa-BiBffXJB.js → uploadReceipts-CPw64UYa-CTZvsl83.js} +1 -1
- package/dist/assets/{url-PLN9h9fH.js → url-CNQZElM1.js} +1 -1
- package/dist/assets/{url-DnfeNFje.js → url-K5H6qIZr.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-aie8BHVS.js → useLongPress-GCK2COYQ-hK0wtujH.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-nbZRH-xL.js → usp-line-BBd1wKwW-C0__t1n1.js} +1 -1
- package/dist/assets/{utils-BMrfBn9K.js → utils-DTmuLq6q.js} +1 -1
- package/dist/assets/{zeni-epic-state-BiQIJCwr.js → zeni-epic-state-DcbIZGFH.js} +32 -32
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-DSdNOxQ9-BUDY7ebN.js +0 -21
- package/dist/assets/AccountInfoPage-BVK7wWF2-DkuUb7hY.js +0 -18
- package/dist/assets/AccountLockedInfoModal-CiHVEVZY-DS_3He1-.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-BB7h_VuN-JKCzRF55.js +0 -6
- package/dist/assets/ArAgingDetailPage-BjvQEK0m-CiJw0H2M.js +0 -46
- package/dist/assets/BankAccountWarningSection-neFg-P9--TJDw43tL.js +0 -51
- package/dist/assets/BillDetailPage-Caang31I-DbNvy9BW.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-4n9jmsl3-DclQvVS0.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-BPX-ygl8-D9MJjP_M.js +0 -241
- package/dist/assets/BillPayPromoPage-KojRs3th-BYB9Z023.js +0 -84
- package/dist/assets/ChargeCardListPage-BaxxkyMM-MzCs1Y26.js +0 -412
- package/dist/assets/ChargeCardPaymentHistoryPage-5dwl-3gt-B3dNp_0o.js +0 -534
- package/dist/assets/ChargeCardPromoPage-DXHFY90F-BtTao1XR.js +0 -222
- package/dist/assets/ConfettiBurst-fYnxwqdQ-C4yZDZVx.js +0 -1
- package/dist/assets/CreditCardPaymentDrawerPage-nshXhNlE-EyB92Kcq.js +0 -227
- package/dist/assets/CustomerOnboardingActivationPage-J6mQ99Q--Cb3ro4zs.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-DHYXaV1V-C56kqXXZ.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-_P1XRJy7-U2wzBaVr.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-BWN72Maw-BM98ceTr.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-BCWBgFUn-Ch7XCa5X.js +0 -12
- package/dist/assets/EditPeoplePage-Ck6tbODS-ubBGSkLn.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-CYCB7XUZ-BrP9Twu0.js +0 -865
- package/dist/assets/EntityDetailPage-DEzsWzSU-YUiOx1kj.js +0 -18
- package/dist/assets/InsightsSection-9xZ9BN4e-DNtCiXCr.js +0 -27
- package/dist/assets/InvitePeoplePage-xJZ4CmaB-z8ULVrxL.js +0 -12
- package/dist/assets/LabeledControlledCheckBoxField-CcPruRSO-CaFIYxzs.js +0 -16
- package/dist/assets/LabeledDocumentField-Bo6fnkUs-BiNfrt85.js +0 -41
- package/dist/assets/LinkJETransactionPage-CejrEmB0-CbM_tuHa.js +0 -98
- package/dist/assets/MagicLinkACHDetailsPage-BNATDZtB-DxEBt3UQ.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-ZGyx0g5t-NsxxIUno.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CP5KtUSE-jXdIObjE.js +0 -1
- package/dist/assets/MailingDetailsSection-DAryNhi6-CuFuumI_.js +0 -21
- package/dist/assets/Menu-IHf_FfRX-BtY6fG9T.js +0 -17
- package/dist/assets/NoDataChart-58kSyixy-C8J9Kl-k.js +0 -26
- package/dist/assets/NoDataTable-aDUu8tCI-CaXH8kWv.js +0 -8
- package/dist/assets/NotificationsListConfig-CAW8P9gG-6D54Tubf.js +0 -1
- package/dist/assets/PandLWithForecastPage-CpCiLOIl-BiGua3ch.js +0 -107
- package/dist/assets/Preview-D56XCw0A.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Cx24E4je-xuDoSOD3.js +0 -32
- package/dist/assets/ReimbursementApprovalRulesPage-DRAkofwN-CwdWvhQr.js +0 -243
- package/dist/assets/ReimbursementDetailPage-DToZctqy-CNjKjgjE.js +0 -314
- package/dist/assets/RoleWithToolTip-DUEwWP4s-C_YDFJH-.js +0 -22
- package/dist/assets/ScreenRoutes-BbQAiTN4.js +0 -201
- package/dist/assets/SignIn-C5PcCpLW-U8wNP0Mh.js +0 -480
- package/dist/assets/SpendManagementListViewPage-BmZeAl5K-Dl61C1Zj.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-BfJ_icLF-C0rTj6cX.js +0 -785
- package/dist/assets/SpendManagementSection-DoJcpweo-CSStq-Fq.js +0 -246
- package/dist/assets/StatementItem-Bw66NYeY-DPAgwnTs.js +0 -31
- package/dist/assets/TimeRangeSwitcher-mYZQR43P-B8L8C54A.js +0 -64
- package/dist/assets/TimeframeSwitcherWithToggle-wwIX-Q6T-DeXcelpz.js +0 -31
- package/dist/assets/TransactionListPage-DDNtUv3t-BvPpANOB.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-BTufZurh-C2D6Zsr6.js +0 -80
- package/dist/assets/UploadAdditionalDocumentOverlay-DIL6E7Sd-nr87DyQG.js +0 -38
- package/dist/assets/Vendor2FAPopup-BxAm0k92-pzvF3dzq.js +0 -1
- package/dist/assets/VendorACHDetailsPage-DF0jHzqw-BjdrHpXc.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-a52VbRia-CuThrVrd.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BoEZ09xC-Cqzq-YZ_.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-0h-vfuVY-C3yFjXgV.js +0 -14
- package/dist/assets/analyticsHelper-Cg6AQnia.js +0 -1
- package/dist/assets/downloadPdf-BduTAGPj-D606RiQz.js +0 -1
- package/dist/assets/empty-D_oWKko5.js +0 -1
- package/dist/assets/epic-4bGyY7Fz.js +0 -2
- package/dist/assets/index-D4nV_3XK.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-kWMAzMb3-DMbKtDeY.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CSuXPDoO-DzJLlKZa.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-BjnjpyM6-CTSMNsLI.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CaRKUf6w-CJ4Nigud.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-XslT-q64-BTC8ZLHF.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-DQz_5jDI.js +0 -1
- package/dist/assets/toCOABalancesWithID-BA4WkU1y-IaWUt-zn.js +0 -1
- package/dist/assets/toChartData-DrvhJgTD-RZQRJ7Js.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{q as M,V as l,
|
|
1
|
+
import{q as M,V as l,cU as J,y as m,o,aM as H,c as n,cO as E,cX as q,cW as Q,d as X,b as V,bE as ie,F as te,fT as se,f_ as ae,aG as ne,a$ as de,bF as B,b8 as ce,bD as pe,cy as ue,p as D,f$ as U,cf as Y,n as he,ag as K,ak as ge,al as me,fF as be,fE as fe,bu as xe,fG as ye,bg as we,g0 as ve}from"./index-BqVFY7NZ.js";import{n as d,c as $e}from"./mui-BdKs9UwT.js";import{a as k}from"./sentry-DfYwagp9.js";import{Fu as W,Fv as Re}from"./zeni-epic-state-DcbIZGFH.js";import{T as je}from"./RoleWithToolTip-aW95rpRe-BSqBI82l.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="fe7f722e-084c-438a-84c3-d7126dd79e15",e._sentryDebugIdIdentifier="sentry-dbid-fe7f722e-084c-438a-84c3-d7126dd79e15")}catch{}})();const N={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},Se=d.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
margin-top: ${e=>
|
|
4
|
-
margin-bottom: ${e=>
|
|
5
|
-
margin-left: ${e=>
|
|
3
|
+
margin-top: ${e=>N.grpBtnMarginTopBottom.valuePx(e.windowSize)};
|
|
4
|
+
margin-bottom: ${e=>N.grpBtnMarginTopBottom.valuePx(e.windowSize)};
|
|
5
|
+
margin-left: ${e=>N.grpBtnMarginLeftRight.valuePx(e.windowSize)};
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
height: 29px;
|
|
8
8
|
&:hover {
|
|
@@ -20,9 +20,9 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
20
20
|
${e=>e.isDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
23
|
+
`,ke=d.div`
|
|
24
24
|
border-left: 1px solid ${e=>e.theme.colors.grey1};
|
|
25
|
-
`,
|
|
25
|
+
`,A=({allBtnOptions:e,isDisabled:s,selectedOption:i,buttonClickHandler:c})=>{const p=M(),a=X(),f=u=>i?.value===u.value?"primary":"secondary",$=u=>i?.value===u.value?{backgroundColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.primary},textColor:{default:a.colors.grey5,hover:a.colors.grey5,disabled:a.colors.hero},borderColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.grey3}}:{backgroundColor:{default:"transparent",hover:a.colors.grey4,disabled:"transparent"},textColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.hero},borderColor:{default:a.colors.grey1,hover:a.colors.primary,disabled:a.colors.grey3}},b=e.length,y=s==="disabled"||s==="readonly";return l.jsx(Se,{windowSize:p,isDisabled:y,children:e.map((u,x)=>l.jsxs(Ce,{"data-testid":H("grouped-button-container",u.value),className:"grpBtn",isDisabled:y||!u.enabled,children:[l.jsx(he,{label:u.label,size:"small",variant:f(u),"data-testid":H("grouped-button",u.value),onClick:()=>c(u.value),buttonColors:$(u),disabled:y||!u.enabled,style:{borderTopRightRadius:x===b-1?o.sp1:o.sp0,borderBottomRightRadius:x===b-1?o.sp1:o.sp0,borderTopLeftRadius:x===0?o.sp1:o.sp0,borderBottomLeftRadius:x===0?o.sp1:o.sp0,borderRight:x===b-1?"":"none",borderLeft:x===0?"":"none",width:"65px",display:"flex",alignItems:"center",justifyContent:"center"}}),x!==b-1?l.jsx(ke,{className:"verticalLine"}):null]},u.value))})},L={allRolesMarginLeftRight:new m(n[3],n[4])},De=d.div`
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -46,12 +46,12 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
46
46
|
transition:
|
|
47
47
|
visibility 250ms ease-in-out,
|
|
48
48
|
max-height 250ms ease-in-out;
|
|
49
|
-
`,
|
|
49
|
+
`,Te=d.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: row;
|
|
52
52
|
margin-bottom: ${o.sp3};
|
|
53
53
|
justify-content: space-between;
|
|
54
|
-
`,
|
|
54
|
+
`,Oe=d(Y)`
|
|
55
55
|
display: flex;
|
|
56
56
|
color: ${e=>e.theme.colors.primary};
|
|
57
57
|
`,G=d(K)`
|
|
@@ -60,7 +60,7 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
60
60
|
`,Be=d.div`
|
|
61
61
|
display: flex;
|
|
62
62
|
.roleTitle {
|
|
63
|
-
color: ${e=>e.isError?
|
|
63
|
+
color: ${e=>e.isError?D.important:e.theme.colors.hero};
|
|
64
64
|
}
|
|
65
65
|
.roleSubTitle {
|
|
66
66
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -87,9 +87,9 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
87
87
|
`,Me=d.div`
|
|
88
88
|
display: flex;
|
|
89
89
|
flex-direction: column;
|
|
90
|
-
`,
|
|
90
|
+
`,Ie=d(Y)`
|
|
91
91
|
display: flex;
|
|
92
|
-
`,
|
|
92
|
+
`,Ve=d(K)`
|
|
93
93
|
display: flex;
|
|
94
94
|
margin-bottom: ${o.sp1};
|
|
95
95
|
`,Le=d(me)`
|
|
@@ -109,19 +109,19 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
109
109
|
width: ${o.sp4};
|
|
110
110
|
height: ${o.sp4};
|
|
111
111
|
color: ${e=>e.theme.colors.hero};
|
|
112
|
-
`,
|
|
112
|
+
`,Ne=d(we)`
|
|
113
113
|
width: ${o.sp4};
|
|
114
114
|
height: ${o.sp4};
|
|
115
115
|
color: ${e=>e.theme.colors.hero};
|
|
116
|
-
`,
|
|
116
|
+
`,He=d(ye)`
|
|
117
117
|
width: ${o.sp4};
|
|
118
118
|
height: ${o.sp4};
|
|
119
119
|
color: ${e=>e.theme.colors.hero};
|
|
120
|
-
`,
|
|
120
|
+
`,We=d(xe)`
|
|
121
121
|
width: ${o.sp4};
|
|
122
122
|
height: ${o.sp4};
|
|
123
123
|
color: ${e=>e.theme.colors.hero};
|
|
124
|
-
`,
|
|
124
|
+
`,Ae=d(fe)`
|
|
125
125
|
width: ${o.sp4};
|
|
126
126
|
height: ${o.sp4};
|
|
127
127
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -134,8 +134,8 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
134
134
|
flex-direction: column;
|
|
135
135
|
margin-right: ${e=>L.allRolesMarginLeftRight.valuePx(e.windowSize)};
|
|
136
136
|
margin-left: ${e=>L.allRolesMarginLeftRight.valuePx(e.windowSize)};
|
|
137
|
-
color: ${e=>e.theme.mode==="light"?
|
|
138
|
-
`,
|
|
137
|
+
color: ${e=>e.theme.mode==="light"?D.brandColorOnyx:D.brandColorPearl};
|
|
138
|
+
`,Je=e=>{switch(e){case"bookkeeping":return l.jsx(Ue,{});case"zeni_bill_pay":return l.jsx(Ne,{});case"zeni_reimbursements":return l.jsx(He,{});case"zeni_checking":return l.jsx(We,{});case"zeni_cards":return l.jsx(Ae,{});case"zeni_treasury":return l.jsx(Ge,{});default:return null}},qe=e=>l.jsxs(Me,{children:[l.jsx(Ie,{className:"roleTitle",children:U[e].label}),l.jsx(Ve,{className:"roleSubTitle",children:U[e].subTitle}),l.jsx(Le,{className:"roleSuitableFor",children:U[e].roleSuitableFor})]}),Qe=({name:e,isDisabled:s,selectedValue:i,onSelectionChanged:c})=>{const{formState:{errors:p}}=E(),a=Q(p,`${e}.userRole.selectedRole`),f=M(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=k.useCallback(h=>{const t=se([h]),C=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(z=>z.productType===C),I=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:I?void 0:v[R].options.filter(z=>z.value===h)[0]});const _={userRole:{selectedRole:t,allRootRole:i.userRole.allRootRole},productsByUserRole:{...i.productsByUserRole,[t]:[...v]}};c(_)},[c,i]),y=i.userRole.selectedRole,u=k.useMemo(()=>y!=null?(i.productsByUserRole[y]??[]).map(h=>Re(h.selectedOption?.value)).filter(h=>h!=null):[],[y,i.productsByUserRole]);k.useEffect(()=>{y==="employee"&&u.length===0&&$>-1&&b("reimbursements_user")},[y,u,$,b]);const x=i.userRole.allRootRole,P=h=>h==="employee"&&i.userRole.selectedRole==="employee";return s==="readonly"?l.jsx(Ze,{windowSize:f,children:l.jsx(je,{roles:u})}):l.jsx(Pe,{children:x.map(h=>l.jsxs(De,{windowSize:f,children:[l.jsx(Be,{isError:a,children:l.jsx(de,{isDisabled:s,label:{label:qe(h)},style:{paddingBottom:o.sp4,alignItems:"flex-start"},radioField:{name:`${e}.userRole.selectedRole`,id:`${e}.${h}`,value:h,radioSize:"small",checked:i.userRole.selectedRole===h,style:{marginTop:o.sp1}}})}),l.jsx(ze,{windowSize:f,isCollapsed:P(h),roleCount:i.productsByUserRole[h].length,children:i.productsByUserRole[h].map(t=>l.jsxs(Te,{children:[l.jsxs(Ee,{children:[l.jsx(_e,{children:t.productType&&Je(t.productType)}),l.jsxs(Fe,{children:[l.jsx(Oe,{children:t.label}),f==="small"?l.jsx(A,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b}):null,l.jsx(G,{children:t.subTitleUser}),l.jsx(G,{children:t.subTitleAdmin})]})]}),f!=="small"?l.jsx(A,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b,isDisabled:s}):null]},t.productType))})]},h))})},Xe=({name:e,defaultValue:s,isDisabled:i,registerOptions:c})=>{const{control:p}=E();return l.jsx(q,{name:e,control:p,defaultValue:s,rules:c,render:({field:{onChange:a,value:f}})=>{const $=f;return l.jsx(Qe,{onSelectionChanged:b=>{a(b)},selectedValue:$,name:e,isDisabled:i})}})},S={width:new m(343,580,726),height:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),labelPaddingLeft:new m(n[3],n[4]),labelPaddingRight:new m(n[3],n[4]),labelPaddingTop:new m(n[2],n[2]),labelPaddingBottom:new m(n[2],n[3])};function yo({isDisabled:e,label:s,rolesDropDownField:i,style:c}){const p=M();return l.jsxs(Ye,{size:p,style:c,isDisabled:e!=null,children:[l.jsx(J,{isDisabled:e,label:s.label,htmlFor:i.name,style:{paddingLeft:S.labelPaddingLeft.value(p),paddingRight:S.labelPaddingRight.value(p),paddingTop:S.labelPaddingTop.value(p),paddingBottom:S.labelPaddingBottom.value(p)}}),l.jsx(Xe,{...i,isDisabled:e})]})}const Ye=d.div`
|
|
139
139
|
display: flex;
|
|
140
140
|
flex-direction: ${e=>e.isDisabled?"row":"column"};
|
|
141
141
|
align-items: ${e=>e.isDisabled?"center":"flex-start"};
|
|
@@ -169,7 +169,7 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
169
169
|
border-color: inherit;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
`;function Ke({onSelectionChanged:e,forZeniUser:s,selectedRoles:i,allRoles:c,disable:p=!1,isMulti:a=!1,clearSelectedRole:f,style:$,name:b,isValuePlacedAtEnd:y=!0}){const[u,x]=
|
|
172
|
+
`;function Ke({onSelectionChanged:e,forZeniUser:s,selectedRoles:i,allRoles:c,disable:p=!1,isMulti:a=!1,clearSelectedRole:f,style:$,name:b,isValuePlacedAtEnd:y=!0}){const[u,x]=k.useState(),{formState:{errors:P}}=E(),h=Q(P,b??"");k.useEffect(()=>{const r=c.filter(g=>i!=null&&i.includes(g.value));x(a?r:r[0])},[i]),k.useEffect(()=>{f===!0&&a===!1&&x(void 0)},[f]);const t=X(),C=M(),v=JSON.parse(JSON.stringify(c));if(i!=null&&s){if(!i.includes("admin")){const r=v.findIndex(g=>g.value==="admin");v.splice(r,1)}if(!i.includes("bookkeeping_admin")){const r=v.findIndex(g=>g.value==="bookkeeping_admin");v.splice(r,1)}}const R=t.colors.grey5,I=V.smallRegular.cssObject,_=I,z=u?.length>3,ee={control:r=>({...r,backgroundColor:"inherit",boxShadow:R,border:"none",cursor:"pointer",":hover":{backgroundColor:"inherit"},flexWrap:"nowrap",marginTop:"unset"}),container:r=>({...r,fill:t.colors.hero,":hover":{fill:t.colors.primary},width:"100%",...$}),valueContainer:r=>({...r,flexWrap:z?"wrap":"nowrap",width:C==="small"||!a?"auto":"263px",paddingTop:"unset",cursor:"pointer",..._,overflow:"visible",minWidth:"auto",paddingLeft:o.sp0,paddingRight:o.sp0,display:"flex",justifyContent:"flex-start",fill:t.colors.hero,":hover":{">div>div":{fill:t.colors.primary,color:t.colors.primary}},">div:last-of-type":{span:{display:"none"}}}),singleValue:(r,g)=>({...r,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,maxWidth:"auto",overflow:"auto",":hover":{color:t.colors.primary},marginLeft:o.sp0,position:"inherit",transform:"none",top:o.sp0,marginRight:o.sp0,padding:o.sp0,...V.standardRegular.cssObject}),multiValue:(r,g)=>({...r,margin:0,minWidth:void 0,backgroundColor:void 0,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,":hover":{color:t.colors.primary},">div":{borderRadius:o.sp0,padding:o.sp0,borderLeftStyle:"solid",borderWidth:o.sp0,borderColor:t.colors.grey1,color:"unset"}}),menu:r=>({...r,backgroundColor:R,boxShadow:`${o.sp0} 2px ${o.sp2} ${t.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",width:C==="small"?"230px":"100%",right:C==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:C==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:O,data:T})=>{const w=W(T.value)&&s===!0,F=Z(g,w,T.value,t);return{...r,height:w?44:40,padding:w?o.sp0:`${o.sp2} 12px`,marginTop:w?o.sp1:"unset",whiteSpace:"unset",display:"flex",alignItems:"center",opacity:1,...I,color:F,cursor:O?"not-allowed":"pointer",backgroundColor:g&&!w?t.colors.background:"transparent",">div":{backgroundColor:g?t.colors.background:"transparent"},borderTop:w||T.value==="delete"?`1px solid ${t.colors.background}`:"none","& label":{paddingRight:"10px"},"svg:nth-of-type(2)":{display:"none"},":hover":{color:Z(!0,w,T.value,t),backgroundColor:g&&!w?t.colors.background:w?"transparent":t.colors.background,">div":{backgroundColor:t.colors.background},"svg:nth-of-type(1)":{display:w||s===!1?"inline-block":"none"},"svg:nth-of-type(2)":{display:w?"none":"inline-block"}},">div>div>div:first-of-type":{display:"flex"}}},indicatorsContainer:r=>({...r,alignItems:a?"flex-start":"center",paddingTop:z||!a?"unset":"5px"}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({paddingTop:a?o.sp1:"2px",svg:{marginLeft:a&&u?.length>0?"unset":"6px"}})},oe=r=>{const{isSelected:g}=r;return k.createElement(B.Option,{...r,key:r.data.value},l.jsxs(no,{role:r.data.value,forZeniUser:s,children:[l.jsx(ce,{children:r.data.label}),!!g&&l.jsxs("div",{children:[l.jsx(pe,{width:o.sp3,height:o.sp3}),s===!0?l.jsx(ue,{width:o.sp3,height:o.sp3}):null]})]}))},le=r=>{const g=[];a&&r.forEach(O=>{g.push(O.value)}),e(a?g:r.value)},re=r=>{const{menuIsOpen:g,isFocused:O,isDisabled:T,selectProps:w}=r,{value:F}=w;return l.jsx(po,{menuIsOpen:g,isFocused:O,isDisabled:T,selectedValue:F,isError:h,isValuePlacedAtEnd:y,windowSize:C,children:l.jsx(B.Control,{...r,className:"select-control",children:r.children})})};return l.jsx(ie,{isMulti:a,menuPlacement:"auto",minMenuHeight:250,menuShouldScrollIntoView:!1,defaultValue:u,value:u,closeMenuOnSelect:!0,options:v,isDisabled:p,hideSelectedOptions:!1,onChange:r=>{le(r)},isClearable:!1,isSearchable:!0,components:{Control:re,DropdownIndicator:lo,Option:oe,MultiValueRemove:ro,IndicatorSeparator:io,MultiValueLabel:to,ValueContainer:so,Placeholder:oo,Input:eo},styles:ee,theme:r=>({...r,colors:{...r.colors,primary:R}}),placeholder:te.getLocalizedStrings().peoplePage.dropdownPlaceHolderText,isOptionDisabled:r=>s===!1&&r.enabled===!1||s===!0&&W(r.value),classNamePrefix:"zeniRolesDropDown"})}const eo=e=>{const{selectProps:s}=e,{placeholder:i,value:c,isMulti:p}=s;return l.jsx(B.Input,{...e,autoComplete:"new-password",placeholder:p===!0&&c?.length===0||c==null?i:void 0,children:e.children})},oo=()=>null,Z=(e,s,i,c)=>e&&!s&&i!=="delete"?c.colors.primary:s?c.colors.grey1:i==="delete"?D.important:c.colors.hero,lo=()=>null,ro=()=>null,io=()=>null,to=({children:e,data:s,...i})=>l.jsx(B.MultiValueLabel,{...i,children:l.jsxs(ao,{children:[e,l.jsx(co,{className:"seperator",children:","})]})}),so=({children:e,...s})=>l.jsx(B.ValueContainer,{...s,className:"select-value-container",children:e}),ao=d(ge)`
|
|
173
173
|
padding: ${o.sp0} 2px;
|
|
174
174
|
max-width: 104px;
|
|
175
175
|
white-space: nowrap;
|
|
@@ -181,7 +181,7 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
181
181
|
display: flex;
|
|
182
182
|
justify-content: space-between;
|
|
183
183
|
align-items: center;
|
|
184
|
-
${e=>
|
|
184
|
+
${e=>W(e.role)&&e.forZeniUser===!0?`padding: ${o.sp0} 12px; height: ${o.sp6};margin-top: ${o.sp1};width: 100%`:""}
|
|
185
185
|
`,co=d.span``,po=d.div`
|
|
186
186
|
width: 100%;
|
|
187
187
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -189,7 +189,7 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
189
189
|
.select-control {
|
|
190
190
|
border: none;
|
|
191
191
|
height: ${e=>e.windowSize==="small"?"auto":o.sp6};
|
|
192
|
-
background-color: ${e=>e.menuIsOpen&&e.isValuePlacedAtEnd===!0?e.theme.colors.background:e.isError===!0?
|
|
192
|
+
background-color: ${e=>e.menuIsOpen&&e.isValuePlacedAtEnd===!0?e.theme.colors.background:e.isError===!0?D.importantLight:e.theme.colors.grey5};
|
|
193
193
|
box-shadow: none;
|
|
194
194
|
&:hover {
|
|
195
195
|
fill: ${e=>e.theme.colors.primary};
|
|
@@ -218,7 +218,7 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
218
218
|
border-radius: ${o.sp0};
|
|
219
219
|
margin: ${o.sp0};
|
|
220
220
|
color: ${e=>e.theme.colors.primary};
|
|
221
|
-
${
|
|
221
|
+
${V.standardRegular.css};
|
|
222
222
|
box-sizing: border-box;
|
|
223
223
|
overflow: hidden;
|
|
224
224
|
text-overflow: ellipsis;
|
|
@@ -229,7 +229,7 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
229
229
|
display: flex;
|
|
230
230
|
width: ${e=>e.menuIsOpen===!1&&e.selectedValue==null?o.sp0:"100%"};
|
|
231
231
|
position: ${e=>e.isFocused===!1&&e.selectedValue==null?"initial":"absolute"};
|
|
232
|
-
${
|
|
232
|
+
${V.standardRegular.css};
|
|
233
233
|
color: ${e=>e.theme.colors.primary};
|
|
234
234
|
margin: ${o.sp0};
|
|
235
235
|
cursor: inherit;
|
|
@@ -247,18 +247,18 @@ import{q as M,V as l,cV as q,y as m,o,aN as N,d as n,cP as E,cY as J,cX as Q,f a
|
|
|
247
247
|
visibility: visible;
|
|
248
248
|
}
|
|
249
249
|
::placeholder {
|
|
250
|
-
color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?
|
|
250
|
+
color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?D.important:e.theme.colors.grey1};
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
.placeholder-container {
|
|
255
|
-
color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?
|
|
255
|
+
color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?D.important:e.theme.colors.grey1};
|
|
256
256
|
}
|
|
257
257
|
> div:nth-last-of-type(2) .seperator {
|
|
258
258
|
visibility: hidden;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
`,uo=({name:e,forZeniUser:s,registerOptions:i,defaultValue:c,isDisabled:p,isMulti:a,style:f,onSelectionChanged:$,isValuePlacedAtEnd:b=!0})=>{const{control:y}=E();return l.jsx(
|
|
261
|
+
`,uo=({name:e,forZeniUser:s,registerOptions:i,defaultValue:c,isDisabled:p,isMulti:a,style:f,onSelectionChanged:$,isValuePlacedAtEnd:b=!0})=>{const{control:y}=E();return l.jsx(q,{name:e,control:y,defaultValue:c,rules:i,render:({field:{value:u,onChange:x}})=>l.jsx(Ke,{onSelectionChanged:P=>{x({allOptions:c.allOptions,selectedOptions:P}),$?.(P)},forZeniUser:s,selectedRoles:u.selectedOptions,disable:p,isMulti:a,name:e,style:f,allRoles:c.allOptions,isValuePlacedAtEnd:b})})},j={width:new m(343,580,726),height:new m(n[6],n[6]),controlHeight:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),marginRight:new m(n[2],n[2]),labelMarginLeft:new m(n[3],n[4]),labelMarginRight:new m(n[3],n[4]),labelMarginTop:new m(n[2],n[2])};function wo({isDisabled:e,label:s,zeniRolesDropDownField:i,style:c}){const p=M();return l.jsxs(ho,{size:p,style:c,isDisabled:e!=null,"data-testid":H("labeled-zeni-roles-dropdown-field",i.name),children:[l.jsx(J,{isDisabled:e,label:s.label,htmlFor:i.name,style:{marginLeft:j.labelMarginLeft.value(p),marginRight:j.labelMarginRight.value(p),marginTop:j.labelMarginTop.value(p),width:s.width??"auto"}}),l.jsx(uo,{...i,isDisabled:e==="disabled"||e==="readonly",style:{display:"flex",flexGrow:1,width:s.width!=null?`calc(100% - ${s.width}px)`:"auto",height:p==="small"?"auto":o.sp6,minHeight:j.controlHeight.value(p)}})]})}const ho=d.div`
|
|
262
262
|
display: flex;
|
|
263
263
|
flex-direction: row;
|
|
264
264
|
align-items: flex-start;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import{q as W,aN as ue,a8 as pe,cB as me,iC as E,im as I,cC as he,V as n,ab as ge,g1 as fe,aO as be,F as H,o as t,y as m,l as xe,L as ye,cE as V,iD as we,p as Ce,b as L,bf as je,c as r}from"./index-BqVFY7NZ.js";import{a as B}from"./sentry-DfYwagp9.js";import{n as i}from"./mui-BdKs9UwT.js";import{FW as Z,FT as Se,FU as De}from"./zeni-epic-state-DcbIZGFH.js";import $e from"./TransactionDetailPage-rpCG65yC-DrwxmLfQ.js";import"./liveblocks-DBgNWxtT.js";import"./core-DbjebHB2.js";import"./recharts-CU0wfbyQ.js";import"./lottie-DbNQVAcx.js";import"./analytics-DHoFVrJa.js";import"./lexical-B-aBuW2Y.js";import"./utils-DTmuLq6q.js";import"./LabeledControlledCheckBoxField-Btw_zwzy-BqFptUno.js";import"./TrendWithTransactions-BicIDSlC-CR1UupOW.js";import"./TrendChart-BI4Tz813-fFdjYEGq.js";import"./chartTypes-BPPSjkhb-B7nnCmyE.js";import"./toCOABalancesWithID-CkjRB0sJ-BaA2_x3K.js";import"./toChartData-CMi2WgAy-JL4zgl5e.js";import"./NoDataChart-DLKHNXD4-tDLmbg2P.js";import"./InsightsSection-BTXj5WUe-ByTIWrkc.js";import"./NavigationDots-B0_dDbgu-D0YfkCXB.js";import"./TransactionList-YI4oZaim-BA7WlPL4.js";import"./BoxItem-WOrvBzns-DN4WYKEf.js";import"./commonDimensions-Ds75pRzR-BWQNp0GW.js";import"./uploadAttachment-B4ddYCCL-BXwz-FZi.js";import"./radio-default-CiSgisfh-DIcxqpZX.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]="973df3e4-d4e5-4ed4-b7e1-7a9f28361135",e._sentryDebugIdIdentifier="sentry-dbid-973df3e4-d4e5-4ed4-b7e1-7a9f28361135")}catch{}})();const R={labelWidth:new m(120,145,160)},ve=i.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
`,ke=i.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
width: 100%;
|
|
9
|
+
background: ${e=>e.theme.colors.grey5};
|
|
10
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
11
|
+
border-radius: ${t.sp3};
|
|
12
|
+
`,Ee=i.div`
|
|
13
|
+
color: ${e=>e.theme.colors.primary};
|
|
14
|
+
margin: ${t.sp3} ${t.sp1};
|
|
15
|
+
${L.largeMedium.css};
|
|
16
|
+
`,Ie=i.div`
|
|
17
|
+
display: flex;
|
|
18
|
+
flex: 1;
|
|
19
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
20
|
+
min-height: 1px;
|
|
21
|
+
max-height: 1px;
|
|
22
|
+
`,O=(e,l)=>`${e}.${l}`;function Le({sectionId:e,jePostingDate:l,qboURL:a,isJELoading:s}){const u=H.getLocalizedStrings(),{dateFormat:C,jeSchedules:{scheduleDetails:{linkJE:o,scheduleDetailsSection:j}}}=u,h=l.format(C.visual.MMMDCommaYYYYformat),g=W();return n.jsxs(ve,{children:[n.jsx(Ee,{windowSize:g,children:j.header}),n.jsxs(ke,{children:[n.jsx(V,{label:{label:o.jePostingDate,width:R.labelWidth.value(g)},style:{width:"auto"},text:{type:"text",name:O(e,"jePostingDate"),placeholder:o.jeLinkURLPlaceholder,defaultValue:h,autoComplete:"new-password"},isDisabled:"disabled"}),n.jsx(Ie,{}),n.jsx(V,{label:{label:o.jeLink,width:R.labelWidth.value(g)},style:{width:"auto"},text:{type:"url",name:O(e,"qboURL"),placeholder:o.jeLinkURLPlaceholder,defaultValue:a?.toString()??"",autoComplete:"new-password",style:{color:Ce.link},options:{pattern:we}},isDisabled:s?"disabled":void 0})]})]})}const x={containerPaddingLeft:new m(r[3],r[3],r[6]),containerPaddingRight:new m(r[3],r[3],r[8]),navbarContainerPaddingTop:new m(r[2],r[3]),navbarContainerPaddingBottom:new m(r[4],r[5]),emptyScheduleHeight:new m(88,88)},J="linkJETransactionPage",Q="linkJETransaction",G=H.getLocalizedStrings(),{common:{footer:M},dateFormat:Pe}=G,gt=({analytics:e,scheduleTab:l,jeScheduledTransaction:a,localData:s,saveStatus:u,isCOTEnabled:C,transactionDetail:o,firstMonthOfFY:j,qboAppUrl:h,authParams:g,isDisabled:K,controllerUserDetails:P,isVendorBulkUpdateOnTransactionEnabled:X,onUpdateLocalData:ee,onBackClick:T,onCancelClick:te,onSaveClick:ne,onFetchTransactionClick:ae})=>{const p=W(),A=ue(u),y=Z(h.toString(),s.jeLink),S=Se(P.controllers),D=De(P.controllerUserIds),U=()=>{const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:l,transaction:{...I(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),te()},f=pe({mode:"all",reValidateMode:"onChange",resetOptions:{keepDirtyValues:!0,keepErrors:!0},defaultValues:_(s,h),values:_(s,h)}),oe=()=>{ne()},ie=async d=>{ee(d)};B.useEffect(()=>{const d=f.watch((c,{name:ce})=>{ce!=null&&c!=null&&me(()=>ie(c))});return()=>{d.unsubscribe()}}),B.useEffect(()=>{if(u==="Completed"&&A==="In-Progress"){const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:l,transaction:{...I(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),T()}},[u,A,T]);const{common:{strings:{empty:N}},jeSchedules:{scheduleDetails:{linkJE:b}}}=G,le=()=>{if(s.jeLink?.transactionDetailID!=null){const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryQBOFetched({scheduleType:l,transaction:{...I(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),ae(s.jeLink.transactionDetailID)}},se=o!=null&&o.fetchState==="In-Progress",re=o!=null&&o.fetchState==="Error",$=o!=null&&o.fetchState==="Completed",de=o==null||o.fetchState==="Not-Started",F=s.jeLink.type==="recommended",z=he(f.formState.dirtyFields),v=f.formState.isValid,w=$&&z&&v||$&&F&&v,k=z&&v;return n.jsxs(Te,{children:[n.jsxs(Ue,{windowSize:p,children:[n.jsx(Be,{windowSize:p,children:b.linkJE}),n.jsx(ze,{children:n.jsx(Ve,{onClick:U})})]}),n.jsxs(Ae,{children:[n.jsx(Ne,{windowSize:p,children:n.jsx(ge,{...f,children:n.jsx("form",{id:Y(J),onSubmit:f.handleSubmit(oe),children:n.jsx(Le,{jePostingDate:s.postingDate,sectionId:Q,qboURL:y,isJELoading:o?.fetchState==="In-Progress"})})})}),F?n.jsxs(Oe,{windowSize:p,children:[n.jsx(Je,{})," ",b.zeniRecommendation]}):null,$?n.jsx(Fe,{children:n.jsx($e,{isCOTEnabled:C,transactionDetail:o,firstMonthOfFY:j,transactionAttachmentEndpointToDownload:N,transactionAttachmentsEndpointToFetch:N,attachmentUploadEndpoint:"",authParams:g,isDisabled:K??"readonly",isNavBarVisible:!1,containerStyles:{boxShadow:"none",backgroundColor:"inherit"},headerStyles:{boxShadow:"none",backgroundColor:"inherit"},autoCompleteData:{entityAutoCompleteView:{customer:[],vendor:[],fetchState:"Not-Started"}},isVendorBulkUpdateOnTransactionEnabled:X,onDeleteAttachment:()=>{},autoCompleteActions:{onAutoCompleteInputChange:()=>null,onCancelAutoComplete:()=>null,onAutoCompleteEntity:()=>null,onLoadOptions:()=>null},onUploadAttachmentAttachment:()=>null,enableBackClickOnSave:!0,saveLatestSelectedEntity:()=>null,updateVendorBulkRecommendationsFetchStatus:()=>null,setIsVendorUpdateAllChecked:()=>null})}):null,n.jsxs(Re,{children:[re?n.jsx(q,{windowSize:p,children:b.transactionFetchError}):null,de?n.jsx(q,{windowSize:p,children:b.jeDetails}):null]}),se?n.jsx(fe,{fetchState:o?.fetchState}):null]}),w||k?n.jsx(be,{formId:w?Y(J):void 0,primaryBtn:{onClick:k&&!w?le:void 0,label:k&&!w?b.fetchJE:M.save,isLoading:u==="In-Progress",isDisabled:u==="In-Progress"||o?.fetchState==="In-Progress"||o?.fetchState==="Error"},cancelBtn:{label:M.cancel,shouldResetOnCancel:!0,onClick:U}}):null]})},Y=e=>`${e}_form`,_=(e,l)=>({[Q]:{qboURL:Z(l.toString(),e.jeLink),jePostingDate:e.postingDate.format(Pe.visual.MMMDCommaYYYYformat)}}),Te=i.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
flex: 1 1 auto;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: fit-content;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
30
|
+
box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
31
|
+
`,Ae=i.div`
|
|
32
|
+
padding: ${t.sp0} ${t.sp8};
|
|
33
|
+
flex-grow: 1;
|
|
34
|
+
`,Ue=i.div`
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
top: ${t.sp0};
|
|
38
|
+
z-index: 2;
|
|
39
|
+
padding-left: ${e=>x.containerPaddingLeft.valuePx(e.windowSize)};
|
|
40
|
+
padding-right: ${e=>x.containerPaddingRight.valuePx(e.windowSize)};
|
|
41
|
+
padding-top: ${e=>x.navbarContainerPaddingTop.valuePx(e.windowSize)};
|
|
42
|
+
padding-bottom: ${e=>x.navbarContainerPaddingBottom.valuePx(e.windowSize)};
|
|
43
|
+
`,Ne=i.div`
|
|
44
|
+
max-width: 100%;
|
|
45
|
+
margin-bottom: ${t.sp5};
|
|
46
|
+
`,Fe=i.div`
|
|
47
|
+
width: 100%;
|
|
48
|
+
flex: 1;
|
|
49
|
+
margin-bottom: ${t.sp12};
|
|
50
|
+
background-color: inherit;
|
|
51
|
+
`,ze=i.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: flex-end;
|
|
54
|
+
align-items: center;
|
|
55
|
+
padding: ${t.sp3} ${t.sp0};
|
|
56
|
+
`,Ve=i(ye)`
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
color: ${e=>e.theme.colors.hero};
|
|
59
|
+
width: ${t.sp4};
|
|
60
|
+
height: ${t.sp4};
|
|
61
|
+
&:hover {
|
|
62
|
+
color: ${e=>e.theme.colors.primary};
|
|
63
|
+
}
|
|
64
|
+
`,Be=i(xe)`
|
|
65
|
+
display: flex;
|
|
66
|
+
width: 100%;
|
|
67
|
+
flex-grow: 1;
|
|
68
|
+
color: ${e=>e.theme.colors.primary};
|
|
69
|
+
margin: auto;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
`,q=i.div`
|
|
72
|
+
height: ${e=>x.emptyScheduleHeight.valuePx(e.windowSize)};
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
border-radius: ${t.sp2};
|
|
77
|
+
padding: ${t.sp5} ${t.sp2};
|
|
78
|
+
background-color: ${e=>e.theme.colors.background};
|
|
79
|
+
color: ${e=>e.theme.colors.hero};
|
|
80
|
+
margin: ${t.sp3} ${t.sp1};
|
|
81
|
+
${L.standardRegular.css};
|
|
82
|
+
`,Re=i.div`
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
width: 100%;
|
|
85
|
+
`,Oe=i.div`
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: ${t.sp1};
|
|
89
|
+
border-radius: ${t.sp2};
|
|
90
|
+
padding: ${t.sp3} ${t.sp2};
|
|
91
|
+
color: ${e=>e.theme.colors.hero};
|
|
92
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
93
|
+
margin: ${t.sp3} ${t.sp1};
|
|
94
|
+
${L.standardRegular.css};
|
|
95
|
+
`,Je=i(je)`
|
|
96
|
+
width: ${t.sp3};
|
|
97
|
+
height: ${t.sp3};
|
|
98
|
+
`;export{gt as default,Y as uniqueFormName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as he,
|
|
1
|
+
import{q as he,d as Oe,a8 as me,y as d,cW as ue,V as t,f6 as He,ab as ge,ao as Be,fY as Ue,o as r,b as We,bQ as Ve,aK as re,cU as Ye,a$ as q,ek as qe,m as Xe,aO as Ge,F as U,an as Ke,cE as gr,n as pe,a7 as xr,av as wr,gM as $r,g7 as fr,aM as de,c as b,L as Ze,bS as xe,D as Je,ak as v,b5 as we,ag as G,dq as Qe,aZ as er,cy as rr,p as X,al as tr,iH as oe,iS as yr,iX as br,iY as vr,dr as Le,fn as jr,eD as Sr}from"./index-BqVFY7NZ.js";import{a as ae}from"./sentry-DfYwagp9.js";import{n as i}from"./mui-BdKs9UwT.js";import{EF as Cr}from"./zeni-epic-state-DcbIZGFH.js";import{T as ir}from"./RoleWithToolTip-aW95rpRe-BSqBI82l.js";import{j as or}from"./CardNumberSubText-DBOH0_yP-3HOBgKpF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="8d7b7a56-5501-44a1-abb9-f78c30a4c45e",e._sentryDebugIdIdentifier="sentry-dbid-8d7b7a56-5501-44a1-abb9-f78c30a4c45e")}catch{}})();const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function ji({currentCardName:e,renameFetchState:h,onCancelClick:c,onSubmitClick:p}){const l=he(),y="RenameCardForm",n=me({mode:"all",defaultValues:{[Q]:e},values:{[Q]:e}});ae.useEffect(()=>{n.setFocus(Q)},[]);const m=()=>{c()},R=n.handleSubmit(()=>{const $=n.getValues(Q);$!=null&&p($)}),N=ue(n.formState.errors,Q),o=U.getLocalizedStrings().common,D=le.largeLabelWidth.value(l);return t.jsx(zr,{windowSize:l,role:"presentation",children:t.jsx(Ke,{onClickAway:()=>c(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Ir,{id:y,onSubmit:$=>{$.preventDefault(),R()},children:[t.jsx(Lr,{windowSize:l,children:fe.heading}),t.jsx(Nr,{hasError:N,children:t.jsx(gr,{label:{label:fe.newName,width:D},style:{width:"auto"},text:{type:"text",name:Q,defaultValue:e,placeholder:fe.placeholder,options:{required:!0,validate:$=>$!=null}}})})]})}),t.jsx(Tr,{children:t.jsxs(Pr,{children:[t.jsx(pe,{label:o.cancel,onClick:m,style:{width:84}}),t.jsx(Dr,{}),t.jsx(pe,{variant:"primary",label:o.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:h==="In-Progress",type:"submit",form:y})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},zr=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: ${r.sp0};
|
|
4
4
|
left: ${r.sp0};
|
|
@@ -30,9 +30,9 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
padding-top: ${r.sp4};
|
|
33
|
-
`,Tr=i.div`
|
|
34
|
-
width: ${r.sp3};
|
|
35
33
|
`,Dr=i.div`
|
|
34
|
+
width: ${r.sp3};
|
|
35
|
+
`,Tr=i.div`
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
`,Nr=i.div`
|
|
@@ -49,7 +49,7 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
49
49
|
}
|
|
50
50
|
`,Ir=i.form`
|
|
51
51
|
display: contents;
|
|
52
|
-
`,ee="spendLimit",J=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:ye}=U.getLocalizedStrings();function Si({controllerEmails:e,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:l,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:
|
|
52
|
+
`,ee="spendLimit",J=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:ye}=U.getLocalizedStrings();function Si({controllerEmails:e,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:l,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:D,classListFetchState:$,currentLimitAmount:H,currentSpentAmount:B,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:_,isDisabled:K,updateLimitFetchState:Z,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:u,loggedInUserRole:E,cardIssuedByDepartmentName:T,cardHolderDepartmentName:a,onCancelClick:s,onSubmitClick:g}){const x=xr().analytics,f=he(),se="SpendLimitForm",ar=wr();Cr(ar.loggedInUserRoleMap);const te=me({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ee]:void 0}}),{control:sr,formState:{errors:nr}}=te,[dr,lr]=ae.useState(void 0),ne=$r({control:sr,name:ee}),Ce=y?.type.code.includes("physical")===!0?y.cardActivationAttemptHistory[0]?.timestamp:y?.createTime,ze=(y?.recommendations??[]).map(w=>w.creditLimit.amount),cr=()=>{y!=null&&Pe({analytics:x,controllerEmails:e,isChargeCardFeatureEnabled:h,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:D,classListFetchState:$,currentLimitAmount:H,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:T,cardHolderDepartmentName:a,loggedInUserRole:E,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:j,creditAccountInformation:W,debitAccountInformation:V}),s()},pr=te.handleSubmit(()=>{const w=te.getValues(ee);w!=null&&(Pe({analytics:x,controllerEmails:e,isChargeCardFeatureEnabled:h,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:D,classListFetchState:$,currentLimitAmount:H,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:T,cardHolderDepartmentName:a,loggedInUserRole:E,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,clickItem:"Update",newSpendLimitAmount:w}),g(w))}),hr=w=>{te.setValue(ee,w,{shouldValidate:!0})},ke=ue(nr,ee),$e=U.getLocalizedStrings().common,mr=ce.largeLabelWidth.value(f);ae.useEffect(()=>{lr(Er(B,_,ne))},[ne,B,_]);const ur=(w,ie)=>t.jsxs(Wr,{isSelected:ne===w.amount,onClick:()=>hr(w.amount),"data-testid":de("quick-amount-button",ie.toString()),children:[ie===1&&t.jsx(Vr,{}),re("0,0.[00]",w)]},ie);return t.jsx(Fr,{windowSize:f,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ke,{onClickAway:()=>s(),children:t.jsxs(Ar,{windowSize:f,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:w=>{w.preventDefault(),pr()},children:[t.jsx(Rr,{windowSize:f,children:J.heading}),t.jsxs(_r,{windowSize:f,children:[J.currentLimit,$e.strings.space," ",re("0,0.[00]",H),J.slashMonth]}),t.jsxs(Br,{hasError:ke,children:[t.jsx(fr,{label:{label:J.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:J.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:w=>!!w&&w>0&&w>B.amount&&(_!=null?w<=_.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),I?.length?t.jsx(Ur,{windowSize:f,children:I?.map((w,ie)=>ur(w.creditLimit,ie))}):null]})]})}),t.jsx(Hr,{children:t.jsxs(Mr,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(Or,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:Z==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:K})]})})]})})})}const Er=(e,h,c)=>{if(c!=null){if(c<=e.amount)return J.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(h!=null&&c>h.amount)return J.amountExceedError.replace("_amount_",re("0,0.[00]",h))}},Pe=({analytics:e,controllerEmails:h,isChargeCardFeatureEnabled:c,productInformation:p,creditAccountInformation:l,debitAccountInformation:y,cardDetail:n,transactionStatistics:m,depositAccountLimitFetchState:R,creditAccount:N,creditAccountRepayment:o,signedInUser:D,isDebitCard:$,classListFetchState:H,currentLimitAmount:B,recommendedLimitAmounts:j,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:_,cardIssuedByDepartmentName:K,cardHolderDepartmentName:Z,loggedInUserRole:I,clickItem:Y,newSpendLimitAmount:u})=>{n!=null&&H==="Completed"&&m!=null&&m.fetchState==="Completed"&&(!c||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!$||R==="Completed")&&e.trackCardsUpdateSpendLimitClick(h,p,{cardId:n.id,cardName:n.cardName,cardType:vr(n.type.code),cardCategory:n.type.code.includes("physical")?"physical":"virtual",cardLimit:oe(n.limit.amount),cardLastFourDigits:n.accountLast4,cardStatus:n.status.code,cardAssignedDate:n.createTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:n.providerCardCreateTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:W?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:n.creditLimitFrequency.name,cardSpentAmount:oe(n.balance.amount),cardAvailableLimit:oe(n.available.amount),cardUtilizationPercent:br(n.limit.amount,n.available.amount),cardUtilizationAmount:oe(yr(n)),totalNumberOfDeclinedTransactions:m.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:m.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:m.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:m.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:m.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:m.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:m.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:m.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:m.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:m.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Le(n.cardCreatedByUser,!1),cardIssuedByEmail:n.cardCreatedByUser?.email,cardIssuedByUserId:n.cardCreatedByUser?.userId,cardIssuedByRole:V,cardIssuedByDepartment:K},{cardholderName:Le(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:_,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:Z},{cardLimitUpdatedByName:jr(D),cardLimitUpdatedByEmail:D.userEmail,cardLimitUpdatedByRole:I,cardLimitUpdatedByUserId:D.userId},Y,oe(B.amount),j,u!=null?j.includes(u):!1,u,l,y)},ce={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},Fr=i.div`
|
|
53
53
|
position: fixed;
|
|
54
54
|
top: ${r.sp0};
|
|
55
55
|
left: ${r.sp0};
|
|
@@ -60,7 +60,7 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
60
60
|
flex-direction: column;
|
|
61
61
|
align-items: center;
|
|
62
62
|
background: ${X.overlayDark};
|
|
63
|
-
`,
|
|
63
|
+
`,Ar=i.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
justify-content: space-between;
|
|
@@ -80,16 +80,16 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
80
80
|
`,_r=i(v)`
|
|
81
81
|
color: ${e=>e.theme.colors.hero};
|
|
82
82
|
margin-bottom: ${r.sp3};
|
|
83
|
-
`,
|
|
83
|
+
`,Mr=i.div`
|
|
84
84
|
display: flex;
|
|
85
85
|
justify-content: center;
|
|
86
86
|
padding-top: ${r.sp4};
|
|
87
|
-
`,
|
|
87
|
+
`,Or=i.div`
|
|
88
88
|
width: ${r.sp3};
|
|
89
|
-
`,
|
|
89
|
+
`,Hr=i.div`
|
|
90
90
|
display: flex;
|
|
91
91
|
flex-direction: column;
|
|
92
|
-
`,
|
|
92
|
+
`,Br=i.div`
|
|
93
93
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
94
94
|
box-shadow: ${e=>`${r.sp0} 1px 2px ${r.sp0} ${e.theme.colors.issueChargeCardBackgroundShadow}`};
|
|
95
95
|
border-radius: ${r.sp2};
|
|
@@ -127,7 +127,7 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
127
127
|
height: ${r.sp3};
|
|
128
128
|
`,Yr=i.form`
|
|
129
129
|
display: contents;
|
|
130
|
-
`,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{common:S,closeCard:
|
|
130
|
+
`,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{common:S,closeCard:M}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",De="closeCardPage",F=(e,h)=>`${e}.${h}`,Te=e=>`${e}_form`,{common:be,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Ci=({showCloseCardDrawer:e,onCloseCloseCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,closeCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),D=Oe(),[$,H]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),B=a=>{H(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(g=>[g,!1])),[a]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:_}=j.formState,K=a=>`${p[a].cardHolderUser?.firstName??""} ${p[a].cardHolderUser?.lastName??""}`,Z=ue(_,F(z,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const a=j.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};R(s)}}),u=Object.keys(l).length>1,E=Object.keys(l).length,T=Object.values(l).reduce((a,s)=>a+s.length,0);return t.jsx(He,{anchor:"right",open:e,onClose:h,PaperProps:{style:{width:L.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:D.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Gr,{windowSize:o,children:[t.jsxs(Kr,{windowSize:o,children:[t.jsx(Zr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:u?M.closeCards:M.closeCard}):t.jsx(dt,{children:u?M.closeCards:M.closeCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:Te(De),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:u?T>0?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",E.toString()).replace("_number_of_recurring_expenses_",T.toString())} ${T===1?S.expense:S.expenses} ${M.multipleCardsHasRecurringExpensesSuffix}`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",E.toString()):M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",T.toString()).replace("_expense_",T===1?S.expense:S.expenses)}),u&&t.jsx(Lt,{children:`${E} ${E===1?S.card:S.cards} ${S.selected}`}),Object.keys(l).map((a,s)=>{const g=l[a].length>0;return t.jsxs(pt,{onClick:()=>g?B(a):void 0,isMoreThanOneCard:u,isLastCard:s===Object.keys(l).length-1,children:[t.jsxs(mt,{windowSize:o,children:[t.jsxs(ut,{windowSize:o,children:[t.jsxs(gt,{windowSize:o,children:[p[a].cardHolderUser?.photo!==void 0?t.jsx(et,{src:p[a].cardHolderUser?.photo.href,alt:Xr.userProfileAltText,onError:({currentTarget:x})=>{x.onerror=null,x.src=Be},loading:"lazy"}):t.jsx(Ue,{firstName:p[a].cardHolderUser?.firstName??"",lastName:p[a].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(ht,{children:K(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:p[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Ee,{}))]}),t.jsxs(wt,{windowSize:o,children:[p[a].cardName,t.jsx(or,{cardDetail:p[a],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs($t,{windowSize:o,children:[t.jsxs(Ct,{children:[t.jsx(zt,{children:l[a].length}),t.jsx(St,{children:S.recurringExpenses})]}),o!=="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Ee,{}))]})]}),u&&t.jsx(it,{children:t.jsx(Ve,{variant:"standard",title:be.remove,children:t.jsx(tt,{onClick:()=>m(a)})})}),$[a]&&g&&t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsxs(ft,{children:[t.jsxs(kt,{children:[t.jsx(je,{width:o==="small"?112:240,children:S.merchant}),t.jsx(je,{width:o==="small"?112:104,children:S.nextPaymentDate}),t.jsx(Pt,{width:o==="small"?100:312,children:S.amount})]}),l[a].map((x,f)=>t.jsxs("div",{children:[f>0&&t.jsx(Ne,{}),t.jsxs(yt,{children:[t.jsxs(bt,{windowSize:o,children:[t.jsx(ot,{src:x.merchant.logo?.url?.href}),t.jsx(rt,{windowSize:o,children:x.merchant.brandName??x.merchant.name})]}),t.jsx(vt,{windowSize:o,children:x.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(jt,{windowSize:o,children:re("0,0.00",x.amount)})]},x.merchant.name)]},x.merchant.name))]})]})]},a)})]}),t.jsx(Tt,{windowSize:o,children:S.letUsKnowWhy}),t.jsxs(Dt,{isReasonTextFieldVisible:I==="other",children:[t.jsxs(at,{size:o,children:[t.jsx(Ye,{label:S.reasonLabel,htmlFor:F(z,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(st,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:S.reason.lost},style:{width:"auto"},radioField:{name:F(z,"reasonType"),id:`${F(z,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.fraud},style:{width:"auto"},radioField:{name:F(z,"reasonType"),id:`${F(z,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.not_needed},style:{width:"auto"},radioField:{name:F(z,"reasonType"),id:`${F(z,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.other},style:{width:"auto"},radioField:{name:F(z,"reasonType"),id:`${F(z,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:D.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:F(z,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&Z?t.jsx(Jr,{children:M.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Te(De),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:be.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:be.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Gr=i.div`
|
|
131
131
|
display: flex;
|
|
132
132
|
flex-direction: column;
|
|
133
133
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -342,7 +342,7 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
342
342
|
min-width: ${r.sp4};
|
|
343
343
|
min-height: ${r.sp4};
|
|
344
344
|
color: inherit;
|
|
345
|
-
`,
|
|
345
|
+
`,Ee=i(er)`
|
|
346
346
|
cursor: pointer;
|
|
347
347
|
width: ${r.sp4};
|
|
348
348
|
height: ${r.sp4};
|
|
@@ -354,7 +354,7 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
354
354
|
color: ${e=>e.theme.colors.hero};
|
|
355
355
|
`,Pt=i(je)`
|
|
356
356
|
text-align: right;
|
|
357
|
-
`,
|
|
357
|
+
`,Dt=i.div`
|
|
358
358
|
border-radius: ${r.sp2};
|
|
359
359
|
padding-left: ${r.sp4};
|
|
360
360
|
padding-right: ${r.sp4};
|
|
@@ -370,23 +370,23 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
370
370
|
background-color: ${e=>e.theme.colors.background};
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
`,
|
|
373
|
+
`,Tt=i(we)`
|
|
374
374
|
margin-bottom: ${r.sp3};
|
|
375
375
|
margin-top: ${r.sp7};
|
|
376
376
|
color: ${e=>e.theme.colors.primary};
|
|
377
|
-
`,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{lockCard:
|
|
377
|
+
`,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{lockCard:O,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Fe="lockCardPage",A=(e,h)=>`${e}.${h}`,Ae=e=>`${e}_form`,{common:ve,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,lockCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),D=Oe(),[$,H]=ae.useState(Object.fromEntries(Object.keys(l).map((s,g)=>[s,g===0]))),B=s=>{H(g=>g[s]?{...g,[s]:!1}:{...Object.fromEntries(Object.keys(g).map(x=>[x,!1])),[s]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:_}=j.formState,K=s=>`${p[s].cardHolderUser?.firstName??""} ${p[s].cardHolderUser?.lastName??""}`,Z=ue(_,A(k,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const s=j.getValues(),g={reason:s[k].reason,reasonType:s[k].reasonType};R(g)}}),u=Object.keys(l).length>1,E=Object.keys(l).length,T=Object.values(l).reduce((s,g)=>s+g.length,0),a=l[Object.keys(l)[0]].length>0;return t.jsx(He,{anchor:"right",open:e,onClose:h,PaperProps:{style:{width:P.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:D.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Et,{windowSize:o,children:[t.jsxs(Ft,{windowSize:o,children:[t.jsx(_t,{windowSize:o,children:t.jsx(Ot,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:u?O.lockCards:O.lockCard}):t.jsx(Xt,{children:u?O.lockCards:O.lockCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:Ae(Fe),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Kt,{windowSize:o,children:u?T>0?`${O.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",E.toString()).replace("_number_of_recurring_expenses_",T.toString())} ${T===1?C.expense:C.expenses}.`:O.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",E.toString()):a?O.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",T.toString()).replace("_expense_",T===1?C.expense:C.expenses):O.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${E} ${E===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,g)=>{const x=l[s].length>0;return t.jsxs(Zt,{onClick:()=>x?B(s):void 0,isMoreThanOneCard:u,isLastCard:g===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Rt,{windowSize:o,children:[t.jsxs(ei,{windowSize:o,children:[p[s].cardHolderUser?.photo!==void 0?t.jsx(Ht,{src:p[s].cardHolderUser?.photo.href,alt:It.userProfileAltText,onError:({currentTarget:f})=>{f.onerror=null,f.src=Be},loading:"lazy"}):t.jsx(Ue,{firstName:p[s].cardHolderUser?.firstName??"",lastName:p[s].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(Jt,{children:K(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:p[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&x&&($[s]?t.jsx(_e,{}):t.jsx(Me,{}))]}),t.jsxs(ti,{windowSize:o,children:[p[s].cardName,t.jsx(or,{cardDetail:p[s],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs(ii,{windowSize:o,children:[t.jsxs(li,{children:[t.jsx(pi,{children:l[s].length}),t.jsx(ci,{children:C.recurringExpenses})]}),o!=="small"&&x&&($[s]?t.jsx(_e,{}):t.jsx(Me,{}))]})]}),u&&t.jsx(At,{children:t.jsx(Ve,{variant:"standard",title:ve.remove,children:t.jsx(Ut,{onClick:()=>m(s)})})}),$[s]&&x&&t.jsxs(t.Fragment,{children:[t.jsx(Re,{}),t.jsxs(oi,{children:[t.jsxs(hi,{children:[t.jsx(Se,{width:o==="small"?112:240,children:C.merchant}),t.jsx(Se,{width:o==="small"?112:104,children:C.nextPaymentDate}),t.jsx(ui,{width:o==="small"?100:312,children:C.amount})]}),l[s].map((f,se)=>t.jsxs("div",{children:[se>0&&t.jsx(Re,{}),t.jsxs(ai,{children:[t.jsxs(si,{windowSize:o,children:[t.jsx(Wt,{src:f.merchant.logo?.url?.href}),t.jsx(Bt,{windowSize:o,children:f.merchant.brandName??f.merchant.name})]}),t.jsx(ni,{windowSize:o,children:f.nextPaymentDate.format(Nt.visual.MMMDCommaYYYYformat)}),t.jsx(di,{windowSize:o,children:re("0,0.00",f.amount)})]},f.merchant.name)]},f.merchant.name))]})]})]},s)})]}),t.jsx(xi,{windowSize:o,children:C.letUsKnowWhy}),t.jsxs(gi,{isReasonTextFieldVisible:I==="other",children:[t.jsxs(Vt,{size:o,children:[t.jsx(Ye,{label:C.reasonLabel,htmlFor:A(k,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(Yt,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:C.reason.lost},style:{width:"auto"},radioField:{name:A(k,"reasonType"),id:`${A(k,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.fraud},style:{width:"auto"},radioField:{name:A(k,"reasonType"),id:`${A(k,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.not_needed},style:{width:"auto"},radioField:{name:A(k,"reasonType"),id:`${A(k,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.other},style:{width:"auto"},radioField:{name:A(k,"reasonType"),id:`${A(k,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:D.colors.background,marginTop:`${P.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:A(k,"reason"),placeholder:O.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&Z?t.jsx(Mt,{children:O.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Ae(Fe),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ve.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:ve.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Et=i.div`
|
|
378
378
|
display: flex;
|
|
379
379
|
flex-direction: column;
|
|
380
380
|
background-color: ${e=>e.theme.colors.grey4};
|
|
381
381
|
overflow-x: hidden;
|
|
382
382
|
height: 100vh;
|
|
383
383
|
width: 100%;
|
|
384
|
-
`,
|
|
384
|
+
`,Ft=i.div`
|
|
385
385
|
height: auto;
|
|
386
386
|
padding-left: ${e=>`${P.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
387
387
|
padding-right: ${e=>`${P.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
388
388
|
margin-bottom: auto;
|
|
389
|
-
`,
|
|
389
|
+
`,At=i.div`
|
|
390
390
|
position: absolute;
|
|
391
391
|
right: -${r.sp2};
|
|
392
392
|
top: -${r.sp2};
|
|
@@ -403,10 +403,10 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
403
403
|
padding: ${e=>`${P.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${r.sp0}`};
|
|
404
404
|
z-index: 2;
|
|
405
405
|
background-color: ${e=>e.theme.colors.grey4};
|
|
406
|
-
`,
|
|
406
|
+
`,Mt=i(G)`
|
|
407
407
|
color: ${e=>e.theme.colors.important};
|
|
408
408
|
text-align: end;
|
|
409
|
-
`,
|
|
409
|
+
`,Ot=i(Ze)`
|
|
410
410
|
cursor: pointer;
|
|
411
411
|
color: ${e=>e.theme.colors.hero};
|
|
412
412
|
width: ${r.sp4};
|
|
@@ -415,13 +415,13 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
415
415
|
&:hover {
|
|
416
416
|
color: ${e=>e.theme.colors.primary};
|
|
417
417
|
}
|
|
418
|
-
`,
|
|
418
|
+
`,Ht=i.img`
|
|
419
419
|
height: ${r.sp6};
|
|
420
420
|
width: ${r.sp6};
|
|
421
421
|
border-radius: 50%;
|
|
422
422
|
justify-content: center;
|
|
423
423
|
color: ${e=>e.theme.colors.hero};
|
|
424
|
-
`,
|
|
424
|
+
`,Bt=i(v)`
|
|
425
425
|
margin-right: ${r.sp3};
|
|
426
426
|
color: inherit;
|
|
427
427
|
-webkit-line-clamp: ${e=>P.webkitLineClamp.value(e.windowSize)};
|
|
@@ -588,7 +588,7 @@ import{q as he,f as Me,a9 as me,y as d,cX as ue,V as t,f7 as Be,ac as ge,ap as H
|
|
|
588
588
|
min-width: ${r.sp4};
|
|
589
589
|
min-height: ${r.sp4};
|
|
590
590
|
color: inherit;
|
|
591
|
-
`,
|
|
591
|
+
`,Me=i(er)`
|
|
592
592
|
cursor: pointer;
|
|
593
593
|
width: ${r.sp4};
|
|
594
594
|
height: ${r.sp4};
|