@zeniai/web-cockpit-ui 1.15.14-qa → 1.15.15-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.
Files changed (264) hide show
  1. package/dist/assets/{ACHDetailsPage-BOZmOJHO-KDKe0Pe7.js → ACHDetailsPage-BOZmOJHO-uo6dW_ee.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-ZVCJizP9-mbqQ4EgE.js → AIPerformancePage-ZVCJizP9-CZQOoQGA.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-DF6IU0EG-CSVrH_bZ.js → AccountInfoPage-DF6IU0EG-z4SDTdos.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-D0wuuzMd-CM0-Jh-V.js → AccountInfoPageContent-D0wuuzMd-CwPs85Xe.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Cfx-lPAZ-DpVbaU4U.js → AccountLockedInfoModal-Cfx-lPAZ-6gXnaSEp.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DbHX6rPG-CvoNIVP6.js → AccountReconDetailsDrawerPage-DbHX6rPG-CObpCoGw.js} +1 -1
  7. package/dist/assets/{AccountRow-Bk_25FCy-CBc0465x.js → AccountRow-Bk_25FCy-DdE4bZ6s.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DAXRwY1f-DeWRPqVb.js → AccountsPromoCardStack-DAXRwY1f-BHk9P-qH.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-DNGQGGYg-DcPv5ZZ2.js → AddAddressForCardDrawer-DNGQGGYg-Be0mZj8K.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CzziHgi7-DbLi_Wzr.js → AddToWalletPage-CzziHgi7-BunsW8Ml.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Bdi3krKK-io_ByeM-.js → AgingReportsPage-Bdi3krKK-B2bCldwY.js} +1 -1
  12. package/dist/assets/{AllUserItems-XWDuiug6-C5GQDid8.js → AllUserItems-XWDuiug6-EZke3ZwX.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CaM_AzrU-CX1LBTX6.js → ApAgingDetailPage-CaM_AzrU-Bzxf-Kqa.js} +1 -1
  14. package/dist/assets/{AppBasePage-B7_L4R6d-DkK5o08n.js → AppBasePage-B7_L4R6d-CDD91TVO.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DSX1364T-BCbpdABo.js → AppDrawerContent-DSX1364T-CmI6BWGt.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DrjPOeyp-DGzkxS67.js → ApprovalRulesSettingsPage-DrjPOeyp-7vV2maWd.js} +1 -1
  17. package/dist/assets/{ArAgingChart-M7KUNA4G-pDwBjLHE.js → ArAgingChart-M7KUNA4G-DU87i6jk.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-7lby5mXn-CmSuH312.js → ArAgingDetailPage-7lby5mXn-Bxn3ChPZ.js} +1 -1
  19. package/dist/assets/{AttachmentView-Bsa0u92o-dJub-bFv.js → AttachmentView-Bsa0u92o-BShyIFwu.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BkOlwayA-DmeoprfV.js → BankAccountSection-BkOlwayA-CueuQC4p.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-uMOXLH0B-CnwxM_vA.js → BankAccountWarningSection-uMOXLH0B-BcS_p02c.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-C_YytTke-CQmLcPAc.js → BankConnectionsSettingsPage-C_YytTke-DIhzNg4a.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DvU5_Rsp-CAeibLdN.js → BillDetailPage-DvU5_Rsp-DdXms981.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-UeVxIxfF-D7JQSuwD.js → BillPayApprovalRuleDetailPage-UeVxIxfF-kgIwG-9U.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CA9eufjt-Bq3ojxx6.js → BillPayApprovalRulesPage-CA9eufjt-CdmWeJXz.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DsXPWKAf-C6b2Jrki.js → BillPayPromoPage-DsXPWKAf-zMztHutH.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-CeMhzZ_3-D8tihcNQ.js → BillPaySetUpPage-CeMhzZ_3-SNqXLFJN.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BygJjDSp-BYXgtfN5.js → BillingSettingsPage-BygJjDSp-DhTy9Zlr.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-WrR46NRa-qwDj--O_.js → BillsBulkReviewDrawerPage-WrR46NRa-V8H07jay.js} +1 -1
  30. package/dist/assets/{BoxItem-C0M4PSXY-BDy-XcIe.js → BoxItem-C0M4PSXY-DgnuPdnJ.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-C63pUk4d-BGShCwAu.js → BusinessVerificationPage-C63pUk4d-C6E-Kd70.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-B4dAoYDE-B2ljsvOo.js → CardNumberSubText-B4dAoYDE-CqaOECNN.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-B6xvn-y3-pZ9RFOdr.js → CashbackDetailPage-B6xvn-y3-CIOBGtd2.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-eJJ4MEE6-cAQfTfFl.js → ChargeCardDetailPage-eJJ4MEE6-3ODOfuID.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-BYI2HIjA-BhETUDGC.js → ChargeCardListPage-BYI2HIjA-CZFCnQ-S.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DAVYmKCK-BNWWeKZ7.js → ChargeCardListTable-DAVYmKCK-C-PCDGX0.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BX5HtOxd-CajRuAON.js → ChargeCardPaymentHistoryPage-BX5HtOxd-BSSisixl.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-DuQe7BpX-C856bpyc.js → ChargeCardPromoPage-DuQe7BpX-vIsb5OPm.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-DG1eKhYR-DXqRF1CT.js → ChargeCardSetupPage-DG1eKhYR-BRh3KEdE.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-CvtZtuVC-DjtCVenB.js → ChargeCardStatementsPage-CvtZtuVC-B6fMzoIu.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-BdacGDpy-HR4qc5fD.js → CheckDepositDrawerPage-BdacGDpy-DjY4oF2K.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-UADp1m_8-_gAIMVNu.js → CollapsableReportTable-UADp1m_8-CD0s5IJi.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-CaAR0Wvk-BgdX570K.js → CompanyOfficerDetailsSection-CaAR0Wvk-D8xIbENo.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BJN2GEVm-Ac0Vj3yZ.js → CompanyPassportCard-BJN2GEVm-C3ubV9VA.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-D2ALJDF_-BLapPZk1.js → CompanyPassportPage-D2ALJDF_-IWUpGKyN.js} +1 -1
  46. package/dist/assets/{CompleteProfile-C8X8Z3C2-CGWR0sJY.js → CompleteProfile-C8X8Z3C2-CSgH3wFD.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-DxHzdDPp-IMIR3j4y.js → ConfettiBurst-DxHzdDPp-DPBcRlTi.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-B5YRtVlk.js → ConstrainedInnerElement-BeIpAPjB-ByFIc9ij.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-y-COpdhs-BT1-HGAw.js → CreateOrEditVendorPage-y-COpdhs-mYB2jUoO.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CntYJJ8v-CsoS2urM.js → CreditCardPaymentDrawerPage-CntYJJ8v-DCGluTP_.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-Dn-hE2az-CUxS_7Ye.js → CurrencySelectField-Dn-hE2az-CvwvOxQs.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-B9MZHJVc-CuMokgrb.js → CustomerOnboardingActivationPage-B9MZHJVc-DUr7vkrU.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-8VLcBe0D.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BCe8BvQF-nD9d3A-E.js → CustomerOnboardingDetailPageSkeleton-BCe8BvQF-BNUdDYwe.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BHk7rDAg-DFYO4mU8.js → CustomerOnboardingNoStepsPage-BHk7rDAg-bpZw3N-0.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-1LvpVpHC-D-gIZIWc.js → CustomerOnboardingPage-1LvpVpHC-D2QVzFxK.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DMYHMJXg-B50ZKO3y.js → CustomerOnboardingProductSuitePage-DMYHMJXg-DWgwYQKr.js} +1 -1
  58. package/dist/assets/{Dashboard-CCV0_aCP-RuEbED5O.js → Dashboard-CCV0_aCP-ZmFJin9P.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-CmoH9Vrc-SwddJ06t.js → DashboardReportPage-CmoH9Vrc-d8mEbLDS.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-hw3einS7-C5KaEntt.js → DashboardSidebarBackgroundAnimation-hw3einS7-v0LgpqiY.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-DgdkYGjP-DQSaulLa.js → DepositAccTransactionItem-DgdkYGjP-BZaSiW7y.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-CF0WJn9M-8dAewE8G.js → DepositAccTransactionListPage-CF0WJn9M-CL4EBcCJ.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-B12tNa6e-BD51YAgK.js → DomesticWireDetailsPage-B12tNa6e-DtErBgHI.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dt9yt4Fz-DY2R1Y9q.js → DownloadOverlay-Dt9yt4Fz-CQHg29yt.js} +1 -1
  65. package/dist/assets/{DrawerPage-Clki97FA-BcpzeAg8.js → DrawerPage-Clki97FA-CvWcOPEz.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-CKS_aEZm-BBvOfAzS.js → EditPeoplePage-CKS_aEZm-C8lR1qG2.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-CXy2ZWfZ-CIR3gy8B.js → EditReimbursementDetailPage-CXy2ZWfZ-BXXHV3cG.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-B3TQ5hCP-DyGrvvey.js → EntityDetailPage-B3TQ5hCP-GivhU5SE.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-D_YLsP_P-B0d7_AWl.js → EntitySummarySection-D_YLsP_P-DLXO7PlY.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-4z3yzHEA-adgXUXH0.js → ExpenseAutomationOverviewPage-4z3yzHEA-RYWxmB1B.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-BJ4H_c2z-DZsstr3w.js → ExpenseAutomationPage-BJ4H_c2z-DoXVBx9d.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-CTBD4y1v-DU1wRuVq.js → ExpressPayPage-CTBD4y1v-BVG5QwW2.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CYuTQWpP-MLtud2bW.js → FeaturePreviewPage-CYuTQWpP-iq-xN2Cf.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-BrpI2HyW-Bt9y_9wM.js → FollowStepsSection-BrpI2HyW-Kug_2IzO.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BcvxLqIL-xh09zTKN.js → GlobalReviewListPage-BcvxLqIL-BGXHQk-F.js} +1 -1
  76. package/dist/assets/{InformationCardStack-CU4Moqky-C9QtXMaB.js → InformationCardStack-CU4Moqky-DRDCOHle.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-D8UQiuXZ-DKtJeSM4.js → InsightsCardStack-D8UQiuXZ-Cpr-yeBu.js} +1 -1
  78. package/dist/assets/{InsightsSection-C3X6ZNEt-BFqaZ-1y.js → InsightsSection-C3X6ZNEt-Br9SfZ5X.js} +1 -1
  79. package/dist/assets/{IntegrationsSettingsPage-CsLv00HW-DtNFNKAf.js → IntegrationsSettingsPage-CsLv00HW-DgGpstCc.js} +1 -1
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DgrN5Xg7-DdQQWQxh.js → InternationalWireSwiftDetailsPage-DgrN5Xg7-BPd04dMR.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-CvysJNBQ-5vmOaur_.js → InternationalWireVerificationPage-CvysJNBQ-PB6Tk58h.js} +1 -1
  82. package/dist/assets/{InviteFormPage-B3KmRWXd-0oUMSN6h.js → InviteFormPage-B3KmRWXd-CK7OaXFV.js} +1 -1
  83. package/dist/assets/{InvitePageListView-DfpJBZru-CKcAp3j_.js → InvitePageListView-DfpJBZru-Cv193Xwd.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-C5Qgk24s-3XInnhXc.js → InvitePeoplePage-C5Qgk24s-DLS7-_UX.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-BO1i-e_D-C4nKQn4x.js → InvoiceUploadSection-BO1i-e_D-k1c8M-SK.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-mPsxt52d-CuhezD_D.js → IssueChargeCardPage-mPsxt52d-DJfOv9nz.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-C4fnQSyi-DTyuPYqs.js → LabeledAddressValue-C4fnQSyi-D80JaUlo.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-D6dEaI69-fqHmVd_u.js → LabeledAddressValueField-D6dEaI69-Bcb2eZry.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-B1QdZmvd-DEqKNlxn.js → LabeledControlledCheckBoxField-B1QdZmvd-Dz4JXmCz.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-XeBih_-f-Cz3nDhMF.js → LabeledCountryMultiSelectField-XeBih_-f-C1r3HEXH.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BPX2Nrlf-CEcYkkp5.js → LabeledCreatableSingleSelectField-BPX2Nrlf-C19CvhIO.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-Bjg8sNsg-BD1SQ1dE.js → LabeledDocumentField-Bjg8sNsg-Bc6dsrIy.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-A-rgip1E-C2do5DGm.js → LabeledDropDownFormattedTextField-A-rgip1E-gwaakeCo.js} +1 -1
  94. package/dist/assets/{LabeledMultiSelectField-Di9Wnifv-14-SWEB3.js → LabeledMultiSelectField-Di9Wnifv-BgaOmXvC.js} +1 -1
  95. package/dist/assets/{LabeledText-38fqkkE--BqUFSzDu.js → LabeledText-38fqkkE--CY4A4ltw.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-CM2UCprX.js → LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-BBxxocRw.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-Dg9_Ww-A-JOIx1HEa.js → LabeledZeniRolesDropDownField-Dg9_Ww-A-CcBfGSLV.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-66mQ4nrK-Bbq0h7SG.js → LinkJETransactionPage-66mQ4nrK-UWnp6A_P.js} +1 -1
  99. package/dist/assets/{LockCardPage-BCqN4K17-DYpLZtI0.js → LockCardPage-BCqN4K17-Ds8dOCK8.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-BPk1-eAb-BXDaL15I.js → LowBalancePopup-BPk1-eAb-CHNJDa8D.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-DM7EUUU7-CQAQIFUK.js → MagicLinkACHDetailsPage-DM7EUUU7-23wCqX_T.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DKrGgFTu-DFuDH9XR.js → MagicLinkDomesticWireDetailsPage-DKrGgFTu-B04JJMOq.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B3OpSWB3-CFMhAl0R.js → MagicLinkInternationalWireDetailsPage-B3OpSWB3-DWN5ofBK.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-CphaJa4k-CxovkqZt.js → MagicLinkSuccessPage-CphaJa4k-mMXLbu5M.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-77rxhjLm-Ddz_SZSO.js → MagicLinkTitleSection-77rxhjLm-V98s0SOv.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-BJfZvT0b-BLKgWAYz.js → MailingDetailsSection-BJfZvT0b-DzZuUc4H.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-z0tHaSl1-CUfEbBbO.js → MyBankConnectionsSettingsPage-z0tHaSl1-C168s0fc.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CwGYwufd-BUQiixgb.js → MyPendingActivationChargeCardListPage-CwGYwufd-BrTsE0Qi.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-8yBXAre6-DJIyLrxt.js → MyProfileSettingsPage-8yBXAre6-1UYV1QjX.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-C3LVyiC9-S535Hj-w.js → NavBarWithPicker-C3LVyiC9-tAlVWDKW.js} +1 -1
  111. package/dist/assets/{NavigationArrow-NuJEpE7O-BQ6FYUZv.js → NavigationArrow-NuJEpE7O-CaLbv5D3.js} +1 -1
  112. package/dist/assets/{NavigationDots-C7Na64B9-pz3ynkYM.js → NavigationDots-C7Na64B9-C3DCvc_F.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-Cus6zYV_-opsrWfgz.js → NewGlobalMerchantPage-Cus6zYV_-XeWJZi8k.js} +1 -1
  114. package/dist/assets/{NoDataChart-B3s_7m2n-DMaT1XbI.js → NoDataChart-B3s_7m2n-Bn4CDHeN.js} +1 -1
  115. package/dist/assets/{NoDataTable-CMpypnTw-Bid3UZqz.js → NoDataTable-CMpypnTw-ATRLj6Gp.js} +1 -1
  116. package/dist/assets/{NotFoundPage-RjXioqc8-Ds1O4yjN.js → NotFoundPage-RjXioqc8-CwMLzM3y.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-DrDW_LU_-wOiSGrN3.js → NotificationSettingsPage-DrDW_LU_-BOaNloYM.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-C6_ap0JT-BLyAi33-.js → NotificationsListConfig-C6_ap0JT-DM6dmd3J.js} +1 -1
  119. package/dist/assets/{NotificationsPage-DOM-Gf5P-ClAkg4I_.js → NotificationsPage-DOM-Gf5P-CAe-Uta8.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-CTuBB827-D0vYt80y.js → OpExByVendorPage-CTuBB827-DC7l_6TE.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-D4QU0p4o-B7ESuRI_.js → OverlayContainerPage-D4QU0p4o-BC4myaNu.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-BXaENYdR-BvIXHcee.js → PandLWithForecastPage-BXaENYdR-rXtElHuT.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DSnQX90O-BGfl6y1e.js → PaymentAccountSetupBillingAddressSection-DSnQX90O-D2TItof-.js} +1 -1
  124. package/dist/assets/{PeoplePage-BlyVVthI-zCyTZO1Z.js → PeoplePage-BlyVVthI-7IvMyUnw.js} +1 -1
  125. package/dist/assets/{Preview-1YaMlOZx.js → Preview-CC-k729c.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CAcPH--E-CL6M4W3V.js → ProductsCarousel-CAcPH--E-BSQ97fg6.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-BVwZMVeE-CyjSJi7c.js → PromoBaseCards-BVwZMVeE-DaRg5v5r.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-C3OYyhYO-D6sfVr3u.js → QBOConnectionDialog-C3OYyhYO-Ds6ig4em.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-DQjol-D0-BeWaj1Jn.js → QBOSetupSection-DQjol-D0-BuGsBngR.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-llw4ONPo-lqVIvOTe.js → ReimbursementApprovalRuleDetailPage-llw4ONPo-CRXs9O2R.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-Cx0gs7sS-Ca0FFxna.js → ReimbursementApprovalRulesPage-Cx0gs7sS-CpxWYC04.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-Cs_rmkS8-CPeO-LIC.js → ReimbursementDetailPage-Cs_rmkS8-K8yAkD6K.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-CCFl0kQK-Ce6imPq7.js → ReimbursementPromoPage-CCFl0kQK-DSZgDv-Q.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-lf3xTVFh-DFfM3qbA.js → ReimbursementSetUpPage-lf3xTVFh-MUgSnBKU.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C5MTFJLG-BmQ4iN1L.js → ReimbursementsBulkReviewDrawerPage-C5MTFJLG-hCDcBn45.js} +1 -1
  136. package/dist/assets/{ReloadCard-V_tv6YLR-Bp8uX99I.js → ReloadCard-V_tv6YLR-DQnpBtjq.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-CWEvGn8L-CXGbLT6b.js → ReportTableViewSelector-CWEvGn8L-B-h1aB4y.js} +1 -1
  138. package/dist/assets/{ReportsPage-BJOH1wgv-DpVPRqhP.js → ReportsPage-BJOH1wgv-BPsxPUPS.js} +1 -1
  139. package/dist/assets/{RevenueChart-C_tSBw_N-Df9N1kJX.js → RevenueChart-C_tSBw_N-DvC1K8H3.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-CScPf4w3-CAJVGln-.js → ReviewDetailsPage-CScPf4w3-DXthZyJL.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-BQVwPzKa-DoG_0rxc.js → ReviewOverlay-BQVwPzKa-mi7ZWRoC.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-GCV_l8Ly-C-VmbIWB.js → RoleWithToolTip-GCV_l8Ly-y89fxmkM.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cgqgn7nk-BbbO8xfg.js → ScheduleDetailsFixedAssetsPage-Cgqgn7nk-DNXi9Uvr.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-D1EJbzxN-CmiX8rB4.js → ScheduleDetailsPage-D1EJbzxN-Bac6Lmu7.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-DDhoyPGX-Dfw4Eaxs.js → ScheduleSequenceTable-DDhoyPGX-CyWJf9Vk.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-DFrOpgJH.js → ScreenRoutes-DITuGaOr.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-AVL_16HQ-BHazXsBl.js → SetUpAccountSection-AVL_16HQ-D51qLx36.js} +1 -1
  148. package/dist/assets/{SignIn-BLUwTp1l-CgO_j3sG.js → SignIn-BLUwTp1l-DNoJfH8e.js} +1 -1
  149. package/dist/assets/{SignInScreen-C0NVbg2m.js → SignInScreen-9rCYZzrv.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-DJbNFHvP-DIVQQMu4.js → SpendManagementListViewPage-DJbNFHvP-cUQgommp.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-J5pIRm-Q-BoGHQ0ws.js → SpendManagementPerTabPage-J5pIRm-Q-BDu3TT27.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-DZaP5ai6-DJtJKH0R.js → SpendManagementSection-DZaP5ai6-FqR3lleO.js} +1 -1
  153. package/dist/assets/{StatementItem-D2Fx65LN-C-Ai9C3X.js → StatementItem-D2Fx65LN-hd2eZa7N.js} +1 -1
  154. package/dist/assets/{StatementsPage-BCh51lDW-Bbv_Th--.js → StatementsPage-BCh51lDW-45J8YEUJ.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-C5ZrzI8Y-CWuMLeSj.js → StatusSwitcher-C5ZrzI8Y-BGhArkjF.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-BXZxKeq9-DJxd4bj0.js → SubTabSwitcher-BXZxKeq9-BIsbV39w.js} +1 -1
  157. package/dist/assets/{SummaryCard-194UToy6-forPPH9j.js → SummaryCard-194UToy6-CEnTzcLT.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-zcxDUo0t-B69DRG0M.js → TaskManagementPage-zcxDUo0t-C17mPZHh.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-Bsv7zQmN-CHOAXtBW.js → TimeRangeSwitcher-Bsv7zQmN-CDbbCqic.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-DtxsNy1Z-BWIfyBcI.js → TimeframeSwitcher-DtxsNy1Z-BfcVOPca.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-B5bFhbvL-DMwuh8gc.js → TimeframeSwitcherWithToggle-B5bFhbvL-62Q8rk5-.js} +1 -1
  162. package/dist/assets/{TopExCard-CBua66Cj-DmPoF-zf.js → TopExCard-CBua66Cj-BObMw8n4.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-DtMA-XMp-DXBxFYK_.js → TopExDetailPage-DtMA-XMp-Cbyksj9K.js} +1 -1
  164. package/dist/assets/{TransactionActivityLogPage-C3BPL8hi-DvJcfzCG.js → TransactionActivityLogPage-C3BPL8hi-essAxzXA.js} +1 -1
  165. package/dist/assets/{TransactionDetailPage-CeKaduBe-CvaqmBvV.js → TransactionDetailPage-CeKaduBe-XfIREYq5.js} +1 -1
  166. package/dist/assets/{TransactionList-CSx8ZCZ--MnlfYcf0.js → TransactionList-CSx8ZCZ--B0v1JVb_.js} +1 -1
  167. package/dist/assets/{TransactionListBig-B4cNQY2d-DHZLsQIU.js → TransactionListBig-B4cNQY2d-CPb3e1-9.js} +1 -1
  168. package/dist/assets/{TransactionListPage-DHr64V-b-Cn2avE7S.js → TransactionListPage-DHr64V-b-BRNOmxdv.js} +1 -1
  169. package/dist/assets/{TransactionVendorDetailPage-DsxI8U5b-Z4-9HDj4.js → TransactionVendorDetailPage-DsxI8U5b-B3TCJ-w6.js} +1 -1
  170. package/dist/assets/{TransferDrawerPage-C91TQwZi-DMuQ_GLG.js → TransferDrawerPage-C91TQwZi-YL2rhXiW.js} +1 -1
  171. package/dist/assets/{TreasuryOverviewPage-BoBn_gtF-5An_R6aS.js → TreasuryOverviewPage-BoBn_gtF-7zD1s4ZX.js} +1 -1
  172. package/dist/assets/{TreasuryPromoPage-CQ-VYEQC-CrN3qjYz.js → TreasuryPromoPage-CQ-VYEQC-RCSISvKq.js} +1 -1
  173. package/dist/assets/{TreasuryStatementsPage-taTRE54D-BCV56xkp.js → TreasuryStatementsPage-taTRE54D-DBcX5lQz.js} +1 -1
  174. package/dist/assets/{TreasuryTaxLetterPage-Cxhr51TD-8NCTP4uU.js → TreasuryTaxLetterPage-Cxhr51TD-DQI83F4n.js} +1 -1
  175. package/dist/assets/{TrendChart-DATgAEKG-lO4VoEWR.js → TrendChart-DATgAEKG-CJED2__S.js} +1 -1
  176. package/dist/assets/{TrendWithTransactions-DqPFuOvC-CYHBV8MN.js → TrendWithTransactions-DqPFuOvC-DWEjG5eq.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-BQjXazj4-CW6G2wU6.js → UncategorizedAccountsMappingPage-BQjXazj4-9h1t2uL1.js} +1 -1
  178. package/dist/assets/{UnitIntegrationPage-BiRGRtpI-1lodVlKH.js → UnitIntegrationPage-BiRGRtpI-CzDRfdSY.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-DCldWCol-r4R7T3Er.js → UploadAdditionalDocumentOverlay-DCldWCol-BrTez169.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-BpkAiYTA-f2r0SUR7.js → Vendor2FAPopup-BpkAiYTA-BAPu3n6p.js} +1 -1
  181. package/dist/assets/{VendorACHDetailsPage-tUuZzJnN-C60bXdok.js → VendorACHDetailsPage-tUuZzJnN-DDCcFiUz.js} +1 -1
  182. package/dist/assets/{VendorDetailPage-DY4iaLtz-DFlqh5zR.js → VendorDetailPage-DY4iaLtz-DEZpk4A6.js} +1 -1
  183. package/dist/assets/{VendorDomesticWireDetailsPage-B5Nym5J9-DB6MGYoK.js → VendorDomesticWireDetailsPage-B5Nym5J9-mR8EUaHb.js} +1 -1
  184. package/dist/assets/{VendorFiling1099EditablePage-Dep7O8Uz-YX9St3hG.js → VendorFiling1099EditablePage-Dep7O8Uz-DNOy1RZb.js} +1 -1
  185. package/dist/assets/{VendorFirstReviewPage-CJQIZn8g-BfTCVh8u.js → VendorFirstReviewPage-CJQIZn8g-ongKnci8.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireDetailsPage-CJG5RIa2-9OGF19kU.js → VendorInternationalWireDetailsPage-CJG5RIa2-DJB0igaI.js} +1 -1
  187. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DZabfieM-BoXjacRm.js → VendorInternationalWireSwiftDetailsPage-DZabfieM-BkPS7Yjw.js} +1 -1
  188. package/dist/assets/{VendorsAccountsSection-D65ewlO6-BWR4rnXG.js → VendorsAccountsSection-D65ewlO6-lldrXnFq.js} +1 -1
  189. package/dist/assets/{VerifyDevice-B1_jgwgY-BtQdXzr_.js → VerifyDevice-B1_jgwgY-YH0CSm9S.js} +1 -1
  190. package/dist/assets/{VideoPlayer-vWSXteQ6-BlRHr6VR.js → VideoPlayer-vWSXteQ6-DrqQOc4g.js} +2 -2
  191. package/dist/assets/{VideoPopup-CdsmU6H4-CG85kO2E.js → VideoPopup-CdsmU6H4-YnNRkD_7.js} +1 -1
  192. package/dist/assets/{WarningsDrawerPage-CjgOsD00-DiFXlL0w.js → WarningsDrawerPage-CjgOsD00-QfXT_iaA.js} +1 -1
  193. package/dist/assets/{ZeniAccountDetailPage-DiLnoonB-CBAmBaWm.js → ZeniAccountDetailPage-DiLnoonB-CUZJSa9V.js} +1 -1
  194. package/dist/assets/{ZeniAccountListViewPage-YfPsO8ls-bCt_h6lu.js → ZeniAccountListViewPage-YfPsO8ls-BQiXl5Qa.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-CHStBvRa-95QDvWCI.js → ZeniAccountNavBarPieces-CHStBvRa-CfOnjJEu.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-cEfW88p8-Xn4SXxDZ.js → ZeniAccountPromoPage-cEfW88p8-CQOdL8bQ.js} +1 -1
  197. package/dist/assets/{ZeniAccountSetupPage-B20DHYex-DWA1hKZ8.js → ZeniAccountSetupPage-B20DHYex-CBDRp1ua.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-BROHmszx-CUnYK0-_.js → ZeniCopyright-BROHmszx-DLewKfjR.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-DZZrrFXf-DR_2avYD.js → ZeniTransferAmountSlider-DZZrrFXf-BH0rUghA.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-BTS0au4y.js → add-to-wallet-DgdBD8_G-Cl_Ez0te.js} +1 -1
  201. package/dist/assets/{analytics-CiM00cgl.js → analytics-a3-h1xj4.js} +1 -1
  202. package/dist/assets/{analyticsHelper-hTONuHwW.js → analyticsHelper-DC0tw8eS.js} +1 -1
  203. package/dist/assets/{analyticsHelper-FJ-cS8qS-DJoWd_sg.js → analyticsHelper-FJ-cS8qS-Ci_6pu-z.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-D3YhHzhy.js → arrow-south-east-round-PEovUgvH-D3lad-o-.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-TWGQh9DI.js → auto-transfer-rule-mbafm5D3-DDu-ax22.js} +1 -1
  206. package/dist/assets/{chartTypes-DJdbX13L-D0TEPb2u.js → chartTypes-DJdbX13L-b1P5VrFB.js} +1 -1
  207. package/dist/assets/{commonDimensions-BpYNnQtf-m7HGsnTV.js → commonDimensions-BpYNnQtf-DXlsdNtx.js} +1 -1
  208. package/dist/assets/{commonTypes-BVbA7QjV-D_0wge_j.js → commonTypes-BVbA7QjV-Dr7UOfFO.js} +1 -1
  209. package/dist/assets/{constants-B0jEPb-7.js → constants-jse4xJQJ.js} +1 -1
  210. package/dist/assets/{core-C99WDMlL.js → core-BnKj499m.js} +1 -1
  211. package/dist/assets/{dash.all.min-0Hz96YMr.js → dash.all.min-BmDaqDRo.js} +1 -1
  212. package/dist/assets/{detailCommon-BRja9H93-PILpy16O.js → detailCommon-BRja9H93-DkenxiMr.js} +1 -1
  213. package/dist/assets/{downloadPdf-WDHjFv79-Cp8TpSb6.js → downloadPdf-WDHjFv79-Cu85BbJD.js} +1 -1
  214. package/dist/assets/{empty-C_JxotMu.js → empty-BnnBs2Hq.js} +1 -1
  215. package/dist/assets/{empty-Dxj4kD7e.js → empty-DSgs4FDU.js} +1 -1
  216. package/dist/assets/{epic-D-wOw91K.js → epic-BKe6CBv1.js} +1 -1
  217. package/dist/assets/{gift-box-Cmt9OgIZ-5rTUYVv5.js → gift-box-Cmt9OgIZ-ByKJb4af.js} +1 -1
  218. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CfThc3hK.js → graphic-no-data-l-DU4J8fDt-CVcCdXBW.js} +1 -1
  219. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BgtCb-Eb.js → graphic-no-data-net-burn-l-CzmycA0m-D64Ubc4f.js} +1 -1
  220. package/dist/assets/{handshake-BPg58FML-BTJKo4cA.js → handshake-BPg58FML-BHLxFToO.js} +1 -1
  221. package/dist/assets/{index-BaUtwdgr.js → index-7aDH5AUL.js} +1 -1
  222. package/dist/assets/{index-B90BaOpo.js → index-CIyF_7yW.js} +1 -1
  223. package/dist/assets/{index-8lR-flGE.js → index-CXWX726i.js} +1 -1
  224. package/dist/assets/{index-B3gry9uw.js → index-DQnU5eZk.js} +1 -1
  225. package/dist/assets/{index-B66qV-7m.js → index-DvlK0Oxr.js} +1 -1
  226. package/dist/assets/{index-BxtcKuQ9.js → index-I_YGVwVn.js} +7 -7
  227. package/dist/assets/{index-BQLbHD9f.js → index-uqyAmxcQ.js} +1 -1
  228. package/dist/assets/{lexical-DuSFg2Qn.js → lexical-BZskwjf4.js} +1 -1
  229. package/dist/assets/{liveblocks-BRWAYUb6.js → liveblocks-BS3L4RWg.js} +1 -1
  230. package/dist/assets/{lottie-CRJfZNkb.js → lottie-DzwonA_8.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-C_5Bb47i-K9Vx-fi5.js → mapLoadingInProgressToTreeNode-C_5Bb47i-BXu0Ae_y.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BlrJTKah-BDptVfnQ.js → mapSectionWithAcOnlyToTreeNode-BlrJTKah-CeZKFRMG.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-DvdWKHfX-B_Mxi-Ox.js → mapSpacerToTreeNode-DvdWKHfX-DcGILQU7.js} +1 -1
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-88qIN3FA-WfyLpyyK.js → mapTimeframeBalancesToTreeNode-88qIN3FA-_9RlhlH7.js} +1 -1
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-AkxvYRty-W8kRW6BI.js → mapTimeframeBalancesToTreeNode-AkxvYRty-B-t2QK0R.js} +1 -1
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-Bm5nzGWb.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-DhZzDjuq.js} +1 -1
  237. package/dist/assets/{mui-NI7j5KJX.js → mui-B5xZ5hPq.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-q5tz_pV-.js → page-detail-CWX5S47F-Bai_AIqG.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-d6QWM0fH.js → panelSelectedMixin-CzfD5-Zs-DjlB94_W.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-Pj_E6175.js → radio-default-CiSgisfh-DxKpaxcN.js} +1 -1
  241. package/dist/assets/{react-B650luWj.js → react-B-M2AMhb.js} +1 -1
  242. package/dist/assets/{react-Dg8USaCb.js → react-Bd6O7apP.js} +1 -1
  243. package/dist/assets/{react-bPRJrhZm.js → react-BkHuQuej.js} +1 -1
  244. package/dist/assets/{react-DudL36ZJ.js → react-C2jUXUI-.js} +1 -1
  245. package/dist/assets/{react-CO1rZiqV.js → react-DHyJ2jjm.js} +2 -2
  246. package/dist/assets/{react-CU2liPLj.js → react-DlUwuf4f.js} +1 -1
  247. package/dist/assets/{react-VfFVTNIz.js → react-DyJdRXQv.js} +1 -1
  248. package/dist/assets/{react-MZHrw8FG.js → react-yNAamS3P.js} +1 -1
  249. package/dist/assets/{recharts-CK-XmmGv.js → recharts-CED-3wcr.js} +1 -1
  250. package/dist/assets/{sentry-D0RHYOS9.js → sentry-PmwX_thl.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-BO3UIhm7.js → shield-DOlUxcFf-ClfQrCFi.js} +1 -1
  252. package/dist/assets/{toCOABalancesWithID-Bq4Xe7az-BP5RLZlB.js → toCOABalancesWithID-Bq4Xe7az-CFQwKD4j.js} +1 -1
  253. package/dist/assets/{toChartData-B3ouXKAd-B6myQc5i.js → toChartData-B3ouXKAd-vn0FXeiA.js} +1 -1
  254. package/dist/assets/{uploadAttachment-DNNG-CMy-BannLUKd.js → uploadAttachment-DNNG-CMy-A_7QDPr_.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-BV5mSt23.js → uploadReceipts-Dge0cNF1-DRSfZ9l_.js} +1 -1
  256. package/dist/assets/{url-BH27ZDzK.js → url-CmYVkzvY.js} +1 -1
  257. package/dist/assets/{url-CC9EPZhq.js → url-DyVvElem.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-779sx01-.js → useLongPress-GCK2COYQ-CTnSOjbM.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-Be4fJkJI.js → usp-line-BBd1wKwW-YyPfacmJ.js} +1 -1
  260. package/dist/assets/{utils-z9KEKf_W.js → utils-DSIkPC3h.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-Bk1TvHP-.js → zeni-epic-state-C8cU7Pvi.js} +3 -3
  262. package/dist/index.html +1 -1
  263. package/package.json +3 -3
  264. package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-zz2d_XVM.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as Zn,aw as Un,d as Kn,gk as Vn,gl as Xn,gm as Hn,gn as qn,cd as Gn,aQ as Yn,y,V as t,fa as ct,fb as Jn,o as a,fc as Qn,fd as ea,fe as ta,aN as Se,ff as na,aP as b,bC as pt,bo as mt,dv as ut,cp as yt,cq as ht,cr as bt,go as aa,gp as ia,gq as la,gr as oa,fk as j,gs as $,fm as A,fn as k,fj as ra,b as gt,p as oe,fl as Ot,ft as sa,fo as da,fp as ca,gt as pa,gu as ma,aR as ua,ao as ft,bT as ve,gv as ya,gw as L,F as ha,u as s,ag as ba,c2 as ga,gx as fa,x as xa,gy as wa,fu as xt,O as Ta,d3 as va,ci as Da,gz as wt,b7 as Ia,b9 as ja,c as $a,bV as Ft,d4 as Aa,gA as ka,ai as Et,av as Sa,b5 as Ca,bt as Pa,gB as Ba,al as Ra}from"./index-BxtcKuQ9.js";import{a as p}from"./sentry-D0RHYOS9.js";import{n as i}from"./mui-NI7j5KJX.js";import{a as za}from"./liveblocks-BRWAYUb6.js";import{bO as Ma,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-Bk1TvHP-.js";import{o as Wa,t as Za}from"./LowBalancePopup-BPk1-eAb-BXDaL15I.js";import"./core-C99WDMlL.js";import"./lottie-CRJfZNkb.js";import"./recharts-CK-XmmGv.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.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]="d29ad94d-bef0-4795-8127-67a89ceefaec",e._sentryDebugIdIdentifier="sentry-dbid-d29ad94d-bef0-4795-8127-67a89ceefaec")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("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:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Xa,more:Ha,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ga}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Ht,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,J]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Xn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&Q(K)},[K,Q]);const[rn,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:H,isLoading:P}=Hn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:H.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[H,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),X(!1)},[ee,X]);p.useEffect(()=>{ue?.threadId!=null&&H.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,H,P,ee,Q]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,Xe]=p.useState(!1),[un,He]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>Xe(!1),yn=()=>Xe(!0),Je=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Ht(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),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},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=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}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=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}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
1
+ import{J as Zn,aw as Un,d as Kn,gk as Vn,gl as Xn,gm as Hn,gn as qn,cd as Gn,aQ as Yn,y,V as t,fa as ct,fb as Jn,o as a,fc as Qn,fd as ea,fe as ta,aN as Se,ff as na,aP as b,bC as pt,bo as mt,dv as ut,cp as yt,cq as ht,cr as bt,go as aa,gp as ia,gq as la,gr as oa,fk as j,gs as $,fm as A,fn as k,fj as ra,b as gt,p as oe,fl as Ot,ft as sa,fo as da,fp as ca,gt as pa,gu as ma,aR as ua,ao as ft,bT as ve,gv as ya,gw as L,F as ha,u as s,ag as ba,c2 as ga,gx as fa,x as xa,gy as wa,fu as xt,O as Ta,d3 as va,ci as Da,gz as wt,b7 as Ia,b9 as ja,c as $a,bV as Ft,d4 as Aa,gA as ka,ai as Et,av as Sa,b5 as Ca,bt as Pa,gB as Ba,al as Ra}from"./index-I_YGVwVn.js";import{a as p}from"./sentry-PmwX_thl.js";import{n as i}from"./mui-B5xZ5hPq.js";import{a as za}from"./liveblocks-BS3L4RWg.js";import{bO as Ma,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-C8cU7Pvi.js";import{o as Wa,t as Za}from"./LowBalancePopup-BPk1-eAb-CHNJDa8D.js";import"./core-BnKj499m.js";import"./lottie-DzwonA_8.js";import"./recharts-CED-3wcr.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.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]="d29ad94d-bef0-4795-8127-67a89ceefaec",e._sentryDebugIdIdentifier="sentry-dbid-d29ad94d-bef0-4795-8127-67a89ceefaec")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("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:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Xa,more:Ha,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ga}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Ht,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,J]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Xn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&Q(K)},[K,Q]);const[rn,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:H,isLoading:P}=Hn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:H.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[H,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),X(!1)},[ee,X]);p.useEffect(()=>{ue?.threadId!=null&&H.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,H,P,ee,Q]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,Xe]=p.useState(!1),[un,He]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>Xe(!1),yn=()=>Xe(!0),Je=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Ht(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),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},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=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}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=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}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
2
  ${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Jn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),G=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&&lt||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{He(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Ge(!0),rt()},Fn=()=>{Jt(),He(!1),qe&&Ge(!1)},En=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]),_=Xt&&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,st=()=>{Ve("approved"),We===!0&&J(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Ja(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{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($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.memo,width:I},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{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($,{label:{label:n.amount,width:I},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.billable,width:I},text:r.billable!=null?In(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{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($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{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($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(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(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,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:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?J(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&lt?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!G&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(si,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ha,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ga,threads:H,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.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(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Qa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Xa} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1,4 +1,4 @@
1
- import{y as O,u as L,J as M,F as U,a9 as W,aQ as G,aJ as J,cF as Q,V as o,bC as X,ac as H,aR as K,o as c,g9 as Y}from"./index-BxtcKuQ9.js";import{a as T}from"./sentry-D0RHYOS9.js";import{n as h}from"./mui-NI7j5KJX.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-BrpI2HyW-Bt9y_9wM.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./recharts-CK-XmmGv.js";import"./zeni-epic-state-Bk1TvHP-.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.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]="04f6c195-eedf-4602-9f9f-aecdf6ff95d6",e._sentryDebugIdIdentifier="sentry-dbid-04f6c195-eedf-4602-9f9f-aecdf6ff95d6")}catch{}})();const C="billPayApprovalRuleDetailPage",k="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!n),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=g,{allApprovalRules:d,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,v=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),v=m>0?d[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),z=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:$})=>{if($!=null&&p!=null){const q=J(p);Q(()=>z($,q))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&I()},[B,u?.fetchState,I]),o.jsxs(se,{children:[o.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(H,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(C),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:y,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(de,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(K,{formId:j(C),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&d.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:c.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[b]:[b],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[k]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,r,s)=>s&&s.length>0?s.map((n,y)=>({stepIndex:y,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),j=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
1
+ import{y as O,u as L,J as M,F as U,a9 as W,aQ as G,aJ as J,cF as Q,V as o,bC as X,ac as H,aR as K,o as c,g9 as Y}from"./index-I_YGVwVn.js";import{a as T}from"./sentry-PmwX_thl.js";import{n as h}from"./mui-B5xZ5hPq.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-BrpI2HyW-Kug_2IzO.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./recharts-CED-3wcr.js";import"./zeni-epic-state-C8cU7Pvi.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.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]="04f6c195-eedf-4602-9f9f-aecdf6ff95d6",e._sentryDebugIdIdentifier="sentry-dbid-04f6c195-eedf-4602-9f9f-aecdf6ff95d6")}catch{}})();const C="billPayApprovalRuleDetailPage",k="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!n),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=g,{allApprovalRules:d,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,v=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),v=m>0?d[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),z=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:$})=>{if($!=null&&p!=null){const q=J(p);Q(()=>z($,q))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&I()},[B,u?.fetchState,I]),o.jsxs(se,{children:[o.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(H,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(C),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:y,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(de,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(K,{formId:j(C),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&d.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:c.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[b]:[b],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[k]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,r,s)=>s&&s.length>0?s.map((n,y)=>({stepIndex:y,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),j=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{J as W,F as S,V as t,bC as G,T as O,aP as y,y as r,al as M,o as i,aN as P,bT as z,cp as V,cq as q,cr as F,c$ as J,u as l,b9 as K,O as T,b8 as Q,p as j,c_ as X,bt as Y,b as Z}from"./index-BxtcKuQ9.js";import{n as o}from"./mui-NI7j5KJX.js";import{a as ee}from"./sentry-D0RHYOS9.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./recharts-CK-XmmGv.js";import"./zeni-epic-state-Bk1TvHP-.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.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]="ca256c1a-03e2-41c9-a042-8a680c891c65",e._sentryDebugIdIdentifier="sentry-dbid-ca256c1a-03e2-41c9-a042-8a680c891c65")}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)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U=()=>{h(!0)},E={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",P("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(k,{}),t.jsx(le,{}),t.jsx(k,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:P("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":y("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:U,"data-testid":y("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":y("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{f(x)},"data-testid":y("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(V,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:E}):null]})},oe=o.div`
1
+ import{J as W,F as S,V as t,bC as G,T as O,aP as y,y as r,al as M,o as i,aN as P,bT as z,cp as V,cq as q,cr as F,c$ as J,u as l,b9 as K,O as T,b8 as Q,p as j,c_ as X,bt as Y,b as Z}from"./index-I_YGVwVn.js";import{n as o}from"./mui-B5xZ5hPq.js";import{a as ee}from"./sentry-PmwX_thl.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./recharts-CED-3wcr.js";import"./zeni-epic-state-C8cU7Pvi.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.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]="ca256c1a-03e2-41c9-a042-8a680c891c65",e._sentryDebugIdIdentifier="sentry-dbid-ca256c1a-03e2-41c9-a042-8a680c891c65")}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)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U=()=>{h(!0)},E={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",P("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(k,{}),t.jsx(le,{}),t.jsx(k,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:P("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":y("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:U,"data-testid":y("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":y("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{f(x)},"data-testid":y("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(V,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:E}):null]})},oe=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{aw as X,J as f,aQ as Y,V as e,fv as ee,bC as ie,r as B,aP as C,ae as m,F as I,o as s,aq as se,R as le,d as M,aT as U,am as oe,y as re,p as $,cE as te,aU as ae,ba as ne,u as de}from"./index-BxtcKuQ9.js";import{a as g}from"./sentry-D0RHYOS9.js";import{n as l}from"./mui-NI7j5KJX.js";import{FA as ce,bS as pe,FB as me}from"./zeni-epic-state-Bk1TvHP-.js";import{C as xe}from"./VideoPopup-CdsmU6H4-CG85kO2E.js";import{M as b}from"./usp-line-BBd1wKwW-Be4fJkJI.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./recharts-CK-XmmGv.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.js";import"./VideoPlayer-vWSXteQ6-BlRHr6VR.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]="48955b32-1d0d-47cc-bac5-867d33815233",i._sentryDebugIdIdentifier="sentry-dbid-48955b32-1d0d-47cc-bac5-867d33815233")}catch{}})();const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
1
+ import{aw as X,J as f,aQ as Y,V as e,fv as ee,bC as ie,r as B,aP as C,ae as m,F as I,o as s,aq as se,R as le,d as M,aT as U,am as oe,y as re,p as $,cE as te,aU as ae,ba as ne,u as de}from"./index-I_YGVwVn.js";import{a as g}from"./sentry-PmwX_thl.js";import{n as l}from"./mui-B5xZ5hPq.js";import{FA as ce,bS as pe,FB as me}from"./zeni-epic-state-C8cU7Pvi.js";import{C as xe}from"./VideoPopup-CdsmU6H4-YnNRkD_7.js";import{M as b}from"./usp-line-BBd1wKwW-YyPfacmJ.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./recharts-CED-3wcr.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.js";import"./VideoPlayer-vWSXteQ6-DrqQOc4g.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]="48955b32-1d0d-47cc-bac5-867d33815233",i._sentryDebugIdIdentifier="sentry-dbid-48955b32-1d0d-47cc-bac5-867d33815233")}catch{}})();const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="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%;
@@ -1,4 +1,4 @@
1
- import{d as $e,J as De,aQ as W,a9 as Oe,cF as Re,F as Ue,aV as Z,V as t,fd as ze,p as He,aP as Le,y as u,bC as Ne,T as qe,ac as Me,fw as z,dQ as Ge,fx as Je,bw as Qe,dG as Ke,bT as Ze,fy as Ye,aR as Xe,o as L,fz as et,u as a,al as tt,bK as it}from"./index-BxtcKuQ9.js";import{a as m}from"./sentry-D0RHYOS9.js";import{n as b}from"./mui-NI7j5KJX.js";import{bJ as nt}from"./zeni-epic-state-Bk1TvHP-.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DCldWCol-r4R7T3Er.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./recharts-CK-XmmGv.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.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]="4487f2a0-f14d-417b-8866-b27c7689896c",e._sentryDebugIdIdentifier="sentry-dbid-4487f2a0-f14d-417b-8866-b27c7689896c")}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)},Y="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:N,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),q=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,$=_.link_account.updateStatus,D=_.update_account.updateStatus,B=W(f),J=W(P.fetchState),Q=W($.fetchState),K=W(D.fetchState),w=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>H(e),[e]),values:H(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"||Q==="In-Progress"&&$.fetchState==="Completed"||K==="In-Progress"&&D.fetchState==="Completed")&&w.reset(H(e))},[B,f,w,e,Q,$.fetchState,K,D.fetchState]);const Ve=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=M.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"&&N()},[N,J,P.fetchState]);const{commonSetUp:je,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=je,{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",j=k.mode==="light"?new Z(k.colors.brandColorJadeLight):new Z(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:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:He.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(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,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(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:X(Y),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(z,{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:j},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(z,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(z,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},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(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&V.length>0?t.jsx(Xe,{formId:X(Y),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`
1
+ import{d as $e,J as De,aQ as W,a9 as Oe,cF as Re,F as Ue,aV as Z,V as t,fd as ze,p as He,aP as Le,y as u,bC as Ne,T as qe,ac as Me,fw as z,dQ as Ge,fx as Je,bw as Qe,dG as Ke,bT as Ze,fy as Ye,aR as Xe,o as L,fz as et,u as a,al as tt,bK as it}from"./index-I_YGVwVn.js";import{a as m}from"./sentry-PmwX_thl.js";import{n as b}from"./mui-B5xZ5hPq.js";import{bJ as nt}from"./zeni-epic-state-C8cU7Pvi.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DCldWCol-BrTez169.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./recharts-CED-3wcr.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.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]="4487f2a0-f14d-417b-8866-b27c7689896c",e._sentryDebugIdIdentifier="sentry-dbid-4487f2a0-f14d-417b-8866-b27c7689896c")}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)},Y="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:N,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),q=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,$=_.link_account.updateStatus,D=_.update_account.updateStatus,B=W(f),J=W(P.fetchState),Q=W($.fetchState),K=W(D.fetchState),w=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>H(e),[e]),values:H(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"||Q==="In-Progress"&&$.fetchState==="Completed"||K==="In-Progress"&&D.fetchState==="Completed")&&w.reset(H(e))},[B,f,w,e,Q,$.fetchState,K,D.fetchState]);const Ve=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=M.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"&&N()},[N,J,P.fetchState]);const{commonSetUp:je,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=je,{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",j=k.mode==="light"?new Z(k.colors.brandColorJadeLight):new Z(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:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:He.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(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,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(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:X(Y),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(z,{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:j},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(z,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(z,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},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(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&V.length>0?t.jsx(Xe,{formId:X(Y),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 be,J as we,a9 as Ce,cF as Pe,aV as k,F as xe,V as t,y as P,bC as Ie,T as Ae,ac as ve,bw as je,cG as ke,aR as $e,o as a,hO as Te,e$ as Ve,f0 as De,u as x,al as Oe,gX as Be,p as Ee,O as ze}from"./index-BxtcKuQ9.js";import{a as R}from"./sentry-D0RHYOS9.js";import{n as r}from"./mui-NI7j5KJX.js";import{M as Le,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-DSnQX90O-BGfl6y1e.js";import{F as _e}from"./SetUpAccountSection-AVL_16HQ-BHazXsBl.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./recharts-CK-XmmGv.js";import"./zeni-epic-state-Bk1TvHP-.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.js";import"./commonTypes-BVbA7QjV-D_0wge_j.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]="50bd2efb-2935-4e65-95b9-fd233f099c12",e._sentryDebugIdIdentifier="sentry-dbid-50bd2efb-2935-4e65-95b9-fd233f099c12")}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])},Re={title:new ze("standardSemiBold","largeSemiBold")},F="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:J,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:q,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:se,onBillingAddressSave:ae,onAddressEditHandler:re})=>{const w=be(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(i),values:H(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{ae(G)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,s)=>{const g=s[I];if(c.includes(n)&&s[n]!=null){const v=f.getValues(`${n}`).country;let u=s[n];if(c.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:b}=s[n].street,j=Ve(b?.country);u={street:s[n].street??l.strings.empty,city:b?.locality??l.strings.empty,state:b?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:b?.countryCode??l.strings.empty,postalCode:b?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&q(g.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=f.watch((s,{name:g})=>{g!=null&&s!=null&&Pe(()=>me(g,s))});return()=>{c.unsubscribe()}});const O=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:B}=xe.getLocalizedStrings(),ge=B.section.subTitle,{text:ye,subText:fe}=he,E=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",L=h?.addCardPaymentSourceStatus.fetchState,C=Le(S.header,S.titleText,S.protectedCardNo,h);let M;E&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx("img",{src:W(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(z).name}),color:new k(O)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=R.useState(!1);return t.jsxs(Fe,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:B.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(We,{windowSize:o,children:[t.jsx(He,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(qe,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(Je,{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:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:O},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx($e,{formId:U(F),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:J.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:se,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},H=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]:Te(n,e.subscriptionBillingAddress)[n]}},We=r.div`
1
+ import{d as be,J as we,a9 as Ce,cF as Pe,aV as k,F as xe,V as t,y as P,bC as Ie,T as Ae,ac as ve,bw as je,cG as ke,aR as $e,o as a,hO as Te,e$ as Ve,f0 as De,u as x,al as Oe,gX as Be,p as Ee,O as ze}from"./index-I_YGVwVn.js";import{a as R}from"./sentry-PmwX_thl.js";import{n as r}from"./mui-B5xZ5hPq.js";import{M as Le,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-DSnQX90O-D2TItof-.js";import{F as _e}from"./SetUpAccountSection-AVL_16HQ-D51qLx36.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./recharts-CED-3wcr.js";import"./zeni-epic-state-C8cU7Pvi.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.js";import"./commonTypes-BVbA7QjV-Dr7UOfFO.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]="50bd2efb-2935-4e65-95b9-fd233f099c12",e._sentryDebugIdIdentifier="sentry-dbid-50bd2efb-2935-4e65-95b9-fd233f099c12")}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])},Re={title:new ze("standardSemiBold","largeSemiBold")},F="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:J,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:q,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:se,onBillingAddressSave:ae,onAddressEditHandler:re})=>{const w=be(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(i),values:H(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{ae(G)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,s)=>{const g=s[I];if(c.includes(n)&&s[n]!=null){const v=f.getValues(`${n}`).country;let u=s[n];if(c.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:b}=s[n].street,j=Ve(b?.country);u={street:s[n].street??l.strings.empty,city:b?.locality??l.strings.empty,state:b?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:b?.countryCode??l.strings.empty,postalCode:b?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&q(g.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=f.watch((s,{name:g})=>{g!=null&&s!=null&&Pe(()=>me(g,s))});return()=>{c.unsubscribe()}});const O=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:B}=xe.getLocalizedStrings(),ge=B.section.subTitle,{text:ye,subText:fe}=he,E=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",L=h?.addCardPaymentSourceStatus.fetchState,C=Le(S.header,S.titleText,S.protectedCardNo,h);let M;E&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx("img",{src:W(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(z).name}),color:new k(O)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=R.useState(!1);return t.jsxs(Fe,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:B.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(We,{windowSize:o,children:[t.jsx(He,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(qe,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(Je,{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:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:O},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx($e,{formId:U(F),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:J.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:se,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},H=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]:Te(n,e.subscriptionBillingAddress)[n]}},We=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as b,cp as V,cq as q,cr as M,kb as W,aY as Y,F as z}from"./index-BxtcKuQ9.js";import{a as f}from"./sentry-D0RHYOS9.js";import{Gh as G}from"./zeni-epic-state-Bk1TvHP-.js";import{u as K}from"./ReviewOverlay-BQVwPzKa-DoG_0rxc.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./recharts-CK-XmmGv.js";import"./mui-NI7j5KJX.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.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]="131dec7a-34ea-4ef8-a4e0-cb0d0538195c",e._sentryDebugIdIdentifier="sentry-dbid-131dec7a-34ea-4ef8-a4e0-cb0d0538195c")}catch{}})();const{common:s,spendManagement:{billPay:I}}=z.getLocalizedStrings(),o=I.bulkActions;let x;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,k]=f.useState(u),[B,E]=f.useState(0),[h,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(x)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(x)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,y=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(y);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,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,y,R,p),P=e.fetchState==="Completed"&&y===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"}:{}},L={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(V,{titleComponent:b.jsx(M,{children:h.title}),descriptionComponent:b.jsx(q,{children:h.description}),primaryButtonText:h.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:h.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&y===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,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:I.billDetails.newBillTitle,subTitle:`${I.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:Y("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(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??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...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?I.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,X as getBillsUniqueType};
1
+ import{V as b,cp as V,cq as q,cr as M,kb as W,aY as Y,F as z}from"./index-I_YGVwVn.js";import{a as f}from"./sentry-PmwX_thl.js";import{Gh as G}from"./zeni-epic-state-C8cU7Pvi.js";import{u as K}from"./ReviewOverlay-BQVwPzKa-mi7ZWRoC.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./recharts-CED-3wcr.js";import"./mui-B5xZ5hPq.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.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]="131dec7a-34ea-4ef8-a4e0-cb0d0538195c",e._sentryDebugIdIdentifier="sentry-dbid-131dec7a-34ea-4ef8-a4e0-cb0d0538195c")}catch{}})();const{common:s,spendManagement:{billPay:I}}=z.getLocalizedStrings(),o=I.bulkActions;let x;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,k]=f.useState(u),[B,E]=f.useState(0),[h,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(x)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(x)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,y=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(y);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,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,y,R,p),P=e.fetchState==="Completed"&&y===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"}:{}},L={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(V,{titleComponent:b.jsx(M,{children:h.title}),descriptionComponent:b.jsx(q,{children:h.description}),primaryButtonText:h.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:h.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&y===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,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:I.billDetails.newBillTitle,subTitle:`${I.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:Y("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(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??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...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?I.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,X as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{J as l,V as s,aP as b,o as e}from"./index-BxtcKuQ9.js";import{n as a}from"./mui-NI7j5KJX.js";import{o as p}from"./commonDimensions-BpYNnQtf-m7HGsnTV.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]="854d6bf5-b36f-4547-bc59-6ed6dca2aba2",o._sentryDebugIdIdentifier="sentry-dbid-854d6bf5-b36f-4547-bc59-6ed6dca2aba2")}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`
1
+ import{J as l,V as s,aP as b,o as e}from"./index-I_YGVwVn.js";import{n as a}from"./mui-B5xZ5hPq.js";import{o as p}from"./commonDimensions-BpYNnQtf-DXlsdNtx.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]="854d6bf5-b36f-4547-bc59-6ed6dca2aba2",o._sentryDebugIdIdentifier="sentry-dbid-854d6bf5-b36f-4547-bc59-6ed6dca2aba2")}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,J as dt,aQ as Oe,V as i,ae as W,a9 as pt,cV as ut,ay as mt,cF as ft,aY as Te,aO as ve,gc as yt,r as ht,bC as gt,aP as xt,cG as St,cp as wt,cq as bt,cr as Ct,T as Dt,ac as Ot,aR as Tt,o as r,y as V,am as je,F as Fe,gd as vt,fA as Ie,e$ as It,R as kt,x as Nt,al as Ae,O as $t,a as Pt,u as k}from"./index-BxtcKuQ9.js";import{a as j}from"./sentry-D0RHYOS9.js";import{n as d}from"./mui-NI7j5KJX.js";import{ER as Vt,bi as G}from"./zeni-epic-state-Bk1TvHP-.js";import{n as jt,z as Ft}from"./CompanyOfficerDetailsSection-CaAR0Wvk-BgdX570K.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./recharts-CK-XmmGv.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.js";import"./LabeledAddressValueField-D6dEaI69-fqHmVd_u.js";import"./LabeledCountryMultiSelectField-XeBih_-f-Cz3nDhMF.js";import"./LabeledCreatableSingleSelectField-BPX2Nrlf-CEcYkkp5.js";import"./LabeledDocumentField-Bjg8sNsg-BD1SQ1dE.js";import"./LabeledMultiSelectField-Di9Wnifv-14-SWEB3.js";import"./commonTypes-BVbA7QjV-D_0wge_j.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new e.Error().stack;S&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[S]="7c5d2a11-6983-4b4f-ac40-38bfdc8aea6c",e._sentryDebugIdIdentifier="sentry-dbid-7c5d2a11-6983-4b4f-ac40-38bfdc8aea6c")}catch{}})();const x={width:new V(343,580,726),titleWidth:new V(343,580,726,826),subTitlePaddingTop:new V(12,k[3]),subTitlePaddingBottom:new V(k[3],k[3]),verificationDetailsRowGap:new V(12,k[5],k[5]),termsPaddingLeftRight:new V(k[0],k[3])},At={stepTitle:new $t("h6Regular","h5Regular")},ke="businessVerificationPage",D="companyDetails",O="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:Lt,currency:Ne,footer:$e,strings:{empty:_t}}}=Fe.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:S,verficationDetailsFetchState:N,isRefreshingViewInBackground:_,filesEndPoint:s,authParams:B,productType:y,allIndustries:F,companyTitles:z,maxInsuredAmount:u,isDisabled:$,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:q=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:A,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Je})=>{const Ke=ct(),p=dt(),{updateStatus:R,companyView:L,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Qe=Oe(R.fetchState),U=L?.company.company.featuresActivationInfo.connectedAccountProvider,Xe=U==="unit"?i.jsxs(qt,{children:[a.terms.term1,i.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,i.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,i.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,i.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ye,J]=j.useState(!1),[M,re]=j.useState("save"),[K,Ze]=j.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,F,z,S)}),{isValid:He}=m.formState,Q=L?.company.company.companyBillPayInfo,X=L?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?X?.companyVerificationStatus:Q?.companyVerificationStatus,T=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${T<0?1:T+1}`,et=()=>{const t=b[v],n=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,C=t?.firstName,I=t?.lastName,pe=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,me=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;n!=null&&f!=null&&C!=null&&I!=null&&c!=null&&pe!=null&&me!=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:n,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:pe,phone:me,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,o?"Settings":void 0)},tt=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,C=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&m.trigger(`${O}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&m.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&m.trigger(`${D}.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 m.trigger(`${O}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(M!=="verification"&&re("verification"),U==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${O}.${T}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Vt(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Je?.())}),st=async(t,n)=>{t.includes(D)?Ue?.(n[D]):t.includes(O)&&We?.(n[O])},nt=j.useCallback(mt((t,n)=>{st(t,n)},300),[]);j.useEffect(()=>{const t=m.watch((n,{name:c})=>{c!=null&&n!=null&&ft(()=>nt(c,n))});return()=>{t.unsubscribe()}});const le=Oe(e.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),m.setValue(`${D}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,oe,m]);const ce=L?.companyOfficers.slice(0,10).sort((t,n)=>t.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{J(!1),A();const t=[],n=L?.company.company.incInfo.fileIds??[];m.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||t.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];m.getValues(`${O}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{J(!1)}},lt=Te(ve(u),u,Ne.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Qe==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Te(ve(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,Ne.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),i.jsx(ht,{label:a.submittedButton,onClick:()=>{A(),te?.()},variant:"primary"})]}):i.jsxs(zt,{isSettings:o,children:[i.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(m.formState.dirtyFields)?J(!0):A()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{A(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?i.jsx(wt,{titleComponent:i.jsx(Ct,{children:a.discardTitle}),descriptionComponent:i.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,i.jsxs(Ut,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?Lt.infoText.businessVerification:a.title}),N==="In-Progress"||N==="Not-Started"?i.jsx(Mt,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Ot,{...m,children:i.jsxs("form",{id:Pe(ke),onSubmit:it,children:[h&&w===!0&&i.jsxs(Et,{children:[i.jsxs(Jt,{windowSize:p,children:[i.jsx(Kt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Qt,{children:i.jsxs(Xt,{children:[i.jsx(Ve,{}),de&&i.jsx(Ve,{}),i.jsx(Yt,{})]})})]}),i.jsx(Le,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(jt,{companyOfficerData:b,allNationalityCountries:S,allOfficers:Y??[],sectionId:O,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:$,filesEndPoint:s,authParams:B,isPopupOpen:K,openPopup:Ze,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Ft,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:U,allIndustries:F,allNationalityCountries:S})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),N==="Completed"&&(y==="zeni_treasury"?X?.companyVerificationStatus?.code!=="pending_review"&&X?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(Tt,{formId:Pe(ke),primaryBtn:{label:w?$e.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:p==="small"?x.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?x.width.valuePx(p):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(p),paddingRight:x.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?$e.back:a.saveDetailsButton,style:{width:p==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)A();else{const t=b[v],n=l?.primaryContactLocalData;M!=="save"&&re("save");const c=t?.email??"",f=tt(),C=at();f&&C&&(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:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),Ge?.(v))}}},helperText:Xe,style:{padding:`12px ${r.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,S,N,_)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=e,F=Fe.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:S?.map(u=>u.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:F.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:F.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:(s?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[O]:Object.values(B).map((u,$)=>{const o=u,h=vt(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${$+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:It(o?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:N?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&$===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=e=>`${e}_form`,zt=d.div`
1
+ import{d as ct,J as dt,aQ as Oe,V as i,ae as W,a9 as pt,cV as ut,ay as mt,cF as ft,aY as Te,aO as ve,gc as yt,r as ht,bC as gt,aP as xt,cG as St,cp as wt,cq as bt,cr as Ct,T as Dt,ac as Ot,aR as Tt,o as r,y as V,am as je,F as Fe,gd as vt,fA as Ie,e$ as It,R as kt,x as Nt,al as Ae,O as $t,a as Pt,u as k}from"./index-I_YGVwVn.js";import{a as j}from"./sentry-PmwX_thl.js";import{n as d}from"./mui-B5xZ5hPq.js";import{ER as Vt,bi as G}from"./zeni-epic-state-C8cU7Pvi.js";import{n as jt,z as Ft}from"./CompanyOfficerDetailsSection-CaAR0Wvk-D8xIbENo.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./recharts-CED-3wcr.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.js";import"./LabeledAddressValueField-D6dEaI69-Bcb2eZry.js";import"./LabeledCountryMultiSelectField-XeBih_-f-C1r3HEXH.js";import"./LabeledCreatableSingleSelectField-BPX2Nrlf-C19CvhIO.js";import"./LabeledDocumentField-Bjg8sNsg-Bc6dsrIy.js";import"./LabeledMultiSelectField-Di9Wnifv-BgaOmXvC.js";import"./commonTypes-BVbA7QjV-Dr7UOfFO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new e.Error().stack;S&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[S]="7c5d2a11-6983-4b4f-ac40-38bfdc8aea6c",e._sentryDebugIdIdentifier="sentry-dbid-7c5d2a11-6983-4b4f-ac40-38bfdc8aea6c")}catch{}})();const x={width:new V(343,580,726),titleWidth:new V(343,580,726,826),subTitlePaddingTop:new V(12,k[3]),subTitlePaddingBottom:new V(k[3],k[3]),verificationDetailsRowGap:new V(12,k[5],k[5]),termsPaddingLeftRight:new V(k[0],k[3])},At={stepTitle:new $t("h6Regular","h5Regular")},ke="businessVerificationPage",D="companyDetails",O="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:Lt,currency:Ne,footer:$e,strings:{empty:_t}}}=Fe.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:S,verficationDetailsFetchState:N,isRefreshingViewInBackground:_,filesEndPoint:s,authParams:B,productType:y,allIndustries:F,companyTitles:z,maxInsuredAmount:u,isDisabled:$,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:q=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:A,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Je})=>{const Ke=ct(),p=dt(),{updateStatus:R,companyView:L,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Qe=Oe(R.fetchState),U=L?.company.company.featuresActivationInfo.connectedAccountProvider,Xe=U==="unit"?i.jsxs(qt,{children:[a.terms.term1,i.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,i.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,i.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,i.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ye,J]=j.useState(!1),[M,re]=j.useState("save"),[K,Ze]=j.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,F,z,S)}),{isValid:He}=m.formState,Q=L?.company.company.companyBillPayInfo,X=L?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?X?.companyVerificationStatus:Q?.companyVerificationStatus,T=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${T<0?1:T+1}`,et=()=>{const t=b[v],n=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,C=t?.firstName,I=t?.lastName,pe=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,me=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;n!=null&&f!=null&&C!=null&&I!=null&&c!=null&&pe!=null&&me!=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:n,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:pe,phone:me,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,o?"Settings":void 0)},tt=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,C=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&m.trigger(`${O}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&m.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&m.trigger(`${D}.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 m.trigger(`${O}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(M!=="verification"&&re("verification"),U==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${O}.${T}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Vt(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Je?.())}),st=async(t,n)=>{t.includes(D)?Ue?.(n[D]):t.includes(O)&&We?.(n[O])},nt=j.useCallback(mt((t,n)=>{st(t,n)},300),[]);j.useEffect(()=>{const t=m.watch((n,{name:c})=>{c!=null&&n!=null&&ft(()=>nt(c,n))});return()=>{t.unsubscribe()}});const le=Oe(e.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),m.setValue(`${D}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,oe,m]);const ce=L?.companyOfficers.slice(0,10).sort((t,n)=>t.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{J(!1),A();const t=[],n=L?.company.company.incInfo.fileIds??[];m.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||t.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];m.getValues(`${O}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{J(!1)}},lt=Te(ve(u),u,Ne.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Qe==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Te(ve(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,Ne.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),i.jsx(ht,{label:a.submittedButton,onClick:()=>{A(),te?.()},variant:"primary"})]}):i.jsxs(zt,{isSettings:o,children:[i.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(m.formState.dirtyFields)?J(!0):A()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{A(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?i.jsx(wt,{titleComponent:i.jsx(Ct,{children:a.discardTitle}),descriptionComponent:i.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,i.jsxs(Ut,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?Lt.infoText.businessVerification:a.title}),N==="In-Progress"||N==="Not-Started"?i.jsx(Mt,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Ot,{...m,children:i.jsxs("form",{id:Pe(ke),onSubmit:it,children:[h&&w===!0&&i.jsxs(Et,{children:[i.jsxs(Jt,{windowSize:p,children:[i.jsx(Kt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Qt,{children:i.jsxs(Xt,{children:[i.jsx(Ve,{}),de&&i.jsx(Ve,{}),i.jsx(Yt,{})]})})]}),i.jsx(Le,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(jt,{companyOfficerData:b,allNationalityCountries:S,allOfficers:Y??[],sectionId:O,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:$,filesEndPoint:s,authParams:B,isPopupOpen:K,openPopup:Ze,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Ft,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:U,allIndustries:F,allNationalityCountries:S})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),N==="Completed"&&(y==="zeni_treasury"?X?.companyVerificationStatus?.code!=="pending_review"&&X?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(Tt,{formId:Pe(ke),primaryBtn:{label:w?$e.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:p==="small"?x.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?x.width.valuePx(p):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(p),paddingRight:x.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?$e.back:a.saveDetailsButton,style:{width:p==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)A();else{const t=b[v],n=l?.primaryContactLocalData;M!=="save"&&re("save");const c=t?.email??"",f=tt(),C=at();f&&C&&(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:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),Ge?.(v))}}},helperText:Xe,style:{padding:`12px ${r.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,S,N,_)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=e,F=Fe.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:S?.map(u=>u.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:F.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:F.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:(s?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[O]:Object.values(B).map((u,$)=>{const o=u,h=vt(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${$+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:It(o?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:N?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&$===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=e=>`${e}_form`,zt=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{J as f,V as r,F as m,b as y,o as a,O as w,a as x}from"./index-BxtcKuQ9.js";import{n as o}from"./mui-NI7j5KJX.js";import{a as c}from"./sentry-D0RHYOS9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="dea98b09-cbef-489a-992b-afd5b7b4e633",e._sentryDebugIdIdentifier="sentry-dbid-dea98b09-cbef-489a-992b-afd5b7b4e633")}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}}=m.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=f(),h=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,b=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${b}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
1
+ import{J as f,V as r,F as m,b as y,o as a,O as w,a as x}from"./index-I_YGVwVn.js";import{n as o}from"./mui-B5xZ5hPq.js";import{a as c}from"./sentry-PmwX_thl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="dea98b09-cbef-489a-992b-afd5b7b4e633",e._sentryDebugIdIdentifier="sentry-dbid-dea98b09-cbef-489a-992b-afd5b7b4e633")}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}}=m.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=f(),h=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,b=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${b}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
2
2
  ${e=>e.forDetailPage?{...y.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 k,J as f,V as t,bC as te,fj as z,b as u,b3 as N,b$ as ie,o as i,F as w,p as B,y as h,al as v,dh as oe,u as l,aY as re,aN as T,bR as ae,ai as $,aP as L,jl as q,jm as Q,j1 as se,cz as ne,cC as de,am as O,j2 as le,j3 as ce}from"./index-BxtcKuQ9.js";import{n as o}from"./mui-NI7j5KJX.js";import{G8 as b,bh as he}from"./zeni-epic-state-Bk1TvHP-.js";import{P as R,a as V}from"./sentry-D0RHYOS9.js";import{F as pe}from"./InsightsSection-C3X6ZNEt-BFqaZ-1y.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-CK-XmmGv.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.js";import"./NavigationDots-C7Na64B9-pz3ynkYM.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]="472a5ebc-f511-4b7a-a421-6cb205f69c4b",e._sentryDebugIdIdentifier="sentry-dbid-472a5ebc-f511-4b7a-a421-6cb205f69c4b")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();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(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(X,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(X,{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`
1
+ import{d as k,J as f,V as t,bC as te,fj as z,b as u,b3 as N,b$ as ie,o as i,F as w,p as B,y as h,al as v,dh as oe,u as l,aY as re,aN as T,bR as ae,ai as $,aP as L,jl as q,jm as Q,j1 as se,cz as ne,cC as de,am as O,j2 as le,j3 as ce}from"./index-I_YGVwVn.js";import{n as o}from"./mui-B5xZ5hPq.js";import{G8 as b,bh as he}from"./zeni-epic-state-C8cU7Pvi.js";import{P as R,a as V}from"./sentry-PmwX_thl.js";import{F as pe}from"./InsightsSection-C3X6ZNEt-Br9SfZ5X.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-CED-3wcr.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.js";import"./NavigationDots-C7Na64B9-C3DCvc_F.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]="472a5ebc-f511-4b7a-a421-6cb205f69c4b",e._sentryDebugIdIdentifier="sentry-dbid-472a5ebc-f511-4b7a-a421-6cb205f69c4b")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();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(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(X,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(X,{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
  `,je=o.div`
@@ -1,4 +1,4 @@
1
- import{d as at,J as Ie,aw as Lt,a8 as Dt,h0 as Sr,hF as Ti,aV as et,h1 as $r,aQ as tt,V as t,h4 as Ai,bC as Fi,u as h,fX as vr,aN as qe,aP as Q,bB as Ri,bT as ta,p as c,o as a,F as ke,j7 as kr,b as _,cp as Ei,j8 as Pi,fd as zi,gS as Mi,j9 as Vi,bF as Oi,bO as jr,aT as aa,y as T,b7 as ra,bK as Ir,ai as Ce,eG as Hi,ba as ia,iX as Ni,aU as Lr,h as ft,h3 as Dr,cd as Bi,T as Ct,b3 as Wi,dn as _i,ct as Ui,ja as Gi,jb as Tr,jc as dt,Y as Zi,a$ as qi,jd as Yi,je as Ki,cq as Xi,d5 as Ji,hC as Qi,al as ze,bV as eo,av as Ut,jf as Ma,jg as to,di as ao,O as Va,a as Ar,b9 as ro,aB as io,iR as mt,j0 as oo,j5 as no,j6 as so,dv as Oa,eX as co,r as Fr,cz as Rr,i_ as lo,bY as ho,c as Er,jh as po,au as kt,b$ as Ha,bx as uo,de as mo,aq as go,am as lt,g$ as Co,x as fo,bG as wo,ji as Tt,fq as xo,jj as Pr,gC as zr,jk as It,ij as Mr,i7 as Vr,bR as yo,ej as Or,j1 as bo,cC as So,dQ as $o,c$ as vo,j2 as ko,j3 as jo,ep as Io,cg as Lo,ch as Do}from"./index-BxtcKuQ9.js";import{a as o,P as To}from"./sentry-D0RHYOS9.js";import{n as r,c as we,k as Hr}from"./mui-NI7j5KJX.js";import{EP as At,bh as Ao,bf as Fo,G7 as Ro}from"./zeni-epic-state-Bk1TvHP-.js";import{k as Eo}from"./NavigationDots-C7Na64B9-pz3ynkYM.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-BTS0au4y.js";import{L as Gt}from"./lottie-CRJfZNkb.js";import{j as Bo}from"./CardNumberSubText-B4dAoYDE-B2ljsvOo.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-d6QWM0fH.js";import{r as Nr}from"./core-C99WDMlL.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-BV5mSt23.js";import{N as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-BCqN4K17-DYpLZtI0.js";import"./liveblocks-BRWAYUb6.js";import"./recharts-CK-XmmGv.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.js";import"./RoleWithToolTip-GCV_l8Ly-C-VmbIWB.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]="5f2cbd64-686c-4442-9bcb-47b6ed4bde31",e._sentryDebugIdIdentifier="sentry-dbid-5f2cbd64-686c-4442-9bcb-47b6ed4bde31")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Ki(),K=Lt(),F=At(K.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Ko,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Xo,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-apple-wallet-button")})},Yo=r.div`
1
+ import{d as at,J as Ie,aw as Lt,a8 as Dt,h0 as Sr,hF as Ti,aV as et,h1 as $r,aQ as tt,V as t,h4 as Ai,bC as Fi,u as h,fX as vr,aN as qe,aP as Q,bB as Ri,bT as ta,p as c,o as a,F as ke,j7 as kr,b as _,cp as Ei,j8 as Pi,fd as zi,gS as Mi,j9 as Vi,bF as Oi,bO as jr,aT as aa,y as T,b7 as ra,bK as Ir,ai as Ce,eG as Hi,ba as ia,iX as Ni,aU as Lr,h as ft,h3 as Dr,cd as Bi,T as Ct,b3 as Wi,dn as _i,ct as Ui,ja as Gi,jb as Tr,jc as dt,Y as Zi,a$ as qi,jd as Yi,je as Ki,cq as Xi,d5 as Ji,hC as Qi,al as ze,bV as eo,av as Ut,jf as Ma,jg as to,di as ao,O as Va,a as Ar,b9 as ro,aB as io,iR as mt,j0 as oo,j5 as no,j6 as so,dv as Oa,eX as co,r as Fr,cz as Rr,i_ as lo,bY as ho,c as Er,jh as po,au as kt,b$ as Ha,bx as uo,de as mo,aq as go,am as lt,g$ as Co,x as fo,bG as wo,ji as Tt,fq as xo,jj as Pr,gC as zr,jk as It,ij as Mr,i7 as Vr,bR as yo,ej as Or,j1 as bo,cC as So,dQ as $o,c$ as vo,j2 as ko,j3 as jo,ep as Io,cg as Lo,ch as Do}from"./index-I_YGVwVn.js";import{a as o,P as To}from"./sentry-PmwX_thl.js";import{n as r,c as we,k as Hr}from"./mui-B5xZ5hPq.js";import{EP as At,bh as Ao,bf as Fo,G7 as Ro}from"./zeni-epic-state-C8cU7Pvi.js";import{k as Eo}from"./NavigationDots-C7Na64B9-C3DCvc_F.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-Cl_Ez0te.js";import{L as Gt}from"./lottie-DzwonA_8.js";import{j as Bo}from"./CardNumberSubText-B4dAoYDE-CqaOECNN.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-DjlB94_W.js";import{r as Nr}from"./core-BnKj499m.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-DRSfZ9l_.js";import{N as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-BCqN4K17-Ds8dOCK8.js";import"./liveblocks-BS3L4RWg.js";import"./recharts-CED-3wcr.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.js";import"./RoleWithToolTip-GCV_l8Ly-y89fxmkM.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]="5f2cbd64-686c-4442-9bcb-47b6ed4bde31",e._sentryDebugIdIdentifier="sentry-dbid-5f2cbd64-686c-4442-9bcb-47b6ed4bde31")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Ki(),K=Lt(),F=At(K.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Ko,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Xo,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-apple-wallet-button")})},Yo=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{a8 as Za,aQ as z,aw as er,fW as tr,iR as W,J as Ee,o as a,d as ta,V as t,bC as ar,g8 as rr,fj as ie,b as R,bT as nt,p,aN as me,aP as V,aY as st,F as Fe,y as H,ai as q,O as ir,a as or,cZ as nr,as as aa,bK as sr,a$ as ct,aT as dr,am as lt,a9 as cr,gV as lr,ev as ur,ao as hr,ac as mr,ge as pr,r as Nt,u as _,d7 as ra,aq as Cr,al as gr,R as br,cY as fr,bv as xr,bV as yr}from"./index-BxtcKuQ9.js";import{a as l}from"./sentry-D0RHYOS9.js";import{n as r,c as ut,k as Sr}from"./mui-NI7j5KJX.js";import{EP as wr,G6 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-Bk1TvHP-.js";import{t as vr}from"./SpendManagementSection-DZaP5ai6-DJtJKH0R.js";import{D as oe,r as jr,i as Ar}from"./ChargeCardListTable-DAVYmKCK-BNWWeKZ7.js";import{ChargeCardPromoUserContent as Lr}from"./ChargeCardPromoPage-DuQe7BpX-C856bpyc.js";import{N as Pr,J as Er}from"./PromoBaseCards-BVwZMVeE-CyjSJi7c.js";import{z as Ot,N as _t,k as Fr,P as Tr}from"./LockCardPage-BCqN4K17-DYpLZtI0.js";import{r as Mr,i as Rr}from"./graphic-no-data-net-burn-l-CzmycA0m-BgtCb-Eb.js";import{t as Dr,o as Br}from"./arrow-south-east-round-PEovUgvH-D3YhHzhy.js";import"./liveblocks-BRWAYUb6.js";import"./core-C99WDMlL.js";import"./recharts-CK-XmmGv.js";import"./lottie-CRJfZNkb.js";import"./analytics-CiM00cgl.js";import"./lexical-DuSFg2Qn.js";import"./utils-z9KEKf_W.js";import"./RoleWithToolTip-GCV_l8Ly-C-VmbIWB.js";import"./CardNumberSubText-B4dAoYDE-B2ljsvOo.js";import"./NavigationDots-C7Na64B9-pz3ynkYM.js";import"./usp-line-BBd1wKwW-Be4fJkJI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="73c918a4-a799-4ffc-974c-6963274bf74e",e._sentryDebugIdIdentifier="sentry-dbid-73c918a4-a799-4ffc-974c-6963274bf74e")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),L=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:L,children:[t.jsxs(na,{children:[L?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),L?null:t.jsx(Yr,{children:n})]}),!L&&t.jsxs(qr,{children:[t.jsx(Jr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Kr,{})]}),U!=null&&L?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:L,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:L,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
1
+ import{a8 as Za,aQ as z,aw as er,fW as tr,iR as W,J as Ee,o as a,d as ta,V as t,bC as ar,g8 as rr,fj as ie,b as R,bT as nt,p,aN as me,aP as V,aY as st,F as Fe,y as H,ai as q,O as ir,a as or,cZ as nr,as as aa,bK as sr,a$ as ct,aT as dr,am as lt,a9 as cr,gV as lr,ev as ur,ao as hr,ac as mr,ge as pr,r as Nt,u as _,d7 as ra,aq as Cr,al as gr,R as br,cY as fr,bv as xr,bV as yr}from"./index-I_YGVwVn.js";import{a as l}from"./sentry-PmwX_thl.js";import{n as r,c as ut,k as Sr}from"./mui-B5xZ5hPq.js";import{EP as wr,G6 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-C8cU7Pvi.js";import{t as vr}from"./SpendManagementSection-DZaP5ai6-FqR3lleO.js";import{D as oe,r as jr,i as Ar}from"./ChargeCardListTable-DAVYmKCK-C-PCDGX0.js";import{ChargeCardPromoUserContent as Lr}from"./ChargeCardPromoPage-DuQe7BpX-vIsb5OPm.js";import{N as Pr,J as Er}from"./PromoBaseCards-BVwZMVeE-DaRg5v5r.js";import{z as Ot,N as _t,k as Fr,P as Tr}from"./LockCardPage-BCqN4K17-Ds8dOCK8.js";import{r as Mr,i as Rr}from"./graphic-no-data-net-burn-l-CzmycA0m-D64Ubc4f.js";import{t as Dr,o as Br}from"./arrow-south-east-round-PEovUgvH-D3lad-o-.js";import"./liveblocks-BS3L4RWg.js";import"./core-BnKj499m.js";import"./recharts-CED-3wcr.js";import"./lottie-DzwonA_8.js";import"./analytics-a3-h1xj4.js";import"./lexical-BZskwjf4.js";import"./utils-DSIkPC3h.js";import"./RoleWithToolTip-GCV_l8Ly-y89fxmkM.js";import"./CardNumberSubText-B4dAoYDE-CqaOECNN.js";import"./NavigationDots-C7Na64B9-C3DCvc_F.js";import"./usp-line-BBd1wKwW-YyPfacmJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="73c918a4-a799-4ffc-974c-6963274bf74e",e._sentryDebugIdIdentifier="sentry-dbid-73c918a4-a799-4ffc-974c-6963274bf74e")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),L=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:L,children:[t.jsxs(na,{children:[L?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),L?null:t.jsx(Yr,{children:n})]}),!L&&t.jsxs(qr,{children:[t.jsx(Jr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Kr,{})]}),U!=null&&L?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:L,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:L,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,d as ze,h0 as hi,iS as pi,iT as ui,iU as mi,aR as gi,o as i,aP as X,cm as xi,b as Be,p as I,b3 as wi,ct as Ci,iV as fi,iW as yi,bT as ye,cw as Oe,bO as Si,aT as ki,y as C,eG as vi,ba as $i,iX as ji,aU as bi,h as Ii,ai as ee,h3 as Li,am as G,al as J,u as p,cJ as zi,eE as Ai,iY as Fi,iZ as Pi,O as ft,bY as yt,i_ as St,i$ as Ri,bR as Bi,cz as Ge,j0 as kt,dv as Di,dw as q,aN as ce,cv as vt,T as $t,j1 as _i,cC as Ei,iK as Je,bK as jt,bM as bt,j2 as Ti,j3 as Oi,aV as $e,bt as Vi,bZ as Ui,b_ as Ni,j4 as Mi}from"./index-BxtcKuQ9.js";import{P as pe,a as f}from"./sentry-D0RHYOS9.js";import{n as o,c as Ze}from"./mui-NI7j5KJX.js";import{T as It}from"./RoleWithToolTip-GCV_l8Ly-C-VmbIWB.js";import{j as Ve}from"./CardNumberSubText-B4dAoYDE-B2ljsvOo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="119ccf67-a931-4c5a-95ea-64abfd0035b2",e._sentryDebugIdIdentifier="sentry-dbid-119ccf67-a931-4c5a-95ea-64abfd0035b2")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ye={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Qe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ye,width:new C(0,0),value:Wi},Qe,et,tt,it,ot]:[Ye,Qe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),O!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(O)}${Hi}`})}):null]}),Z=a.type.code,_=$.cardList.tooltip[Z],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Zi,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Qi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":X("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Yi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(J)`
1
+ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,d as ze,h0 as hi,iS as pi,iT as ui,iU as mi,aR as gi,o as i,aP as X,cm as xi,b as Be,p as I,b3 as wi,ct as Ci,iV as fi,iW as yi,bT as ye,cw as Oe,bO as Si,aT as ki,y as C,eG as vi,ba as $i,iX as ji,aU as bi,h as Ii,ai as ee,h3 as Li,am as G,al as J,u as p,cJ as zi,eE as Ai,iY as Fi,iZ as Pi,O as ft,bY as yt,i_ as St,i$ as Ri,bR as Bi,cz as Ge,j0 as kt,dv as Di,dw as q,aN as ce,cv as vt,T as $t,j1 as _i,cC as Ei,iK as Je,bK as jt,bM as bt,j2 as Ti,j3 as Oi,aV as $e,bt as Vi,bZ as Ui,b_ as Ni,j4 as Mi}from"./index-I_YGVwVn.js";import{P as pe,a as f}from"./sentry-PmwX_thl.js";import{n as o,c as Ze}from"./mui-B5xZ5hPq.js";import{T as It}from"./RoleWithToolTip-GCV_l8Ly-y89fxmkM.js";import{j as Ve}from"./CardNumberSubText-B4dAoYDE-CqaOECNN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="119ccf67-a931-4c5a-95ea-64abfd0035b2",e._sentryDebugIdIdentifier="sentry-dbid-119ccf67-a931-4c5a-95ea-64abfd0035b2")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ye={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Qe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ye,width:new C(0,0),value:Wi},Qe,et,tt,it,ot]:[Ye,Qe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),O!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(O)}${Hi}`})}):null]}),Z=a.type.code,_=$.cardList.tooltip[Z],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Zi,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Qi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":X("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Yi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(J)`
2
2
  color: inherit;
3
3
  `,fe=o(J)`
4
4
  color: ${I.important};