@zeniai/web-cockpit-ui 1.14.95-qa → 1.14.96-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-OhfwzmDP-DdD4zL4Q.js → ACHDetailsPage-BRWOdhMx-lCkplz0-.js} +1 -1
- package/dist/assets/{AIPerformancePage-9OxanlvK-BXX9Wvwc.js → AIPerformancePage-4v4Fkm9f-BqYLGo1s.js} +1 -1
- package/dist/assets/AccountInfoPage-Ca_vKG58-pmVk2hiY.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Bu-ZFVKf-C4GdgvFu.js → AccountInfoPageContent-Dv1IPcdF-ChZIyLOA.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BqLkGmTA-jm18L80A.js → AccountLockedInfoModal-CEk5d9hq-BU7zCzNG.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CyQ13mJl-BmO7CG_D.js → AccountReconDetailsDrawerPage-DYKjrPwN-BReGAKzb.js} +4 -4
- package/dist/assets/{AccountRow-pJ59k4-J-CoAUicOO.js → AccountRow-BM3xLbeh-DwBWMEiu.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-Ukdm1VDj-BGFwsHLX.js → AccountsPromoCardStack-CTkwARBJ-Dqd8qLkS.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CZ9kZK-_-BiAGImzE.js → AddAddressForCardDrawer-DfOyebHX-BnGN6mbi.js} +1 -1
- package/dist/assets/{AddToWalletPage-Bc0GY8mw-C3cfLG4q.js → AddToWalletPage-OJBvAKUj-CKSRCSe6.js} +1 -1
- package/dist/assets/{AgingReportsPage-Cam_Ox67-hs97KmMl.js → AgingReportsPage-n-UKn3Ei-CfeYGvlE.js} +1 -1
- package/dist/assets/{AllUserItems-CEBWfFac-4rlDHZMd.js → AllUserItems-BsvKEVcx-Ckn7N6Nq.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-uy2AK45a-CTpXB5_8.js → ApAgingDetailPage-Duu2uAEr-CuSndO2U.js} +2 -2
- package/dist/assets/{AppBasePage-BBolfeYB-Bc5lER_U.js → AppBasePage-DoCF494Z-BPFvSn_P.js} +1 -1
- package/dist/assets/{AppDrawerContent-Df0b3OK2-DN73Je8o.js → AppDrawerContent-DM1t0oLS-DX8gDdRy.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-ChI1Wnf--CzUIs_AI.js → ApprovalRulesSettingsPage-GZCo6_i2-ClrA48La.js} +1 -1
- package/dist/assets/{ArAgingChart-PIQ_BFy4-DHDBdROC.js → ArAgingChart-CsFDVdeO-C-RKv3GM.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DpdUPb6--CCRjmOiM.js → ArAgingDetailPage-CaOr6vAU-Dju9MqE9.js} +1 -1
- package/dist/assets/{AttachmentView-mC246Bpw-DrGTpDW1.js → AttachmentView-B0d42oAf-CFenLcCO.js} +1 -1
- package/dist/assets/{BankAccountSection-DehqZ04x-41W2QzAN.js → BankAccountSection-Bgdk93V0-DEu58Lvd.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-WkczfI75-CqYt_OOR.js → BankAccountWarningSection-DMRmF2yM-Bdqe05tT.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CCEKqkfW-tod9UikO.js → BankConnectionsSettingsPage-BpwKq93l-yFMdYswL.js} +1 -1
- package/dist/assets/{BillDetailPage-DA1djKtd-Bb1MMBA5.js → BillDetailPage-BG7FhHEq-CI73yv-V.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CLkMLaIk-8cuF8pgJ.js → BillPayApprovalRuleDetailPage-BAK1Gfko-DXu3RSd8.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CZnYZ8cn-1-rKDuyB.js → BillPayApprovalRulesPage-DiCNUU-G-CN0GV9DL.js} +1 -1
- package/dist/assets/{BillPayPromoPage-M3bRYehy-Dgm-_rq6.js → BillPayPromoPage-aGKOv8Ur-59DxEGOU.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CJyPhrld-DTmdlbKG.js → BillPaySetUpPage-DRCjyEfB-CkG4ce3e.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CQngU3lq-BRQCM3uz.js → BillingSettingsPage-CdYb74V7-D26O7kQD.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DlAOz-SY-B79KXwJ2.js → BillsBulkReviewDrawerPage-D8EGfY5P-BpW4NDmq.js} +1 -1
- package/dist/assets/{BoxItem-Cb4_ZBkK-B6f6pk_I.js → BoxItem-WOrvBzns-DD4R649W.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-D7btikKT-pxQtYA8X.js → BusinessVerificationPage-CbqJIVpz-BiQu25FO.js} +1 -1
- package/dist/assets/{CardNumberSubText-DQ6T2OKm-DCKs4uKc.js → CardNumberSubText-DBOH0_yP-Be1TwMNo.js} +1 -1
- package/dist/assets/{CashbackDetailPage-ToN5ueBt-C2Y15BH8.js → CashbackDetailPage-D-kXy6LW-DDN4yxLo.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BYNjlLQX-DJNjaSTs.js → ChargeCardDetailPage-BQnJsfn5-D6Qm3_DY.js} +21 -21
- package/dist/assets/{ChargeCardListPage-CTG6bNbA-DaP6v7BG.js → ChargeCardListPage-130ILwkr-xWvWRUI-.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BRAAvmWW-JH6rpzV1.js → ChargeCardListTable-EGkwcy7i-Gk77wXoS.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-xhEvT_sU-CmxB4aQB.js → ChargeCardPromoPage-BwqrXrY--B5or9kQv.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-Be89R3A7-DUNuTFF_.js → ChargeCardSetupPage-DRzB7Rt4-SAR76aeK.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CFNCOiLr-b2E65UDG.js → ChargeCardStatementsPage-C3NxKjmB-Bqdh-I41.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Cy0NVgKc-Zp4oes8b.js → CheckDepositDrawerPage-ClxKj2js-BOLtAKO1.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CrR91Kpi-Dy9cAsrx.js → CollapsableReportTable-xkNXkjfh-CuBOzrbM.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-4FjXy6T9-B3cS-sQk.js → CompanyOfficerDetailsSection-BtUBatbQ-CS2katNY.js} +1 -1
- package/dist/assets/{CompanyPassportCard-Bv6Aws7i-B_fOwuri.js → CompanyPassportCard-BOxM716U-DxvRrHgL.js} +2 -2
- package/dist/assets/{CompanyPassportPage-DRhnOgdd-T5m8ah8o.js → CompanyPassportPage-DzE7sm8S-ZZY5euQN.js} +13 -13
- package/dist/assets/{CompleteProfile-CdVQdaB0-Ci5MS1RB.js → CompleteProfile-BjGSPASa-Bfp0I59Q.js} +1 -1
- package/dist/assets/{ConfettiBurst-Cygb8bhF-BkyBmjib.js → ConfettiBurst-1rYKpbAj-DHWZb_DF.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-_jZBL7C2-Bwa8TxOQ.js → CreateOrEditVendorPage-WQeDCj-E-ZLNX3FBX.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CWF47Q9G-BEbpjMeo.js → CreditCardPaymentDrawerPage-Q12y6HMX-CRUPlZFr.js} +101 -101
- package/dist/assets/{CurrencySelectField-ppkSKTpN-CCfN6HCM.js → CurrencySelectField-AjAWhg6e-h8iODRHM.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DbaC9Uy1-DT9KZwZx.js → CustomerOnboardingActivationPage-BJhw-PvI-DfxjHeaa.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-D7esgWyy.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-5PeyznvM-BHgacpb2.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-A_sh3_b9.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CWvaI2vY-Bpy9JGfY.js → CustomerOnboardingNoStepsPage-CNni6chX-DEHNST6I.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DWmMR5Ke-CYuQWfOJ.js → CustomerOnboardingPage-CvN9Jrdy-BbxW7een.js} +4 -4
- package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-CVf3ueoc.js +202 -0
- package/dist/assets/{Dashboard-CJSMYKO7-BwYJYHtS.js → Dashboard-_o0Ftdv8-B4FMEqu7.js} +1 -1
- package/dist/assets/{DashboardReportPage-CcY-7-W_-cqT3B1yF.js → DashboardReportPage-Cu5wqWkj-BjOABFkU.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-D3qI_q0a-B-0syXtH.js → DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-1uwRQXQg.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BpbS0SRE-CHj8YEEp.js → DepositAccTransactionItem-BOPK7-7P-CmYSzV4w.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-C1EuUbFg-BSNLRrDu.js → DepositAccTransactionListPage-oj9tntbI-CMORNmGB.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DTrY_uHQ-DCWcJ9yJ.js → DomesticWireDetailsPage-FGdEilUB-BIDfGIPL.js} +1 -1
- package/dist/assets/{DownloadOverlay-gRH0FIa6-BNbk0uP9.js → DownloadOverlay-c57lEf_V-BH-A5hnp.js} +1 -1
- package/dist/assets/{DrawerPage-gsfboWa--BzijVXgI.js → DrawerPage-inbhWwND-BaLC0Hdr.js} +1 -1
- package/dist/assets/{EditPeoplePage-D3GenIke-BGFZN7wJ.js → EditPeoplePage-DJthuIP4-Ccr8TbIs.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CC4JbXua-eK3THW2u.js → EditReimbursementDetailPage-Bt7XKq5h-BcSPiJVn.js} +1 -1
- package/dist/assets/{EntityDetailPage-dZ-H_-kO-DfN0Mx9T.js → EntityDetailPage-DbTiF9Hs-DOWN_WQU.js} +1 -1
- package/dist/assets/{EntitySummarySection-BaSzuw3T-BHZTMsNc.js → EntitySummarySection-CHgrPo86-C_DZGpt7.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CtBVIXza-BCSEKrJ1.js → ExpenseAutomationOverviewPage-QZT_UFXf-Q6Yezq8W.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BByZfMUo-CI-PIApx.js → ExpenseAutomationPage-Y7V_Z8rd-Nz-tHH0P.js} +36 -36
- package/dist/assets/{ExpressPayPage-Dx4Cc9w2-b1gTuuNh.js → ExpressPayPage-CIp_R6ZQ-SvQXytoV.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Us5W5Wo9-CMiSss7O.js → FeaturePreviewPage-qsUO3mUu-CQPzEAZz.js} +1 -1
- package/dist/assets/{FollowStepsSection-DDXRZdXi-CIURJ8Ij.js → FollowStepsSection-ebmR-eLP-CCCIBkct.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Ou4B6O28-CvU3fSOy.js → GlobalReviewListPage-9V-xoqvs-O56nx8QU.js} +1 -1
- package/dist/assets/{InformationCardStack-DEj81xCg-CpQfwwkr.js → InformationCardStack-DnB7TmOk-BJQfDBIj.js} +1 -1
- package/dist/assets/{InsightsCardStack-BSigEuRs-sVjB45UN.js → InsightsCardStack-BBczCYEz-CM9k6Dqk.js} +5 -5
- package/dist/assets/{InsightsSection-BrjpMz4X-DhT6u3Y9.js → InsightsSection-BTXj5WUe-BehAISJe.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-BEBtsJ8z-fhMp19Tb.js → IntegrationsSettingsPage-CByj2tO4-zF-3f5Vb.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-DqTA5UPe-CyJj8LGm.js → InternationalWireSwiftDetailsPage-4-pl1ozv-BL59ObmT.js} +4 -4
- package/dist/assets/{InternationalWireVerificationPage-CGLyTJOX-DYoqilx4.js → InternationalWireVerificationPage-kIajgPZt-Cim3HMUE.js} +1 -1
- package/dist/assets/{InviteFormPage-CHZVhrof-CmLLm3nY.js → InviteFormPage-XsnZcAvb-F0roB33R.js} +1 -1
- package/dist/assets/{InvitePageListView-B0aN2fz0-CN5UK10L.js → InvitePageListView-HfsehyxK-ADhebkRn.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DLPupvdi-CZAzyY3m.js → InvitePeoplePage-DrBtwpMH-D70ug1bL.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-COIpUGEB-QBqQhsQX.js → InvoiceUploadSection-DPd4VmqZ-BLpPijn4.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-6LWMwuaq-wAGsjX-3.js → IssueChargeCardPage-xbfFhV0O-D87TKikm.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BOPQCQtK-BGuz_b6Q.js → LabeledAddressValue-CB_KH7v5-DhXcxbM6.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DxybAWPO-BwY94g69.js → LabeledAddressValueField-Bt41wdNQ-CdN5suyF.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BSciMX7_-DPxXu2WP.js → LabeledControlledCheckBoxField-Btw_zwzy-I7spg7Dx.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-q23ARfG8-AevFfTj2.js → LabeledCreatableSingleSelectField-fycRE7PX-BLM_4t-_.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Icg5_obX-BbKKTiN8.js → LabeledDocumentField-C73vQNgq-xVgwP02Y.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BiJOzT5B-CLqsiSO6.js → LabeledDropDownFormattedTextField-DGb_bDyp-DbOxXrX_.js} +1 -1
- package/dist/assets/{LabeledText-Tn7u-Ek3-xseE37h-.js → LabeledText-yhm8qxrA-B5O06POj.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B_MWazM_-B9DZ0EPe.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-BYzGVtZI.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DyCxNVQD-5GagGrrx.js → LabeledZeniRolesDropDownField-DGkU72cd-iMLOxXqS.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-NXVaaeQn-SZ9zUkD-.js → LinkJETransactionPage-C0onrP5t-DohOtG77.js} +1 -1
- package/dist/assets/{LockCardPage-DFFQF_XE-BklOvQzD.js → LockCardPage-DaVzuRMw-C59qINIA.js} +1 -1
- package/dist/assets/{LowBalancePopup-T5Ms2v-E-BYNteSIy.js → LowBalancePopup-Dd9HLWlh-qIEjt8fN.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-JoGWlKNi.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-Clx_7zaI.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-x_28I9nn.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-BU8oXuny-DSh7042d.js → MagicLinkSuccessPage-DbhdGmhh-DNYzgAJU.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-kbY8yTTa-aBbWmPX8.js → MagicLinkTitleSection-Bx92291D-D9nsnbMt.js} +1 -1
- package/dist/assets/MailingDetailsSection-D-tnK244-BXHufBP2.js +21 -0
- package/dist/assets/{Menu-DTdVYIrC-D0Ommq2i.js → Menu-0YHUdU0n-12P5RljB.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-B67G0-7Z-CiJI1eZj.js → MyBankConnectionsSettingsPage-Dn9AT8p1-BbviCBBU.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Cbap6Vpr-BswK6x6q.js → MyPendingActivationChargeCardListPage-DrQu6s7j-DI8j4Roq.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-TqtGXk0G-BCdFssyr.js → MyProfileSettingsPage-CBvjEd7r-B3f0C00b.js} +1 -1
- package/dist/assets/{NavBarWithPicker-C4_SW0nA-CJkGj3be.js → NavBarWithPicker-aXn2QYh1-CB_AN-HG.js} +1 -1
- package/dist/assets/{NavigationArrow-6jp6I9fp-pb2zk4A2.js → NavigationArrow-JLUXaIrz-BZffLUxV.js} +1 -1
- package/dist/assets/{NavigationDots-BSjG6OlY-Bmp_8_u3.js → NavigationDots-B0_dDbgu-D1euhRa0.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BXM36kwh-BLKAA2k3.js → NewGlobalMerchantPage-B_019EtP-Cnin4QvT.js} +1 -1
- package/dist/assets/{NoDataChart-CRhOisS1-NaiacaKQ.js → NoDataChart-DLKHNXD4-CdqcDLeH.js} +1 -1
- package/dist/assets/{NoDataTable-bIZY56VS-BkYRa670.js → NoDataTable-BMD2qygC-4Ck98ufk.js} +1 -1
- package/dist/assets/{NotFoundPage-Y4UqiUrL-BRe0cl3a.js → NotFoundPage-BEya4LS2-BrCuBa4j.js} +3 -3
- package/dist/assets/{NotificationSettingsPage-Ct1wYM98-BFwx1CLp.js → NotificationSettingsPage-C9SjRKCu-Du1Cf4y_.js} +1 -1
- package/dist/assets/{NotificationsListConfig-tD8IFVDs-CkNEmokw.js → NotificationsListConfig-OCeJNw1G-DxjI9EUe.js} +1 -1
- package/dist/assets/{NotificationsPage-C8PlG40Q-Da-4Xy6C.js → NotificationsPage-FJHx_WBG-TAfeF35H.js} +1 -1
- package/dist/assets/{OpExByVendorPage-B5dz3g_I-I8GN1geI.js → OpExByVendorPage-Dxk68R6U-TSpF0BZT.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-LeGwVBLx.js → OverlayContainerPage-Daz3A7cI-BG61qzjJ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BzeV5E9J-CGbeCgje.js → PandLWithForecastPage-Bu49FbWD-DV8somvz.js} +4 -4
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C7ucXP-C-C4Z-AXyF.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-Ccng4Jbq.js} +1 -1
- package/dist/assets/{PeoplePage-Di9LbUPG-B2_EnKkr.js → PeoplePage-DN5VtG7Q-CKG_6p7l.js} +1 -1
- package/dist/assets/{Preview-2erNF8iT.js → Preview-8iqIdVv4.js} +1 -1
- package/dist/assets/{ProductsCarousel-IX34mwaP-Dgu35i1y.js → ProductsCarousel-6gthLCkf-RpcyX94H.js} +1 -1
- package/dist/assets/{PromoBaseCards-DKl5hmY7-DM44dVRO.js → PromoBaseCards-CzPzj69A-DGTVwpLe.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CFgV4ltt-CU_bh6gZ.js → QBOConnectionDialog-BFy0lMZd-D5AhMSo8.js} +1 -1
- package/dist/assets/{QBOSetupSection-3Igwysxj-BOJfRwXo.js → QBOSetupSection-DcLYyQ5m-DYCAROkc.js} +7 -7
- package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-Cr0TZK-s.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CUQt2z6s-v84qs-bq.js → ReimbursementApprovalRulesPage-D5ZMrrmO-CIYzhtUg.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CgwRpLnh-BLKwr6Bo.js → ReimbursementDetailPage-DatcF8rt-B5PSoIBr.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BxBAhFM1-CM1ElVPd.js → ReimbursementPromoPage-MweW-4DO-BO5Os0EF.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-CP8WtKvQ-C6xTJtS6.js → ReimbursementSetUpPage-BD2LWlbW-YI084Mlh.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Ir7LV3Qg-CK8nkU7y.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-CdjeW3Za.js} +1 -1
- package/dist/assets/{ReloadCard-DLKVg3Sx-BfmOPc30.js → ReloadCard-9KpQCrce-Y78Zw9cJ.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BlpUjTMl-DG4HSeeh.js → ReportTableViewSelector-BPliEsuo-CZegsDsW.js} +1 -1
- package/dist/assets/{ReportsPage-D-4SKTVF-B_IcEd1t.js → ReportsPage-h2DAaQfK-Dj7aDDw4.js} +5 -5
- package/dist/assets/{RevenueChart-C3cckydL-HMVSEsH-.js → RevenueChart-DY2s_upY-DFXm-6Am.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-Df882foz-2IjUdS2F.js → ReviewDetailsPage-BiYxRnvA-cVXSS1nN.js} +1 -1
- package/dist/assets/{ReviewOverlay-n3lZIztC-C_xzfTZz.js → ReviewOverlay-BvPN7IKD-BVyGsnOK.js} +1 -1
- package/dist/assets/{RoleWithToolTip-jGxjGCFo-CJeRZvIG.js → RoleWithToolTip-aW95rpRe-D_rCTb4X.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-cVGyXDC1-BemuysVZ.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-CI8b87nD.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-Dcl5GREY-n05gOA_6.js → ScheduleDetailsPage-DebosLND-CytjKLyD.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CkqvmnzR-CgqDzdt0.js → ScheduleSequenceTable-Dd4Ep_c0-CndtHY8m.js} +1 -1
- package/dist/assets/{ScreenRoutes-C_RcXQE-.js → ScreenRoutes-CrZHoFIY.js} +1 -1
- package/dist/assets/{SetUpAccountSection-bKk_0Pau-CBb_-oPn.js → SetUpAccountSection-Dhb8A0Oe-CHZzV0W4.js} +1 -1
- package/dist/assets/{SignIn-BZXzRb1K-C4ACmYg1.js → SignIn-DQBJB5ad-yHNBe1dm.js} +1 -1
- package/dist/assets/{SignInScreen-CumaU6fi.js → SignInScreen-B08t21nJ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-jdvSYQ4J-h2d8ojs4.js → SpendManagementListViewPage-Ac-9u-X2-ConJ7IhF.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BlyFIn6o-C62jIBSs.js → SpendManagementPerTabPage-DgrMAQ8l-CwC7irjo.js} +1 -1
- package/dist/assets/{SpendManagementSection-Dzlokoym-BKWHzE7C.js → SpendManagementSection-Ci2yOCJ9-DUAKhgdu.js} +1 -1
- package/dist/assets/StatementItem-hcBoe79o-BTjI_1ZK.js +31 -0
- package/dist/assets/{StatementsPage-Cw6GRd81-pUZcYMzs.js → StatementsPage-DVR5LhTi-ldyTOd7O.js} +1 -1
- package/dist/assets/{StatusSwitcher-CcLiXtx4-Cm5XOAhs.js → StatusSwitcher-Cy5ITFgi-DNMieZwF.js} +1 -1
- package/dist/assets/{SubTabSwitcher-zpnLoSBy-DBbitq63.js → SubTabSwitcher-DhsES2OW-DrYqVYfO.js} +1 -1
- package/dist/assets/{SummaryCard-C2KHXXwg-BERge4v0.js → SummaryCard-Byv4Hw8Q-CEnhPnYc.js} +1 -1
- package/dist/assets/{TaskManagementPage-C3M_HCXR-Bm1qiwRz.js → TaskManagementPage-CVXMOPf2-q63kh_yR.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-COHAPH9b-BUBsu8kU.js → TimeRangeSwitcher-jct2_5PE-DPu4jgs4.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-5ql0bSzz-DssdQ-CA.js → TimeframeSwitcher-BK-qliOX-BjbSBToW.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-BXSkHN5Y-CtFyS3nB.js → TimeframeSwitcherWithToggle-Cl6ISBIz-3_smJQH4.js} +2 -2
- package/dist/assets/{TopExCard-BrodwfJq-CtCcUhXs.js → TopExCard-o4Q3ze1b-CQFtRtLu.js} +1 -1
- package/dist/assets/{TopExDetailPage-B8-Zzr1B-CVUhORwE.js → TopExDetailPage-BsCwwwDi-CdmjqJ_1.js} +5 -5
- package/dist/assets/{TransactionDetailPage-D8v3KPrb-5EhZ4YRg.js → TransactionDetailPage-rpCG65yC-CLh205i5.js} +1 -1
- package/dist/assets/{TransactionList-DMb2xYOV-CURTWhIN.js → TransactionList-YI4oZaim-xbjxS_zo.js} +1 -1
- package/dist/assets/{TransactionListBig-dUBjAacV-CkCO2tWc.js → TransactionListBig-D_Jw9Ip2-Bz8jw08Q.js} +5 -5
- package/dist/assets/{TransactionListPage-x0r04hx4-Di8xAckw.js → TransactionListPage-B2yWm7eA-DCySOEer.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-BqjeDf6Q--U9ko7oz.js → TransactionVendorDetailPage-Dr5C4-7q-BPGPWJM6.js} +1 -1
- package/dist/assets/{TransferDrawerPage-LppLtT6A-4A7bI8rn.js → TransferDrawerPage-BnEVH7Mc-C6QWMjAo.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DNoQLXPn-DcaXjmOK.js → TreasuryOverviewPage-C927Rdkg-PWkTzy8N.js} +1 -1
- package/dist/assets/{TreasuryPromoPage--MgysW-J-Dj3s0PKI.js → TreasuryPromoPage-C6D3bF2f-xmypxDfH.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DRPB8HzF-BC388rcs.js → TreasuryStatementsPage-BE54gWl6-BusQnftI.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BeeNFRtm-2bz_AQ-0.js → TreasuryTaxLetterPage-BaHut8Wc-DaO1lvfz.js} +2 -2
- package/dist/assets/{TrendChart-C7DgNHh6-BQX-LQlK.js → TrendChart-BI4Tz813-BMzjSOb0.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CpQPkCN4-BsbzS6I7.js → TrendWithTransactions-BicIDSlC-GPxD5Pyy.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-f9xrtur3-2mDu3l63.js → UncategorizedAccountsMappingPage-sbn4Sdr2-CCtQxv0E.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-SiS8CA0g-DMaIVrfP.js → UnitIntegrationPage-CZUyjeh5-DYAwrSQY.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Djnl6dYH-RPaF9yZM.js → UploadAdditionalDocumentOverlay-4AWDV_HK-CxD_HluI.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CYwD3yQ8-DLGv5yTH.js → Vendor2FAPopup-C_PmEAQ7-BaU4ZlJ1.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-ChZp1Db0-BO4gSA1P.js → VendorACHDetailsPage-DMMoCytX-D-f3jOPl.js} +1 -1
- package/dist/assets/{VendorDetailPage-CG0SxxIa-qSAiJOjE.js → VendorDetailPage-CLFKkF8I-DlccPRJ1.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-CXFWxa5o.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DQs8RP_2-BwweNk99.js → VendorFiling1099EditablePage-CrWrhHZl-MLHVoFXe.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-XaE6ddOQ-DpTvYM7B.js → VendorFirstReviewPage-C6MnbIan-CvuNZRdM.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CT75sZ0O-BB3EKzVu.js → VendorInternationalWireDetailsPage-CzPRK4E2-DP27a23P.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-CGwvkONg.js +1 -0
- package/dist/assets/{VendorsAccountsSection-C9NkRN0p-P_PN7VmQ.js → VendorsAccountsSection-CVh1n81R-CZE2h2vy.js} +1 -1
- package/dist/assets/{VerifyDevice-c6uTgDIl-C_mIC1W1.js → VerifyDevice-BHocExfO-CXvB8GAp.js} +1 -1
- package/dist/assets/{VideoPlayer-BgTXP1p7-QMbp4b9s.js → VideoPlayer-9rYRtSLf-C_MG4aUQ.js} +2 -2
- package/dist/assets/VideoPopup-D1o92dj6-Dti5suvC.js +31 -0
- package/dist/assets/{WarningsDrawerPage-BS-TFvBs-BK0syg3H.js → WarningsDrawerPage-CzufXgaN-BVjYF7DU.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CSVQF6vO-BLiPE2TJ.js → ZeniAccountDetailPage-ZZ3Ra-Jf-_49Q_UUx.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BVGsjSB2-KguVRtzk.js → ZeniAccountListViewPage-Cxid0mfh-Bo45T4Gx.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-B1l8Hjdg-BpjKHJ6-.js → ZeniAccountNavBarPieces-DDc-xph4-CzcxivOl.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-s-QGT-pZ-BjD9rvVp.js → ZeniAccountPromoPage-YIYFkPIB-YhnencbA.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CqXokSq4-CsQdsk_F.js → ZeniAccountSetupPage-BJ9UJ0dP-yNigxq0M.js} +1 -1
- package/dist/assets/{ZeniCopyright-_f5jw1U0-DOqMEDGM.js → ZeniCopyright-CztmWsFm-x7y7hEtI.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-yvd98l69-5MOeCpj6.js → ZeniTransferAmountSlider-g9qU5Lsq-BdpWeRuR.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-OiVI7bJB.js → add-to-wallet-DgdBD8_G-CnbN5S25.js} +1 -1
- package/dist/assets/{analytics-8Xbq3yYL.js → analytics-C6bOaJY9.js} +1 -1
- package/dist/assets/{analyticsHelper-BvohFLdK-CyK6ylOF.js → analyticsHelper-D4lKCWjQ-7uZfvraO.js} +1 -1
- package/dist/assets/{analyticsHelper-o1rjDPED.js → analyticsHelper-Dyr99-JR.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DQgxhSrh.js → arrow-south-east-round-PEovUgvH-D0tcq0ac.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-2oXIVweK.js → auto-transfer-rule-mbafm5D3-C5MrpFJF.js} +1 -1
- package/dist/assets/{chartTypes-h1GkAvwh-DVHQunLU.js → chartTypes-BPPSjkhb-H7A_cnp3.js} +1 -1
- package/dist/assets/{commonDimensions-7B20r1RL-DX4q8TH6.js → commonDimensions-Ds75pRzR-DJ4H9OI5.js} +1 -1
- package/dist/assets/{constants-CWLYV7Ge.js → constants-DNQWEIo3.js} +1 -1
- package/dist/assets/{core-CAJzT_Z5.js → core-BiYEzgTE.js} +1 -1
- package/dist/assets/{dash.all.min-nyIOerV_.js → dash.all.min-CNiNGlQC.js} +1 -1
- package/dist/assets/{detailCommon-C28aeDGm-DrEhEwef.js → detailCommon-DdZdfmYT-DWQ_1h8d.js} +5 -5
- package/dist/assets/{downloadPdf-D1MhyCE3-DSprID13.js → downloadPdf-B8UMaJCC-BA2fFFfC.js} +1 -1
- package/dist/assets/{empty-Bn55JOQP.js → empty-B0QxjPHg.js} +1 -1
- package/dist/assets/{empty-Dikea5lg.js → empty-D0VQVmJ6.js} +1 -1
- package/dist/assets/{epic-BTKjB1TW.js → epic-BPfIZ-JM.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-D_-9uaV1.js → gift-box-Cmt9OgIZ-DZtTQChg.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-g9Z3xxM5.js → graphic-no-data-l-DU4J8fDt-D9COe3MR.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CAQX-F-U.js → graphic-no-data-net-burn-l-CzmycA0m-CnFblD9c.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-CWemP6h4.js → handshake-BPg58FML-Dk4MbD0e.js} +1 -1
- package/dist/assets/{index-8Oyhb03N.js → index-BBJ8MbHB.js} +561 -561
- package/dist/assets/{index--sZMP6f2.js → index-BLOT0kav.js} +1 -1
- package/dist/assets/{index-D6TvziCS.js → index-BWdq4kfG.js} +1 -1
- package/dist/assets/{index-cpz_GAtD.js → index-Bl0eTNht.js} +1 -1
- package/dist/assets/{index-DQuqKPcY.js → index-CmMi38cf.js} +1 -1
- package/dist/assets/{index-CV2gkqvP.js → index-D66eZF3S.js} +1 -1
- package/dist/assets/{index-CoHJqiJH.js → index-QkeEXb1H.js} +1 -1
- package/dist/assets/{lexical-Dn8yVWzX.js → lexical-Cbl76XZt.js} +1 -1
- package/dist/assets/{liveblocks-Cv4_XqIL.js → liveblocks-BstIT-4Z.js} +1 -1
- package/dist/assets/{lottie-CHtoTuG1.js → lottie-Dcr3TlBE.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-B7ARKarP.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DtwKYRnC-DDTcgYDR.js → mapSectionWithAcOnlyToTreeNode-rrJBbsC8-DldkvgD3.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CWvamMX2-8qhsm047.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-CLPrV0Gx.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-Dt-fMHUy.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-Bx0yi6rH.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-BVNM6n_o.js} +1 -1
- package/dist/assets/{mui-g2D8ciyb.js → mui-CqcpY1UR.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CqgkwkEL.js → page-detail-CWX5S47F-KNgKNFoz.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CJW6suVR.js → radio-default-CiSgisfh-yEV1b0CM.js} +1 -1
- package/dist/assets/{react-CJI2jrH1.js → react-4Ya91sN5.js} +1 -1
- package/dist/assets/{react-CPIaawZG.js → react-B4eK6Gcb.js} +1 -1
- package/dist/assets/{react-DzTjK2ko.js → react-BPBfJ6wZ.js} +1 -1
- package/dist/assets/{react-BqnZnr-V.js → react-BR4cTFeR.js} +1 -1
- package/dist/assets/{react-Cu4WA0Dh.js → react-CAF4_aM2.js} +1 -1
- package/dist/assets/{react-CTCtOz3j.js → react-CG2AEOc2.js} +1 -1
- package/dist/assets/{react-DK6VUiop.js → react-CHCFBd-l.js} +2 -2
- package/dist/assets/{react-DRqNydaO.js → react-COBWBcIx.js} +1 -1
- package/dist/assets/{recharts-D25xpbsw.js → recharts-bDaLwU4I.js} +1 -1
- package/dist/assets/{sentry-DlgT2cdq.js → sentry-CTfRDee5.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-D7jPBNjK.js → shield-DOlUxcFf-CaZu4NEg.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CkjRB0sJ-DDXgenlP.js +1 -0
- package/dist/assets/{toChartData-BYQCR1Q4-BauxqVGI.js → toChartData-CMi2WgAy-Bk_h1ue0.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-RkVgOUGZ.js → transaction-placeholder-CpOwZAMG-DpKoIbbu.js} +1 -1
- package/dist/assets/{uploadAttachment-Cs2BAs2F-D_sz5Hgk.js → uploadAttachment-B4ddYCCL-B4kq7cBL.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-DNXk-kYS.js → uploadReceipts-CPw64UYa-DdOlSolA.js} +1 -1
- package/dist/assets/{url-BHclSfSS.js → url-BPLyW2rO.js} +1 -1
- package/dist/assets/{url-DXCCmxc2.js → url-DI6ZTkbp.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BpmPST0N.js → useLongPress-GCK2COYQ-DwbMzQIX.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DO1kFPHu.js → usp-line-BBd1wKwW-CG6D_gsM.js} +1 -1
- package/dist/assets/{utils-6fMPdJur.js → utils-BI6ira9J.js} +1 -1
- package/dist/assets/{zeni-epic-state-C06d6qPM.js → zeni-epic-state-n7oqKrUc.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-CDn5K_o2-Cwv_HO0S.js +0 -18
- package/dist/assets/CustomerOnboardingContainerPage-qmrLtjkH-DQJmN93N.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-CEOJEMdY-DT18GfmQ.js +0 -202
- package/dist/assets/MagicLinkACHDetailsPage-DtxKOlmX-CpqgcNTX.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-C7DsI3GD-BlJhnU2E.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BQtq93Cv-BHKRiqEV.js +0 -1
- package/dist/assets/MailingDetailsSection-CMekdUCQ-CQsTvQzd.js +0 -21
- package/dist/assets/ReimbursementApprovalRuleDetailPage-gUzCi41q-BI6k8ONl.js +0 -24
- package/dist/assets/StatementItem-BMV39A0D-p14qABNB.js +0 -31
- package/dist/assets/VendorDomesticWireDetailsPage-Dfawpwuo-B0pR4aPO.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CBKqnkvK-DG06lBBL.js +0 -1
- package/dist/assets/VideoPopup-BD0vmbkL-CgJvMaZi.js +0 -31
- package/dist/assets/mapLoadingInProgressToTreeNode-B5fs_QGb-BYjU1VJl.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-BufNagSk-5rdxQyBh.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BHbBvkxK-COO9Ixh2.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BOahnk__-DNxDGSc8.js +0 -1
- package/dist/assets/toCOABalancesWithID-DScSc4rG-2ZhnxEpw.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as be,q as je,a8 as Ye,cB as Qe,V as t,bz as Ze,o as i,F as re,y as P,al as et,ak as U,m as se,cj as tt,ab as nt,bQ as it,c as v,b7 as ot,b as Ne,a as at,a7 as ze,cO as ct,aN as G,aS as fe,fv as Te,cW as lt,bu as He,fw as _e,fx as st,fy as qe,bY as Oe,fz as rt,fA as dt,fB as ge,fC as we,fD as Ie,aK as Se,cb as xe,aM as ut,bH as pt,dJ as Ge,p as ne,ag as B,fE as ht,fF as mt,fG as ft,bg as gt,fH as wt}from"./index-
|
|
1
|
+
import{d as be,q as je,a8 as Ye,cB as Qe,V as t,bz as Ze,o as i,F as re,y as P,al as et,ak as U,m as se,cj as tt,ab as nt,bQ as it,c as v,b7 as ot,b as Ne,a as at,a7 as ze,cO as ct,aN as G,aS as fe,fv as Te,cW as lt,bu as He,fw as _e,fx as st,fy as qe,bY as Oe,fz as rt,fA as dt,fB as ge,fC as we,fD as Ie,aK as Se,cb as xe,aM as ut,bH as pt,dJ as Ge,p as ne,ag as B,fE as ht,fF as mt,fG as ft,bg as gt,fH as wt}from"./index-BBJ8MbHB.js";import{a as r}from"./sentry-CTfRDee5.js";import{n}from"./mui-CqcpY1UR.js";import{r as Pe}from"./core-BiYEzgTE.js";import{bJ as St,bK as ie,bL as Ee}from"./zeni-epic-state-n7oqKrUc.js";import{a as xt}from"./SetUpAccountSection-Dhb8A0Oe-CHZzV0W4.js";import"./liveblocks-BstIT-4Z.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="791de45a-253f-4109-988e-4980a986e321",e._sentryDebugIdIdentifier="sentry-dbid-791de45a-253f-4109-988e-4980a986e321")}catch{}})();const{settings:{bankConnectionHeader:de}}=re.getLocalizedStrings().common,yt={value:de.productType,width:new P(100,19)},bt={value:de.primaryAccount,width:new P(100,36)},vt={value:de.linkAccount,width:new P(100,22)},kt={value:de.status,width:new P(12,12)},$t={value:de.balance,width:new P(12,13)},N=[yt,bt,vt,kt,$t],{common:{settings:Fe,strings:{hyphen:ve}},commonSetUp:{setUp:Be}}=re.getLocalizedStrings(),T={containerPadding:new P(v[3],v[4]),containerRightPadding:new P(v[3],v[8]),iconContainerMaxWidthHeight:new P(v[6],v[7]),iconWidthHeight:new P(20,v[4]),iconPadding:new P(v[1],12),productTypeContainerMarginBottom:new P(v[3],v[0]),linkAccountContainerMarginTop:new P(v[3],v[0]),productTypeIconSize:new P(v[3],v[4])},Ct="bankConnectionsSettingsPage",At=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Ht,{windowSize:d,children:t.jsx(gt,{})});case"reimbursement":return t.jsx(qt,{windowSize:d,children:t.jsx(ft,{})});case"zeni_accounts":return t.jsx(Gt,{windowSize:d,children:t.jsx(He,{})});case"zeni_treasury":return t.jsx(Kt,{windowSize:d,children:t.jsx(mt,{})});case"charge_cards":default:return t.jsx(Jt,{windowSize:d,children:t.jsx(ht,{})})}},jt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:R,onUpdatePaymentAccountStatus:_,onEstablishConnectionClick:I,onEstablishConnectionSuccess:M})=>{const C=be(),c=je(),f=ze().analytics,{trigger:w,formState:{errors:W}}=ct(),{plaidConnectionDetails:D,allFundingAccounts:a,primaryFundingAccount:o,productType:l}=d,m=D.link_account,k=D.update_account,[p,A]=r.useState(void 0),[q,b]=r.useState(!1),V=()=>{b(!0)},u=p==="update_account"?k:m,[S,L]=r.useState(u.linkToken??null),[$,z]=r.useState(!1),g=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";let h,O,s,j=!1;o!=null&&(o.accType==="depositAccount"?h={code:"verified",name:"Verified"}:(h=o.providerVerificationStatus,O=o?.institutionDetails,s=h?.code,j=o?.isLoginRequired??!1));const X=G(m.updateStatus.fetchState),Y=G(k.updateStatus.fetchState),Z=G(k.fetchStatus.fetchState),E=C.mode==="light"?new fe(C.colors.brandColorJadeLight):new fe(C.colors.brandColorJadeDark),J=r.useCallback((x,K)=>{f.trackConnectBankSuccess(l,"Settings");const Le=K.accounts.find(Xe=>Xe.id===o?.providerAccountId)??K.accounts[0];o?.id!=null&&p==="update_account"&&Le?.verification_status!=null&&!j?_(Le?.verification_status,o.id,"update_account",y(l),l):I(x,y(l),l),A(void 0),z(!1)},[f,l,o?.id,o?.providerAccountId,p,j,_,I]),ee=r.useCallback((x,K)=>{x!=null&&(f.trackConnectBankFailure(l,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&_("verification_failed",o.id,"update_account",y(l),l),console.log("Plaid Connection Error",x,K)),A(void 0),z(!1)},[f,l,o?.id,_]),{open:Q,ready:ue}=Te({token:S,onSuccess:J,onExit:ee});r.useEffect(()=>{(X==="In-Progress"&&m.updateStatus.fetchState==="Completed"||Y==="In-Progress"&&k.updateStatus.fetchState==="Completed")&&(St(s??"")||(R("link_account",y(l)),M(y(l),l)))},[m.updateStatus.fetchState,M,R,o?.providerVerificationStatus?.code,o?.id,X,Y,k.updateStatus.fetchState,s,l]),r.useEffect(()=>{(ie(s??"")||s==="verification_failed")&&!$&&p!=null&&u.linkToken===S&&u.fetchStatus.fetchState==="Completed"&&ue&&z(!0)},[ue,S,u.fetchStatus.fetchState,u.linkToken,s,p,$]);const oe=$e(Ct,"primaryAccountSection"),F=lt(W,oe);r.useEffect(()=>{u.fetchStatus.fetchState==="Completed"&&u.linkToken!=null&&u.linkToken!==S&&L(u.linkToken)},[u.fetchStatus.fetchState,u.linkToken,S]),r.useEffect(()=>{$&&Q()},[$,Q]),r.useEffect(()=>{!o?.zeniAccountId&&!F&&w(oe)},[o?.id]),r.useEffect(()=>{(s==null||s==="verification_failed"||s==="verification_expired"||ie(s))&&(Ee(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&R("link_account",y(l))},[]);const te=()=>{f.trackConnectBankGetBalance(l,"Settings"),A("update_account"),R("update_account",y(l),o?.id)},ae=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),pe=O?.zeniInstitutionId.toLowerCase()==="chase",Je=a.findIndex(x=>x.id===o?.id),Ke={element:t.jsx(He,{width:T.iconWidthHeight.valuePx(c)}),color:E};return t.jsxs(zt,{windowSize:c,children:[q===!0?Pe.createPortal(t.jsx(_e,{connectedAccountProvider:H,action:{onBackClick:()=>b(!1)}}),document.body):null,t.jsxs(Tt,{windowSize:c,wrapperWidth:N[0].width,children:[t.jsx(It,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx(At,{productType:l,windowSize:c})}),t.jsx(_t,{children:Fe.productNameByType[l]})]}),t.jsx(Pt,{windowSize:c,wrapperWidth:N[1].width,children:t.jsxs(Rt,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(Bt,{isDisabled:j,children:st(Ke,c,C.mode==="dark",o,Je,!1)}):null,t.jsxs(Mt,{windowSize:c,className:"fundingAccount",children:[t.jsx(qe,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:C.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:v[4],fontWeight:Oe.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Oe.medium},name:$e(l,"primaryAccountSection"),placeholder:Be.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,K)=>dt(a,x,K),valueToSubLabels:(x,K)=>rt(a,x,K,!1),defaultValue:{selectedOption:o?.id,allOptions:a.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:g?"disabled":void 0,showLoadingIcon:g,onClickCreateOption:()=>{f.trackConnectBank(l,"Settings"),A("link_account"),m.linkToken==null||Ee(new Date().toISOString()).isAfter(m.expiration)?R("link_account",y(l)):S!==m.linkToken?L(m.linkToken):$?Q():z(!0)}}),t.jsxs(Lt,{isDisabled:j,children:[ae?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{children:ae}),c!=="small"&&(s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe)?t.jsx(Ft,{}):null]}):null,c==="small"&&h!=null?t.jsx(ge,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:h.name,textColor:we(h.code)}):null,s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe?t.jsx(Ie,{productType:l,isUpdateLinkClicked:p==="update_account",isLoginRequired:j,isPendingVerification:s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:k.fetchStatus,updateStatus:k.updateStatus,linkFetchStatus:m.fetchStatus,linkUpdateStatus:m.updateStatus,prevFetchState:Z,prevUpdateState:Y},onUpdateLinkTokenClick:te,onChaseInfoClick:V}):null]})]}),c==="small"?t.jsxs(Dt,{children:[o?.accountBalance?.available?t.jsx(Re,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(Me,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Ut,{windowSize:c,isDisabled:j,wrapperWidth:N[2].width,onClick:x=>x.stopPropagation(),"data-testid":ut("bank-account-section",l),className:"qboLinkAcc",children:[c==="small"?t.jsx(Et,{children:Fe.bankConnectionHeader.linkAccount}):null,t.jsx(Nt,{isDisabled:j?"disabled":void 0,name:$e(l,"bankAccountSection"),placeholder:Be.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Vt,{windowSize:c,wrapperWidth:N[3].width,children:h!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:h.name,textColor:we(h.code)}):t.jsx(ke,{children:ve})}):null,c!=="small"?t.jsxs(Wt,{windowSize:c,wrapperWidth:N[4].width,children:[o?.accountBalance?.available?t.jsx(Re,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(Me,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},zt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
package/dist/assets/{BillDetailPage-DA1djKtd-Bb1MMBA5.js → BillDetailPage-BG7FhHEq-CI73yv-V.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Wn,av as Zn,d as Kn,gc as Un,gd as Vn,ge as Gn,gf as Hn,ca as qn,aN as Xn,y,V as t,f3 as dt,f4 as Jn,o as a,f5 as Qn,f6 as Yn,f7 as ea,aK as Ae,f8 as ta,aM as b,bz as ct,bm as pt,dr as mt,cm as ut,cn as yt,co as ht,gg as na,gh as aa,gi as ia,gj as la,fd as $,gk as I,ff as A,fg as k,fc as oa,b as bt,p as ie,fe as Lt,fm as ra,fh as sa,fi as da,gl as ca,gm as pa,aO as ma,an as gt,bQ as we,gn as ua,go as L,F as ya,c as s,ah as ha,b$ as ba,gp as ga,L as fa,gq as xa,fn as ft,a as wa,d0 as Ta,cf as va,gr as xt,b5 as Da,b7 as ja,l as $a,bS as Ot,d1 as Ia,gs as Aa,ag as Ft,aW as ka,b3 as Sa,br as Ca,eJ as Pa,ak as Ba}from"./index-8Oyhb03N.js";import{a as p}from"./sentry-DlgT2cdq.js";import{n as i}from"./mui-g2D8ciyb.js";import{a as Ra}from"./liveblocks-Cv4_XqIL.js";import{bO as za,bL as Ma,bP as Na,FB as La,bN as Oa,bH as Fa,bh as Ea}from"./zeni-epic-state-C06d6qPM.js";import{o as _a,t as Wa}from"./LowBalancePopup-T5Ms2v-E-BYNteSIy.js";import"./core-CAJzT_Z5.js";import"./lottie-CHtoTuG1.js";import"./analytics-8Xbq3yYL.js";import"./recharts-D25xpbsw.js";import"./lexical-Dn8yVWzX.js";import"./utils-6fMPdJur.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="fed08be4-1e78-4e31-a7a7-d6b4a36a8d32",e._sentryDebugIdIdentifier="sentry-dbid-fed08be4-1e78-4e31-a7a7-d6b4a36a8d32")}catch{}})();const Za=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 wa("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:Ua,common:{noText:C,strings:{empty:c},currency:wt,via:Va,more:Ga,edit:Ha},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:Tt,vendorCreation:Te,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:qa}}}}=ya.getLocalizedStrings(),ve=Ua.visual.MMMDCommaYYYYformat,Ei=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Ut,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Be,deleteBill:Ht,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:qt,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Wn(),o=Zn(),Le=Kn(),[nn,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[an,ce]=p.useState(!1),[Ee,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?Un:Vn,{requestToOpenThread:pe,setRequestToOpenThread:_e,setOpenThread:Q}=p.useContext(ln),[on,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(Hn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{Q(u),V(!1)},[Q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),_e(null))},[pe,G,P,Q,_e]);const Ze=p.useRef(!1),[sn,dn]=p.useState(!1),cn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,dn(!0))});qn({componentName:"bill.details",enabled:sn});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ue]=p.useState("approved"),[pn,Ve]=p.useState(!1),[mn,Ge]=p.useState(!1),[He,qe]=p.useState(!1),Xe=()=>Ve(!1),un=()=>Ve(!0),Je=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),X())},[e,X,Be]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[Je,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,yn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",D=me?w:te?.code=="approved"&&H?.code?H:te,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?yn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},hn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},bn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},gn=()=>{Y({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},fn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Y({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},xn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),se(!1)}},wn={onOkClick:r=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ce(!1)}},Tn=()=>{const[r]=ka("ZeniAssist");return r!=null?t.jsx(Sa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.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},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??wt.currencyCode},ye=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}})??[],vn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),Dn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=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):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,In=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Di,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),An=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Ia(r.toLowerCase()):r??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{q as Wn,av as Zn,d as Kn,gc as Un,gd as Vn,ge as Gn,gf as Hn,ca as qn,aN as Xn,y,V as t,f3 as dt,f4 as Jn,o as a,f5 as Qn,f6 as Yn,f7 as ea,aK as Ae,f8 as ta,aM as b,bz as ct,bm as pt,dr as mt,cm as ut,cn as yt,co as ht,gg as na,gh as aa,gi as ia,gj as la,fd as $,gk as I,ff as A,fg as k,fc as oa,b as bt,p as ie,fe as Lt,fm as ra,fh as sa,fi as da,gl as ca,gm as pa,aO as ma,an as gt,bQ as we,gn as ua,go as L,F as ya,c as s,ah as ha,b$ as ba,gp as ga,L as fa,gq as xa,fn as ft,a as wa,d0 as Ta,cf as va,gr as xt,b5 as Da,b7 as ja,l as $a,bS as Ot,d1 as Ia,gs as Aa,ag as Ft,aW as ka,b3 as Sa,br as Ca,eJ as Pa,ak as Ba}from"./index-BBJ8MbHB.js";import{a as p}from"./sentry-CTfRDee5.js";import{n as i}from"./mui-CqcpY1UR.js";import{a as Ra}from"./liveblocks-BstIT-4Z.js";import{bO as za,bL as Ma,bP as Na,FB as La,bN as Oa,bH as Fa,bh as Ea}from"./zeni-epic-state-n7oqKrUc.js";import{o as _a,t as Wa}from"./LowBalancePopup-Dd9HLWlh-qIEjt8fN.js";import"./core-BiYEzgTE.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./recharts-bDaLwU4I.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="ad91825d-1fe3-4578-8676-c37b9b7cf9b1",e._sentryDebugIdIdentifier="sentry-dbid-ad91825d-1fe3-4578-8676-c37b9b7cf9b1")}catch{}})();const Za=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 wa("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:Ua,common:{noText:C,strings:{empty:c},currency:wt,via:Va,more:Ga,edit:Ha},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:Tt,vendorCreation:Te,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:qa}}}}=ya.getLocalizedStrings(),ve=Ua.visual.MMMDCommaYYYYformat,Ei=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Ut,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Be,deleteBill:Ht,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:qt,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Wn(),o=Zn(),Le=Kn(),[nn,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[an,ce]=p.useState(!1),[Ee,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?Un:Vn,{requestToOpenThread:pe,setRequestToOpenThread:_e,setOpenThread:Q}=p.useContext(ln),[on,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(Hn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{Q(u),V(!1)},[Q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),_e(null))},[pe,G,P,Q,_e]);const Ze=p.useRef(!1),[sn,dn]=p.useState(!1),cn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,dn(!0))});qn({componentName:"bill.details",enabled:sn});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ue]=p.useState("approved"),[pn,Ve]=p.useState(!1),[mn,Ge]=p.useState(!1),[He,qe]=p.useState(!1),Xe=()=>Ve(!1),un=()=>Ve(!0),Je=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),X())},[e,X,Be]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[Je,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,yn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",D=me?w:te?.code=="approved"&&H?.code?H:te,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?yn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},hn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},bn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},gn=()=>{Y({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},fn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Y({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},xn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),se(!1)}},wn={onOkClick:r=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ce(!1)}},Tn=()=>{const[r]=ka("ZeniAssist");return r!=null?t.jsx(Sa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.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},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??wt.currencyCode},ye=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}})??[],vn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),Dn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=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):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,In=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Di,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),An=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Ia(r.toLowerCase()):r??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Te.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Te.achDetails.accountTypeLabel} ${u}`},ae=e.transactionDetails?.billPayInfo!=null?za(e.transactionDetails?.billPayInfo):void 0,kn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ma(Na(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,et=e.transactionDetails?.billPayInfo.expectedDepositDate??kn,tt=dt(d?.paymentType?.method??"").replace("Same Day",""),Sn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Jn,{paymentTypeLabel:tt,onClick:un,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Cn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Aa,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,be=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),at=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),ge=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,Pn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Bn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||fe)&&Pn===!1,xe=ge||fe,Rn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,zn=!Rn&&(!Ye||D?.code==="processing"&&!B),it=!Ye,lt=["small","medium-compact","medium-regular"].includes(l),q=La(e.transactionDetails?.bulkProcessingDetail?.type),F=Oa(e.paymentMethodType?.method),Mn=!q&&(E!=="processing"&&at||E==="processing"&&!B||E==="processing"&&it||f&&F&&Se),Nn=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,He,r)},ot=()=>{Ge(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Ln=()=>{qe(!0),ot()},On=()=>{Jt(),Ge(!1),He&&qe(!1)},Fn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,rt=()=>{Ue("approved"),Ee===!0&&J(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ze({billId:e.transactionDetails?.id??"",type:"approved"})},En=()=>{Ue("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},st=p.useRef(null);return t.jsxs(ci,{windowSize:l,ref:st,children:[t.jsx(Yn,{anchor:"right",open:pn,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ea,{companyName:ta(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(ve)??"",paymentType:tt,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(yi,{ref:cn.current,windowSize:l,children:[t.jsx(Ai,{windowSize:l,children:l==="small"?t.jsx(ct,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(St,{windowSize:l,children:[x?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>mt(u)),void 0,void 0,"page icon")},children:[t.jsx(pt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(ct,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(St,{windowSize:l,children:[x?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>mt(u)),void 0,void 0,"page icon")},children:[t.jsx(pt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:st,source:"BillDetailPage"})}),t.jsxs(hi,{windowSize:l,children:[Ee?t.jsx(_a,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:rt,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Wa,{onCancel:On,onProceedForMarkAsPaid:Nn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||re?t.jsx(ut,{titleComponent:t.jsx(ht,{children:N.title}),descriptionComponent:t.jsx(yt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:xn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Ja(l,e):null}):null,an?t.jsx(ut,{titleComponent:t.jsx(ht,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(yt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:wn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(gi,{windowSize:l,children:[l!=="small"?t.jsxs(fi,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(na,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:et,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:et,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ei(q,e,_),t.jsx(ia,{sectionId:la,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx(I,{label:{label:n.invoiceNumber,width:j},text:ne.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx(I,{label:{label:n.invoiceDate,width:j},text:ne.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx(I,{label:{label:n.billDueDate,width:j},text:ne.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx(I,{label:{label:n.memo,width:j},text:ne.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(bi,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),ye.length>0?ye.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(_n=>_n.id===r.lineId)?.recipientAmount;return t.jsxs(pi,{children:[ye.length>1?t.jsx(mi,{windowSize:l,children:t.jsx(ui,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx(I,{label:{label:n.amount,width:j},text:R!=null?Ae("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx(I,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx(I,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx(I,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx(I,{label:{label:n.billable,width:j},text:r.billable!=null?Dn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx(I,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(xi,{windowSize:l,children:[t.jsx(wi,{children:n.total}),t.jsx(Ti,{children:he!=null?t.jsx(oa,{amount:he,integerStyles:bt.h6Medium.cssObject,decimalStyles:bt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx(I,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Et.addMoney:_})}),t.jsx(z,{})]}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx(I,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Fa)&&Zt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ni,{children:ra(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Ya(e.outsideZeniPaymentInfo):dt(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,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(I,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:In,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:An(),additionalInfoLabel:t.jsx(ti,{children:Sn})}),Cn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,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(I,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:da(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:sa(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ca,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??wt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(pa,{amount:vn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:qt,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:_t,signedInUserId:le?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:Yt},historicActivities:e.billHistory.activities}),t.jsx(vi,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ma,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||f,showCancel:!K&&f,cancelBtn:{label:lt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:En,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(K,lt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?ot:()=>{_!=null?J(!0):rt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ai,{children:t.jsxs(di,{windowSize:l,children:[!q&&Oe?t.jsx(gt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&at?t.jsx(W,{onClick:hn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:bn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&it?t.jsx(W,{onClick:gn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Se?t.jsx(W,{onClick:Ln,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(gt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(W,{onClick:fn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(si,{windowSize:l,children:[Bn===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:xe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:xe,"data-testid":b("other-actions-icon-container"),children:xe?t.jsx(Tn,{}):t.jsx(li,{})})}):null,!q&&be===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ha,placement:"top",children:t.jsx(ri,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(oi,{})})}):null,!q&&zn===!0&&Mn?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(ii,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(Ra,{id:v,children:t.jsx(ua,{isDrawerOpen:on,allowComposer:!0,drawerTitle:qa,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Fn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>V(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Le.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Xa=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(Ea(),"date")===!0?{value:ke.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Ja=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ii,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Lt(g.withdrawFrom,e):c})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:f!=null?Ae("0,0[.]00",f):C})]})]})},Qa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ya=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${f} ${Va} ${Z}`},ei=(e,g,f)=>{if(e)return t.jsx(xt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Tt.duplicateWarning.title,description:Tt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(xt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ti=i.div``,ni=i.div``,ai=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as z,c as D,q as O,F as U,a8 as G,aN as M,aG as W,cB as X,V as o,bz as Z,ab as H,aO as J,o as c}from"./index-
|
|
1
|
+
import{y as z,c as D,q as O,F as U,a8 as G,aN as M,aG as W,cB as X,V as o,bz as Z,ab as H,aO as J,o as c}from"./index-BBJ8MbHB.js";import{a as L}from"./sentry-CTfRDee5.js";import{n as b}from"./mui-CqcpY1UR.js";import{b as K,f as Q,o as R,l as T}from"./FollowStepsSection-ebmR-eLP-CCCIBkct.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./zeni-epic-state-n7oqKrUc.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="c8c7ff08-896a-4029-a194-1fd41ea29b2d",e._sentryDebugIdIdentifier="sentry-dbid-c8c7ff08-896a-4029-a194-1fd41ea29b2d")}catch{}})();const _="billPayApprovalRuleDetailPage",C="lowerBound",N="upperBound",v="steps",Y={footerPadding:new z(D[2],D[3])};function ve({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:h=!0,hideUpperBoundField:I=!1,onSaveRuleClick:k,onSaveRuleSuccess:A}){const w=O(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ee(e,l==="approval_create"&&!n),g=G({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,P=M(u?.fetchState),{upperBound:B}=y,{allApprovalRules:d,allAccountingClasses:E,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,x=d.length>0?d[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=d.findIndex(p=>p.approvalRuleId===i),x=m>0?d[m-1].criteria[0].range.min.amount:0}const F=g.handleSubmit(()=>{k()}),V=async(i,p)=>{r(p)};return L.useEffect(()=>{const i=g.watch((p,{name:$})=>{if($!=null&&p!=null){const q=W(p);X(()=>V($,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...g,children:o.jsx("form",{id:j(_),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:I?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:x,validate:i=>n?!0:i!=null&&i>x},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:N,placeholder:"Infinity",isDisabled:h,hideField:I,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:v,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:E,stepsInfo:y[v],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:j(_),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(w)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[v]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),R(e.allAttributes),R(e.filteredAttributes),r??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[N]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},ae=(e,l,a,r,s)=>s&&s.length>0?s.map((n,h)=>({stepIndex:h,stepType:{selectedOption:n.action,allOptions:T},actors:{allUsers:l,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),te=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),j=e=>`${e}_form`,Ie=e=>`${e}`,re=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as R,F as y,V as t,bz as N,m as E,aM as v,y as r,ak as B,aK as j,cm as H,cn as V,co as _,o as i,cY as U,c as l,b7 as G,a as z,b6 as q,p as S,cV as F,br as J,b as X}from"./index-
|
|
1
|
+
import{q as R,F as y,V as t,bz as N,m as E,aM as v,y as r,ak as B,aK as j,cm as H,cn as V,co as _,o as i,cY as U,c as l,b7 as G,a as z,b6 as q,p as S,cV as F,br as J,b as X}from"./index-BBJ8MbHB.js";import{n as o}from"./mui-CqcpY1UR.js";import{a as Y}from"./sentry-CTfRDee5.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./zeni-epic-state-n7oqKrUc.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="363d79a2-7b40-48a9-acb5-95fbf8188fb3",e._sentryDebugIdIdentifier="sentry-dbid-363d79a2-7b40-48a9-acb5-95fbf8188fb3")}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)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},K=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:$})=>{const[u,w]=Y.useState(!1),n=R(),{range:m}=d.criteria[0],{steps:x,approvalRuleId:g}=d,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{w(!0)},A={onOkClick:()=>{w(!1),$?.(g)},onCancelClick:()=>{w(!1)}};return t.jsxs(O,{windowSize:n,isLastSection:h,children:[t.jsxs(Q,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",m.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),m.max==null?t.jsx(de,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":v("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(g)},"data-testid":v("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:x.length===1,windowSize:n,children:x.map((c,D)=>t.jsxs(ie,{isSingleStep:x.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(I,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(T,{className:"operator",children:c.operator}):null]},`${p.subType}_${M}`)),c.actors.map(p=>t.jsxs(I,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(T,{className:"operator",children:c.operator}):null]},p.userId))]},D))})}),u?t.jsx(H,{titleComponent:t.jsx(_,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},O=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-M3bRYehy-Dgm-_rq6.js → BillPayPromoPage-aGKOv8Ur-59DxEGOU.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as W,q as f,aN as Y,V as e,fo as ee,bz as ie,n as B,aM as C,ad as m,F as M,o as s,ap as se,D as le,d as I,aQ as D,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,c as de}from"./index-
|
|
1
|
+
import{av as W,q as f,aN as Y,V as e,fo as ee,bz as ie,n as B,aM as C,ad as m,F as M,o as s,ap as se,D as le,d as I,aQ as D,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,c as de}from"./index-BBJ8MbHB.js";import{a as g}from"./sentry-CTfRDee5.js";import{n as l}from"./mui-CqcpY1UR.js";import{Fq as ce,bS as pe,Fr as me}from"./zeni-epic-state-n7oqKrUc.js";import{f as xe}from"./VideoPopup-D1o92dj6-Dti5suvC.js";import{M as b}from"./usp-line-BBd1wKwW-CG6D_gsM.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./VideoPlayer-9rYRtSLf-C_MG4aUQ.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="befab5b0-e363-47c8-9e76-9da6fc10c4ec",i._sentryDebugIdIdentifier="sentry-dbid-befab5b0-e363-47c8-9e76-9da6fc10c4ec")}catch{}})();const U="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-CJyPhrld-DTmdlbKG.js → BillPaySetUpPage-DRCjyEfB-CkG4ce3e.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as $e,q as De,aN as W,a8 as Oe,cB as Re,F as Ue,aS as Q,V as t,f6 as He,p as ze,aM as Le,y as u,bz as qe,m as Me,ab as Ne,fp as H,dM as Ge,fq as Je,bu as Ze,dC as Ke,bQ as Qe,fr as Xe,aO as Ye,o as L,fs as et,c as a,ak as tt,bH as it}from"./index-
|
|
1
|
+
import{d as $e,q as De,aN as W,a8 as Oe,cB as Re,F as Ue,aS as Q,V as t,f6 as He,p as ze,aM as Le,y as u,bz as qe,m as Me,ab as Ne,fp as H,dM as Ge,fq as Je,bu as Ze,dC as Ke,bQ as Qe,fr as Xe,aO as Ye,o as L,fs as et,c as a,ak as tt,bH as it}from"./index-BBJ8MbHB.js";import{a as m}from"./sentry-CTfRDee5.js";import{n as b}from"./mui-CqcpY1UR.js";import{bJ as nt}from"./zeni-epic-state-n7oqKrUc.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-4AWDV_HK-CxD_HluI.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="b69a3d5c-64df-4e55-8459-13da03137445",e._sentryDebugIdIdentifier="sentry-dbid-b69a3d5c-64df-4e55-8459-13da03137445")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",E="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=$e(),i=De(),[A,S]=m.useState(!1),M=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:Ie}=v,$=_.link_account.updateStatus,D=_.update_account.updateStatus,B=W(f),J=W(P.fetchState),Z=W($.fetchState),K=W(D.fetchState),w=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&$.fetchState==="Completed"||K==="In-Progress"&&D.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Z,$.fetchState,K,D.fetchState]);const je=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,F)=>{const o=F[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,We=O?r.setupVerifiedSubTitle:l.setupSubTitle,Ee=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=k.mode==="light"?new Q(k.colors.brandColorJadeLight):new Q(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:We}),Ee?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...w,children:t.jsx("form",{id:Y(X),onSubmit:je,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Qe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&j.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as we,q as be,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ie,m as Ae,ab as ve,bu as ke,cC as je,aO as $e,o as s,hF as Ve,eU as Be,eV as Te,c as x,ak as De,gO as Ee,p as Le,a as ze}from"./index-BBJ8MbHB.js";import{a as F}from"./sentry-CTfRDee5.js";import{n as r}from"./mui-CqcpY1UR.js";import{M as Oe,r as H,o as Me}from"./PaymentAccountSetupBillingAddressSection-s9EEHxoG-Ccng4Jbq.js";import{F as _e}from"./SetUpAccountSection-Dhb8A0Oe-CHZzV0W4.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./zeni-epic-state-n7oqKrUc.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="a62ee704-9480-475e-9576-d6140cf6e3d8",e._sentryDebugIdIdentifier="sentry-dbid-a62ee704-9480-475e-9576-d6140cf6e3d8")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new ze("standardSemiBold","largeSemiBold")},R="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:V},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=V.fetchState==="In-Progress"||V.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(i),values:U(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),T=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,k=Be(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const D=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new j(D)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=F.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(He,{windowSize:o,children:[t.jsx(Ue,{windowSize:o,children:ge}),ue?t.jsx(We,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:W(R),onSubmit:pe,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:D},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx($e,{formId:W(R),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},U=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ve(n,e.subscriptionBillingAddress)[n]}},He=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,cm as O,cn as M,co as W,j$ as q,aV as z,F as G}from"./index-
|
|
1
|
+
import{V as b,cm as O,cn as M,co as W,j$ as q,aV as z,F as G}from"./index-BBJ8MbHB.js";import{a as f}from"./sentry-CTfRDee5.js";import{G4 as K}from"./zeni-epic-state-n7oqKrUc.js";import{u as Q}from"./ReviewOverlay-BvPN7IKD-BVyGsnOK.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./mui-CqcpY1UR.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8133b8da-1296-43a2-a77e-d89c03ebf438",e._sentryDebugIdIdentifier="sentry-dbid-8133b8da-1296-43a2-a77e-d89c03ebf438")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,v]=f.useState(T(e,u)),[p,E]=f.useState(u),[B,k]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(I),L===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),k(d=>d+1)},1e3)),B===n.length&&p&&(E(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},V={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(O,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(M,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:V,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},Y=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Y as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as l,V as s,aM as b,o as e}from"./index-
|
|
1
|
+
import{q as l,V as s,aM as b,o as e}from"./index-BBJ8MbHB.js";import{n as a}from"./mui-CqcpY1UR.js";import{o as p}from"./commonDimensions-Ds75pRzR-DJ4H9OI5.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="5587ad1d-50f9-4728-927a-5e8c8215964c",o._sentryDebugIdIdentifier="sentry-dbid-5587ad1d-50f9-4728-927a-5e8c8215964c")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ct,q as dt,aN as Te,V as a,ad as W,a8 as mt,cP as ut,ax as pt,cB as ft,aV as ve,aL as Ie,g5 as yt,n as ht,bz as gt,aM as xt,cC as St,cm as bt,cn as wt,co as Ct,m as Dt,ab as Tt,aO as vt,o,y as L,al as Oe,F as Ve,g6 as It,ft as ke,eU as kt,D as $t,L as jt,ak as Fe,a as Nt,B as Pt,c as $}from"./index-8Oyhb03N.js";import{a as O}from"./sentry-DlgT2cdq.js";import{n as d}from"./mui-g2D8ciyb.js";import{EH as Lt,bi as G}from"./zeni-epic-state-C06d6qPM.js";import{S as Ot,s as Vt}from"./CompanyOfficerDetailsSection-4FjXy6T9-B3cS-sQk.js";import"./liveblocks-Cv4_XqIL.js";import"./core-CAJzT_Z5.js";import"./recharts-D25xpbsw.js";import"./lottie-CHtoTuG1.js";import"./analytics-8Xbq3yYL.js";import"./lexical-Dn8yVWzX.js";import"./utils-6fMPdJur.js";import"./LabeledAddressValueField-DxybAWPO-BwY94g69.js";import"./LabeledCreatableSingleSelectField-q23ARfG8-AevFfTj2.js";import"./LabeledDocumentField-Icg5_obX-BbKKTiN8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new e.Error().stack;T&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[T]="ebe60533-cb84-460b-807c-4fbb57fe633a",e._sentryDebugIdIdentifier="sentry-dbid-ebe60533-cb84-460b-807c-4fbb57fe633a")}catch{}})();const x={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,$[3]),subTitlePaddingBottom:new L($[3],$[3]),verificationDetailsRowGap:new L(12,$[5],$[5]),termsPaddingLeftRight:new L($[0],$[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Ne,strings:{empty:Bt}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:j,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:A,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Q]=O.useState(!1),[M,oe]=O.useState("save"),[X,Ze]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:At(e,A,E,T)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=b[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,w=t?.firstName,k=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,be=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,we=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&w!=null&&k!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&be!=null&&we!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:w,lastName:k,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:be},{firstName:we,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=b[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,w=s?.email??"",k=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):w&&!k?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&b[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Lt(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(I),q===!0&&Qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&We?.(s[D])},nt=O.useCallback(pt((t,s)=>{st(t,s)},300),[]);O.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{Q(!1),V();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const w=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach(k=>{w.includes(k)||t.push(k)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{Q(!1)}},lt=ve(Ie(p),p,je.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?Bt:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?Q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(bt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(wt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),j==="In-Progress"||j==="Not-Started"?a.jsx(Mt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:Pe($e),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Jt,{children:a.jsxs(Kt,{children:[a.jsx(Le,{}),de&&a.jsx(Le,{}),a.jsx(Yt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Ot,{companyOfficerData:b,allNationalityCountries:T,allOfficers:Y??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:U,allIndustries:A})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),j==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Pe($e),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const t=b[I],s=l?.primaryContactLocalData;M!=="save"&&oe("save");const c=t?.email??"",f=tt(),w=at();f&&w&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(I))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},At=(e,T,j,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=e,A=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:T?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(B).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:j?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Pe=e=>`${e}_form`,Et=d.div`
|
|
1
|
+
import{d as ct,q as dt,aN as Te,V as a,ad as W,a8 as mt,cP as ut,ax as pt,cB as ft,aV as ve,aL as Ie,g5 as yt,n as ht,bz as gt,aM as xt,cC as St,cm as wt,cn as bt,co as Ct,m as Dt,ab as Tt,aO as vt,o,y as L,al as Oe,F as Ve,g6 as It,ft as ke,eU as kt,D as $t,L as jt,ak as Fe,a as Nt,B as Pt,c as $}from"./index-BBJ8MbHB.js";import{a as O}from"./sentry-CTfRDee5.js";import{n as d}from"./mui-CqcpY1UR.js";import{EH as Lt,bi as G}from"./zeni-epic-state-n7oqKrUc.js";import{S as Ot,s as Vt}from"./CompanyOfficerDetailsSection-BtUBatbQ-CS2katNY.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./LabeledAddressValueField-Bt41wdNQ-CdN5suyF.js";import"./LabeledCreatableSingleSelectField-fycRE7PX-BLM_4t-_.js";import"./LabeledDocumentField-C73vQNgq-xVgwP02Y.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new e.Error().stack;T&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[T]="720b06ae-a0bf-4799-bf77-25afbe430f76",e._sentryDebugIdIdentifier="sentry-dbid-720b06ae-a0bf-4799-bf77-25afbe430f76")}catch{}})();const x={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,$[3]),subTitlePaddingBottom:new L($[3],$[3]),verificationDetailsRowGap:new L(12,$[5],$[5]),termsPaddingLeftRight:new L($[0],$[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Ne,strings:{empty:Bt}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:j,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:A,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Je=Te(R.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Q]=O.useState(!1),[M,oe]=O.useState("save"),[X,Ze]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:At(e,A,E,T)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,k=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&k!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:k,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",k=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!k?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Lt(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(I),q===!0&&Qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&We?.(s[D])},nt=O.useCallback(pt((t,s)=>{st(t,s)},300),[]);O.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{Q(!1),V();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach(k=>{b.includes(k)||t.push(k)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{Q(!1)}},lt=ve(Ie(p),p,je.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?Bt:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?Q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),j==="In-Progress"||j==="Not-Started"?a.jsx(Mt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:Pe($e),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Jt,{children:a.jsxs(Kt,{children:[a.jsx(Le,{}),de&&a.jsx(Le,{}),a.jsx(Yt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Y??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:U,allIndustries:A})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),j==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Pe($e),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const t=w[I],s=l?.primaryContactLocalData;M!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(I))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},At=(e,T,j,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=e,A=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:T?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(B).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:j?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Pe=e=>`${e}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as m,V as r,F as y,b as w,o as s,a as b,B as x}from"./index-
|
|
1
|
+
import{q as m,V as r,F as y,b as w,o as s,a as b,B as x}from"./index-BBJ8MbHB.js";import{n as o}from"./mui-CqcpY1UR.js";import{a as c}from"./sentry-CTfRDee5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7a6da756-eb81-49ce-adf3-ad5df1546f93",e._sentryDebugIdIdentifier="sentry-dbid-7a6da756-eb81-49ce-adf3-ad5df1546f93")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:a,styles:l})=>{const g=m(),f=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!a?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:a,className:"cardName",title:`${h}`,children:[f,r.jsx(H,{}),d,n&&!a?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,n&&a?r.jsx(u,{}):null]})},v=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as j,q as f,V as t,bz as te,fc as L,b as u,b1 as Z,bY as ie,o as i,F as w,p as B,y as h,ak as v,de as oe,c as l,aV as re,aK as T,bO as ae,ag as $,aM as z,jd as N,je as U,iT as se,cv as ne,cy as de,al as O,iU as le,iV as ce}from"./index-
|
|
1
|
+
import{d as j,q as f,V as t,bz as te,fc as L,b as u,b1 as Z,bY as ie,o as i,F as w,p as B,y as h,ak as v,de as oe,c as l,aV as re,aK as T,bO as ae,ag as $,aM as z,jd as N,je as U,iT as se,cv as ne,cy as de,al as O,iU as le,iV as ce}from"./index-BBJ8MbHB.js";import{n as o}from"./mui-CqcpY1UR.js";import{FY as b,bh as he}from"./zeni-epic-state-n7oqKrUc.js";import{w as R,a as K}from"./sentry-CTfRDee5.js";import{q as pe}from"./InsightsSection-BTXj5WUe-BehAISJe.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as fe}from"./recharts-bDaLwU4I.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./NavigationDots-B0_dDbgu-D1euhRa0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="3b315d47-4e1a-487d-af7f-153af36664a2",e._sentryDebugIdIdentifier="sentry-dbid-3b315d47-4e1a-487d-af7f-153af36664a2")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ke=o.div`
|