@zeniai/web-cockpit-ui 1.15.8-dev → 1.15.8-qa

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 (217) hide show
  1. package/dist/assets/{ACHDetailsPage-C4kSZtcW-DXbi1tk_.js → ACHDetailsPage-C4kSZtcW-CRAncXjZ.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-nAXYlFHx-B-yNLxsI.js → AIPerformancePage-nAXYlFHx-D8t7UfO6.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-BgYgT10O-CcaqKm0M.js → AccountInfoPage-BgYgT10O-BPubXPU8.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-C6fN_njt-BfclYIhc.js → AccountInfoPageContent-C6fN_njt-HYk5LymM.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DRmaVRzS-BiL1l-3p.js → AccountLockedInfoModal-DRmaVRzS-Dz8UCOQu.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-ChfImufh-Qmw1sJds.js → AccountReconDetailsDrawerPage-ChfImufh-xGH31FUE.js} +1 -1
  7. package/dist/assets/{AccountRow-C0plHrDu-BlMGnWxc.js → AccountRow-C0plHrDu-BHbrjlQa.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BCRuoijH-D0HIkJsh.js → AccountsPromoCardStack-BCRuoijH-BiUfxCis.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BOX_B6jm-BbCABLHY.js → AddAddressForCardDrawer-BOX_B6jm-HjaseCvO.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CKPw3FXG-D61c3n-w.js → AddToWalletPage-CKPw3FXG-1yjoUpl3.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BLYXtrbx-DW-1ybPL.js → AgingReportsPage-BLYXtrbx-ChP2VVRq.js} +1 -1
  12. package/dist/assets/{AllUserItems-CIuKSRs--B0618Ye4.js → AllUserItems-CIuKSRs--BSTdrFJx.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-DeqICFKW-a9KWHhRJ.js → ApAgingDetailPage-DeqICFKW-BGrGI80f.js} +1 -1
  14. package/dist/assets/{AppBasePage-zQkWIZIS-COyO76Q-.js → AppBasePage-zQkWIZIS-J73aeT5P.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-OIrm7j-k-Dut49GGC.js → AppDrawerContent-OIrm7j-k-CAl-h4tc.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-Df5F_wnw-CP1luL-w.js → ApprovalRulesSettingsPage-Df5F_wnw-Cn6qw6gU.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Dv9GPrlk-1IjLiFwv.js → ArAgingChart-Dv9GPrlk-BDO04yvC.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-vW-JcTgF-Cy7lc6dB.js → ArAgingDetailPage-vW-JcTgF-CdtFinK-.js} +1 -1
  19. package/dist/assets/{AttachmentView-CHgDKLit-BOkUOxft.js → AttachmentView-CHgDKLit-CNDwc0Eo.js} +1 -1
  20. package/dist/assets/{BankAccountSection-danXlJW--Ci61_HQI.js → BankAccountSection-danXlJW--CGFGOQdm.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Byabqq8Z-DlkkUlqm.js → BankAccountWarningSection-Byabqq8Z-B6b9o7wy.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-D4iHZXiy-B50Jr36L.js → BankConnectionsSettingsPage-D4iHZXiy-DBmd09rV.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BD2IX-iP-C1AsdsRK.js → BillDetailPage-BD2IX-iP-QIATdRex.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DYbGnWVc-B9dRHLuy.js → BillPayApprovalRuleDetailPage-DYbGnWVc-JKxreggo.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BW2wEvAf-BP_2ZRbS.js → BillPayApprovalRulesPage-BW2wEvAf-DrTI5_46.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-C7PX-EVL-RrQTQk3r.js → BillPayPromoPage-C7PX-EVL-DDmbTE9O.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-Czno3Zre-B54xXO94.js → BillPaySetUpPage-Czno3Zre-BE6uTwDe.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-DwBAvbyP-BA7TOSu8.js → BillingSettingsPage-DwBAvbyP-BOeTv55Y.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-YBZ0Qqa6-BvssydGl.js → BillsBulkReviewDrawerPage-YBZ0Qqa6-Btjur5rB.js} +1 -1
  30. package/dist/assets/{BoxItem-CQn8-mlp-3WaKvXCN.js → BoxItem-CQn8-mlp-BpjhTACd.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Pj_43PYG-Bf2eq8Ab.js → BusinessVerificationPage-Pj_43PYG-BBfAZpRu.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-2Tw37MOu-DLENhMmY.js → CardNumberSubText-2Tw37MOu-Na5odSIe.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BPGA9iT0-BE7Kx4cM.js → CashbackDetailPage-BPGA9iT0-pfH6WY-d.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-draAZn9S-DVIwh9R-.js → ChargeCardDetailPage-draAZn9S-BLHAWsUD.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-gsG1eX_i-Dapb8J_Z.js → ChargeCardListPage-gsG1eX_i-DncsEeIV.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DVFpdT9f-BEElVTwC.js → ChargeCardListTable-DVFpdT9f-D6Qv1C8v.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BbggvUhU-DsH52CB6.js → ChargeCardPaymentHistoryPage-BbggvUhU-KYpdTWjw.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-DIxy-YcS-Bpah01ZO.js → ChargeCardPromoPage-DIxy-YcS-CPRuhZCR.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-Ck37bWHj-CA4YDMXc.js → ChargeCardSetupPage-Ck37bWHj-63DpNOd1.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-4bExV6ox-DsvdoV21.js → ChargeCardStatementsPage-4bExV6ox-BSLQYECC.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-cZ9nSw3H-CEFjqZ5t.js → CheckDepositDrawerPage-cZ9nSw3H-D2wZXg2E.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-D9EGRkFb-DwhLMO0b.js → CollapsableReportTable-D9EGRkFb-rtyJvli3.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-C2j4TNi_-D3zewiNv.js → CompanyOfficerDetailsSection-C2j4TNi_-P80aH3rj.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard--3g9aidd-CxwOeh5K.js → CompanyPassportCard--3g9aidd-DEP92iFu.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-BhF3zWN0-Cn2clYh0.js → CompanyPassportPage-BhF3zWN0-D1AeDDw0.js} +1 -1
  46. package/dist/assets/{CompleteProfile-iee5HgiC-iD1IzEAE.js → CompleteProfile-iee5HgiC-DWDz1H5n.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-Dl2Z6LKw-OEcvzGtj.js → ConfettiBurst-Dl2Z6LKw-BXiTHcqO.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-DTlxyMQ8-D1vsmSkA.js → CreateOrEditVendorPage-DTlxyMQ8-DUgUVqol.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-CAZbzyFh-1lHa8wZR.js → CreditCardPaymentDrawerPage-CAZbzyFh-BQoH4AnG.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-CcU9PAOW-u3CiOTPH.js → CurrencySelectField-CcU9PAOW-UhjAv5pw.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-dXGInCs4-_xQt3N4Y.js → CustomerOnboardingActivationPage-dXGInCs4-BfLZrVA_.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-CtySgp6R-DlPVcAtZ.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-eZtb_MiZ-oykMYoxJ.js → CustomerOnboardingDetailPageSkeleton-eZtb_MiZ-B7Pjeba4.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-BprU0lwT-FU4__G2R.js → CustomerOnboardingNoStepsPage-BprU0lwT-CBl7xIv9.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-CP969grW-CLGTaPd5.js → CustomerOnboardingPage-CP969grW-DSt_mh2c.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-C-oDFj9a-By3_gtmn.js → CustomerOnboardingProductSuitePage-C-oDFj9a-KXFyyrbX.js} +1 -1
  57. package/dist/assets/{Dashboard-CKSEolZn-B8UGwGX2.js → Dashboard-CKSEolZn-KkJW27CG.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-JLORU_HF-JuRm0_l-.js → DashboardReportPage-JLORU_HF-Cpq1a7z1.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-BhNP2YDK-RRWjqzmy.js → DashboardSidebarBackgroundAnimation-BhNP2YDK-AvtdKUwZ.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-B3A_2ZTg-BGji2vDD.js → DepositAccTransactionItem-B3A_2ZTg-BCChPgpu.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-S0zh1Xel-D4E89wzd.js → DepositAccTransactionListPage-S0zh1Xel-DgEcVBWB.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-DqVaQ5WI-CEmGU0Lk.js → DomesticWireDetailsPage-DqVaQ5WI-DBkE3G1h.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-D7AI3CGS-DY9OdGrk.js → DownloadOverlay-D7AI3CGS-BSXz1TYL.js} +1 -1
  64. package/dist/assets/{DrawerPage-BiQurb8Q-CEeTnVDp.js → DrawerPage-BiQurb8Q-CwosoM_H.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-DkLTV485-DyUGQQC3.js → EditPeoplePage-DkLTV485-DSmYd3gF.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-CoBKUQzs-DPjSJBny.js → EditReimbursementDetailPage-CoBKUQzs-C2zvDGNE.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-ougFUO1M-BRBPuzyF.js → EntityDetailPage-ougFUO1M-D5lOJcsX.js} +1 -1
  68. package/dist/assets/{EntitySummarySection-dbyZ3ZMD-WaXS93t5.js → EntitySummarySection-dbyZ3ZMD-DIUFVdBF.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-WTK5jHbV-RX7MJN4K.js → ExpenseAutomationOverviewPage-WTK5jHbV-D_hqg6CV.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-BLk7BdAz-BiJ_8J_A.js → ExpenseAutomationPage-BLk7BdAz-ozrsfKpW.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-CaBFl4M3-N5saqSFG.js → ExpressPayPage-CaBFl4M3-CpnlRAIb.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-BY7VDaUB-C72FE9k5.js → FeaturePreviewPage-BY7VDaUB-BlOtvf2P.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-BGZ3rzSO-DAxx1unm.js → FollowStepsSection-BGZ3rzSO-DZqA0Ls-.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-DIiVT0qf-DgTvaNXq.js → GlobalReviewListPage-DIiVT0qf-C1h-R-9P.js} +1 -1
  75. package/dist/assets/{InformationCardStack-BZIU9Bwm-DWOE8xSt.js → InformationCardStack-BZIU9Bwm-BPjI_Aqf.js} +1 -1
  76. package/dist/assets/{InsightsCardStack-BZ6yws_x-DiUvTias.js → InsightsCardStack-BZ6yws_x-l5SDGStI.js} +1 -1
  77. package/dist/assets/{InsightsSection-CdlmvyOs-DmXLU_Lu.js → InsightsSection-CdlmvyOs-CSbQ6jxV.js} +1 -1
  78. package/dist/assets/{IntegrationsSettingsPage-JQ0sBJ-E-Dbn9Coz2.js → IntegrationsSettingsPage-JQ0sBJ-E-D0GHOz8k.js} +1 -1
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-Bt0SYfe8-BOhQnyuJ.js → InternationalWireSwiftDetailsPage-Bt0SYfe8-D4jFazij.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-ZiPvLcjo-TFRIwP9z.js → InternationalWireVerificationPage-ZiPvLcjo-CzF6c2rU.js} +1 -1
  81. package/dist/assets/{InviteFormPage-C-_fbwpS-DFnpH_Sg.js → InviteFormPage-C-_fbwpS-Dc7fjvDO.js} +1 -1
  82. package/dist/assets/{InvitePageListView-DX3LFpcZ-wgARDxxe.js → InvitePageListView-DX3LFpcZ-x0SBH5kb.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-DOfw4ntH-CNo6v_nK.js → InvitePeoplePage-DOfw4ntH-Bnv1S2jS.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-7NLq2wUY-qezR9Z74.js → InvoiceUploadSection-7NLq2wUY-D1Ujr_CT.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-BSax9G6t-Ccz8TXME.js → IssueChargeCardPage-BSax9G6t-li0Yc8Qz.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-kz4tRnLH-XbapS3ut.js → LabeledAddressValue-kz4tRnLH-fkTasFZL.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-D950JjHi-B7-ZxMwG.js → LabeledAddressValueField-D950JjHi-CobscTGb.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-BxXnpjp--Dg3HIXbL.js → LabeledControlledCheckBoxField-BxXnpjp--D8QByb_Y.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-CzFImFhW-CGgJ4k83.js → LabeledCountryMultiSelectField-CzFImFhW-y52IAHGb.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-gJu9uvr7-DQ2Nsagb.js → LabeledCreatableSingleSelectField-gJu9uvr7-Baz8OVT_.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-y5kqHnHe-CmBeTY2E.js → LabeledDocumentField-y5kqHnHe-Cd6aBb3C.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-Vg6A9BxH-DOIAkkAy.js → LabeledDropDownFormattedTextField-Vg6A9BxH-8L8nXgg2.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-CIuHS55z-0cjXFx_d.js → LabeledMultiSelectField-CIuHS55z-BSvQJ-Z0.js} +1 -1
  94. package/dist/assets/{LabeledText-D0g7m29R-CGPY2mDY.js → LabeledText-D0g7m29R-cxnm614T.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DzIW_6we-BycaRLEY.js → LabeledUserSingleSelectWithSubtitlesField-DzIW_6we-BrxkJlKg.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-LWb3m6uz-DqLmiKb-.js → LabeledZeniRolesDropDownField-LWb3m6uz-BV8yj32-.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-DQUYzOEN-Dr7MZbKQ.js → LinkJETransactionPage-DQUYzOEN-CAqtea48.js} +1 -1
  98. package/dist/assets/{LockCardPage-XgZwsozn-B7KEhFgG.js → LockCardPage-XgZwsozn-DcNxXIWb.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-ChBTdcM2-CwIZnZTi.js → LowBalancePopup-ChBTdcM2-BRhnRaDc.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-CwTDkcTO-CNPrJSVK.js → MagicLinkACHDetailsPage-CwTDkcTO-Caq0ps9o.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-ncokQaY5-NW6YIUza.js → MagicLinkDomesticWireDetailsPage-ncokQaY5-Cl_8tBOk.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BHRkSlI7-DhjhQlqA.js → MagicLinkInternationalWireDetailsPage-BHRkSlI7-oQ1LN-Ng.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-D9asRaYX-BLWFhDtP.js → MagicLinkSuccessPage-D9asRaYX-hreLPWO1.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-CI_X5_g6-DmElUYen.js → MagicLinkTitleSection-CI_X5_g6-B9qDUBZ-.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-C_ZYNZtm-CsF-OIaa.js → MailingDetailsSection-C_ZYNZtm-CJ5xMswj.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-Bo5DQnsA-KlDGNzcW.js → MyBankConnectionsSettingsPage-Bo5DQnsA-D0Sufsix.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-yE_BAGUU-CF-N63jy.js → MyPendingActivationChargeCardListPage-yE_BAGUU-BmwV3pjH.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-BHZrydBY-CouLcv-w.js → MyProfileSettingsPage-BHZrydBY-B_909T6y.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-DfM5Vi5g-B5Y2cvHv.js → NavBarWithPicker-DfM5Vi5g-BWJESbaI.js} +1 -1
  110. package/dist/assets/{NavigationArrow-BuPVGh38-C7FStd2H.js → NavigationArrow-BuPVGh38-XNHRi9o5.js} +1 -1
  111. package/dist/assets/{NavigationDots-CLd0nZZT-DkTweDHl.js → NavigationDots-CLd0nZZT-CV65Lnrl.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-B4X5B9Kx-DIjUgsWq.js → NewGlobalMerchantPage-B4X5B9Kx-DrYC7XeB.js} +1 -1
  113. package/dist/assets/{NoDataChart-VrW0gNeK-CoKQWY6y.js → NoDataChart-VrW0gNeK-D9AHc7Vl.js} +1 -1
  114. package/dist/assets/{NoDataTable-CZaHTbXi-BvRSGEWZ.js → NoDataTable-CZaHTbXi-cbckRR4v.js} +1 -1
  115. package/dist/assets/{NotFoundPage-CvuhMeh3-DzAU1c1V.js → NotFoundPage-CvuhMeh3-DqU44v-s.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-612cyOPa-BDov0Or2.js → NotificationSettingsPage-612cyOPa-B2Br4UTC.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-CrNHxW9v-0zuPtBoA.js → NotificationsListConfig-CrNHxW9v-KkWyZsCx.js} +1 -1
  118. package/dist/assets/{NotificationsPage-DOq8YY_K-B5AJl0PR.js → NotificationsPage-DOq8YY_K-DXXt11Bj.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-JhAQyVWO-CgqLDeMB.js → OpExByVendorPage-JhAQyVWO-CFIAoogA.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-CEiw6dk7-DNyrAeAy.js → OverlayContainerPage-CEiw6dk7-D-uaIGKT.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-B8WG6VDM-B7n_PAXf.js → PandLWithForecastPage-B8WG6VDM-DheE6AGf.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BT4jtUDt-BicenMSK.js → PaymentAccountSetupBillingAddressSection-BT4jtUDt-wAvdlMUp.js} +1 -1
  123. package/dist/assets/{PeoplePage-BJui-Wgk-Blym3c87.js → PeoplePage-BJui-Wgk-ZqLOzULs.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-CGhEa82h-Bt-P-vzg.js → ProductsCarousel-CGhEa82h-DIdMDRd_.js} +1 -1
  125. package/dist/assets/{PromoBaseCards-1PF_kyGP-DnK5w4Qj.js → PromoBaseCards-1PF_kyGP-BRJ2sUha.js} +1 -1
  126. package/dist/assets/{QBOConnectionDialog-BVpU5kvg-BwCSP0e9.js → QBOConnectionDialog-BVpU5kvg-HDDG_kF6.js} +1 -1
  127. package/dist/assets/{QBOSetupSection-QpfgbXqT-DZhl1eaB.js → QBOSetupSection-QpfgbXqT-DygUgRVU.js} +1 -1
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CcH6vHDZ-1I93dA7B.js → ReimbursementApprovalRuleDetailPage-CcH6vHDZ-zXLIrPpr.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRulesPage-C22bGg4Y-DujacG7V.js → ReimbursementApprovalRulesPage-C22bGg4Y-ClYVlFhQ.js} +1 -1
  130. package/dist/assets/{ReimbursementDetailPage-BntmMmsa-BON1Pgl-.js → ReimbursementDetailPage-BntmMmsa-DBIHpTWQ.js} +1 -1
  131. package/dist/assets/{ReimbursementPromoPage--ddzF7ri-CzikH3CP.js → ReimbursementPromoPage--ddzF7ri-C8Whx13o.js} +1 -1
  132. package/dist/assets/{ReimbursementSetUpPage-B_Mkgwzu-K4BhhXOp.js → ReimbursementSetUpPage-B_Mkgwzu-BjjCmbcS.js} +1 -1
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-XRdWaRhQ-CM2OmWD1.js → ReimbursementsBulkReviewDrawerPage-XRdWaRhQ-DF7X2SfJ.js} +1 -1
  134. package/dist/assets/{ReloadCard-crbWeOPP-CkioU763.js → ReloadCard-crbWeOPP-CXnI4BBC.js} +1 -1
  135. package/dist/assets/{ReportTableViewSelector-KXoOW677-Cxk4-6kw.js → ReportTableViewSelector-KXoOW677-VB10UJ6e.js} +1 -1
  136. package/dist/assets/{ReportsPage-C3Jj54B2-CJg2yyXf.js → ReportsPage-C3Jj54B2-BeGQBjYf.js} +1 -1
  137. package/dist/assets/{RevenueChart-B2lwdex1-DM-m44Ax.js → RevenueChart-B2lwdex1-Cn6eIKBB.js} +1 -1
  138. package/dist/assets/{ReviewDetailsPage-BzJuymlx-B43bDwEk.js → ReviewDetailsPage-BzJuymlx-De8jeqFq.js} +1 -1
  139. package/dist/assets/{ReviewOverlay-CXHcM5J8-Z1A7mqWB.js → ReviewOverlay-CXHcM5J8-CWmuYC1c.js} +1 -1
  140. package/dist/assets/{RoleWithToolTip-q4rQTPKj-BeUt86oC.js → RoleWithToolTip-q4rQTPKj-DnZtHqjj.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BDxnIjkN-CrAKUlFE.js → ScheduleDetailsFixedAssetsPage-BDxnIjkN-RHoI8Wq9.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsPage-C0WZjjTg-DX2t9Wrq.js → ScheduleDetailsPage-C0WZjjTg-4LVdyrEA.js} +1 -1
  143. package/dist/assets/{ScheduleSequenceTable-MEIZsagy-bHxXvqLR.js → ScheduleSequenceTable-MEIZsagy-Bs57M6oJ.js} +1 -1
  144. package/dist/assets/{ScreenRoutes-BGG-33kI.js → ScreenRoutes-Br3O3Bv3.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-Drp97o6h-xxM8m8_w.js → SetUpAccountSection-Drp97o6h-CUmuMQTP.js} +1 -1
  146. package/dist/assets/{SignIn-YqQXhCUb-BOeW8x0h.js → SignIn-YqQXhCUb-DTchfIMW.js} +1 -1
  147. package/dist/assets/{SignInScreen-D-bsy2_u.js → SignInScreen-BEl-iT5I.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-SufQOT9Y-5mvmwHQW.js → SpendManagementListViewPage-SufQOT9Y-DsXDsMNB.js} +3 -3
  149. package/dist/assets/{SpendManagementPerTabPage-vkAKQl3f-CYCCZ3rU.js → SpendManagementPerTabPage-vkAKQl3f-CDT-okI2.js} +1 -1
  150. package/dist/assets/{SpendManagementSection-WqBeexgm-D6ZHNQRi.js → SpendManagementSection-WqBeexgm-FC3yMOoP.js} +1 -1
  151. package/dist/assets/{StatementItem-DNtPyOiC-mibD54OH.js → StatementItem-DNtPyOiC-Cwms937J.js} +1 -1
  152. package/dist/assets/{StatementsPage-ProqQbaP-BB4Fbh50.js → StatementsPage-ProqQbaP-Bwe3MvOf.js} +1 -1
  153. package/dist/assets/{StatusSwitcher-CWQs9lpu-RXB7-04g.js → StatusSwitcher-CWQs9lpu-vdzoI5uC.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-B2uBojsp-DZNkw8WS.js → SubTabSwitcher-B2uBojsp-BscSJfWm.js} +1 -1
  155. package/dist/assets/{SummaryCard-Dcd_VUph-BV3h5iTx.js → SummaryCard-Dcd_VUph-CtvPqFVw.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-BM9VR6Lt-C4YfHc_A.js → TaskManagementPage-BM9VR6Lt-96HNn42p.js} +1 -1
  157. package/dist/assets/{TimeRangeSwitcher-Sfz9Zsfu-DOBYaYdI.js → TimeRangeSwitcher-Sfz9Zsfu-C7Lz4In0.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcher--oC4RNb6-CvfDTC-U.js → TimeframeSwitcher--oC4RNb6-9wGsnDTh.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-CaOGQOMX-D3Vo1Cjd.js → TimeframeSwitcherWithToggle-CaOGQOMX-IGT58opJ.js} +1 -1
  160. package/dist/assets/{TopExCard-DQ50kCvS-_2HPPX6t.js → TopExCard-DQ50kCvS-ChFGt_1f.js} +1 -1
  161. package/dist/assets/{TopExDetailPage-iwv1KNmn-sj6nj5zr.js → TopExDetailPage-iwv1KNmn-D2goxRJ1.js} +1 -1
  162. package/dist/assets/{TransactionDetailPage-dcUFs9xb-CrNRbBcr.js → TransactionDetailPage-dcUFs9xb-D1c2i9oL.js} +1 -1
  163. package/dist/assets/{TransactionList-1g-61_2b-CWHQyly8.js → TransactionList-1g-61_2b-BsVHB-dP.js} +1 -1
  164. package/dist/assets/{TransactionListBig-CSrLWjaV-BtYTXkmc.js → TransactionListBig-CSrLWjaV-DmreU3Pg.js} +1 -1
  165. package/dist/assets/{TransactionListPage-CKkWpoxH-CDqG5M4K.js → TransactionListPage-CKkWpoxH-DwZxceId.js} +1 -1
  166. package/dist/assets/{TransactionVendorDetailPage-BdVFxZdL-Dwyqb3QB.js → TransactionVendorDetailPage-BdVFxZdL-Da7F6NI9.js} +1 -1
  167. package/dist/assets/{TransferDrawerPage-nyepeege-Tib1D3Ko.js → TransferDrawerPage-nyepeege-C5aOIw_t.js} +1 -1
  168. package/dist/assets/{TreasuryOverviewPage-CkaOtstB-DJ6jh11f.js → TreasuryOverviewPage-CkaOtstB-Cb7VOc7Q.js} +1 -1
  169. package/dist/assets/{TreasuryPromoPage-B55rqmLO-BovduQF3.js → TreasuryPromoPage-B55rqmLO-B6nyli4-.js} +1 -1
  170. package/dist/assets/{TreasuryStatementsPage-DA72LRB2-COfX6A9q.js → TreasuryStatementsPage-DA72LRB2-BCFMT-Wb.js} +1 -1
  171. package/dist/assets/{TreasuryTaxLetterPage-CQ2nQIPi-CBS_UC-D.js → TreasuryTaxLetterPage-CQ2nQIPi-BvK8_LPp.js} +1 -1
  172. package/dist/assets/{TrendChart-BsSVNJm5-CngvRWQH.js → TrendChart-BsSVNJm5-C5P4NUjk.js} +1 -1
  173. package/dist/assets/{TrendWithTransactions-B6iLzpiJ-BNwLmu5S.js → TrendWithTransactions-B6iLzpiJ-CD-GjoX8.js} +1 -1
  174. package/dist/assets/{UncategorizedAccountsMappingPage-p3mhxO3d-hTb-4Xip.js → UncategorizedAccountsMappingPage-p3mhxO3d-BzXjBs-h.js} +1 -1
  175. package/dist/assets/{UnitIntegrationPage-CEtqPMTy-BFsuhTVj.js → UnitIntegrationPage-CEtqPMTy-CkFNHSgJ.js} +1 -1
  176. package/dist/assets/{UploadAdditionalDocumentOverlay-BYrAIUiK-zdW8Yium.js → UploadAdditionalDocumentOverlay-BYrAIUiK-19i7WD8j.js} +1 -1
  177. package/dist/assets/{Vendor2FAPopup-BPoFrkoj-DQVyS_En.js → Vendor2FAPopup-BPoFrkoj-CrkNrLcq.js} +1 -1
  178. package/dist/assets/{VendorACHDetailsPage-_UmamDKx-3__MSdLg.js → VendorACHDetailsPage-_UmamDKx-DnLhvKeC.js} +1 -1
  179. package/dist/assets/{VendorDetailPage-C0qX459r-CReufchw.js → VendorDetailPage-C0qX459r-DAL6sRtd.js} +1 -1
  180. package/dist/assets/{VendorDomesticWireDetailsPage-DJCb_XK0-CqOHNcHl.js → VendorDomesticWireDetailsPage-DJCb_XK0-D6ans18-.js} +1 -1
  181. package/dist/assets/{VendorFiling1099EditablePage-Da667Gu2-1r_mMv0x.js → VendorFiling1099EditablePage-Da667Gu2-DUD0rine.js} +1 -1
  182. package/dist/assets/{VendorFirstReviewPage-CJ-NKRm1-_2DgNT9J.js → VendorFirstReviewPage-CJ-NKRm1-BgMJtPzx.js} +1 -1
  183. package/dist/assets/{VendorInternationalWireDetailsPage-DodDB5wc-DbWBFoxR.js → VendorInternationalWireDetailsPage-DodDB5wc-DKjAmytq.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-ain3pHSa-EKqJyej-.js → VendorInternationalWireSwiftDetailsPage-ain3pHSa-CGNH7X2x.js} +1 -1
  185. package/dist/assets/{VendorsAccountsSection-C5cJ9KYV-CyL_wlEF.js → VendorsAccountsSection-C5cJ9KYV-BmGEajTn.js} +1 -1
  186. package/dist/assets/{VerifyDevice-B23jU0_c-B85D_w3i.js → VerifyDevice-B23jU0_c-Y4SYDFq4.js} +1 -1
  187. package/dist/assets/{VideoPlayer-CylTUX4X-BEZtED7z.js → VideoPlayer-CylTUX4X-DSxfswME.js} +1 -1
  188. package/dist/assets/{VideoPopup-C9x0ntQ5-C94oLuE1.js → VideoPopup-C9x0ntQ5-BVA3i-oV.js} +1 -1
  189. package/dist/assets/{WarningsDrawerPage-DrjxA1t_-DrM3KM-2.js → WarningsDrawerPage-DrjxA1t_-BoFSpSiS.js} +1 -1
  190. package/dist/assets/{ZeniAccountDetailPage-B7aCx_qz-DMRHevfC.js → ZeniAccountDetailPage-B7aCx_qz-CIWx2G2v.js} +1 -1
  191. package/dist/assets/{ZeniAccountListViewPage-C2AHdlrD-DmjpZpES.js → ZeniAccountListViewPage-C2AHdlrD-C79um01B.js} +1 -1
  192. package/dist/assets/{ZeniAccountNavBarPieces-AwdFLryC-S89TIuvH.js → ZeniAccountNavBarPieces-AwdFLryC-Jh4OQT7x.js} +1 -1
  193. package/dist/assets/{ZeniAccountPromoPage-c0ITsnMc-BxSMGlkl.js → ZeniAccountPromoPage-c0ITsnMc-B2My929b.js} +1 -1
  194. package/dist/assets/{ZeniAccountSetupPage-BE975QGg-DFrCRSD2.js → ZeniAccountSetupPage-BE975QGg-D-DppFIe.js} +1 -1
  195. package/dist/assets/{ZeniCopyright-eB9rNuZ3-BNyg83Vo.js → ZeniCopyright-eB9rNuZ3-cNG8Rw7j.js} +1 -1
  196. package/dist/assets/{ZeniTransferAmountSlider-CMYjwzsb--Afhr34i.js → ZeniTransferAmountSlider-CMYjwzsb-D5scnWJV.js} +1 -1
  197. package/dist/assets/{analyticsHelper-CLY1vV_E-BemgqSJF.js → analyticsHelper-CLY1vV_E-BwSnChaf.js} +1 -1
  198. package/dist/assets/{analyticsHelper-D-tLilsz.js → analyticsHelper-fz25hsmq.js} +1 -1
  199. package/dist/assets/{chartTypes-BjaXr-A2-DXtLo4Yx.js → chartTypes-BjaXr-A2-D3DBmfud.js} +1 -1
  200. package/dist/assets/{commonDimensions-C0X17W9N-BSrHO4N_.js → commonDimensions-C0X17W9N-CR9paNIq.js} +1 -1
  201. package/dist/assets/{commonTypes-BN7Uh_8W-pfbkHgmN.js → commonTypes-BN7Uh_8W-BM1Dtb_1.js} +1 -1
  202. package/dist/assets/{detailCommon-D9PsnkY1-BuBcpPrC.js → detailCommon-D9PsnkY1-D9_PN47h.js} +1 -1
  203. package/dist/assets/{downloadPdf-DE7Hd8jE-DAbFGRh1.js → downloadPdf-DE7Hd8jE-BAK9xguG.js} +1 -1
  204. package/dist/assets/{index-CRNmezJu.js → index-e-SZUuyN.js} +5 -5
  205. package/dist/assets/{mapLoadingInProgressToTreeNode-C4CzR5xS-Cg81Asz9.js → mapLoadingInProgressToTreeNode-C4CzR5xS-BKTQHVzy.js} +1 -1
  206. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-4MBuc1Sm-B6R5EAwN.js → mapSectionWithAcOnlyToTreeNode-4MBuc1Sm-CE09aSrt.js} +1 -1
  207. package/dist/assets/{mapSpacerToTreeNode-hZvWCXjA-CuA0QfzK.js → mapSpacerToTreeNode-hZvWCXjA-hu7JWeUA.js} +1 -1
  208. package/dist/assets/{mapTimeframeBalancesToTreeNode-CHvIKq5Y-CV_qZTRk.js → mapTimeframeBalancesToTreeNode-CHvIKq5Y-DtuP5OpB.js} +1 -1
  209. package/dist/assets/{mapTimeframeBalancesToTreeNode-D4r2BVXx-DnEFsarG.js → mapTimeframeBalancesToTreeNode-D4r2BVXx-BgK_pIe_.js} +1 -1
  210. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-nP8CDp4j-BxTMyk7D.js → mapTimeframeHeaderLoadingInProgressToTreeNode-nP8CDp4j-H65zpMKu.js} +1 -1
  211. package/dist/assets/{toCOABalancesWithID-DPAmy3GS-lyRBWxwk.js → toCOABalancesWithID-DPAmy3GS-PiTKgxz9.js} +1 -1
  212. package/dist/assets/{toChartData-D5QdTlGa-DOsyIRYt.js → toChartData-D5QdTlGa-DLv4zZlP.js} +1 -1
  213. package/dist/assets/{uploadAttachment-BLADYUsp-BO1TVLxu.js → uploadAttachment-BLADYUsp-CuyJL9Ae.js} +1 -1
  214. package/dist/assets/{uploadReceipts-CLN2DLHQ-CHihhpL-.js → uploadReceipts-CLN2DLHQ-BcmoXhPJ.js} +1 -1
  215. package/dist/index.html +1 -1
  216. package/package.json +1 -1
  217. package/dist/assets/CustomerOnboardingContainerPage-CtySgp6R-CAM0wcfl.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as Wn,ax as Un,e as Kn,gh as Vn,gi as qn,gj as Hn,gk as Gn,cd as Jn,aR as Xn,y,V as t,f7 as ct,f8 as Yn,o as a,f9 as Qn,fa as ea,fb as ta,aO as Se,fc as na,aQ as b,bC as pt,bp as mt,du as ut,cp as yt,cq as ht,cr as bt,gl as aa,gm as ia,gn as la,go as oa,fh as j,gp as $,fj as A,fk as k,fg as ra,b as gt,p as oe,fi as Ot,fq as sa,fl as da,fm as ca,gq as pa,gr as ma,aS as ua,ao as ft,bT as ve,gs as ya,gt as L,O as ha,c as s,ag as ba,c2 as ga,gu as fa,x as xa,gv as wa,fr as xt,F as Ta,d3 as va,ci as Da,gw as wt,b8 as Ia,ba as ja,l as $a,bV as Ft,d4 as Aa,gx as ka,ai as Et,aw as Sa,b6 as Ca,bu as Pa,gy as Ba,al as Ra}from"./index-CRNmezJu.js";import{a as p}from"./sentry-Dla7mstv.js";import{n as i}from"./mui-mhzAEcDs.js";import{a as Ma}from"./liveblocks-BKvkleJ3.js";import{bO as za,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-CSmiPBaP.js";import{o as Za,t as Wa}from"./LowBalancePopup-ChBTdcM2-CwIZnZTi.js";import"./core-hVMF2uNa.js";import"./lottie-N_bekW9H.js";import"./recharts-BErFcng5.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.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]="e5de1540-edd9-43b9-8390-7efe0f0b048c",e._sentryDebugIdIdentifier="sentry-dbid-e5de1540-edd9-43b9-8390-7efe0f0b048c")}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:qa,more:Ha,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ja}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:Zt,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:qt,redirectToEditableBillScreen:Ht,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Ne,onAddNewRule:Jt,onAttachmentClick:Le,saveBillDetails:Xt,discardOutsideZeniPaymentData:Yt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Wn(),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),[Ze,Y]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:qn,{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,q]=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,We=p.useMemo(()=>h==null?[]:H.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[H,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),q(!1)},[ee,q]);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))});Jn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,qe]=p.useState(!1),[un,He]=p.useState(!1),[Ge,Je]=p.useState(!1),Xe=()=>qe(!1),yn=()=>qe(!0),Ye=Xn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),X())},[e,X,Me]),p.useEffect(()=>{Ye==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Ye,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G: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=()=>{z.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?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.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),z.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 Wn,ax as Un,e as Kn,gh as Vn,gi as qn,gj as Hn,gk as Gn,cd as Jn,aR as Xn,y,V as t,f7 as ct,f8 as Yn,o as a,f9 as Qn,fa as ea,fb as ta,aO as Se,fc as na,aQ as b,bC as pt,bp as mt,du as ut,cp as yt,cq as ht,cr as bt,gl as aa,gm as ia,gn as la,go as oa,fh as j,gp as $,fj as A,fk as k,fg as ra,b as gt,p as oe,fi as Ot,fq as sa,fl as da,fm as ca,gq as pa,gr as ma,aS as ua,ao as ft,bT as ve,gs as ya,gt as L,O as ha,c as s,ag as ba,c2 as ga,gu as fa,x as xa,gv as wa,fr as xt,F as Ta,d3 as va,ci as Da,gw as wt,b8 as Ia,ba as ja,l as $a,bV as Ft,d4 as Aa,gx as ka,ai as Et,aw as Sa,b6 as Ca,bu as Pa,gy as Ba,al as Ra}from"./index-e-SZUuyN.js";import{a as p}from"./sentry-Dla7mstv.js";import{n as i}from"./mui-mhzAEcDs.js";import{a as Ma}from"./liveblocks-BKvkleJ3.js";import{bO as za,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-CSmiPBaP.js";import{o as Za,t as Wa}from"./LowBalancePopup-ChBTdcM2-BRhnRaDc.js";import"./core-hVMF2uNa.js";import"./lottie-N_bekW9H.js";import"./recharts-BErFcng5.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.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]="e5de1540-edd9-43b9-8390-7efe0f0b048c",e._sentryDebugIdIdentifier="sentry-dbid-e5de1540-edd9-43b9-8390-7efe0f0b048c")}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:qa,more:Ha,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ja}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:Zt,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:qt,redirectToEditableBillScreen:Ht,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Ne,onAddNewRule:Jt,onAttachmentClick:Le,saveBillDetails:Xt,discardOutsideZeniPaymentData:Yt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Wn(),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),[Ze,Y]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:qn,{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,q]=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,We=p.useMemo(()=>h==null?[]:H.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[H,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),q(!1)},[ee,q]);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))});Jn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,qe]=p.useState(!1),[un,He]=p.useState(!1),[Ge,Je]=p.useState(!1),Xe=()=>qe(!1),yn=()=>qe(!0),Ye=Xn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),X())},[e,X,Me]),p.useEffect(()=>{Ye==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Ye,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G: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=()=>{z.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?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.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),z.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?za(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(Yn,{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,Mn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,zn=!Mn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),J=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!J&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&&lt||f&&F&&Pe),Ln=r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,Ge,r)},rt=()=>{He(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Je(!0),rt()},Fn=()=>{Yt(),He(!1),Ge&&Je(!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]),_=qt&&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"),Ze===!0&&Y(!1),_!=null&&z.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&&z.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:Xe,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:Xe})}),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(),q(!0),z.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:We,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(),q(!0),z.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:We,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:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Y(!1),Qe()},onClickAway:()=>{Y(!1)}}):null,un?t.jsx(Wa,{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?Ya(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,W&&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(J,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(M,{}),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(M,{}),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(M,{}),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(Zn=>Zn.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(M,{}),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(M,{}),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(M,{}),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(M,{}),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(M,{}),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(M,{})]}),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(M,{}),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(M,{}),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:Jt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Zt,signedInUserId:re?.userId,showRealTimeApproval:Wt,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?Y(!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:[!J&&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(Z,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(Z,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&lt?t.jsx(Z,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(Z,{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(Z,{onClick:()=>{z.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(Z,{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,!J&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(si,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!J&&zn===!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(Ma,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ja,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:()=>q(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Xa=(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}},Ya=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(Mt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(Mt,{children:n.zeniAssist.amount}),t.jsx(zt,{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 W=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${qa} ${W}`},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 W=`${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__",W)}`,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 z,c as U,J as M,O as $,a9 as W,aR as G,aK as J,cF as K,V as o,bC as X,ac as H,aS as Q,o as c,g6 as Y}from"./index-CRNmezJu.js";import{a as T}from"./sentry-Dla7mstv.js";import{n as h}from"./mui-mhzAEcDs.js";import{b as Z,f as ee,o as _,l as C}from"./FollowStepsSection-BGZ3rzSO-DAxx1unm.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./zeni-epic-state-CSmiPBaP.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.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]="077cc68e-6aaa-4289-9d60-b730cb11c2ed",e._sentryDebugIdIdentifier="sentry-dbid-077cc68e-6aaa-4289-9d60-b730cb11c2ed")}catch{}})();const R="billPayApprovalRuleDetailPage",k="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new z(U[2],U[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 S=M(),t=$.getLocalizedStrings().commonSetUp.approval,P=$.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:V,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 F=x.handleSubmit(()=>{N()}),O=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:L})=>{if(L!=null&&p!=null){const q=J(p);K(()=>O(L,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(R),onSubmit:F,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.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:V,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j(R),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"?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:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},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:C},actors:{allUsers:l,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},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 z,c as U,J as M,O as $,a9 as W,aR as G,aK as J,cF as K,V as o,bC as X,ac as H,aS as Q,o as c,g6 as Y}from"./index-e-SZUuyN.js";import{a as T}from"./sentry-Dla7mstv.js";import{n as h}from"./mui-mhzAEcDs.js";import{b as Z,f as ee,o as _,l as C}from"./FollowStepsSection-BGZ3rzSO-DZqA0Ls-.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./zeni-epic-state-CSmiPBaP.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.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]="077cc68e-6aaa-4289-9d60-b730cb11c2ed",e._sentryDebugIdIdentifier="sentry-dbid-077cc68e-6aaa-4289-9d60-b730cb11c2ed")}catch{}})();const R="billPayApprovalRuleDetailPage",k="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new z(U[2],U[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 S=M(),t=$.getLocalizedStrings().commonSetUp.approval,P=$.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:V,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 F=x.handleSubmit(()=>{N()}),O=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:L})=>{if(L!=null&&p!=null){const q=J(p);K(()=>O(L,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(R),onSubmit:F,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.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:V,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j(R),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"?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:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},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:C},actors:{allUsers:l,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},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 L,O as v,V as t,bC as M,T as N,aQ as S,y as r,al as j,o,aO as P,cp as E,cq as H,cr as U,c$ as V,c as l,ba as F,F as k,b9 as G,p as z,c_ as q,bu as J,b as O}from"./index-CRNmezJu.js";import{n as i}from"./mui-mhzAEcDs.js";import{a as K}from"./sentry-Dla7mstv.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./zeni-epic-state-CSmiPBaP.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="9167f5be-eb07-4d15-a3b9-a93b8326de43",e._sentryDebugIdIdentifier="sentry-dbid-9167f5be-eb07-4d15-a3b9-a93b8326de43")}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)},A={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},Q=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:w})=>{const[x,g]=K.useState(!1),n=L(),{range:u}=d.criteria[0],{steps:$,approvalRuleId:m}=d,a=v.getLocalizedStrings().commonSetUp.approval,y=()=>{g(!0)},D={onOkClick:()=>{g(!1),w?.(m)},onCancelClick:()=>{g(!1)}};return t.jsxs(X,{windowSize:n,isLastSection:h,children:[t.jsxs(Y,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(B,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(Z,{children:[t.jsx(T,{}),t.jsx(ee,{}),t.jsx(T,{})]}),u.max==null?t.jsx(de,{}):t.jsx(B,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e&&t.jsx(ae,{onClick:y,"data-testid":S("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(m)},"data-testid":S("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:$.length===1,windowSize:n,children:$.map((c,W)=>t.jsxs(ie,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(C,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},`${p.subType}_${_}`)),c.actors.map(p=>t.jsxs(C,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},p.userId))]},W))})}),x?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:D}):null]})},X=i.div`
1
+ import{J as L,O as v,V as t,bC as M,T as N,aQ as S,y as r,al as j,o,aO as P,cp as E,cq as H,cr as U,c$ as V,c as l,ba as F,F as k,b9 as G,p as z,c_ as q,bu as J,b as O}from"./index-e-SZUuyN.js";import{n as i}from"./mui-mhzAEcDs.js";import{a as K}from"./sentry-Dla7mstv.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./zeni-epic-state-CSmiPBaP.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="9167f5be-eb07-4d15-a3b9-a93b8326de43",e._sentryDebugIdIdentifier="sentry-dbid-9167f5be-eb07-4d15-a3b9-a93b8326de43")}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)},A={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},Q=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:w})=>{const[x,g]=K.useState(!1),n=L(),{range:u}=d.criteria[0],{steps:$,approvalRuleId:m}=d,a=v.getLocalizedStrings().commonSetUp.approval,y=()=>{g(!0)},D={onOkClick:()=>{g(!1),w?.(m)},onCancelClick:()=>{g(!1)}};return t.jsxs(X,{windowSize:n,isLastSection:h,children:[t.jsxs(Y,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(B,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(Z,{children:[t.jsx(T,{}),t.jsx(ee,{}),t.jsx(T,{})]}),u.max==null?t.jsx(de,{}):t.jsx(B,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e&&t.jsx(ae,{onClick:y,"data-testid":S("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(m)},"data-testid":S("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:$.length===1,windowSize:n,children:$.map((c,W)=>t.jsxs(ie,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(C,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},`${p.subType}_${_}`)),c.actors.map(p=>t.jsxs(C,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},p.userId))]},W))})}),x?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:D}):null]})},X=i.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{ax as W,J as j,aR as Y,V as e,fs as ee,bC as ie,r as B,aQ as C,ae as x,O as M,o as s,aq as se,a as le,e as I,aU as U,am as oe,y as re,p as $,cE as te,aV as ae,bb as ne,c as de}from"./index-CRNmezJu.js";import{a as g}from"./sentry-Dla7mstv.js";import{n as l}from"./mui-mhzAEcDs.js";import{Fw as ce,bS as pe,Fx as xe}from"./zeni-epic-state-CSmiPBaP.js";import{f as me}from"./VideoPopup-C9x0ntQ5-C94oLuE1.js";import{M as b}from"./usp-line-BBd1wKwW-C5eOwLOD.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./VideoPlayer-CylTUX4X-BEZtED7z.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]="21a81f0c-2ffd-4c1c-8f92-8c26eeaf3cb1",i._sentryDebugIdIdentifier="sentry-dbid-21a81f0c-2ffd-4c1c-8f92-8c26eeaf3cb1")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
1
+ import{ax as W,J as j,aR as Y,V as e,fs as ee,bC as ie,r as B,aQ as C,ae as x,O as M,o as s,aq as se,a as le,e as I,aU as U,am as oe,y as re,p as $,cE as te,aV as ae,bb as ne,c as de}from"./index-e-SZUuyN.js";import{a as g}from"./sentry-Dla7mstv.js";import{n as l}from"./mui-mhzAEcDs.js";import{Fw as ce,bS as pe,Fx as xe}from"./zeni-epic-state-CSmiPBaP.js";import{f as me}from"./VideoPopup-C9x0ntQ5-BVA3i-oV.js";import{M as b}from"./usp-line-BBd1wKwW-C5eOwLOD.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./VideoPlayer-CylTUX4X-DSxfswME.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]="21a81f0c-2ffd-4c1c-8f92-8c26eeaf3cb1",i._sentryDebugIdIdentifier="sentry-dbid-21a81f0c-2ffd-4c1c-8f92-8c26eeaf3cb1")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{e as De,J as Oe,aR as E,a9 as $e,cF as Re,O as Ue,aW as Z,V as t,fa as He,p as ze,aQ as Le,y as u,bC as Me,T as Ne,ac as qe,ft as H,dP as Ge,fu as Je,bx as Ke,dF as Qe,bT as Ze,fv as Xe,aS as Ye,o as L,fw as et,c as a,al as tt,bK as it}from"./index-CRNmezJu.js";import{a as m}from"./sentry-Dla7mstv.js";import{n as b}from"./mui-mhzAEcDs.js";import{bJ as nt}from"./zeni-epic-state-CSmiPBaP.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BYrAIUiK-zdW8Yium.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.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]="fa99a5eb-494d-43d8-a863-423ae099a021",e._sentryDebugIdIdentifier="sentry-dbid-fa99a5eb-494d-43d8-a863-423ae099a021")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",W="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:M,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),N=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:q}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,j=E(f),J=E(P.fetchState),K=E(D.fetchState),Q=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||K==="In-Progress"&&D.fetchState==="Completed"||Q==="In-Progress"&&O.fetchState==="Completed")&&w.reset(z(e))},[j,f,w,e,K,D.fetchState,Q,O.fetchState]);const Ve=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),je=async(x,F)=>{const o=F[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=q.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(()=>je(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&M()},[M,J,P.fetchState]);const{commonSetUp:Be,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Be,{billPaySetup:l}=Fe.billPay,$=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=$?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=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:N,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:N,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(qe,{...w,children:t.jsx("form",{id:Y(X),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},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]})]}),$&&!R&&V.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
1
+ import{e as De,J as Oe,aR as E,a9 as $e,cF as Re,O as Ue,aW as Z,V as t,fa as He,p as ze,aQ as Le,y as u,bC as Me,T as Ne,ac as qe,ft as H,dP as Ge,fu as Je,bx as Ke,dF as Qe,bT as Ze,fv as Xe,aS as Ye,o as L,fw as et,c as a,al as tt,bK as it}from"./index-e-SZUuyN.js";import{a as m}from"./sentry-Dla7mstv.js";import{n as b}from"./mui-mhzAEcDs.js";import{bJ as nt}from"./zeni-epic-state-CSmiPBaP.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BYrAIUiK-19i7WD8j.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.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]="fa99a5eb-494d-43d8-a863-423ae099a021",e._sentryDebugIdIdentifier="sentry-dbid-fa99a5eb-494d-43d8-a863-423ae099a021")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",W="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:M,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),N=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:q}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,j=E(f),J=E(P.fetchState),K=E(D.fetchState),Q=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||K==="In-Progress"&&D.fetchState==="Completed"||Q==="In-Progress"&&O.fetchState==="Completed")&&w.reset(z(e))},[j,f,w,e,K,D.fetchState,Q,O.fetchState]);const Ve=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),je=async(x,F)=>{const o=F[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=q.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(()=>je(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&M()},[M,J,P.fetchState]);const{commonSetUp:Be,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Be,{billPaySetup:l}=Fe.billPay,$=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=$?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=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:N,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:N,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(qe,{...w,children:t.jsx("form",{id:Y(X),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},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]})]}),$&&!R&&V.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!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{e as we,J as be,a9 as Ce,cF as Pe,aW as j,O as xe,V as t,y as P,bC as Ie,T as Ae,ac as ve,bx as ke,cG as je,aS as $e,o as s,hL as Te,eY as Ve,eZ as De,c as x,al as Be,gU as Ee,p as Le,F as Oe}from"./index-CRNmezJu.js";import{a as M}from"./sentry-Dla7mstv.js";import{n as r}from"./mui-mhzAEcDs.js";import{F as ze,o as R,t as Fe}from"./PaymentAccountSetupBillingAddressSection-BT4jtUDt-BicenMSK.js";import{F as _e}from"./SetUpAccountSection-Drp97o6h-xxM8m8_w.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./zeni-epic-state-CSmiPBaP.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./commonTypes-BN7Uh_8W-pfbkHgmN.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]="90a60f1e-5168-460f-aaee-5022f17f3379",e._sentryDebugIdIdentifier="sentry-dbid-90a60f1e-5168-460f-aaee-5022f17f3379")}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])},Me={title:new Oe("standardSemiBold","largeSemiBold")},W="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:K,stripeKey:N,googleAPIKey:G,companyId:J,onUpdateAccountClick:q,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionClick:X,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus: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=>{se(J)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,k=Ve(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode: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)};M.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,O=h?.cardsList[0]?.brand??"other",z=h?.addCardPaymentSourceStatus.fetchState,C=ze(S.header,S.titleText,S.protectedCardNo,h);let F;L&&(F={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:R(O).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:R(O).name}),color:new j(B)},showCompletedIcon:!1,isError:z==="Error",isLoading:z==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=M.useState(!1);return t.jsxs(We,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{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(W),onSubmit:pe,children:t.jsxs(Ke,{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:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:F,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ne(o,l.headers.billingAddress,ce,G,d)]})})})}),je(f.formState.dirtyFields)?t.jsx($e,{formId:U(W),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Fe,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,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]}},Re=r.div`
1
+ import{e as we,J as be,a9 as Ce,cF as Pe,aW as j,O as xe,V as t,y as P,bC as Ie,T as Ae,ac as ve,bx as ke,cG as je,aS as $e,o as s,hL as Te,eY as Ve,eZ as De,c as x,al as Be,gU as Ee,p as Le,F as Oe}from"./index-e-SZUuyN.js";import{a as M}from"./sentry-Dla7mstv.js";import{n as r}from"./mui-mhzAEcDs.js";import{F as ze,o as R,t as Fe}from"./PaymentAccountSetupBillingAddressSection-BT4jtUDt-wAvdlMUp.js";import{F as _e}from"./SetUpAccountSection-Drp97o6h-CUmuMQTP.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./zeni-epic-state-CSmiPBaP.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./commonTypes-BN7Uh_8W-BM1Dtb_1.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]="90a60f1e-5168-460f-aaee-5022f17f3379",e._sentryDebugIdIdentifier="sentry-dbid-90a60f1e-5168-460f-aaee-5022f17f3379")}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])},Me={title:new Oe("standardSemiBold","largeSemiBold")},W="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:K,stripeKey:N,googleAPIKey:G,companyId:J,onUpdateAccountClick:q,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionClick:X,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus: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=>{se(J)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,k=Ve(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode: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)};M.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,O=h?.cardsList[0]?.brand??"other",z=h?.addCardPaymentSourceStatus.fetchState,C=ze(S.header,S.titleText,S.protectedCardNo,h);let F;L&&(F={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:R(O).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:R(O).name}),color:new j(B)},showCompletedIcon:!1,isError:z==="Error",isLoading:z==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=M.useState(!1);return t.jsxs(We,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{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(W),onSubmit:pe,children:t.jsxs(Ke,{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:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:F,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ne(o,l.headers.billingAddress,ce,G,d)]})})})}),je(f.formState.dirtyFields)?t.jsx($e,{formId:U(W),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Fe,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,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]}},Re=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as v,cp as V,cq as q,cr as M,k7 as W,aZ as z,O as G}from"./index-CRNmezJu.js";import{a as f}from"./sentry-Dla7mstv.js";import{Gd as J}from"./zeni-epic-state-CSmiPBaP.js";import{u as K}from"./ReviewOverlay-CXHcM5J8-Z1A7mqWB.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./mui-mhzAEcDs.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.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]="fb671ba1-abe4-4899-8b15-bcdb2d9cfb84",e._sentryDebugIdIdentifier="sentry-dbid-fb671ba1-abe4-4899-8b15-bcdb2d9cfb84")}catch{}})();const{common:s,spendManagement:{billPay:I}}=G.getLocalizedStrings(),o=I.bulkActions;let x;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:b,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,m]=f.useState(T(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(x=setInterval(()=>{m(d=>d.map((S,L)=>(clearInterval(x),L===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"&&m(T(e,!1)),()=>{clearInterval(x)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Y(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},D={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:F}=Z(b,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:b!=="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"}:{}},O={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:A,style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(V,{titleComponent:v.jsx(M,{children:y.title}),descriptionComponent:v.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(K,{title:N,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:O,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:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&J(t.reviewErrors[0].reviewErrorCode),subTitle:H(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},Y=e=>{const{this_:r,these:l,bill:t,bills:c,payment:b,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_>",b).replaceAll("<_bill_>",t)}},Z=(e,r,l,t)=>{const{has:c,have:b,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let m="",p="";return e==="Completed"&&!t?(m=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?I.bulkActions.bills:o.bill).replace("<_has_>",n?b: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:_)}`):(m=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:m,description:p}},H=(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 v,cp as V,cq as q,cr as M,k7 as W,aZ as z,O as G}from"./index-e-SZUuyN.js";import{a as f}from"./sentry-Dla7mstv.js";import{Gd as J}from"./zeni-epic-state-CSmiPBaP.js";import{u as K}from"./ReviewOverlay-CXHcM5J8-CWmuYC1c.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./mui-mhzAEcDs.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.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]="fb671ba1-abe4-4899-8b15-bcdb2d9cfb84",e._sentryDebugIdIdentifier="sentry-dbid-fb671ba1-abe4-4899-8b15-bcdb2d9cfb84")}catch{}})();const{common:s,spendManagement:{billPay:I}}=G.getLocalizedStrings(),o=I.bulkActions;let x;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:b,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,m]=f.useState(T(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(x=setInterval(()=>{m(d=>d.map((S,L)=>(clearInterval(x),L===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"&&m(T(e,!1)),()=>{clearInterval(x)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Y(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},D={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:F}=Z(b,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:b!=="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"}:{}},O={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:A,style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(V,{titleComponent:v.jsx(M,{children:y.title}),descriptionComponent:v.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(K,{title:N,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:O,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:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&J(t.reviewErrors[0].reviewErrorCode),subTitle:H(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},Y=e=>{const{this_:r,these:l,bill:t,bills:c,payment:b,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_>",b).replaceAll("<_bill_>",t)}},Z=(e,r,l,t)=>{const{has:c,have:b,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let m="",p="";return e==="Completed"&&!t?(m=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?I.bulkActions.bills:o.bill).replace("<_has_>",n?b: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:_)}`):(m=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:m,description:p}},H=(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,aQ as b,o as e}from"./index-CRNmezJu.js";import{n as a}from"./mui-mhzAEcDs.js";import{o as p}from"./commonDimensions-C0X17W9N-BSrHO4N_.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]="92ec2ab8-dff8-4453-984d-a7f20991462c",o._sentryDebugIdIdentifier="sentry-dbid-92ec2ab8-dff8-4453-984d-a7f20991462c")}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,aQ as b,o as e}from"./index-e-SZUuyN.js";import{n as a}from"./mui-mhzAEcDs.js";import{o as p}from"./commonDimensions-C0X17W9N-CR9paNIq.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]="92ec2ab8-dff8-4453-984d-a7f20991462c",o._sentryDebugIdIdentifier="sentry-dbid-92ec2ab8-dff8-4453-984d-a7f20991462c")}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{e as ct,J as dt,aR as Oe,V as s,ae as W,a9 as pt,cV as ut,az as mt,cF as ft,aZ as Te,aP as ve,g9 as yt,r as ht,bC as gt,aQ as xt,cG as St,cp as wt,cq as bt,cr as Ct,T as Dt,ac as Ot,aS as Tt,o as r,y as P,am as Fe,O as Ve,ga as vt,fx as Ie,eY as It,a as $t,x as kt,al as Le,F as Nt,M as jt,c as $}from"./index-CRNmezJu.js";import{a as F}from"./sentry-Dla7mstv.js";import{n as d}from"./mui-mhzAEcDs.js";import{EN as Pt,bi as G}from"./zeni-epic-state-CSmiPBaP.js";import{n as Ft,z as Vt}from"./CompanyOfficerDetailsSection-C2j4TNi_-D3zewiNv.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./LabeledAddressValueField-D950JjHi-B7-ZxMwG.js";import"./LabeledCountryMultiSelectField-CzFImFhW-CGgJ4k83.js";import"./LabeledCreatableSingleSelectField-gJu9uvr7-DQ2Nsagb.js";import"./LabeledDocumentField-y5kqHnHe-CmBeTY2E.js";import"./LabeledMultiSelectField-CIuHS55z-0cjXFx_d.js";import"./commonTypes-BN7Uh_8W-pfbkHgmN.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]="531026a7-beb5-4852-a2c0-e00cd83090b0",e._sentryDebugIdIdentifier="sentry-dbid-531026a7-beb5-4852-a2c0-e00cd83090b0")}catch{}})();const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,$[3]),subTitlePaddingBottom:new P($[3],$[3]),verificationDetailsRowGap:new P(12,$[5],$[5]),termsPaddingLeftRight:new P($[0],$[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",D="companyDetails",O="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:ke,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:S,verficationDetailsFetchState:k,isRefreshingViewInBackground:_,filesEndPoint:i,authParams:B,productType:y,allIndustries:V,companyTitles:E,maxInsuredAmount:u,isDisabled:N,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:se,onCompanyDetailsChanged:Me,updateFilesEntity:ie,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Je})=>{const Qe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Xe=Oe(R.fetchState),M=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=M==="unit"?s.jsxs(qt,{children:[a.terms.term1,s.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,s.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,s.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,s.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ze,J]=F.useState(!1),[U,re]=F.useState("save"),[Q,Ke]=F.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,S)}),{isValid:He}=m.formState,X=A?.company.company.companyBillPayInfo,Y=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.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||Z!=null&&Z?.length>0)return m.trigger(`${O}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},st=m.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="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);Pt(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Je?.())}),it=async(t,n)=>{t.includes(D)?Me?.(n[D]):t.includes(O)&&We?.(n[O])},nt=F.useCallback(mt((t,n)=>{it(t,n)},300),[]);F.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);F.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=A?.companyOfficers.slice(0,10).sort((t,n)=>t.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{J(!1),L();const t=[],n=A?.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&&Ue?.(t)},onCancelClick:()=>{J(!1)}},lt=Te(ve(u),u,ke.currencySymbol).toUpperCase(),K=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Xe==="In-Progress"&&R.fetchState==="Completed"?s.jsxs(Ht,{children:[s.jsxs(ea,{children:[s.jsx(yt,{}),s.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),s.jsx(Kt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Te(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,ke.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),s.jsx(ht,{label:a.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):s.jsxs(Et,{isSettings:o,children:[s.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{St(m.formState.dirtyFields)?J(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?s.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?s.jsx(wt,{titleComponent:s.jsx(Ct,{children:a.discardTitle}),descriptionComponent:s.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,s.jsxs(Mt,{windowSize:p,children:[(!h||w===!1)&&s.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),k==="In-Progress"||k==="Not-Started"?s.jsx(Ut,{children:s.jsx(Dt,{size:"ExtraLarge",start:!0})}):s.jsx(Ot,{...m,children:s.jsxs("form",{id:je($e),onSubmit:st,children:[h&&w===!0&&s.jsxs(zt,{children:[s.jsxs(Jt,{windowSize:p,children:[s.jsx(Qt,{windowSize:p,children:K?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!K&&s.jsx(Xt,{children:s.jsxs(Yt,{children:[s.jsx(Pe,{}),de&&s.jsx(Pe,{}),s.jsx(Zt,{})]})})]}),s.jsx(Ae,{isReadonly:K,children:a.verifyBusinessDetailsDescription})]}),s.jsxs(Wt,{children:[s.jsx(Ft,{companyOfficerData:b,allNationalityCountries:S,allOfficers:Z??[],sectionId:O,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:ie,onEditFileName:se,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:i,authParams:B,isPopupOpen:Q,openPopup:Ke,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),s.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:D,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:i,onEditFileName:se,onDeleteFile:ne,updateFilesEntity:ie},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:V,allNationalityCountries:S})]}),y==="zeni_accounts"?s.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),k==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?s.jsx(Tt,{formId:je($e),primaryBtn:{label:w?Ne.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=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?Ne.back:a.saveDetailsButton,style:{width:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)L();else{const t=b[v],n=l?.primaryContactLocalData;U!=="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:Ye,style:{padding:`12px ${r.sp3}`,zIndex:Q?0:4}}):null]})},Bt=(e,S,k,_)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:B,companyView:y}=e,V=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:i?.companyDescription??"",ein:i?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:i?.companyId??"",syncToken:i?.syncToken,companyLegalName:i?.companyLegalName??"",companyWebsite:i?.website?.toString()??"",companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:S?.map(u=>u.code)},companyPhone:i?.phone??"",companyTaxId:i?.taxIdOrEIN??"",primaryContactName:{firstName:i?.primaryContactLocalData?.firstName??"",lastName:i?.primaryContactLocalData?.lastName??""},primaryContactEmail:i?.primaryContactLocalData?.email??"",primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:V.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:i?.stateOfIncorporation,allOptions:V.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:i?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:i?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:i?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:i?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:i?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:i?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:i?.purposeOfAccountDescription??"",usNexus:i?.usNexus??"",usNexusTypes:{selectedOptions:(i?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:i?.regulatedStatus??"",regulatedStatusDescription:i?.regulatedStatusDescription??""},[O]:Object.values(B).map((u,N)=>{const o=u,h=vt(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${N+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:k?.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:!E&&N===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
1
+ import{e as ct,J as dt,aR as Oe,V as s,ae as W,a9 as pt,cV as ut,az as mt,cF as ft,aZ as Te,aP as ve,g9 as yt,r as ht,bC as gt,aQ as xt,cG as St,cp as wt,cq as bt,cr as Ct,T as Dt,ac as Ot,aS as Tt,o as r,y as P,am as Fe,O as Ve,ga as vt,fx as Ie,eY as It,a as $t,x as kt,al as Le,F as Nt,M as jt,c as $}from"./index-e-SZUuyN.js";import{a as F}from"./sentry-Dla7mstv.js";import{n as d}from"./mui-mhzAEcDs.js";import{EN as Pt,bi as G}from"./zeni-epic-state-CSmiPBaP.js";import{n as Ft,z as Vt}from"./CompanyOfficerDetailsSection-C2j4TNi_-P80aH3rj.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./LabeledAddressValueField-D950JjHi-CobscTGb.js";import"./LabeledCountryMultiSelectField-CzFImFhW-y52IAHGb.js";import"./LabeledCreatableSingleSelectField-gJu9uvr7-Baz8OVT_.js";import"./LabeledDocumentField-y5kqHnHe-Cd6aBb3C.js";import"./LabeledMultiSelectField-CIuHS55z-BSvQJ-Z0.js";import"./commonTypes-BN7Uh_8W-BM1Dtb_1.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]="531026a7-beb5-4852-a2c0-e00cd83090b0",e._sentryDebugIdIdentifier="sentry-dbid-531026a7-beb5-4852-a2c0-e00cd83090b0")}catch{}})();const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,$[3]),subTitlePaddingBottom:new P($[3],$[3]),verificationDetailsRowGap:new P(12,$[5],$[5]),termsPaddingLeftRight:new P($[0],$[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",D="companyDetails",O="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:ke,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:S,verficationDetailsFetchState:k,isRefreshingViewInBackground:_,filesEndPoint:i,authParams:B,productType:y,allIndustries:V,companyTitles:E,maxInsuredAmount:u,isDisabled:N,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:se,onCompanyDetailsChanged:Me,updateFilesEntity:ie,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Je})=>{const Qe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Xe=Oe(R.fetchState),M=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=M==="unit"?s.jsxs(qt,{children:[a.terms.term1,s.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,s.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,s.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,s.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ze,J]=F.useState(!1),[U,re]=F.useState("save"),[Q,Ke]=F.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,S)}),{isValid:He}=m.formState,X=A?.company.company.companyBillPayInfo,Y=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.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||Z!=null&&Z?.length>0)return m.trigger(`${O}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},st=m.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="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);Pt(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Je?.())}),it=async(t,n)=>{t.includes(D)?Me?.(n[D]):t.includes(O)&&We?.(n[O])},nt=F.useCallback(mt((t,n)=>{it(t,n)},300),[]);F.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);F.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=A?.companyOfficers.slice(0,10).sort((t,n)=>t.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{J(!1),L();const t=[],n=A?.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&&Ue?.(t)},onCancelClick:()=>{J(!1)}},lt=Te(ve(u),u,ke.currencySymbol).toUpperCase(),K=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Xe==="In-Progress"&&R.fetchState==="Completed"?s.jsxs(Ht,{children:[s.jsxs(ea,{children:[s.jsx(yt,{}),s.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),s.jsx(Kt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Te(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,ke.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),s.jsx(ht,{label:a.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):s.jsxs(Et,{isSettings:o,children:[s.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{St(m.formState.dirtyFields)?J(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?s.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?s.jsx(wt,{titleComponent:s.jsx(Ct,{children:a.discardTitle}),descriptionComponent:s.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,s.jsxs(Mt,{windowSize:p,children:[(!h||w===!1)&&s.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),k==="In-Progress"||k==="Not-Started"?s.jsx(Ut,{children:s.jsx(Dt,{size:"ExtraLarge",start:!0})}):s.jsx(Ot,{...m,children:s.jsxs("form",{id:je($e),onSubmit:st,children:[h&&w===!0&&s.jsxs(zt,{children:[s.jsxs(Jt,{windowSize:p,children:[s.jsx(Qt,{windowSize:p,children:K?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!K&&s.jsx(Xt,{children:s.jsxs(Yt,{children:[s.jsx(Pe,{}),de&&s.jsx(Pe,{}),s.jsx(Zt,{})]})})]}),s.jsx(Ae,{isReadonly:K,children:a.verifyBusinessDetailsDescription})]}),s.jsxs(Wt,{children:[s.jsx(Ft,{companyOfficerData:b,allNationalityCountries:S,allOfficers:Z??[],sectionId:O,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:ie,onEditFileName:se,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:i,authParams:B,isPopupOpen:Q,openPopup:Ke,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),s.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:D,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:i,onEditFileName:se,onDeleteFile:ne,updateFilesEntity:ie},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:V,allNationalityCountries:S})]}),y==="zeni_accounts"?s.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),k==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?s.jsx(Tt,{formId:je($e),primaryBtn:{label:w?Ne.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=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?Ne.back:a.saveDetailsButton,style:{width:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)L();else{const t=b[v],n=l?.primaryContactLocalData;U!=="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:Ye,style:{padding:`12px ${r.sp3}`,zIndex:Q?0:4}}):null]})},Bt=(e,S,k,_)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:B,companyView:y}=e,V=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:i?.companyDescription??"",ein:i?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:i?.companyId??"",syncToken:i?.syncToken,companyLegalName:i?.companyLegalName??"",companyWebsite:i?.website?.toString()??"",companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:S?.map(u=>u.code)},companyPhone:i?.phone??"",companyTaxId:i?.taxIdOrEIN??"",primaryContactName:{firstName:i?.primaryContactLocalData?.firstName??"",lastName:i?.primaryContactLocalData?.lastName??""},primaryContactEmail:i?.primaryContactLocalData?.email??"",primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:V.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:i?.stateOfIncorporation,allOptions:V.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:i?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:i?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:i?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:i?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:i?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:i?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:i?.purposeOfAccountDescription??"",usNexus:i?.usNexus??"",usNexusTypes:{selectedOptions:(i?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:i?.regulatedStatus??"",regulatedStatusDescription:i?.regulatedStatusDescription??""},[O]:Object.values(B).map((u,N)=>{const o=u,h=vt(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${N+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:k?.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:!E&&N===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{J as f,V as r,O as m,b as y,o as t,F as w,M as x}from"./index-CRNmezJu.js";import{n as o}from"./mui-mhzAEcDs.js";import{a as c}from"./sentry-Dla7mstv.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]="211dc039-ac1e-441b-9653-33fb628b9ebb",e._sentryDebugIdIdentifier="sentry-dbid-211dc039-ac1e-441b-9653-33fb628b9ebb")}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:a}}=m.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=f(),h=e.type.code.includes("credit")?a.chargeCardsPromo.credit:a.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?a.cardList.physicalCard:a.cardList.virtualCard;const i=p.strings.space+a.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,O as m,b as y,o as t,F as w,M as x}from"./index-e-SZUuyN.js";import{n as o}from"./mui-mhzAEcDs.js";import{a as c}from"./sentry-Dla7mstv.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]="211dc039-ac1e-441b-9653-33fb628b9ebb",e._sentryDebugIdIdentifier="sentry-dbid-211dc039-ac1e-441b-9653-33fb628b9ebb")}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:a}}=m.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=f(),h=e.type.code.includes("credit")?a.chargeCardsPromo.credit:a.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?a.cardList.physicalCard:a.cardList.virtualCard;const i=p.strings.space+a.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{e as k,J as b,V as t,bC as te,fg as z,b as u,b4 as N,b$ as ie,o as i,O as w,p as B,y as h,al as v,dh as oe,c as l,aZ as re,aO as O,bR as ae,ai as $,aQ as L,jh as Z,ji as Q,iZ as se,cz as ne,cC as de,am as T,i_ as le,i$ as ce}from"./index-CRNmezJu.js";import{n as o}from"./mui-mhzAEcDs.js";import{G4 as f,bh as he}from"./zeni-epic-state-CSmiPBaP.js";import{S as R,a as V}from"./sentry-Dla7mstv.js";import{q as pe}from"./InsightsSection-CdlmvyOs-DmXLU_Lu.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as be}from"./recharts-BErFcng5.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./NavigationDots-CLd0nZZT-DkTweDHl.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]="7a1232a7-ed74-4256-9cbb-38e077e13bf1",e._sentryDebugIdIdentifier="sentry-dbid-7a1232a7-ed74-4256-9cbb-38e077e13bf1")}catch{}})();const fe=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();return t.jsx(be,{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})},E=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(W,{children:[t.jsx(_,{children:E.month})," ",t.jsx(G,{children:f(n).format($e)})]}),t.jsxs(W,{children:[t.jsx(_,{children:E.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,W=o.div`
1
+ import{e as k,J as b,V as t,bC as te,fg as z,b as u,b4 as N,b$ as ie,o as i,O as w,p as B,y as h,al as v,dh as oe,c as l,aZ as re,aO as O,bR as ae,ai as $,aQ as L,jh as Z,ji as Q,iZ as se,cz as ne,cC as de,am as T,i_ as le,i$ as ce}from"./index-e-SZUuyN.js";import{n as o}from"./mui-mhzAEcDs.js";import{G4 as f,bh as he}from"./zeni-epic-state-CSmiPBaP.js";import{S as R,a as V}from"./sentry-Dla7mstv.js";import{q as pe}from"./InsightsSection-CdlmvyOs-CSbQ6jxV.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as be}from"./recharts-BErFcng5.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./NavigationDots-CLd0nZZT-CV65Lnrl.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]="7a1232a7-ed74-4256-9cbb-38e077e13bf1",e._sentryDebugIdIdentifier="sentry-dbid-7a1232a7-ed74-4256-9cbb-38e077e13bf1")}catch{}})();const fe=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();return t.jsx(be,{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})},E=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(W,{children:[t.jsx(_,{children:E.month})," ",t.jsx(G,{children:f(n).format($e)})]}),t.jsxs(W,{children:[t.jsx(_,{children:E.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,W=o.div`
2
2
  display: flex;
3
3
  gap: ${i.sp1};
4
4
  `,je=o.div`
@@ -1,4 +1,4 @@
1
- import{e as tt,J as Ie,ax as It,a8 as Lt,gZ as wr,hC as ki,aW as Qe,g_ as xr,aR as et,V as t,h1 as ji,bC as Ii,c as l,fU as br,aO as Ge,aQ as J,o as a,bT as Qt,p as d,O as ke,j3 as Sr,b as U,cp as Li,j4 as Di,fa as Ai,gP as Ti,j5 as Ei,bF as Fi,bO as yr,aU as ea,j6 as Ri,j7 as $r,j8 as ot,y as T,bK as vr,bb as ta,m as zi,aV as kr,b0 as Pi,j9 as Mi,ja as Vi,b8 as aa,ai as ge,eD as Oi,iT as Hi,u as gt,h0 as jr,cd as Ni,T as mt,b4 as Bi,dm as Wi,ct as Ui,cq as _i,d5 as Zi,hz as Gi,al as Oe,bV as Yi,aw as Wt,jb as Ra,jc as qi,F as za,M as Ir,ba as Ji,aC as Xi,iN as pt,iY as Ki,j1 as Qi,j2 as eo,du as Pa,eU as to,r as Lr,cz as Dr,iW as ao,bY as ro,l as Ar,jd as io,av as vt,b$ as Ma,by as oo,de as no,am as st,gY as so,aq as co,x as lo,bG as ho,je as Dt,fn as po,jf as Tr,gz as Er,jg as jt,ie as Fr,bR as uo,eg as Rr,iZ as mo,cC as go,dP as Co,c$ as fo,i_ as wo,i$ as xo,em as bo,cg as So,ch as yo}from"./index-CRNmezJu.js";import{a as o,S as $o}from"./sentry-Dla7mstv.js";import{n as r,c as we,k as zr}from"./mui-mhzAEcDs.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-CSmiPBaP.js";import{k as Io}from"./NavigationDots-CLd0nZZT-DkTweDHl.js";import{A as Lo,i as Do,a as Ao,l as To,r as Eo,t as Fo,n as Ro}from"./add-to-wallet-DgdBD8_G-DHrWYIzW.js";import{L as Ut}from"./lottie-N_bekW9H.js";import{j as zo}from"./CardNumberSubText-2Tw37MOu-DLENhMmY.js";import{r as Pr}from"./core-hVMF2uNa.js";import{l as Mr}from"./uploadReceipts-CLN2DLHQ-CHihhpL-.js";import{R as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-XgZwsozn-B7KEhFgG.js";import"./liveblocks-BKvkleJ3.js";import"./recharts-BErFcng5.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./RoleWithToolTip-q4rQTPKj-BeUt86oC.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]="f4dd7384-fbd3-4326-8397-730d4744ac4c",e._sentryDebugIdIdentifier="sentry-dbid-f4dd7384-fbd3-4326-8397-730d4744ac4c")}catch{}})();const Vr=ke.getLocalizedStrings().spendManagement.chargeCard,Ho=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:X}=Vi(),_=It(),D=At(_.loggedInUserRoleMap);return t.jsx(No,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):X===!0?t.jsx(Xt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Xt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Xt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Bo,{}),label:Vr.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":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Wo,{}),label:Vr.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":J("add-to-apple-wallet-button")})},No=r.div`
1
+ import{e as tt,J as Ie,ax as It,a8 as Lt,gZ as wr,hC as ki,aW as Qe,g_ as xr,aR as et,V as t,h1 as ji,bC as Ii,c as l,fU as br,aO as Ge,aQ as J,o as a,bT as Qt,p as d,O as ke,j3 as Sr,b as U,cp as Li,j4 as Di,fa as Ai,gP as Ti,j5 as Ei,bF as Fi,bO as yr,aU as ea,j6 as Ri,j7 as $r,j8 as ot,y as T,bK as vr,bb as ta,m as zi,aV as kr,b0 as Pi,j9 as Mi,ja as Vi,b8 as aa,ai as ge,eD as Oi,iT as Hi,u as gt,h0 as jr,cd as Ni,T as mt,b4 as Bi,dm as Wi,ct as Ui,cq as _i,d5 as Zi,hz as Gi,al as Oe,bV as Yi,aw as Wt,jb as Ra,jc as qi,F as za,M as Ir,ba as Ji,aC as Xi,iN as pt,iY as Ki,j1 as Qi,j2 as eo,du as Pa,eU as to,r as Lr,cz as Dr,iW as ao,bY as ro,l as Ar,jd as io,av as vt,b$ as Ma,by as oo,de as no,am as st,gY as so,aq as co,x as lo,bG as ho,je as Dt,fn as po,jf as Tr,gz as Er,jg as jt,ie as Fr,bR as uo,eg as Rr,iZ as mo,cC as go,dP as Co,c$ as fo,i_ as wo,i$ as xo,em as bo,cg as So,ch as yo}from"./index-e-SZUuyN.js";import{a as o,S as $o}from"./sentry-Dla7mstv.js";import{n as r,c as we,k as zr}from"./mui-mhzAEcDs.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-CSmiPBaP.js";import{k as Io}from"./NavigationDots-CLd0nZZT-CV65Lnrl.js";import{A as Lo,i as Do,a as Ao,l as To,r as Eo,t as Fo,n as Ro}from"./add-to-wallet-DgdBD8_G-DHrWYIzW.js";import{L as Ut}from"./lottie-N_bekW9H.js";import{j as zo}from"./CardNumberSubText-2Tw37MOu-Na5odSIe.js";import{r as Pr}from"./core-hVMF2uNa.js";import{l as Mr}from"./uploadReceipts-CLN2DLHQ-BcmoXhPJ.js";import{R as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-XgZwsozn-DcNxXIWb.js";import"./liveblocks-BKvkleJ3.js";import"./recharts-BErFcng5.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./RoleWithToolTip-q4rQTPKj-DnZtHqjj.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]="f4dd7384-fbd3-4326-8397-730d4744ac4c",e._sentryDebugIdIdentifier="sentry-dbid-f4dd7384-fbd3-4326-8397-730d4744ac4c")}catch{}})();const Vr=ke.getLocalizedStrings().spendManagement.chargeCard,Ho=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:X}=Vi(),_=It(),D=At(_.loggedInUserRoleMap);return t.jsx(No,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):X===!0?t.jsx(Xt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Xt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Xt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Bo,{}),label:Vr.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":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Wo,{}),label:Vr.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":J("add-to-apple-wallet-button")})},No=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,aR as z,ax as er,fT as tr,iN as W,J as Pe,o as a,e as ta,V as t,bC as ar,g5 as rr,fg as ie,b as D,bT as nt,p,aO as me,aQ as V,aZ as st,O as Fe,y as H,ai as q,F as ir,M as or,cZ as nr,at as aa,bK as sr,b0 as ct,aU as dr,am as lt,a9 as cr,gS as lr,es as ur,ao as hr,ac as mr,gb as pr,r as Nt,c as _,d7 as ra,aq as Cr,al as gr,a as br,cY as fr,bw as xr,bV as yr}from"./index-CRNmezJu.js";import{a as l}from"./sentry-Dla7mstv.js";import{n as r,c as ut,k as Sr}from"./mui-mhzAEcDs.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-CSmiPBaP.js";import{t as vr}from"./SpendManagementSection-WqBeexgm-D6ZHNQRi.js";import{D as oe,r as jr,i as Lr}from"./ChargeCardListTable-DVFpdT9f-BEElVTwC.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-DIxy-YcS-Bpah01ZO.js";import{N as Er,J as Pr}from"./PromoBaseCards-1PF_kyGP-DnK5w4Qj.js";import{z as Ot,R as _t,k as Fr,P as Tr}from"./LockCardPage-XgZwsozn-B7KEhFgG.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-BeL6_aGQ.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-Clrgdbmr.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./RoleWithToolTip-q4rQTPKj-BeUt86oC.js";import"./CardNumberSubText-2Tw37MOu-DLENhMmY.js";import"./NavigationDots-CLd0nZZT-DkTweDHl.js";import"./usp-line-BBd1wKwW-C5eOwLOD.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]="f8aa052d-7752-4418-9da3-f8e4c4182ad3",e._sentryDebugIdIdentifier="sentry-dbid-f8aa052d-7752-4418-9da3-f8e4c4182ad3")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Ee=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=Pe(),A=$!==void 0,G=$==="rejected"?Ee.status.requestRejected:$==="under_review"?Ee.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:A,children:[t.jsxs(na,{children:[A?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Jr,{children:n})]}),!A&&t.jsxs(qr,{children:[t.jsx(Kr,{}),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(Yr,{})]}),U!=null&&A?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:A,children:t.jsx(Pr,{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=Pe();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:Ee.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Ee.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
1
+ import{a8 as Za,aR as z,ax as er,fT as tr,iN as W,J as Pe,o as a,e as ta,V as t,bC as ar,g5 as rr,fg as ie,b as D,bT as nt,p,aO as me,aQ as V,aZ as st,O as Fe,y as H,ai as q,F as ir,M as or,cZ as nr,at as aa,bK as sr,b0 as ct,aU as dr,am as lt,a9 as cr,gS as lr,es as ur,ao as hr,ac as mr,gb as pr,r as Nt,c as _,d7 as ra,aq as Cr,al as gr,a as br,cY as fr,bw as xr,bV as yr}from"./index-e-SZUuyN.js";import{a as l}from"./sentry-Dla7mstv.js";import{n as r,c as ut,k as Sr}from"./mui-mhzAEcDs.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-CSmiPBaP.js";import{t as vr}from"./SpendManagementSection-WqBeexgm-FC3yMOoP.js";import{D as oe,r as jr,i as Lr}from"./ChargeCardListTable-DVFpdT9f-D6Qv1C8v.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-DIxy-YcS-CPRuhZCR.js";import{N as Er,J as Pr}from"./PromoBaseCards-1PF_kyGP-BRJ2sUha.js";import{z as Ot,R as _t,k as Fr,P as Tr}from"./LockCardPage-XgZwsozn-DcNxXIWb.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-BeL6_aGQ.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-Clrgdbmr.js";import"./liveblocks-BKvkleJ3.js";import"./core-hVMF2uNa.js";import"./recharts-BErFcng5.js";import"./lottie-N_bekW9H.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";import"./RoleWithToolTip-q4rQTPKj-DnZtHqjj.js";import"./CardNumberSubText-2Tw37MOu-Na5odSIe.js";import"./NavigationDots-CLd0nZZT-CV65Lnrl.js";import"./usp-line-BBd1wKwW-C5eOwLOD.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]="f8aa052d-7752-4418-9da3-f8e4c4182ad3",e._sentryDebugIdIdentifier="sentry-dbid-f8aa052d-7752-4418-9da3-f8e4c4182ad3")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Ee=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=Pe(),A=$!==void 0,G=$==="rejected"?Ee.status.requestRejected:$==="under_review"?Ee.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:A,children:[t.jsxs(na,{children:[A?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Jr,{children:n})]}),!A&&t.jsxs(qr,{children:[t.jsx(Kr,{}),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(Yr,{})]}),U!=null&&A?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:A,children:t.jsx(Pr,{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=Pe();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:Ee.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Ee.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,O as le,J as ie,ax as Se,a8 as ci,e as ze,gZ as hi,iO as pi,iP as ui,iQ as mi,aS as gi,o as i,aQ as Y,cm as xi,b as Be,p as I,b4 as wi,ct as Ci,iR as fi,iS as yi,bT as ye,cw as Oe,bO as Si,aU as ki,y as C,eD as vi,bb as $i,iT as ji,aV as bi,u as Ii,ai as ee,h0 as Li,am as G,al as J,c as p,cJ as zi,eB as Fi,iU as Ai,iV as Pi,F as ft,bY as yt,iW as St,iX as Ri,bR as Bi,cz as Ge,iY as kt,du as Di,dv as q,aO as ce,cv as vt,T as $t,iZ as _i,cC as Ei,iG as Je,bK as jt,bM as bt,i_ as Ti,i$ as Oi,aW as $e,bu as Vi,bZ as Ui,b_ as Mi,j0 as Ni}from"./index-CRNmezJu.js";import{S as pe,a as f}from"./sentry-Dla7mstv.js";import{n as o,c as Ze}from"./mui-mhzAEcDs.js";import{T as It}from"./RoleWithToolTip-q4rQTPKj-BeUt86oC.js";import{j as Ve}from"./CardNumberSubText-2Tw37MOu-DLENhMmY.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]="879f211e-8760-4745-8dec-e71f85eeff4a",e._sentryDebugIdIdentifier="sentry-dbid-879f211e-8760-4745-8dec-e71f85eeff4a")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={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?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,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")},Yi=({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",M=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||M,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,N=f.useCallback(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,F=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:N,"data-testid":Y("card-row",a.id),children:t.jsxs(Xi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[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:F[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:F[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:F[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":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[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&&A&&R(!0)},onMouseLeave:()=>{A&&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&&A: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:Fe=>{b||m(Fe)},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(Qi,{}),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,O as le,J as ie,ax as Se,a8 as ci,e as ze,gZ as hi,iO as pi,iP as ui,iQ as mi,aS as gi,o as i,aQ as Y,cm as xi,b as Be,p as I,b4 as wi,ct as Ci,iR as fi,iS as yi,bT as ye,cw as Oe,bO as Si,aU as ki,y as C,eD as vi,bb as $i,iT as ji,aV as bi,u as Ii,ai as ee,h0 as Li,am as G,al as J,c as p,cJ as zi,eB as Fi,iU as Ai,iV as Pi,F as ft,bY as yt,iW as St,iX as Ri,bR as Bi,cz as Ge,iY as kt,du as Di,dv as q,aO as ce,cv as vt,T as $t,iZ as _i,cC as Ei,iG as Je,bK as jt,bM as bt,i_ as Ti,i$ as Oi,aW as $e,bu as Vi,bZ as Ui,b_ as Mi,j0 as Ni}from"./index-e-SZUuyN.js";import{S as pe,a as f}from"./sentry-Dla7mstv.js";import{n as o,c as Ze}from"./mui-mhzAEcDs.js";import{T as It}from"./RoleWithToolTip-q4rQTPKj-DnZtHqjj.js";import{j as Ve}from"./CardNumberSubText-2Tw37MOu-Na5odSIe.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]="879f211e-8760-4745-8dec-e71f85eeff4a",e._sentryDebugIdIdentifier="sentry-dbid-879f211e-8760-4745-8dec-e71f85eeff4a")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={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?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,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")},Yi=({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",M=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||M,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,N=f.useCallback(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,F=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:N,"data-testid":Y("card-row",a.id),children:t.jsxs(Xi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[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:F[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:F[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:F[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":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[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&&A&&R(!0)},onMouseLeave:()=>{A&&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&&A: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:Fe=>{b||m(Fe)},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(Qi,{}),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};