@zeniai/web-cockpit-ui 1.15.3-dev → 1.15.3-next

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 (262) hide show
  1. package/dist/assets/{ACHDetailsPage-BTeL5y4g-DmxfsRQJ.js → ACHDetailsPage-BTeL5y4g-Bv8nZqwO.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DbUM6qs6-D5l8F8OE.js → AIPerformancePage-DbUM6qs6-CFF8D4dy.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-C-UvpjYp-BfDokQ_n.js → AccountInfoPage-C-UvpjYp-DoX7w_78.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BwD3P36S-cR_aO4lg.js → AccountInfoPageContent-BwD3P36S-CKSp_Ebj.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CLssvxib-S2XQajFi.js → AccountLockedInfoModal-CLssvxib-DBU6zi0N.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BB1W1GCn-JBvb4AkG.js → AccountReconDetailsDrawerPage-BB1W1GCn-CMAveQlH.js} +1 -1
  7. package/dist/assets/{AccountRow-Dqp3eLws-CZ01ryFZ.js → AccountRow-Dqp3eLws-C4o9m4iR.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-NTUKe73a-CsNkhdvj.js → AccountsPromoCardStack-NTUKe73a-CW6TA0rf.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BRWhfaUV-Ba-99nxY.js → AddAddressForCardDrawer-BRWhfaUV-BH54d09J.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-eU9RlrX2-FgU8i9Mj.js → AddToWalletPage-eU9RlrX2-TBMb9MtO.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Dbj75D7L-xth3ocr5.js → AgingReportsPage-Dbj75D7L-CoQQiqyF.js} +1 -1
  12. package/dist/assets/{AllUserItems-C8o0ftGM-CFaZIEbK.js → AllUserItems-C8o0ftGM-BzVlReFN.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-oU_NMgYv-CGquB6FE.js → ApAgingDetailPage-oU_NMgYv-B0ou3xMM.js} +1 -1
  14. package/dist/assets/{AppBasePage-Bb2EfHmS-CLmciAgt.js → AppBasePage-Bb2EfHmS-BtEsiH_x.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-UxABc1Xq-D4RK1ZMx.js → AppDrawerContent-UxABc1Xq-BOho2w5E.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-ITDu42uI-DNwfvvz-.js → ApprovalRulesSettingsPage-ITDu42uI-Qj2ywub3.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BxAOsEvx-CZANIJr6.js → ArAgingChart-BxAOsEvx-BWqfcGtc.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-DhHW1GHw-D9pgqngA.js → ArAgingDetailPage-DhHW1GHw-Ba_vfKJR.js} +1 -1
  19. package/dist/assets/{AttachmentView-BnFvMAGW--ld7Hx8c.js → AttachmentView-BnFvMAGW-DrcFsL_O.js} +1 -1
  20. package/dist/assets/{BankAccountSection-C0ZBcrDN-Bfiopxim.js → BankAccountSection-C0ZBcrDN-C9HBFv_z.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-BAMjtbnn-BO47Vh4w.js → BankAccountWarningSection-BAMjtbnn-DGtmkmPT.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Ckpo_VYA-DevmalQL.js → BankConnectionsSettingsPage-Ckpo_VYA-by4Ll1-C.js} +1 -1
  23. package/dist/assets/{BillDetailPage-D3lgSK4F-CqZ5opRC.js → BillDetailPage-D3lgSK4F-ty-HLMy_.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage--UxMsaII-9Mon0_XY.js → BillPayApprovalRuleDetailPage--UxMsaII-DaIMbMz8.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BgokSweY-Baf5ik-5.js → BillPayApprovalRulesPage-BgokSweY-C5oQNIum.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-Cmfp8aZE-BV2y4Y7C.js → BillPayPromoPage-Cmfp8aZE-CNFDx1Xv.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BmtV-Zr2-665ldgAn.js → BillPaySetUpPage-BmtV-Zr2-DaBZXftl.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BRJELj5Y-DfZDJ2vZ.js → BillingSettingsPage-BRJELj5Y-C9bQgDwP.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D0HYL5UR-CgxN2BYX.js → BillsBulkReviewDrawerPage-D0HYL5UR-CNMX4Z0O.js} +1 -1
  30. package/dist/assets/{BoxItem-BO8CYlnI-cifRan7C.js → BoxItem-BO8CYlnI-BmGaVExZ.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DNOBs_OD-DQqvz7MY.js → BusinessVerificationPage-DNOBs_OD-D6AEpJr-.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BgxVtjBP-C0H_h-nK.js → CardNumberSubText-BgxVtjBP-BaqziVT3.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-uVqHfc3a-BNj1YqmX.js → CashbackDetailPage-uVqHfc3a-6syUss7c.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-urxX5Ksv-CZSy2_VU.js → ChargeCardDetailPage-urxX5Ksv-Cudjl0pO.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-uyLpvqZN-4MDug-O6.js → ChargeCardListPage-uyLpvqZN-DR4ryJEk.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-CWBqYx4D-DrYCM4wp.js → ChargeCardListTable-CWBqYx4D-DdqXNn2S.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-CrJRk1Yl-BocNQqlU.js → ChargeCardPaymentHistoryPage-CrJRk1Yl-DQ7QTc-k.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-8p2rEuSL-n08-aUHH.js → ChargeCardPromoPage-8p2rEuSL-DHDG2qx1.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-Dk3kFOe8-wkX2oTY9.js → ChargeCardSetupPage-Dk3kFOe8-198Rgmbp.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-BgVV9glv-DMljO5w-.js → ChargeCardStatementsPage-BgVV9glv-Befaa_A8.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-D-yLGTdP-EWK8cQRH.js → CheckDepositDrawerPage-D-yLGTdP-QN13jMig.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-9GyG9N_I-1n67583b.js → CollapsableReportTable-9GyG9N_I-DtxEnj0j.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-CTO9aR2f-zjfI2eeq.js → CompanyOfficerDetailsSection-CTO9aR2f-CTJk32P7.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DRMGgEym-D6sxAXgE.js → CompanyPassportCard-DRMGgEym-Dwhaz2Z8.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-CgEtnvFs-DChKfhd7.js → CompanyPassportPage-CgEtnvFs-C_9s0crL.js} +1 -1
  46. package/dist/assets/{CompleteProfile-B8B0WHlc-DH-VSsuX.js → CompleteProfile-B8B0WHlc-Cj7bt8tC.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-Cf9tVPaI-BM2huSXV.js → ConfettiBurst-Cf9tVPaI-B6tiijI2.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BRoA1J_e-CzBBu5Bw.js → CreateOrEditVendorPage-BRoA1J_e-BCQF7BkU.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DfLgUaL5-DfR_IJlY.js → CreditCardPaymentDrawerPage-DfLgUaL5-7bA5Q1Ar.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-P0hAgQCu-CY3e6U6t.js → CurrencySelectField-P0hAgQCu-D_u37Mpp.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-B8Q88AWZ-CPF7lzvF.js → CustomerOnboardingActivationPage-B8Q88AWZ-BnUbJ8IL.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-YGCksJfr-DCA_hxrL.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CHfRyWDx-D-MRkSd0.js → CustomerOnboardingDetailPageSkeleton-CHfRyWDx-CFH9jUYE.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-AHaRcpU7-BdpSp0P9.js → CustomerOnboardingNoStepsPage-AHaRcpU7-DfflBjIw.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-M-yohbX--BjV2j59I.js → CustomerOnboardingPage-M-yohbX--Ddl3Lc1y.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-DqQ7Lcwq-Bc6ND6Bx.js → CustomerOnboardingProductSuitePage-DqQ7Lcwq-DpQ4Ms5x.js} +1 -1
  57. package/dist/assets/{Dashboard-BG4b-9G4-sAqrpBJG.js → Dashboard-BG4b-9G4-iHBHuHT_.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-BzRypSME-jjHWrXwM.js → DashboardReportPage-BzRypSME-B2voXyqi.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-iToqk56B-BtLraFPT.js → DashboardSidebarBackgroundAnimation-iToqk56B-BfG2piXP.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-LqdXkh9A-hSRnCvZB.js → DepositAccTransactionItem-LqdXkh9A-b-LP6tgz.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-CdvLbfLi-Cn9opxkq.js → DepositAccTransactionListPage-CdvLbfLi-Bpj48Jwb.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-B42h6sda-DX1LXutY.js → DomesticWireDetailsPage-B42h6sda-YBXI4Sub.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-BaDe2oAY-D9mRkHN7.js → DownloadOverlay-BaDe2oAY-BKgnLyJI.js} +1 -1
  64. package/dist/assets/{DrawerPage-CstJJdfo-VidMxfx9.js → DrawerPage-CstJJdfo-BXTEbql1.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-DnOwrdDz-BaklMVpc.js → EditPeoplePage-DnOwrdDz-taAR4HvO.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-CibEtPqY-CoDSnx1m.js → EditReimbursementDetailPage-CibEtPqY-Cb5SRJcW.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-DkdoV8Td-C0bI9nzr.js → EntityDetailPage-DkdoV8Td-w6NmWary.js} +1 -1
  68. package/dist/assets/{EntitySummarySection-mA5rFNgr-DuPTnXno.js → EntitySummarySection-mA5rFNgr-DtRMH88z.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-Cdb_ye_U-j_owJ_aN.js → ExpenseAutomationOverviewPage-Cdb_ye_U-dxET1X5P.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-C8BdII8_-DimJYcUA.js → ExpenseAutomationPage-C8BdII8_-YV4zEjKi.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-D-q6m2Sl-DvfkMqPz.js → ExpressPayPage-D-q6m2Sl-DzAikYef.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-Brmih5xQ-TclSPSN_.js → FeaturePreviewPage-Brmih5xQ-B60dQhyo.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-C0R9691z-CJI6UuPB.js → FollowStepsSection-C0R9691z-Crhbsbc_.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-wZ4Kv7Km-DjGHeOHK.js → GlobalReviewListPage-wZ4Kv7Km-BaYCMg_U.js} +1 -1
  75. package/dist/assets/{InformationCardStack-C_Vo9lw4-BJdE4aZQ.js → InformationCardStack-C_Vo9lw4-B8X_UY3_.js} +1 -1
  76. package/dist/assets/{InsightsCardStack-B18tApRg-CDcqQ9iZ.js → InsightsCardStack-B18tApRg-2aqsTu-r.js} +1 -1
  77. package/dist/assets/{InsightsSection-BT1h9fEy-BRfU7zNX.js → InsightsSection-BT1h9fEy-DRcLAin7.js} +1 -1
  78. package/dist/assets/{IntegrationsSettingsPage-BXihQUgf-Ca4kyKn3.js → IntegrationsSettingsPage-BXihQUgf-CwaGnBBD.js} +1 -1
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-s2KDdELd-DCL_N0b1.js → InternationalWireSwiftDetailsPage-s2KDdELd-NfKnccFq.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-seQdCIHj-B9N63yTL.js → InternationalWireVerificationPage-seQdCIHj-CE91ebnh.js} +1 -1
  81. package/dist/assets/{InviteFormPage-DORYlkDF-C-UyiOzw.js → InviteFormPage-DORYlkDF-CGah2uGy.js} +1 -1
  82. package/dist/assets/{InvitePageListView-__0_bfoj-C56A_BTa.js → InvitePageListView-__0_bfoj-WxFO4mbe.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-BPU0cUoJ-C_9RmlUy.js → InvitePeoplePage-BPU0cUoJ-D_REJ5hY.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-Cf_VG6ou-BXiqeaLr.js → InvoiceUploadSection-Cf_VG6ou-D3AYip6A.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-Ak_ZYHLC-Brr4uJLW.js → IssueChargeCardPage-Ak_ZYHLC-DZ1YwO0V.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-Dv_iNmJ1-CSsnKiIv.js → LabeledAddressValue-Dv_iNmJ1-Dr9Tlba8.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-BOu3phtO-DUC2jENU.js → LabeledAddressValueField-BOu3phtO-CHD-EtyB.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-CPIKQ-CK-jxS0CHZ_.js → LabeledControlledCheckBoxField-CPIKQ-CK-Di70YoPF.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-BfXHGTpW-vM7yZBRT.js → LabeledCountryMultiSelectField-BfXHGTpW-DDNREZOL.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-xk2HC5O8-CvpcCD48.js → LabeledCreatableSingleSelectField-xk2HC5O8-Bn1QabkV.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-D8RhxYIe-DAnLkE2V.js → LabeledDocumentField-D8RhxYIe-Dd9ZS1C8.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-ClNFgUx5-Bx0rybn1.js → LabeledDropDownFormattedTextField-ClNFgUx5-CRh2iOkM.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-BpLilatj-DTbTUWW6.js → LabeledMultiSelectField-BpLilatj-umlw6dAH.js} +1 -1
  94. package/dist/assets/{LabeledText-Xnlcoee7-DQVISFOu.js → LabeledText-Xnlcoee7-CmeKaXF6.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DSu4gVyZ-CJXT3-Sj.js → LabeledUserSingleSelectWithSubtitlesField-DSu4gVyZ-0MGGwIp2.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Dm6FC_X5-CKRgwBOq.js → LabeledZeniRolesDropDownField-Dm6FC_X5-C_awUCYV.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-D0tsT5TK-D-eEZv6m.js → LinkJETransactionPage-D0tsT5TK-KSeijc3s.js} +1 -1
  98. package/dist/assets/{LockCardPage-DYNFfr7G-CPZbfc9t.js → LockCardPage-DYNFfr7G-M0VaAmbS.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-BHUFtl2y-rf0GZ141.js → LowBalancePopup-BHUFtl2y-Czoxlgi2.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-D1Yrf6I3-xn828nNY.js → MagicLinkACHDetailsPage-D1Yrf6I3-uahyOA1D.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DF4qlmsy-DJfJXSHY.js → MagicLinkDomesticWireDetailsPage-DF4qlmsy-BUpthXVq.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BNeI6INt-yjK2JJED.js → MagicLinkInternationalWireDetailsPage-BNeI6INt-VqC8SWBK.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-B-8mtcQ5-C3o9YJHE.js → MagicLinkSuccessPage-B-8mtcQ5-DGqYIKuD.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DHU7VtF2-Bedubn59.js → MagicLinkTitleSection-DHU7VtF2-uf8WL3Xr.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-B-bODwAg-DzrWy-jk.js → MailingDetailsSection-B-bODwAg-CqvgEW7F.js} +1 -1
  106. package/dist/assets/{Menu-BumlrBWb-DpVhZSGr.js → Menu-BumlrBWb-BcPHDaRN.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BP8ahgjX-5saVRqtp.js → MyBankConnectionsSettingsPage-BP8ahgjX-UG__8ONX.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DL6ZI6yW-BoGJ1TyM.js → MyPendingActivationChargeCardListPage-DL6ZI6yW-BpPJHYBy.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-D0t4K8ns-Bm-ItkSW.js → MyProfileSettingsPage-D0t4K8ns-DB1Efs-s.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-BtWbUncS-DB3n1R3v.js → NavBarWithPicker-BtWbUncS-DPONt4o6.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CxgIRSy6-CugP8MA7.js → NavigationArrow-CxgIRSy6-CpsDHZ2n.js} +1 -1
  112. package/dist/assets/{NavigationDots-B3pcllxp-BTtZpldx.js → NavigationDots-B3pcllxp-CNr0sNoW.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-cvM5npvx-Cu4rYaF2.js → NewGlobalMerchantPage-cvM5npvx-BWA6c9TK.js} +1 -1
  114. package/dist/assets/{NoDataChart-CkbRqqmB-BdaQaq20.js → NoDataChart-CkbRqqmB-BnctWOPF.js} +1 -1
  115. package/dist/assets/{NoDataTable-D5uU7rww-DMI3TCce.js → NoDataTable-D5uU7rww-BHQmjH1k.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CQ43hKOe-Cdrz4d6W.js → NotFoundPage-CQ43hKOe-DWXw2U5P.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-B1Lup2VT-Mysd9rJj.js → NotificationSettingsPage-B1Lup2VT-DmOu2lQ2.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-DbMLqAOq-BbLTIknO.js → NotificationsListConfig-DbMLqAOq-CMrn60HP.js} +1 -1
  119. package/dist/assets/{NotificationsPage-AB3KsQi7-CsoOAVaW.js → NotificationsPage-AB3KsQi7-CODknvS7.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-SzuZwalp-E6WJ2wnK.js → OpExByVendorPage-SzuZwalp-D1-gn4nt.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-Dgh3TUuK.js → OverlayContainerPage-Daz3A7cI-Cq39R5ag.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-SYjTIobN-BFTSUg2z.js → PandLWithForecastPage-SYjTIobN-DxKkjeWR.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Bsx0mGaZ-E4w6U3C0.js → PaymentAccountSetupBillingAddressSection-Bsx0mGaZ-CeJmxxg1.js} +1 -1
  124. package/dist/assets/{PeoplePage-B5JrcDNI-oFYxDkBG.js → PeoplePage-B5JrcDNI-xYBo4W3J.js} +1 -1
  125. package/dist/assets/{Preview-DA-xbr8A.js → Preview-CpoyxaCE.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CVoL_xl4-DEZsKrdB.js → ProductsCarousel-CVoL_xl4-CA32XA0m.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-C8qSUCzq-dm6HKZ5W.js → PromoBaseCards-C8qSUCzq-Dc5M0YPp.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-QFZbkFOA-CuMPgrHC.js → QBOConnectionDialog-QFZbkFOA-CO7e8hDJ.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-B2qiAlYU-CibzVKaP.js → QBOSetupSection-B2qiAlYU-B1BwpqWi.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-iqzN8yeY-ChbC4qky.js → ReimbursementApprovalRuleDetailPage-iqzN8yeY-B6Dn9c1C.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BWFxJ80S-PIGBQETH.js → ReimbursementApprovalRulesPage-BWFxJ80S-CLyqG5oY.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-Cb9BOq4R-Dl--S5zY.js → ReimbursementDetailPage-Cb9BOq4R-DJ5PmYei.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-D-NSe4nk-Ceb4vSNq.js → ReimbursementPromoPage-D-NSe4nk-OEIbeIGh.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-zUHUxId8-C_2E6m1y.js → ReimbursementSetUpPage-zUHUxId8-BEeuYbKH.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CMupP_NB-lhVpZhwT.js → ReimbursementsBulkReviewDrawerPage-CMupP_NB-DMoT-x0Y.js} +1 -1
  136. package/dist/assets/{ReloadCard-Dh0SYKvO-BfN50eLc.js → ReloadCard-Dh0SYKvO-C2XGdXSG.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-0H1aO3_G-By7dUXRW.js → ReportTableViewSelector-0H1aO3_G-0nooeShZ.js} +1 -1
  138. package/dist/assets/{ReportsPage-DsFJrJ9D-DvSCX2Ph.js → ReportsPage-DsFJrJ9D-CPtwihUw.js} +1 -1
  139. package/dist/assets/{RevenueChart-BlQnByKx-DXS5eLR_.js → RevenueChart-BlQnByKx-Yy3H1Yjl.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-CV-J7_FZ-DEsUSLNK.js → ReviewDetailsPage-CV-J7_FZ-DB2T9aMx.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-CwyShttD-COz1RonR.js → ReviewOverlay-CwyShttD-83-dzEIb.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-CeOpT_6v-DAXLsTDF.js → RoleWithToolTip-CeOpT_6v-D5cVxuDD.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-G0FPNF5V-CzalI8zM.js → ScheduleDetailsFixedAssetsPage-G0FPNF5V-Dhc42xhH.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-D3WXeMzk-putFQ_Xj.js → ScheduleDetailsPage-D3WXeMzk-CYfthmfm.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-DdrN0kHc-HFF16mEy.js → ScheduleSequenceTable-DdrN0kHc-C9IJvr0L.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-B3_PwFlc.js → ScreenRoutes-83jFT0_I.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-DjGIyGqz-2NoSMGYE.js → SetUpAccountSection-DjGIyGqz-CF9jDAhH.js} +1 -1
  148. package/dist/assets/{SignIn-KN2wUeWN-DjuNGmXD.js → SignIn-KN2wUeWN-HHIS8o2T.js} +1 -1
  149. package/dist/assets/{SignInScreen-DPHbD9R0.js → SignInScreen-C6ssLYfg.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-DA0yJkNS-i-QGqalr.js → SpendManagementListViewPage-DA0yJkNS-DWY7xiz4.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-CIiwcTHn-k-WByauQ.js → SpendManagementPerTabPage-CIiwcTHn-C6V9Y-DW.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-BLZOU6Ll--jqjSwJn.js → SpendManagementSection-BLZOU6Ll-mcyPZ9pp.js} +1 -1
  153. package/dist/assets/{StatementItem-DfbvINGt-gujVkFyU.js → StatementItem-DfbvINGt-Cx_riPKh.js} +1 -1
  154. package/dist/assets/{StatementsPage-DCjD7tSA-C1eD0_4q.js → StatementsPage-DCjD7tSA-DYdLdtRw.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-CiOSpmnA-COfWLIsO.js → StatusSwitcher-CiOSpmnA-BFybEspF.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-CfxBS2oi-DCjTTD4N.js → SubTabSwitcher-CfxBS2oi-C63leV-Z.js} +1 -1
  157. package/dist/assets/{SummaryCard-YakCHMD--BAgjII8U.js → SummaryCard-YakCHMD--Bf1-cn1R.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-q5-Uh7TS-DB2W1_cZ.js → TaskManagementPage-q5-Uh7TS-B0_HPcEF.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-B7_2Hok--aUvRF5BX.js → TimeRangeSwitcher-B7_2Hok--DJCr-apP.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-nC3rnif3-C0iP6Cu3.js → TimeframeSwitcher-nC3rnif3-B9iDKs_J.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-DkOcWDwA-C8Z8JOD-.js → TimeframeSwitcherWithToggle-DkOcWDwA-Bshls87z.js} +1 -1
  162. package/dist/assets/{TopExCard-aqOoqjT0-BhL7e5nv.js → TopExCard-aqOoqjT0-DIvg1eW9.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-DIzdQ0cx-BfhcN7Ik.js → TopExDetailPage-DIzdQ0cx-oIFsOskC.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-B_hEEP8t-BqDk_xjH.js → TransactionDetailPage-B_hEEP8t-nA7e6uir.js} +1 -1
  165. package/dist/assets/{TransactionList-UYBDB4bd-k1_T5uTi.js → TransactionList-UYBDB4bd-DZ1Q_Zez.js} +1 -1
  166. package/dist/assets/{TransactionListBig-OdFVjIup-CPvP7HbH.js → TransactionListBig-OdFVjIup-CZXJr3Hm.js} +1 -1
  167. package/dist/assets/{TransactionListPage-BXYB5l79-SOItiSWS.js → TransactionListPage-BXYB5l79-dBNqQerK.js} +1 -1
  168. package/dist/assets/{TransactionVendorDetailPage-kDn1yhpe-C9RYtS0M.js → TransactionVendorDetailPage-kDn1yhpe-L3ZyxkIj.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-CtSQvv-q-CE0jnW7Y.js → TransferDrawerPage-CtSQvv-q-E4Rl0iVy.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-Dwp-RAwa-C3dvsu51.js → TreasuryOverviewPage-Dwp-RAwa-BGkyjSSc.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-CqiGJJb1-BglMmMxR.js → TreasuryPromoPage-CqiGJJb1-elVaK8CI.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-BvjfEhwz-D396YqJA.js → TreasuryStatementsPage-BvjfEhwz-ZW68Da4G.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-C3B6iff1-D2ZzHU1R.js → TreasuryTaxLetterPage-C3B6iff1-DA9caCLD.js} +1 -1
  174. package/dist/assets/{TrendChart-DwPnEwyO-DPu-_Br2.js → TrendChart-DwPnEwyO-BiRBiqb6.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-B3oV0JPi-BgM9tzOd.js → TrendWithTransactions-B3oV0JPi-Cw7QhU5t.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-bGvTx0Pv-0iP9QJ85.js → UncategorizedAccountsMappingPage-bGvTx0Pv-C31yoKte.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-CGqGix7l-ZI3ie0F3.js → UnitIntegrationPage-CGqGix7l-DSFLPFrf.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-DYbC57rE-BoJPSMM7.js → UploadAdditionalDocumentOverlay-DYbC57rE-COcixE3j.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-CF5GvGtl-Ged496hn.js → Vendor2FAPopup-CF5GvGtl-irCykyfv.js} +1 -1
  180. package/dist/assets/{VendorACHDetailsPage-CKmq7yOU-BUMI9M8T.js → VendorACHDetailsPage-CKmq7yOU-Bn-lzQg2.js} +1 -1
  181. package/dist/assets/{VendorDetailPage-LmgMG0tb-CmIxBGR9.js → VendorDetailPage-LmgMG0tb-CGPucPk4.js} +1 -1
  182. package/dist/assets/{VendorDomesticWireDetailsPage-CBYW97OY-YsMZuav5.js → VendorDomesticWireDetailsPage-CBYW97OY-Ck2B-9hS.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-DZYtpPRR-C1LB-Vko.js → VendorFiling1099EditablePage-DZYtpPRR-NOzSfSvC.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-DDj-Rw2b-Ce9lcxSE.js → VendorFirstReviewPage-DDj-Rw2b-BrIkwvN3.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-VBJ-6ETL-DZn4-Y6u.js → VendorInternationalWireDetailsPage-VBJ-6ETL-DVywV72T.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-dc3xswld-nEGzd21C.js → VendorInternationalWireSwiftDetailsPage-dc3xswld-m-Yuf7nW.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-CAygTvfU-jdUssBVa.js → VendorsAccountsSection-CAygTvfU-DqdoWBd9.js} +1 -1
  188. package/dist/assets/{VerifyDevice-CxLFy5GU-DSfbtygH.js → VerifyDevice-CxLFy5GU-DHYQBrzi.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DKj4Ii21-D-xRLeKX.js → VideoPlayer-DKj4Ii21-CK0kNTyN.js} +2 -2
  190. package/dist/assets/{VideoPopup-CFvt5o_3-4FAYuh93.js → VideoPopup-CFvt5o_3-DXhs78yH.js} +1 -1
  191. package/dist/assets/{WarningsDrawerPage-BiBeB75Y-9pKl7aHf.js → WarningsDrawerPage-BiBeB75Y-DNfitjrf.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-CTrz5iPv-Cs9Kmo8Y.js → ZeniAccountDetailPage-CTrz5iPv-GAONafRb.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-DUfa9C7y-C3uPLkwI.js → ZeniAccountListViewPage-DUfa9C7y-k_K4Jof1.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-knHeWdLO-hJFDQ77K.js → ZeniAccountNavBarPieces-knHeWdLO-CmLaUmrT.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-BnGvEYqf-CP4Dtvvd.js → ZeniAccountPromoPage-BnGvEYqf-BWHRMwaX.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-JnPZalVG-Q5c0Jn7k.js → ZeniAccountSetupPage-JnPZalVG-DbaiON1G.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-B4Tk2oOq-ZFjf_F4z.js → ZeniCopyright-B4Tk2oOq-DkObRKb4.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-bXoRbaVx-CfzHPGE8.js → ZeniTransferAmountSlider-bXoRbaVx-Bgb6z-NN.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-CDAinlR9.js → add-to-wallet-DgdBD8_G-BWR1Qv5P.js} +1 -1
  200. package/dist/assets/{analytics-ko5civJt.js → analytics-Dt8IVJkR.js} +1 -1
  201. package/dist/assets/{analyticsHelper-BaDAJS_h.js → analyticsHelper--hou9SZX.js} +1 -1
  202. package/dist/assets/{analyticsHelper-Bow8lzQJ-BWC8GDGb.js → analyticsHelper-Bow8lzQJ-BrHqU31s.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-8jzV931-.js → arrow-south-east-round-PEovUgvH-BELan4bQ.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-CWH5b5CM.js → auto-transfer-rule-mbafm5D3-DSSwj9Pm.js} +1 -1
  205. package/dist/assets/{chartTypes-C6j6oBoS-9mwDDGJP.js → chartTypes-C6j6oBoS-DIxUkLCM.js} +1 -1
  206. package/dist/assets/{commonDimensions-Dw7YNTQN-P35Kp_kM.js → commonDimensions-Dw7YNTQN-CTyCpkc5.js} +1 -1
  207. package/dist/assets/{commonTypes-Bq0C5-39-CLeN3lEf.js → commonTypes-Bq0C5-39-O4_gIHN0.js} +1 -1
  208. package/dist/assets/{constants-DMtNz7l9.js → constants-Dixjri10.js} +1 -1
  209. package/dist/assets/{core-BkA0GZqz.js → core-CR2LE8QQ.js} +1 -1
  210. package/dist/assets/{dash.all.min-BK4XJrTW.js → dash.all.min-KE7Eki1c.js} +1 -1
  211. package/dist/assets/{detailCommon-DaTlK7zO-DaqNQHzz.js → detailCommon-DaTlK7zO-D82YjVLQ.js} +1 -1
  212. package/dist/assets/{downloadPdf-CF50NGDy-B6sZII-t.js → downloadPdf-CF50NGDy-BPmoyL0w.js} +1 -1
  213. package/dist/assets/{empty-D2MN7f91.js → empty-66zh2V14.js} +1 -1
  214. package/dist/assets/{empty-CId982SJ.js → empty-dcmVPE6C.js} +1 -1
  215. package/dist/assets/{epic-CaoEyh-G.js → epic-CTGstV0g.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-PYBKomZ_.js → gift-box-Cmt9OgIZ-CWkkOP4m.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-UswSWtT8.js → graphic-no-data-l-DU4J8fDt-CEWPUeAH.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CaXeE4do.js → graphic-no-data-net-burn-l-CzmycA0m-DlGQl3uS.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-07xDz1It.js → handshake-BPg58FML-D4yCcKgv.js} +1 -1
  220. package/dist/assets/{index-BBDWUZKM.js → index-BUef754f.js} +1 -1
  221. package/dist/assets/{index-bGtXIeZp.js → index-C7UVJ8WI.js} +1 -1
  222. package/dist/assets/{index-BqsvcEQ2.js → index-CK-7UwvD.js} +1 -1
  223. package/dist/assets/{index-BMluH1lc.js → index-CMNG0Pd_.js} +1 -1
  224. package/dist/assets/{index-DHmXVUBw.js → index-D5owbYDl.js} +1 -1
  225. package/dist/assets/{index-BN936vRr.js → index-DLWfleNH.js} +7 -7
  226. package/dist/assets/{index-D_oDAIsa.js → index-l6HsM_dP.js} +1 -1
  227. package/dist/assets/{lexical-NKD2Ns4v.js → lexical-KSgDEva5.js} +1 -1
  228. package/dist/assets/{liveblocks-CUzvdZes.js → liveblocks-DCtMdvaK.js} +1 -1
  229. package/dist/assets/{lottie-BXNphAUg.js → lottie-BU2bsGhM.js} +1 -1
  230. package/dist/assets/{mapLoadingInProgressToTreeNode-BogZGPG9-BAboISSk.js → mapLoadingInProgressToTreeNode-BogZGPG9-zjuO8W0k.js} +1 -1
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DioWEF-R-B1XLCEKS.js → mapSectionWithAcOnlyToTreeNode-DioWEF-R-14AicNpb.js} +1 -1
  232. package/dist/assets/{mapSpacerToTreeNode-pvGPhRLA-C7p9AjQP.js → mapSpacerToTreeNode-pvGPhRLA-MmC3eY3Q.js} +1 -1
  233. package/dist/assets/{mapTimeframeBalancesToTreeNode-BNu8T9PW-DDSfuQEg.js → mapTimeframeBalancesToTreeNode-BNu8T9PW-p2t6zlAK.js} +1 -1
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-CiB5iztB-CYCRkQV8.js → mapTimeframeBalancesToTreeNode-CiB5iztB-DSwMnVDa.js} +1 -1
  235. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DwGOxYFm-o3iB9CR0.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DwGOxYFm-DHscfuys.js} +1 -1
  236. package/dist/assets/{mui-DQOtlcvt.js → mui-C-pohge_.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-TWXd7PAw.js → page-detail-CWX5S47F-BQL66qGq.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-ZZNrqHqY.js → radio-default-CiSgisfh-VcKf5ena.js} +1 -1
  239. package/dist/assets/{react-D6ScaBnu.js → react-B2V55R2v.js} +1 -1
  240. package/dist/assets/{react-B0_FOKjj.js → react-BCB1dGPD.js} +1 -1
  241. package/dist/assets/{react-etsPKK59.js → react-CD6FH8F5.js} +1 -1
  242. package/dist/assets/{react-cPDaL2yO.js → react-D47RUv4v.js} +2 -2
  243. package/dist/assets/{react-GFMAp5sF.js → react-DpKxxpe8.js} +1 -1
  244. package/dist/assets/{react-DjFHDY9f.js → react-Qrma529F.js} +1 -1
  245. package/dist/assets/{react-w6MNCIg-.js → react-hTwIbqen.js} +1 -1
  246. package/dist/assets/{react-CbZrw9iN.js → react-wyfx2aoQ.js} +1 -1
  247. package/dist/assets/{recharts-DEFzfhhe.js → recharts-Bgj7Hwb3.js} +1 -1
  248. package/dist/assets/{sentry-BCzFscbx.js → sentry-DKKP3bMh.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-BS_yEuW2.js → shield-DOlUxcFf-Du9uW-2-.js} +1 -1
  250. package/dist/assets/{toCOABalancesWithID-BxzNBK9u-CqDKc9Mj.js → toCOABalancesWithID-BxzNBK9u-GOiKZksl.js} +1 -1
  251. package/dist/assets/{toChartData-CnjrCi9i-CYxTVX3t.js → toChartData-CnjrCi9i-BvHIXVbv.js} +1 -1
  252. package/dist/assets/{uploadAttachment-Ce0sdSDo-C1OEaf5S.js → uploadAttachment-Ce0sdSDo-jVmRv1M1.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-BgLSr3Wu.js → uploadReceipts-CPw64UYa-CGbCiVcz.js} +1 -1
  254. package/dist/assets/{url-A8j0yL_0.js → url-CaVHkE_-.js} +1 -1
  255. package/dist/assets/{url-DyyJ-K5V.js → url-CsECjTsW.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-DdGlrNjq.js → useLongPress-GCK2COYQ-DTmzkCFK.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-DeyJTd7u.js → usp-line-BBd1wKwW-BVRvryRJ.js} +1 -1
  258. package/dist/assets/{utils-CGlY-GM2.js → utils-BZ8NB65m.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-DIO-8j7m.js → zeni-epic-state-BJWqdTXY.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +1 -1
  262. package/dist/assets/CustomerOnboardingContainerPage-YGCksJfr-DfNXfn85.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as Zn,aw as Kn,d as Un,gf as qn,gg as Hn,gh as Vn,gi as Gn,cb as Xn,aO as Yn,y,V as t,f4 as ct,f5 as Jn,o as a,f6 as Qn,f7 as ea,f8 as ta,aL as Se,f9 as na,aN as b,bA as pt,bn as mt,dq as ut,cn as yt,co as ht,cp as bt,gj as aa,gk as ia,gl as la,gm as oa,fe as j,gn as I,fg as A,fh as k,fd as ra,b as gt,p as oe,ff as Ot,fn as sa,fi as da,fj as ca,go as pa,gp as ma,aP as ua,ao as ft,bR as ve,gq as ya,gr as L,F as ha,c as s,ai as ba,c0 as ga,gs as fa,L as xa,gt as wa,fo as xt,R as Ta,c$ as va,cg as Da,gu as wt,b6 as $a,b8 as ja,l as Ia,bT as Ft,d0 as Aa,gv as ka,ah as Et,aX as Sa,b4 as Ca,bs as Pa,eK as Ba,al as Ra}from"./index-BN936vRr.js";import{a as p}from"./sentry-BCzFscbx.js";import{n as i}from"./mui-DQOtlcvt.js";import{a as za}from"./liveblocks-CUzvdZes.js";import{bO as Ma,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-DIO-8j7m.js";import{o as Wa,t as Za}from"./LowBalancePopup-BHUFtl2y-rf0GZ141.js";import"./core-BkA0GZqz.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./recharts-DEFzfhhe.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="9328d13a-43c1-4630-820c-aa9421a259d1",e._sentryDebugIdIdentifier="sentry-dbid-9328d13a-43c1-4630-820c-aa9421a259d1")}catch{}})();const Ka=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"})))),Ua={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:qa,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Va,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:$t,title:{comments:Xa}}}}=ha.getLocalizedStrings(),$e=qa.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Ut,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:qt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Vt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:Gt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:U})=>{const l=Zn(),o=Kn(),Fe=Un(),[an,q]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,J]=p.useState(!1),h=e.transactionDetails?.id,on=qt?qn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:V,isLoading:P}=Vn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:V.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[V,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&V.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,V,P,ee,Q]);const Ke=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ke.current&&(Ke.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,qe]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Ve]=p.useState(!1),[Ge,Xe]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Je=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,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=Ya(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&&Vt(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}),q(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),q(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),q(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{q(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{q(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},$=m.labelWidth.value(l),$n=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):"",In=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($i,{})})]}):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{q as Zn,aw as Kn,d as Un,gf as qn,gg as Hn,gh as Vn,gi as Gn,cb as Xn,aO as Yn,y,V as t,f4 as ct,f5 as Jn,o as a,f6 as Qn,f7 as ea,f8 as ta,aL as Se,f9 as na,aN as b,bA as pt,bn as mt,dq as ut,cn as yt,co as ht,cp as bt,gj as aa,gk as ia,gl as la,gm as oa,fe as j,gn as I,fg as A,fh as k,fd as ra,b as gt,p as oe,ff as Ot,fn as sa,fi as da,fj as ca,go as pa,gp as ma,aP as ua,ao as ft,bR as ve,gq as ya,gr as L,F as ha,c as s,ai as ba,c0 as ga,gs as fa,L as xa,gt as wa,fo as xt,R as Ta,c$ as va,cg as Da,gu as wt,b6 as $a,b8 as ja,l as Ia,bT as Ft,d0 as Aa,gv as ka,ah as Et,aX as Sa,b4 as Ca,bs as Pa,eK as Ba,al as Ra}from"./index-DLWfleNH.js";import{a as p}from"./sentry-DKKP3bMh.js";import{n as i}from"./mui-C-pohge_.js";import{a as za}from"./liveblocks-DCtMdvaK.js";import{bO as Ma,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-BJWqdTXY.js";import{o as Wa,t as Za}from"./LowBalancePopup-BHUFtl2y-Czoxlgi2.js";import"./core-CR2LE8QQ.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./recharts-Bgj7Hwb3.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.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]="9328d13a-43c1-4630-820c-aa9421a259d1",e._sentryDebugIdIdentifier="sentry-dbid-9328d13a-43c1-4630-820c-aa9421a259d1")}catch{}})();const Ka=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"})))),Ua={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:qa,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Va,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:$t,title:{comments:Xa}}}}=ha.getLocalizedStrings(),$e=qa.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Ut,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:qt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Vt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:Gt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:U})=>{const l=Zn(),o=Kn(),Fe=Un(),[an,q]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,J]=p.useState(!1),h=e.transactionDetails?.id,on=qt?qn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:V,isLoading:P}=Vn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:V.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[V,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&V.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,V,P,ee,Q]);const Ke=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ke.current&&(Ke.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,qe]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Ve]=p.useState(!1),[Ge,Xe]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Je=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,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=Ya(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&&Vt(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}),q(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),q(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),q(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{q(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{q(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},$=m.labelWidth.value(l),$n=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):"",In=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($i,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
2
  ${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Jn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Ut&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),X=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!X&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&&lt||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,Ge,r)},rt=()=>{Ve(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Xe(!0),rt()},Fn=()=>{Jt(),Ve(!1),Ge&&Xe(!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]),_=Ht&&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=()=>{qe("approved"),We===!0&&J(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{qe("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format($e)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Ja(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(X,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(Ie,{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(I,{label:{label:n.invoiceNumber,width:$},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx(I,{label:{label:n.invoiceDate,width:$},text:ie.invoiceDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx(I,{label:{label:n.billDueDate,width:$},text:ie.billDueDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx(I,{label:{label:n.memo,width:$},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ie,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx(I,{label:{label:n.amount,width:$},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx(I,{label:{label:n.description,width:$},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx(I,{label:{label:n.category,width:$},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx(I,{label:{label:n.class,width:$},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx(I,{label:{label:n.billable,width:$},text:r.billable!=null?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx(I,{label:{label:n.customer,width:$},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(Ie,{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(I,{label:{label:n.withdrawFrom,width:$},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx(I,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:$},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentTo,width:$},text:d.paymentToBankAccount!=null?In:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentType,width:$},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(Ii,{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:Xt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||f,showCancel:!K&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ue==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(K,ot),isLoading:Ue==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?rt:()=>{_!=null?J(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!X&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&lt?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!X&&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,!X&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Va,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Xa,threads:V,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:$t.resolveComment,threadUnResolve:$t.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Ja=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Qa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1,4 +1,4 @@
1
- import{y as O,c as L,q as M,F as U,a9 as W,aO as G,aH as H,cC as X,V as o,bA as J,ac as K,aP as Q,o as u,g3 as Y}from"./index-BN936vRr.js";import{a as T}from"./sentry-BCzFscbx.js";import{n as h}from"./mui-DQOtlcvt.js";import{b as Z,f as ee,o as _,l as C}from"./FollowStepsSection-C0R9691z-CJI6UuPB.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./zeni-epic-state-DIO-8j7m.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="bb67b6f7-3617-47bb-9f82-c85ba33a0bf6",e._sentryDebugIdIdentifier="sentry-dbid-bb67b6f7-3617-47bb-9f82-c85ba33a0bf6")}catch{}})();const k="billPayApprovalRuleDetailPage",j="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!n),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:$}=g,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),q=async(i,d)=>{r(d)};return T.useEffect(()=>{const i=x.watch((d,{name:D})=>{if(D!=null&&d!=null){const z=H(d);X(()=>q(D,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:R(k),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:j,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-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(pe,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:R(k),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"?null:o.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[m]:[m],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[j]: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),R=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
1
+ import{y as O,c as L,q as M,F as U,a9 as W,aO as G,aH as H,cC as X,V as o,bA as J,ac as K,aP as Q,o as u,g3 as Y}from"./index-DLWfleNH.js";import{a as T}from"./sentry-DKKP3bMh.js";import{n as h}from"./mui-C-pohge_.js";import{b as Z,f as ee,o as _,l as C}from"./FollowStepsSection-C0R9691z-Crhbsbc_.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./recharts-Bgj7Hwb3.js";import"./zeni-epic-state-BJWqdTXY.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.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]="bb67b6f7-3617-47bb-9f82-c85ba33a0bf6",e._sentryDebugIdIdentifier="sentry-dbid-bb67b6f7-3617-47bb-9f82-c85ba33a0bf6")}catch{}})();const k="billPayApprovalRuleDetailPage",j="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!n),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:$}=g,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),q=async(i,d)=>{r(d)};return T.useEffect(()=>{const i=x.watch((d,{name:D})=>{if(D!=null&&d!=null){const z=H(d);X(()=>q(D,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:R(k),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:j,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-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(pe,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:R(k),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"?null:o.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[m]:[m],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[j]: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),R=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{q as L,F as v,V as t,bA as _,k as M,aN as S,y as r,al as j,o,aL as P,cn as E,co as H,cp as U,cX as V,c as l,b8 as G,R as k,b7 as q,p as z,cW as F,bs as X,b as J}from"./index-BN936vRr.js";import{n as i}from"./mui-DQOtlcvt.js";import{a as K}from"./sentry-BCzFscbx.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./zeni-epic-state-DIO-8j7m.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="92767562-455e-4896-a41d-842e462457f8",e._sentryDebugIdIdentifier="sentry-dbid-92767562-455e-4896-a41d-842e462457f8")}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")},O=({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)},W={onOkClick:()=>{g(!1),w?.(m)},onCancelClick:()=>{g(!1)}};return t.jsxs(Q,{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,D)=>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,N)=>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}_${N}`)),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))]},D))})}),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:W}):null]})},Q=i.div`
1
+ import{q as L,F as v,V as t,bA as _,k as M,aN as S,y as r,al as j,o,aL as P,cn as E,co as H,cp as U,cX as V,c as l,b8 as G,R as k,b7 as q,p as z,cW as F,bs as X,b as J}from"./index-DLWfleNH.js";import{n as i}from"./mui-C-pohge_.js";import{a as K}from"./sentry-DKKP3bMh.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./recharts-Bgj7Hwb3.js";import"./zeni-epic-state-BJWqdTXY.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.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]="92767562-455e-4896-a41d-842e462457f8",e._sentryDebugIdIdentifier="sentry-dbid-92767562-455e-4896-a41d-842e462457f8")}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")},O=({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)},W={onOkClick:()=>{g(!1),w?.(m)},onCancelClick:()=>{g(!1)}};return t.jsxs(Q,{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,D)=>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,N)=>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}_${N}`)),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))]},D))})}),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:W}):null]})},Q=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{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F as I,o as l,aq as le,a as se,d as M,aR as U,am as oe,y as te,p as $,cB as re,aS as ae,b9 as ne,c as de}from"./index-BN936vRr.js";import{a as g}from"./sentry-BCzFscbx.js";import{n as s}from"./mui-DQOtlcvt.js";import{Fw as ce,bS as pe,Fx as me}from"./zeni-epic-state-DIO-8j7m.js";import{f as xe}from"./VideoPopup-CFvt5o_3-4FAYuh93.js";import{M as b}from"./usp-line-BBd1wKwW-DeyJTd7u.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./VideoPlayer-DKj4Ii21-D-xRLeKX.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]="49cfd823-33c5-4e4c-a1b2-4d82b88272fa",i._sentryDebugIdIdentifier="sentry-dbid-49cfd823-33c5-4e4c-a1b2-4d82b88272fa")}catch{}})();const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new te(de[5],44)},ge=s.div`
1
+ import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F as I,o as l,aq as le,a as se,d as M,aR as U,am as oe,y as te,p as $,cB as re,aS as ae,b9 as ne,c as de}from"./index-DLWfleNH.js";import{a as g}from"./sentry-DKKP3bMh.js";import{n as s}from"./mui-C-pohge_.js";import{Fw as ce,bS as pe,Fx as me}from"./zeni-epic-state-BJWqdTXY.js";import{f as xe}from"./VideoPopup-CFvt5o_3-DXhs78yH.js";import{M as b}from"./usp-line-BBd1wKwW-BVRvryRJ.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./recharts-Bgj7Hwb3.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.js";import"./VideoPlayer-DKj4Ii21-CK0kNTyN.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]="49cfd823-33c5-4e4c-a1b2-4d82b88272fa",i._sentryDebugIdIdentifier="sentry-dbid-49cfd823-33c5-4e4c-a1b2-4d82b88272fa")}catch{}})();const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new te(de[5],44)},ge=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as Le,aN as ze,y as u,bA as qe,k as Ne,ac as Me,fq as H,dL as Ge,fr as Je,bv as Ze,dB as Ke,bR as Xe,fs as Ye,aP as Qe,o as z,ft as et,c as a,al as tt,bI as it}from"./index-BN936vRr.js";import{a as m}from"./sentry-BCzFscbx.js";import{n as b}from"./mui-DQOtlcvt.js";import{bJ as nt}from"./zeni-epic-state-DIO-8j7m.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DYbC57rE-BoJPSMM7.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="7f1c0f26-6cd3-4efd-b8d5-5e80bac14458",e._sentryDebugIdIdentifier="sentry-dbid-7f1c0f26-6cd3-4efd-b8d5-5e80bac14458")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",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:q,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:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:B,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,j=E(f),J=E(P.fetchState),Z=E(D.fetchState),K=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>L(e),[e]),values:L(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"||Z==="In-Progress"&&D.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&w.reset(L(e))},[j,f,w,e,Z,D.fetchState,K,O.fetchState]);const Be=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=M.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,$=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",V=k.mode==="light"?new X(k.colors.brandColorJadeLight):new X(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:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent: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(Me,{...w,children:t.jsx("form",{id:Q(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:B.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:B.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:B.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(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),$&&!R&&B.length>0?t.jsx(Qe,{formId:Q(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
1
+ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as Le,aN as ze,y as u,bA as qe,k as Ne,ac as Me,fq as H,dL as Ge,fr as Je,bv as Ze,dB as Ke,bR as Xe,fs as Ye,aP as Qe,o as z,ft as et,c as a,al as tt,bI as it}from"./index-DLWfleNH.js";import{a as m}from"./sentry-DKKP3bMh.js";import{n as b}from"./mui-C-pohge_.js";import{bJ as nt}from"./zeni-epic-state-BJWqdTXY.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DYbC57rE-COcixE3j.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./recharts-Bgj7Hwb3.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.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]="7f1c0f26-6cd3-4efd-b8d5-5e80bac14458",e._sentryDebugIdIdentifier="sentry-dbid-7f1c0f26-6cd3-4efd-b8d5-5e80bac14458")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",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:q,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:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:B,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,j=E(f),J=E(P.fetchState),Z=E(D.fetchState),K=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>L(e),[e]),values:L(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"||Z==="In-Progress"&&D.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&w.reset(L(e))},[j,f,w,e,Z,D.fetchState,K,O.fetchState]);const Be=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=M.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,$=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",V=k.mode==="light"?new X(k.colors.brandColorJadeLight):new X(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:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent: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(Me,{...w,children:t.jsx("form",{id:Q(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:B.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:B.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:B.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(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),$&&!R&&B.length>0?t.jsx(Qe,{formId:Q(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${z.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{d as we,q as be,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,k as Ae,ac as ve,bv as ke,cD as je,aP as De,o as s,hI as Te,eV as Ve,eW as $e,c as x,al as Be,gR as Ee,p as ze,R as Le}from"./index-BN936vRr.js";import{a as R}from"./sentry-BCzFscbx.js";import{n as d}from"./mui-DQOtlcvt.js";import{M as Oe,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-Bsx0mGaZ-E4w6U3C0.js";import{F as _e}from"./SetUpAccountSection-DjGIyGqz-2NoSMGYE.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./zeni-epic-state-DIO-8j7m.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./commonTypes-Bq0C5-39-CLeN3lEf.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]="1dd0a785-1ee0-41b8-a5cd-08f49f02972a",e._sentryDebugIdIdentifier="sentry-dbid-1dd0a785-1ee0-41b8-a5cd-08f49f02972a")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},F="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:r,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:de})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:re,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(G)}),$=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:$e(v.selectedOption)});u!=null&&de(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};R.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,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;z&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new j(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=R.useState(!1);return t.jsxs(Fe,{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(We,{windowSize:o,children:[t.jsx(He,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:re,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:r,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,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:D,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,r)]})})})}),je(f.formState.dirtyFields)?t.jsx(De,{formId:U(F),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:$?.fetchState==="In-Progress",isDisabled:$?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},H=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},We=d.div`
1
+ import{d as we,q as be,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,k as Ae,ac as ve,bv as ke,cD as je,aP as De,o as s,hI as Te,eV as Ve,eW as $e,c as x,al as Be,gR as Ee,p as ze,R as Le}from"./index-DLWfleNH.js";import{a as R}from"./sentry-DKKP3bMh.js";import{n as d}from"./mui-C-pohge_.js";import{M as Oe,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-Bsx0mGaZ-CeJmxxg1.js";import{F as _e}from"./SetUpAccountSection-DjGIyGqz-CF9jDAhH.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./recharts-Bgj7Hwb3.js";import"./zeni-epic-state-BJWqdTXY.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.js";import"./commonTypes-Bq0C5-39-O4_gIHN0.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]="1dd0a785-1ee0-41b8-a5cd-08f49f02972a",e._sentryDebugIdIdentifier="sentry-dbid-1dd0a785-1ee0-41b8-a5cd-08f49f02972a")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},F="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:r,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:de})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:re,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(G)}),$=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:$e(v.selectedOption)});u!=null&&de(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};R.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,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;z&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new j(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=R.useState(!1);return t.jsxs(Fe,{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(We,{windowSize:o,children:[t.jsx(He,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:re,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:r,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,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:D,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,r)]})})})}),je(f.formState.dirtyFields)?t.jsx(De,{formId:U(F),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:$?.fetchState==="In-Progress",isDisabled:$?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},H=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},We=d.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as b,cn as V,co as W,cp as M,k4 as q,aW as z,F as G}from"./index-BN936vRr.js";import{a as f}from"./sentry-BCzFscbx.js";import{Gd as K}from"./zeni-epic-state-DIO-8j7m.js";import{u as Q}from"./ReviewOverlay-CwyShttD-COz1RonR.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./mui-DQOtlcvt.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="3dc3087d-1c88-4395-90d0-a728d77cbbef",e._sentryDebugIdIdentifier="sentry-dbid-3dc3087d-1c88-4395-90d0-a728d77cbbef")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,y]=f.useState(!1),[n,v]=f.useState(P(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[w,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(P(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),y(!0)},F={onOkClick:d=>{y(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{y(!1)}},{title:N,description:A}=H(m,h,R,p),T=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:T?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:T?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(M,{children:w.title}),descriptionComponent:b.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:T}})]})},P=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,y=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",y?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
1
+ import{V as b,cn as V,co as W,cp as M,k4 as q,aW as z,F as G}from"./index-DLWfleNH.js";import{a as f}from"./sentry-DKKP3bMh.js";import{Gd as K}from"./zeni-epic-state-BJWqdTXY.js";import{u as Q}from"./ReviewOverlay-CwyShttD-83-dzEIb.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./recharts-Bgj7Hwb3.js";import"./mui-C-pohge_.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.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]="3dc3087d-1c88-4395-90d0-a728d77cbbef",e._sentryDebugIdIdentifier="sentry-dbid-3dc3087d-1c88-4395-90d0-a728d77cbbef")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,y]=f.useState(!1),[n,v]=f.useState(P(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[w,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(P(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),y(!0)},F={onOkClick:d=>{y(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{y(!1)}},{title:N,description:A}=H(m,h,R,p),T=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:T?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:T?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(M,{children:w.title}),descriptionComponent:b.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:T}})]})},P=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,y=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",y?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{q as l,V as s,aN as b,o as e}from"./index-BN936vRr.js";import{n as a}from"./mui-DQOtlcvt.js";import{o as p}from"./commonDimensions-Dw7YNTQN-P35Kp_kM.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]="2ec2a653-5afd-4741-844b-9708512d7077",o._sentryDebugIdIdentifier="sentry-dbid-2ec2a653-5afd-4741-844b-9708512d7077")}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{q as l,V as s,aN as b,o as e}from"./index-DLWfleNH.js";import{n as a}from"./mui-C-pohge_.js";import{o as p}from"./commonDimensions-Dw7YNTQN-CTyCpkc5.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]="2ec2a653-5afd-4741-844b-9708512d7077",o._sentryDebugIdIdentifier="sentry-dbid-2ec2a653-5afd-4741-844b-9708512d7077")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{d as ct,q as dt,aO as Te,V as i,ae as W,a9 as pt,cQ as ut,ay as mt,cC as ft,aW as Oe,aM as ve,g6 as yt,n as ht,bA as gt,aN as St,cD as xt,cn as wt,co as bt,cp as Ct,k as Dt,ac as Tt,aP as Ot,o as r,y as F,am as Pe,F as Ve,g7 as vt,fu as Ie,eV as It,a as kt,L as $t,al as Le,R as Nt,M as jt,c as k}from"./index-BN936vRr.js";import{a as P}from"./sentry-BCzFscbx.js";import{n as d}from"./mui-DQOtlcvt.js";import{EN as Ft,bi as G}from"./zeni-epic-state-DIO-8j7m.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-CTO9aR2f-zjfI2eeq.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./LabeledAddressValueField-BOu3phtO-DUC2jENU.js";import"./LabeledCountryMultiSelectField-BfXHGTpW-vM7yZBRT.js";import"./LabeledCreatableSingleSelectField-xk2HC5O8-CvpcCD48.js";import"./LabeledDocumentField-D8RhxYIe-DAnLkE2V.js";import"./LabeledMultiSelectField-BpLilatj-DTbTUWW6.js";import"./commonTypes-Bq0C5-39-CLeN3lEf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="a28ca51b-448e-4ca2-a6c6-6586255e1827",e._sentryDebugIdIdentifier="sentry-dbid-a28ca51b-448e-4ca2-a6c6-6586255e1827")}catch{}})();const S={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,k[3]),subTitlePaddingBottom:new F(k[3],k[3]),verificationDetailsRowGap:new F(12,k[5],k[5]),termsPaddingLeftRight:new F(k[0],k[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:$e,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:x,verficationDetailsFetchState:$,isRefreshingViewInBackground:_,filesEndPoint:s,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:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),M=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?i.jsxs(qt,{children:[a.terms.term1,i.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,i.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,i.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,i.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ye,Q]=P.useState(!1),[U,re]=P.useState("save"),[X,Ze]=P.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,x)}),{isValid:He}=m.formState,J=A?.company.company.companyBillPayInfo,K=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,O=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${O<0?1:O+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,Se=l?.phone,xe=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&&Se!=null&&xe!=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:Se,website:xe.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(`${T}.${O<0?0:O}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&m.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&m.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return m.trigger(`${T}.${O<0?0:O}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${T}.${O}.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);Ft(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Qe?.())}),st=async(t,n)=>{t.includes(D)?Me?.(n[D]):t.includes(T)&&We?.(n[T])},nt=P.useCallback(mt((t,n)=>{st(t,n)},300),[]);P.useEffect(()=>{const t=m.watch((n,{name:c})=>{c!=null&&n!=null&&ft(()=>nt(c,n))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);P.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),Y=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{Q(!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(`${T}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Ue?.(t)},onCancelClick:()=>{Q(!1)}},lt=Oe(ve(u),u,$e.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Oe(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),i.jsx(ht,{label:a.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):i.jsxs(Et,{isSettings:o,children:[i.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{xt(m.formState.dirtyFields)?Q(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?i.jsx(wt,{titleComponent:i.jsx(Ct,{children:a.discardTitle}),descriptionComponent:i.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,i.jsxs(Mt,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),$==="In-Progress"||$==="Not-Started"?i.jsx(Ut,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Tt,{...m,children:i.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&w===!0&&i.jsxs(zt,{children:[i.jsxs(Qt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Jt,{children:i.jsxs(Kt,{children:[i.jsx(Fe,{}),de&&i.jsx(Fe,{}),i.jsx(Yt,{})]})})]}),i.jsx(Ae,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(Pt,{companyOfficerData:b,allNationalityCountries:x,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:s,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.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:s,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:V,allNationalityCountries:x})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?i.jsx(Ot,{formId:je(ke),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"?S.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?S.width.valuePx(p):"auto",paddingLeft:S.termsPaddingLeftRight.valuePx(p),paddingRight:S.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:Ke,style:{padding:`12px ${r.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,x,$,_)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=e,V=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:x?.map(u=>u.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:V.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:V.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:(s?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[T]: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:$?.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{d as ct,q as dt,aO as Te,V as i,ae as W,a9 as pt,cQ as ut,ay as mt,cC as ft,aW as Oe,aM as ve,g6 as yt,n as ht,bA as gt,aN as St,cD as xt,cn as wt,co as bt,cp as Ct,k as Dt,ac as Tt,aP as Ot,o as r,y as F,am as Pe,F as Ve,g7 as vt,fu as Ie,eV as It,a as kt,L as $t,al as Le,R as Nt,M as jt,c as k}from"./index-DLWfleNH.js";import{a as P}from"./sentry-DKKP3bMh.js";import{n as d}from"./mui-C-pohge_.js";import{EN as Ft,bi as G}from"./zeni-epic-state-BJWqdTXY.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-CTO9aR2f-CTJk32P7.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./recharts-Bgj7Hwb3.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.js";import"./LabeledAddressValueField-BOu3phtO-CHD-EtyB.js";import"./LabeledCountryMultiSelectField-BfXHGTpW-DDNREZOL.js";import"./LabeledCreatableSingleSelectField-xk2HC5O8-Bn1QabkV.js";import"./LabeledDocumentField-D8RhxYIe-Dd9ZS1C8.js";import"./LabeledMultiSelectField-BpLilatj-umlw6dAH.js";import"./commonTypes-Bq0C5-39-O4_gIHN0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="a28ca51b-448e-4ca2-a6c6-6586255e1827",e._sentryDebugIdIdentifier="sentry-dbid-a28ca51b-448e-4ca2-a6c6-6586255e1827")}catch{}})();const S={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,k[3]),subTitlePaddingBottom:new F(k[3],k[3]),verificationDetailsRowGap:new F(12,k[5],k[5]),termsPaddingLeftRight:new F(k[0],k[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:$e,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:x,verficationDetailsFetchState:$,isRefreshingViewInBackground:_,filesEndPoint:s,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:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),M=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?i.jsxs(qt,{children:[a.terms.term1,i.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,i.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,i.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,i.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ye,Q]=P.useState(!1),[U,re]=P.useState("save"),[X,Ze]=P.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,x)}),{isValid:He}=m.formState,J=A?.company.company.companyBillPayInfo,K=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,O=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${O<0?1:O+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,Se=l?.phone,xe=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&&Se!=null&&xe!=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:Se,website:xe.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(`${T}.${O<0?0:O}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&m.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&m.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return m.trigger(`${T}.${O<0?0:O}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${T}.${O}.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);Ft(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Qe?.())}),st=async(t,n)=>{t.includes(D)?Me?.(n[D]):t.includes(T)&&We?.(n[T])},nt=P.useCallback(mt((t,n)=>{st(t,n)},300),[]);P.useEffect(()=>{const t=m.watch((n,{name:c})=>{c!=null&&n!=null&&ft(()=>nt(c,n))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);P.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),Y=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{Q(!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(`${T}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Ue?.(t)},onCancelClick:()=>{Q(!1)}},lt=Oe(ve(u),u,$e.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Oe(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),i.jsx(ht,{label:a.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):i.jsxs(Et,{isSettings:o,children:[i.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{xt(m.formState.dirtyFields)?Q(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?i.jsx(wt,{titleComponent:i.jsx(Ct,{children:a.discardTitle}),descriptionComponent:i.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,i.jsxs(Mt,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),$==="In-Progress"||$==="Not-Started"?i.jsx(Ut,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Tt,{...m,children:i.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&w===!0&&i.jsxs(zt,{children:[i.jsxs(Qt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Jt,{children:i.jsxs(Kt,{children:[i.jsx(Fe,{}),de&&i.jsx(Fe,{}),i.jsx(Yt,{})]})})]}),i.jsx(Ae,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(Pt,{companyOfficerData:b,allNationalityCountries:x,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:s,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.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:s,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:V,allNationalityCountries:x})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?i.jsx(Ot,{formId:je(ke),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"?S.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?S.width.valuePx(p):"auto",paddingLeft:S.termsPaddingLeftRight.valuePx(p),paddingRight:S.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:Ke,style:{padding:`12px ${r.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,x,$,_)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=e,V=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:x?.map(u=>u.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:V.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:V.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:(s?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[T]: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:$?.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{q as m,V as a,F as y,b as w,o as t,R as b,M as x}from"./index-BN936vRr.js";import{n as o}from"./mui-DQOtlcvt.js";import{a as c}from"./sentry-BCzFscbx.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]="9ffdd945-bf34-4731-8418-21e1d35f98d1",e._sentryDebugIdIdentifier="sentry-dbid-9ffdd945-bf34-4731-8418-21e1d35f98d1")}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:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:s,styles:l})=>{const f=m(),g=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=p.strings.space+r.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return a.jsxs(v,{style:l,windowSize:f,forDetailPage:s,className:"cardName",title:`${h}`,children:[g,a.jsx(H,{}),d,n&&!s?a.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?a.jsx(u,{}):null]})},v=o(x)`
1
+ import{q as m,V as a,F as y,b as w,o as t,R as b,M as x}from"./index-DLWfleNH.js";import{n as o}from"./mui-C-pohge_.js";import{a as c}from"./sentry-DKKP3bMh.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]="9ffdd945-bf34-4731-8418-21e1d35f98d1",e._sentryDebugIdIdentifier="sentry-dbid-9ffdd945-bf34-4731-8418-21e1d35f98d1")}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:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:s,styles:l})=>{const f=m(),g=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=p.strings.space+r.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return a.jsxs(v,{style:l,windowSize:f,forDetailPage:s,className:"cardName",title:`${h}`,children:[g,a.jsx(H,{}),d,n&&!s?a.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?a.jsx(u,{}):null]})},v=o(x)`
2
2
  ${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{d as j,q as b,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as w,p as B,y as h,al as v,dd as oe,c as l,aW as re,aL as T,bP as ae,ah as $,aN as L,jf as X,jg as Z,iW as se,cw as ne,cz as de,am as O,iX as le,iY as ce}from"./index-BN936vRr.js";import{n as o}from"./mui-DQOtlcvt.js";import{G4 as f,bh as he}from"./zeni-epic-state-DIO-8j7m.js";import{S as R,a as V}from"./sentry-BCzFscbx.js";import{q as pe}from"./InsightsSection-BT1h9fEy-BRfU7zNX.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-DEFzfhhe.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./NavigationDots-B3pcllxp-BTtZpldx.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]="5bb03014-09e7-4e23-ba9c-69e800eb41ca",e._sentryDebugIdIdentifier="sentry-dbid-5bb03014-09e7-4e23-ba9c-69e800eb41ca")}catch{}})();const fe=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();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})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:f(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
1
+ import{d as j,q as b,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as w,p as B,y as h,al as v,dd as oe,c as l,aW as re,aL as T,bP as ae,ah as $,aN as L,jf as X,jg as Z,iW as se,cw as ne,cz as de,am as O,iX as le,iY as ce}from"./index-DLWfleNH.js";import{n as o}from"./mui-C-pohge_.js";import{G4 as f,bh as he}from"./zeni-epic-state-BJWqdTXY.js";import{S as R,a as V}from"./sentry-DKKP3bMh.js";import{q as pe}from"./InsightsSection-BT1h9fEy-DRcLAin7.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-Bgj7Hwb3.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.js";import"./NavigationDots-B3pcllxp-CNr0sNoW.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]="5bb03014-09e7-4e23-ba9c-69e800eb41ca",e._sentryDebugIdIdentifier="sentry-dbid-5bb03014-09e7-4e23-ba9c-69e800eb41ca")}catch{}})();const fe=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();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})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:f(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
2
2
  display: flex;
3
3
  gap: ${i.sp1};
4
4
  `,ke=o.div`
@@ -1,4 +1,4 @@
1
- import{d as tt,q as Ie,aw as It,a8 as Lt,gW as wr,hz as ki,aT as Qe,gX as xr,aO as et,V as t,g_ as ji,bA as Ii,c as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,j0 as Sr,b as _,cn as Li,j1 as Di,f7 as Ai,gM as Ti,j2 as Ei,bD as Fi,bM as yr,aR as ea,j3 as Ri,j4 as $r,j5 as ot,y as T,bI as vr,b9 as ta,g as zi,aS as kr,a_ as Pi,j6 as Mi,j7 as Vi,b6 as aa,ah as ge,ez as Oi,iQ as Hi,u as gt,gZ as jr,cb as Ni,k as mt,b2 as Bi,di as Wi,cr as _i,co as Ui,d1 as Zi,hw as Gi,al as Oe,bT as qi,aX as Wt,j8 as Ra,j9 as Yi,R as za,M as Ir,b8 as Xi,ja as Ji,iK as pt,iV as Ki,i_ as Qi,i$ as eo,dq as Pa,eR as to,n as Lr,cw as Dr,iT as ao,bW as ro,l as Ar,jb as io,av as vt,bZ as Ma,bw as oo,da as no,am as st,gV as so,aq as co,L as lo,bE as ho,jc as Dt,fk as po,jd as Tr,gw as Er,je as jt,ib as Fr,bP as uo,ec as Rr,iW as mo,cz as go,dL as Co,cX as fo,iX as wo,iY as xo,ei as bo,ce as So,cf as yo}from"./index-BN936vRr.js";import{a as o,S as $o}from"./sentry-BCzFscbx.js";import{n as r,c as we,k as zr}from"./mui-DQOtlcvt.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-DIO-8j7m.js";import{k as Io}from"./NavigationDots-B3pcllxp-BTtZpldx.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-CDAinlR9.js";import{L as _t}from"./lottie-BXNphAUg.js";import{j as zo}from"./CardNumberSubText-BgxVtjBP-C0H_h-nK.js";import{r as Pr}from"./core-BkA0GZqz.js";import{l as Mr}from"./uploadReceipts-CPw64UYa-BgLSr3Wu.js";import{L as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-DYNFfr7G-CPZbfc9t.js";import"./liveblocks-CUzvdZes.js";import"./recharts-DEFzfhhe.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./RoleWithToolTip-CeOpT_6v-DAXLsTDF.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]="5ed70c96-d58d-406b-8bd6-57e65d98127b",e._sentryDebugIdIdentifier="sentry-dbid-5ed70c96-d58d-406b-8bd6-57e65d98127b")}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:q}=Mi(),{isAndroidScreen:J}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(No,{style:p,children:q===!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")}}):J===!0?t.jsx(Jt,{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(Jt,{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)}})]})})},Jt=({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":X("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":X("add-to-apple-wallet-button")})},No=r.div`
1
+ import{d as tt,q as Ie,aw as It,a8 as Lt,gW as wr,hz as ki,aT as Qe,gX as xr,aO as et,V as t,g_ as ji,bA as Ii,c as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,j0 as Sr,b as _,cn as Li,j1 as Di,f7 as Ai,gM as Ti,j2 as Ei,bD as Fi,bM as yr,aR as ea,j3 as Ri,j4 as $r,j5 as ot,y as T,bI as vr,b9 as ta,g as zi,aS as kr,a_ as Pi,j6 as Mi,j7 as Vi,b6 as aa,ah as ge,ez as Oi,iQ as Hi,u as gt,gZ as jr,cb as Ni,k as mt,b2 as Bi,di as Wi,cr as _i,co as Ui,d1 as Zi,hw as Gi,al as Oe,bT as qi,aX as Wt,j8 as Ra,j9 as Yi,R as za,M as Ir,b8 as Xi,ja as Ji,iK as pt,iV as Ki,i_ as Qi,i$ as eo,dq as Pa,eR as to,n as Lr,cw as Dr,iT as ao,bW as ro,l as Ar,jb as io,av as vt,bZ as Ma,bw as oo,da as no,am as st,gV as so,aq as co,L as lo,bE as ho,jc as Dt,fk as po,jd as Tr,gw as Er,je as jt,ib as Fr,bP as uo,ec as Rr,iW as mo,cz as go,dL as Co,cX as fo,iX as wo,iY as xo,ei as bo,ce as So,cf as yo}from"./index-DLWfleNH.js";import{a as o,S as $o}from"./sentry-DKKP3bMh.js";import{n as r,c as we,k as zr}from"./mui-C-pohge_.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-BJWqdTXY.js";import{k as Io}from"./NavigationDots-B3pcllxp-CNr0sNoW.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-BWR1Qv5P.js";import{L as _t}from"./lottie-BU2bsGhM.js";import{j as zo}from"./CardNumberSubText-BgxVtjBP-BaqziVT3.js";import{r as Pr}from"./core-CR2LE8QQ.js";import{l as Mr}from"./uploadReceipts-CPw64UYa-CGbCiVcz.js";import{L as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-DYNFfr7G-M0VaAmbS.js";import"./liveblocks-DCtMdvaK.js";import"./recharts-Bgj7Hwb3.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.js";import"./RoleWithToolTip-CeOpT_6v-D5cVxuDD.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]="5ed70c96-d58d-406b-8bd6-57e65d98127b",e._sentryDebugIdIdentifier="sentry-dbid-5ed70c96-d58d-406b-8bd6-57e65d98127b")}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:q}=Mi(),{isAndroidScreen:J}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(No,{style:p,children:q===!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")}}):J===!0?t.jsx(Jt,{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(Jt,{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)}})]})})},Jt=({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":X("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":X("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,aO as z,aw as er,fQ as tr,iK as W,q as Ee,o as a,d as ta,V as t,bA as ar,g2 as rr,fd as ie,b as D,bR as nt,p,aL as me,aN as V,aW as st,F as Fe,y as H,ah as q,R as ir,M as or,cU as nr,at as aa,bI as sr,a_ as ct,aR as dr,am as lt,a9 as cr,gP as lr,eo as ur,ao as hr,ac as mr,g8 as pr,n as Nt,c as _,d3 as ra,aq as Cr,al as gr,a as br,cT as fr,bu as xr,bT as yr}from"./index-BN936vRr.js";import{a as l}from"./sentry-BCzFscbx.js";import{n as r,c as ut,k as Sr}from"./mui-DQOtlcvt.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-DIO-8j7m.js";import{t as vr}from"./SpendManagementSection-BLZOU6Ll--jqjSwJn.js";import{D as oe,l as jr,r as Lr}from"./ChargeCardListTable-CWBqYx4D-DrYCM4wp.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-8p2rEuSL-n08-aUHH.js";import{N as Pr,J as Er}from"./PromoBaseCards-C8qSUCzq-dm6HKZ5W.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-DYNFfr7G-CPZbfc9t.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-CaXeE4do.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-8jzV931-.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./Menu-BumlrBWb-DpVhZSGr.js";import"./RoleWithToolTip-CeOpT_6v-DAXLsTDF.js";import"./CardNumberSubText-BgxVtjBP-C0H_h-nK.js";import"./NavigationDots-B3pcllxp-BTtZpldx.js";import"./usp-line-BBd1wKwW-DeyJTd7u.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]="e8578b9f-f210-482d-aa08-d5cfb8d4acc5",e._sentryDebugIdIdentifier="sentry-dbid-e8578b9f-f210-482d-aa08-d5cfb8d4acc5")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),A=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode: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(Xr,{isStatusMode:A,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
1
+ import{a8 as Za,aO as z,aw as er,fQ as tr,iK as W,q as Ee,o as a,d as ta,V as t,bA as ar,g2 as rr,fd as ie,b as D,bR as nt,p,aL as me,aN as V,aW as st,F as Fe,y as H,ah as q,R as ir,M as or,cU as nr,at as aa,bI as sr,a_ as ct,aR as dr,am as lt,a9 as cr,gP as lr,eo as ur,ao as hr,ac as mr,g8 as pr,n as Nt,c as _,d3 as ra,aq as Cr,al as gr,a as br,cT as fr,bu as xr,bT as yr}from"./index-DLWfleNH.js";import{a as l}from"./sentry-DKKP3bMh.js";import{n as r,c as ut,k as Sr}from"./mui-C-pohge_.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-BJWqdTXY.js";import{t as vr}from"./SpendManagementSection-BLZOU6Ll-mcyPZ9pp.js";import{D as oe,l as jr,r as Lr}from"./ChargeCardListTable-CWBqYx4D-DdqXNn2S.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-8p2rEuSL-DHDG2qx1.js";import{N as Pr,J as Er}from"./PromoBaseCards-C8qSUCzq-Dc5M0YPp.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-DYNFfr7G-M0VaAmbS.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-DlGQl3uS.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-BELan4bQ.js";import"./liveblocks-DCtMdvaK.js";import"./core-CR2LE8QQ.js";import"./recharts-Bgj7Hwb3.js";import"./lottie-BU2bsGhM.js";import"./analytics-Dt8IVJkR.js";import"./lexical-KSgDEva5.js";import"./utils-BZ8NB65m.js";import"./Menu-BumlrBWb-BcPHDaRN.js";import"./RoleWithToolTip-CeOpT_6v-D5cVxuDD.js";import"./CardNumberSubText-BgxVtjBP-BaqziVT3.js";import"./NavigationDots-B3pcllxp-CNr0sNoW.js";import"./usp-line-BBd1wKwW-BVRvryRJ.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]="e8578b9f-f210-482d-aa08-d5cfb8d4acc5",e._sentryDebugIdIdentifier="sentry-dbid-e8578b9f-f210-482d-aa08-d5cfb8d4acc5")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),A=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode: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(Xr,{isStatusMode:A,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,d as ze,gW as hi,iL as pi,iM as ui,iN as mi,aP as gi,o as i,aN as X,ck as xi,b as Be,p as I,b2 as wi,cr as Ci,iO as fi,iP as yi,bR as ye,bM as Si,aR as ki,y as C,ez as vi,b9 as $i,iQ as ji,aS as bi,u as Ii,ah as ee,gZ as Li,am as G,al as Z,c as p,cP as zi,ex as Ai,iR as Fi,iS as Pi,R as ft,bW as yt,iT as St,iU as Ri,bP as Bi,cw as Ge,iV as kt,dq as Di,dr as q,aL as ce,ct as vt,k as $t,iW as _i,cz as Ei,iD as Ze,bI as jt,bK as bt,iX as Ti,iY as Vi,aT as $e,bs as Oi,bX as Ui,bY as Ni,iZ as Mi}from"./index-BN936vRr.js";import{S as pe,a as f}from"./sentry-BCzFscbx.js";import{n as o,c as Je}from"./mui-DQOtlcvt.js";import{P as Ve}from"./Menu-BumlrBWb-DpVhZSGr.js";import{T as It}from"./RoleWithToolTip-CeOpT_6v-DAXLsTDF.js";import{j as Oe}from"./CardNumberSubText-BgxVtjBP-C0H_h-nK.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]="68402741-8e60-4dea-8619-977591525f43",e._sentryDebugIdIdentifier="sentry-dbid-68402741-8e60-4dea-8619-977591525f43")}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)},Ye={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},Ye,et,tt,it,ot]:[Qe,Ye,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==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(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Yi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":X("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(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(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{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(Z)`
1
+ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,d as ze,gW as hi,iL as pi,iM as ui,iN as mi,aP as gi,o as i,aN as X,ck as xi,b as Be,p as I,b2 as wi,cr as Ci,iO as fi,iP as yi,bR as ye,bM as Si,aR as ki,y as C,ez as vi,b9 as $i,iQ as ji,aS as bi,u as Ii,ah as ee,gZ as Li,am as G,al as Z,c as p,cP as zi,ex as Ai,iR as Fi,iS as Pi,R as ft,bW as yt,iT as St,iU as Ri,bP as Bi,cw as Ge,iV as kt,dq as Di,dr as q,aL as ce,ct as vt,k as $t,iW as _i,cz as Ei,iD as Ze,bI as jt,bK as bt,iX as Ti,iY as Vi,aT as $e,bs as Oi,bX as Ui,bY as Ni,iZ as Mi}from"./index-DLWfleNH.js";import{S as pe,a as f}from"./sentry-DKKP3bMh.js";import{n as o,c as Je}from"./mui-C-pohge_.js";import{P as Ve}from"./Menu-BumlrBWb-BcPHDaRN.js";import{T as It}from"./RoleWithToolTip-CeOpT_6v-D5cVxuDD.js";import{j as Oe}from"./CardNumberSubText-BgxVtjBP-BaqziVT3.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]="68402741-8e60-4dea-8619-977591525f43",e._sentryDebugIdIdentifier="sentry-dbid-68402741-8e60-4dea-8619-977591525f43")}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)},Ye={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},Ye,et,tt,it,ot]:[Qe,Ye,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==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(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Yi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":X("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(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(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{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(Z)`
2
2
  color: inherit;
3
3
  `,fe=o(Z)`
4
4
  color: ${I.important};