@zeniai/web-app-ui 4.14.36-prod → 4.14.36-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/dist/assets/{ACHDetailsPage-fOu5grd7-DtKrvplH.js → ACHDetailsPage-fOu5grd7-BgitUCnK.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Da3gFo8A-D7GNRsCR.js → AIPerformancePage-Da3gFo8A-B6fd9yMu.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-o7hTXtgZ-B2dOh6zh.js → AccountInfoPage-o7hTXtgZ-NjcAzXFT.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DqErO8FH-BzjZe2AM.js → AccountInfoPageContent-DqErO8FH-BeoOImtE.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-BzlPa0go.js → AccountLockedInfoModal-BJjCuLHa-Dwc4Twfa.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-C_Gd41A_.js → AccountReconDetailsDrawerPage-CVjH1p0d-B1ewqXBW.js} +1 -1
  7. package/dist/assets/{AccountRow-CpftykFx-BYdmHBcI.js → AccountRow-CpftykFx-BJ3WZo2I.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-VKAOHHjH.js → AccountsPromoCardStack-D7xvgmOH-B_Z0IcIc.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-vecchYEf-ebIJJIIw.js → AddAddressForCardDrawer-vecchYEf-lmlcPBf7.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-zJy9QCjx-CK9utT0P.js → AddToWalletPage-zJy9QCjx-CAgD66cB.js} +1 -1
  11. package/dist/assets/{AddressRoutes-DUSS9tuc.js → AddressRoutes-BeSQWOrw.js} +1 -1
  12. package/dist/assets/{AddressScreen-BWfJAlfj.js → AddressScreen-CE8x2lDp.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-wAvQb1d8-D6uRym4u.js → AgingReportsPage-wAvQb1d8-bRB2pbCU.js} +1 -1
  14. package/dist/assets/{AiCfoScreen-KzOydU1K.js → AiCfoScreen-BszigZh8.js} +1 -1
  15. package/dist/assets/{AllUserItems-DEv_CXOA-D-bq2iN2.js → AllUserItems-DEv_CXOA-D8XKRK3i.js} +1 -1
  16. package/dist/assets/{ApAgingDetailPage-BOV1WFVF-CHgoe9J2.js → ApAgingDetailPage-BOV1WFVF-Bn0q4RYM.js} +1 -1
  17. package/dist/assets/{AppBasePage-DMlomvFS-D2hGShit.js → AppBasePage-DMlomvFS-CQMcvMHZ.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-Dc2sHnR3-LavVuLGE.js → AppDrawerContent-Dc2sHnR3-B11HecZn.js} +1 -1
  19. package/dist/assets/{ApprovalRulesSettingsPage-BnbPSy4U-CVVk0lGA.js → ApprovalRulesSettingsPage-BnbPSy4U-CIEnHFVH.js} +1 -1
  20. package/dist/assets/{ArAgingChart-m-Xp3HAW-DyehsuTU.js → ArAgingChart-m-Xp3HAW-CnkoHC-y.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-b_NpDpWj-bvIIfM8q.js → ArAgingDetailPage-b_NpDpWj-B3kCWqKT.js} +1 -1
  22. package/dist/assets/{AttachmentView-DB_V1qT1-pu05HN8u.js → AttachmentView-DB_V1qT1-CUnw9dFs.js} +1 -1
  23. package/dist/assets/{BankAccountSection-BabhrBM7-Dd_u70sl.js → BankAccountSection-BabhrBM7-CjKNHuqx.js} +1 -1
  24. package/dist/assets/{BankAccountWarningSection-yT2UAd12-OOunsZf0.js → BankAccountWarningSection-yT2UAd12-DDru0TbG.js} +1 -1
  25. package/dist/assets/{BankConnectionsSettingsPage-CbxXykMM-8U9Rn4at.js → BankConnectionsSettingsPage-CbxXykMM-DSyYDFRR.js} +1 -1
  26. package/dist/assets/{BillDetailPage-7TMkWo3V-CFxRvOU4.js → BillDetailPage-7TMkWo3V-Bx_V8TNq.js} +1 -1
  27. package/dist/assets/{BillPayApprovalRoutes-3120qDp_.js → BillPayApprovalRoutes-D-Lr-knt.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRuleDetailPage-COyDRpaF-Cab_XJ4M.js → BillPayApprovalRuleDetailPage-COyDRpaF-Cw59nmg3.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-DtRl9cAs.js → BillPayApprovalRulesPage-9pxkgFAT-C0fukcC-.js} +1 -1
  30. package/dist/assets/{BillPayPromoPage-AGffhbY3-Ds-4kTJZ.js → BillPayPromoPage-AGffhbY3-CtBTCqHG.js} +1 -1
  31. package/dist/assets/{BillPayRoutes-BIMlh4Mo.js → BillPayRoutes-CLxgVQoZ.js} +1 -1
  32. package/dist/assets/{BillPaySetUpPage-Cs5rkWBu-f5jRFn_I.js → BillPaySetUpPage-Cs5rkWBu-uFttJJzg.js} +1 -1
  33. package/dist/assets/{BillingSettingsPage-CQ117tT9-DFy0vzQN.js → BillingSettingsPage-CQ117tT9-BttuaXcF.js} +1 -1
  34. package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-Dns4H6Uq.js → BillsBulkReviewDrawerPage-DRkGQQAe-DERm9Zoh.js} +1 -1
  35. package/dist/assets/{BoxItem-DRwx0M5a-Dw0b9ELb.js → BoxItem-DRwx0M5a-CDlEJbUh.js} +1 -1
  36. package/dist/assets/{BusinessVerificationPage-1h0z3N9u-Cr_duL5n.js → BusinessVerificationPage-1h0z3N9u-RMOZ1n1-.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPageScreen-C7iPYOZn.js → BusinessVerificationPageScreen-CsiX3KGh.js} +1 -1
  38. package/dist/assets/{BusyIndication-DizZe0Gu-CnZz6mNW.js → BusyIndication-DizZe0Gu-1EWobmeT.js} +1 -1
  39. package/dist/assets/{CardNumberSubText-DqtLT1w5-C1PSe701.js → CardNumberSubText-DqtLT1w5-3-jd_gkY.js} +1 -1
  40. package/dist/assets/{CashbackDetailPage-ChdQcvkC-SWWq0YlX.js → CashbackDetailPage-ChdQcvkC-ICsGmTUH.js} +1 -1
  41. package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-CJjKm9Bc.js → ChargeCardDetailPage-DFOKlPNG-DAT7wsUl.js} +1 -1
  42. package/dist/assets/{ChargeCardListPage-DhLUsUhd-tb3tejt8.js → ChargeCardListPage-DhLUsUhd-Cb0G0I2o.js} +1 -1
  43. package/dist/assets/{ChargeCardListTable-DE72YU_i-Cgx4aKdo.js → ChargeCardListTable-DE72YU_i-CnPve3es.js} +1 -1
  44. package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--Bfhj07GO.js → ChargeCardPaymentHistoryPage-CbGR18s--D1FALKZp.js} +1 -1
  45. package/dist/assets/{ChargeCardPromoPage-CPpNh89o-B7oJlSNp.js → ChargeCardPromoPage-CPpNh89o-CvxWAl-t.js} +1 -1
  46. package/dist/assets/{ChargeCardRoutes-HvRzXvjz.js → ChargeCardRoutes-B2VyUVyE.js} +1 -1
  47. package/dist/assets/{ChargeCardSetupPage-ITi25kUD-C8OGLAOo.js → ChargeCardSetupPage-ITi25kUD-DQrLuHzm.js} +1 -1
  48. package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-Bqf8iiVh.js → ChargeCardStatementsPage-CTJc1BCc-B3iOfWLi.js} +1 -1
  49. package/dist/assets/{CheckDepositDrawerPage-BrzeSj-3-BiABNIOO.js → CheckDepositDrawerPage-BrzeSj-3-qP1HtOIM.js} +1 -1
  50. package/dist/assets/{CollapsableReportTable-CDEe9s_E-C_oaF72K.js → CollapsableReportTable-CDEe9s_E-BVFWKHUA.js} +1 -1
  51. package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-BbMqIHn4.js → CompanyOfficerDetailsSection-BaPhFsLx-DHUewusV.js} +1 -1
  52. package/dist/assets/{CompanyPassportCard-B9ymV6Az-BunSwLXV.js → CompanyPassportCard-B9ymV6Az-CvyAeev5.js} +1 -1
  53. package/dist/assets/{CompanyPassportPage-BQ68t7oK--72XszNt.js → CompanyPassportPage-BQ68t7oK-BgIAIBvG.js} +1 -1
  54. package/dist/assets/{CompanyPassportScreen-B9qTxVsv.js → CompanyPassportScreen-UiOT42U6.js} +1 -1
  55. package/dist/assets/{CompleteProfile-C5n9b8gQ-BGdWCltL.js → CompleteProfile-C5n9b8gQ-BqfKsPPd.js} +1 -1
  56. package/dist/assets/{ConfettiBurst-BizTW0hz-CTQBBE5b.js → ConfettiBurst-BizTW0hz-BTsH0Adk.js} +1 -1
  57. package/dist/assets/{ConnectionAuthScreen-CyqiWQ_E.js → ConnectionAuthScreen-hHSL4PoV.js} +1 -1
  58. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-BsgBpeqj.js → ConstrainedInnerElement-BeIpAPjB-2qMgM4hb.js} +1 -1
  59. package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-9lRrsge2.js → CreateOrEditVendorPage-BIfOA5Nr-DmMOi9Py.js} +1 -1
  60. package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-DToKME04.js → CreditCardPaymentDrawerPage-CCpS-31h-D2E09eId.js} +1 -1
  61. package/dist/assets/{CurrencySelectField-KvKyemY6-BTAXQVpc.js → CurrencySelectField-KvKyemY6-Bi0fspzF.js} +1 -1
  62. package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-BOdglKaR.js → CustomerOnboardingActivationPage-6VlMI4oY-C6UkeafC.js} +1 -1
  63. package/dist/assets/CustomerOnboardingAuthScreen-DMW5eYly.js +1 -0
  64. package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-p4P1_J3p.js +1 -0
  65. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-Bbf8x6S7.js → CustomerOnboardingDetailPageSkeleton-BzbZb27J-BjFDDxCU.js} +1 -1
  66. package/dist/assets/{CustomerOnboardingNoStepsPage-CWF_00EM-BnqhwetY.js → CustomerOnboardingNoStepsPage-CWF_00EM-BKydcoC-.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingPage-DkW66A-p-mjPzi4YN.js → CustomerOnboardingPage-DkW66A-p-CqCCkCYq.js} +1 -1
  68. package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-CvaQ2DPj.js → CustomerOnboardingProductSuitePage-Ba0yotpP-B65VLjH4.js} +1 -1
  69. package/dist/assets/{CustomerOnboardingRoutes-BMZ34WsY.js → CustomerOnboardingRoutes-BbuQETSm.js} +1 -1
  70. package/dist/assets/{Dashboard-bX3cWkmP-C6SjsI37.js → Dashboard-bX3cWkmP-D2iKKw2J.js} +1 -1
  71. package/dist/assets/{DashboardReportPage-DuZ4d4CE-BrQWIXDX.js → DashboardReportPage-DuZ4d4CE-Cp1XRSMC.js} +1 -1
  72. package/dist/assets/{DashboardRoutes-BbIXO7iZ.js → DashboardRoutes-CXkTMDXA.js} +1 -1
  73. package/dist/assets/{DashboardSidebarBackgroundAnimation-UV2CZToG-CJzaFyVR.js → DashboardSidebarBackgroundAnimation-UV2CZToG-BePjXuRd.js} +1 -1
  74. package/dist/assets/{DefaultTenantHome-x3GPonXU.js → DefaultTenantHome-DAGhRU2p.js} +1 -1
  75. package/dist/assets/{DepositAccTransactionItem-BY_OvuKg-BLaTgMIz.js → DepositAccTransactionItem-BY_OvuKg-BV-rFk5q.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionListPage-a__bpCOB-DEu6_Tp1.js → DepositAccTransactionListPage-a__bpCOB-CF9PDDNQ.js} +1 -1
  77. package/dist/assets/{DomesticWireDetailScreen-Cijy0Efi.js → DomesticWireDetailScreen-DacvZAfq.js} +1 -1
  78. package/dist/assets/{DomesticWireDetailsPage-BumMT4QM-CYj_JgcI.js → DomesticWireDetailsPage-BumMT4QM-xDzQX0lF.js} +1 -1
  79. package/dist/assets/{DownloadOverlay-DqiL3-FB-DFUDhoKK.js → DownloadOverlay-DqiL3-FB-DATHjVq3.js} +1 -1
  80. package/dist/assets/{DrawerPage-CaG-xx5d-5p8e_YBN.js → DrawerPage-CaG-xx5d-DCOdzFu5.js} +1 -1
  81. package/dist/assets/{DrawerScreen-DVazDF-l.js → DrawerScreen-B1Tmjk6I.js} +1 -1
  82. package/dist/assets/{EditPeoplePage-BcsdEp_d-DFKIh_fD.js → EditPeoplePage-BcsdEp_d-83JmqDcO.js} +1 -1
  83. package/dist/assets/{EditReimbursementDetailPage-DNUmwdsH-CG4gk9wM.js → EditReimbursementDetailPage-DNUmwdsH-BwDh21om.js} +1 -1
  84. package/dist/assets/{EntityDetailPage-DtX5TjBc-BEQz1Hbt.js → EntityDetailPage-DtX5TjBc-C1gOmTYV.js} +1 -1
  85. package/dist/assets/{EntityDetailRoutes-SleakL8l.js → EntityDetailRoutes-DH6Oay7j.js} +1 -1
  86. package/dist/assets/{EntitySummarySection-LEA5m6mN-Dwg0kUjR.js → EntitySummarySection-LEA5m6mN-COsxmiXN.js} +1 -1
  87. package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-COPPJr9M.js → ExpenseAutomationOverviewPage-Dmhn7gfp-DRKfvdpQ.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationPage-B8C4BxoV-n_yUZYRj.js → ExpenseAutomationPage-B8C4BxoV-DDvaiJ6I.js} +1 -1
  89. package/dist/assets/{ExpenseAutomationRoutes-B_snNt3h.js → ExpenseAutomationRoutes-CVAejH_S.js} +1 -1
  90. package/dist/assets/{ExpressPayPage-C-nqret2-Cs-fZ8Mg.js → ExpressPayPage-C-nqret2-KetoqTaI.js} +1 -1
  91. package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-Cbu7pHbq.js → FeaturePreviewPage-BHjUZ7s6-CDfaoOXm.js} +1 -1
  92. package/dist/assets/{FeaturePreviewScreen-CsodJgmF.js → FeaturePreviewScreen-DqxtfQjE.js} +1 -1
  93. package/dist/assets/{FollowStepsSection-0eFMS0c5-DZBefIWn.js → FollowStepsSection-0eFMS0c5-BaucUfRt.js} +1 -1
  94. package/dist/assets/{GlobalReviewListPage-4eiopkzw-Cw7Qt1Gu.js → GlobalReviewListPage-4eiopkzw-B9-MVo2q.js} +1 -1
  95. package/dist/assets/{InformationCardStack-C7XJCUlh-Q3M0f8VA.js → InformationCardStack-C7XJCUlh-DjdOTgGS.js} +1 -1
  96. package/dist/assets/{InsightsCardStack-fBAbQwhK-B-D5ZqRY.js → InsightsCardStack-fBAbQwhK-Ben65oUn.js} +1 -1
  97. package/dist/assets/{InsightsSection-De9zu_me-CkgNcopq.js → InsightsSection-De9zu_me-BVBRSj8O.js} +1 -1
  98. package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8-DELKKZ32.js → IntegrationsSettingsPage-BD5jqAv8-jCqAB96Y.js} +1 -1
  99. package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-B1FpsHHY.js → InternationalWireSwiftDetailsPage-BftrE612-C1oqAYKw.js} +1 -1
  100. package/dist/assets/{InternationalWireVerificationPage-CDf7equc-Bv_Mlbyz.js → InternationalWireVerificationPage-CDf7equc-BWfDz-qh.js} +1 -1
  101. package/dist/assets/{InviteFormPage-E2igwKEh-i9Ejfzju.js → InviteFormPage-E2igwKEh-BfamEOA0.js} +1 -1
  102. package/dist/assets/{InvitePageListView-Cuq9dlgu-OdcePVjj.js → InvitePageListView-Cuq9dlgu-BswYJOcw.js} +1 -1
  103. package/dist/assets/{InvitePeoplePage-Db4P4ZEq-D2qC3MWl.js → InvitePeoplePage-Db4P4ZEq-D8yQs7Vc.js} +1 -1
  104. package/dist/assets/{InvoiceUploadSection-DYCjz9CI-kkT5494W.js → InvoiceUploadSection-DYCjz9CI-CGqj6KTI.js} +1 -1
  105. package/dist/assets/{IssueChargeCardPage-CK6fnO24-P9WUVudZ.js → IssueChargeCardPage-CK6fnO24-CZaBXPmq.js} +1 -1
  106. package/dist/assets/{LabeledAddressValue-Ma1WURjK-OaNz0PUE.js → LabeledAddressValue-Ma1WURjK-SOyeFnDb.js} +1 -1
  107. package/dist/assets/{LabeledAddressValueField-C6-hVsPb-BrwGoslB.js → LabeledAddressValueField-C6-hVsPb-Cx3qxpIQ.js} +1 -1
  108. package/dist/assets/{LabeledControlledCheckBoxField-CgZg0uOW-CR4JIvno.js → LabeledControlledCheckBoxField-CgZg0uOW-CRnqdJf1.js} +1 -1
  109. package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-DX3ttOa8.js → LabeledCountryMultiSelectField-sj8p7Rne-BB5IjdKT.js} +1 -1
  110. package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-CXgMt8c7.js → LabeledCreatableSingleSelectField-DUTQh416-C_C7TgJg.js} +1 -1
  111. package/dist/assets/{LabeledDocumentField-Bp9m-OrP-DsdEjHL5.js → LabeledDocumentField-Bp9m-OrP-BZJ1R-di.js} +1 -1
  112. package/dist/assets/{LabeledDropDownFormattedTextField-3-KekP79-Cwkv98QC.js → LabeledDropDownFormattedTextField-3-KekP79-BFouZsyb.js} +1 -1
  113. package/dist/assets/{LabeledEmailInputField-BRJyFvVd-kiNKCxOc.js → LabeledEmailInputField-BRJyFvVd-CLFwXbdl.js} +1 -1
  114. package/dist/assets/{LabeledNameField--saAep-_-DBD-AVmo.js → LabeledNameField--saAep-_-CReVVQpK.js} +1 -1
  115. package/dist/assets/{LabeledSingleSelectField-Ul4tlTiO-Den1ewqF.js → LabeledSingleSelectField-Ul4tlTiO-B5-cTLoa.js} +1 -1
  116. package/dist/assets/{LabeledText-DvzVOku6-CefkvW9I.js → LabeledText-DvzVOku6-C1r6b0lJ.js} +1 -1
  117. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-D-q2p9T4.js → LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-Dfj0gvkd.js} +1 -1
  118. package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-CVsIgZCg.js → LabeledZeniRolesDropDownField-kWC0ShEy-BPt5mqTD.js} +1 -1
  119. package/dist/assets/{LinkJETransactionPage-WufhDGDQ-BAvUkjof.js → LinkJETransactionPage-WufhDGDQ-CzSZY5Ji.js} +1 -1
  120. package/dist/assets/{LockCardPage-BBIVLYVD-D-wCiOvp.js → LockCardPage-BBIVLYVD-CLo11134.js} +1 -1
  121. package/dist/assets/{LowBalancePopup-ScEqPY9J-gzuIRHXd.js → LowBalancePopup-ScEqPY9J-wCMhmKTa.js} +1 -1
  122. package/dist/assets/{MagicLinkACHDetailsPage-C494txw0-C1bmf-0v.js → MagicLinkACHDetailsPage-C494txw0-B6Ad2Ian.js} +1 -1
  123. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CONBCbOQ-Bln_80Rn.js → MagicLinkDomesticWireDetailsPage-CONBCbOQ-BnDh5s_P.js} +1 -1
  124. package/dist/assets/{MagicLinkInternationalWireDetailsPage-fSY3JGpz-DK5kviAV.js → MagicLinkInternationalWireDetailsPage-fSY3JGpz-DQpa109r.js} +1 -1
  125. package/dist/assets/{MagicLinkRoutes-CmfDNM9F.js → MagicLinkRoutes-DGEyZyp5.js} +1 -1
  126. package/dist/assets/{MagicLinkSignInScreen-BFjmnsBM.js → MagicLinkSignInScreen-CeYyqoa0.js} +1 -1
  127. package/dist/assets/{MagicLinkSuccessPage-BDRXSAO4-BidmJipa.js → MagicLinkSuccessPage-BDRXSAO4-Te4RRaTi.js} +1 -1
  128. package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-TyHn4cte.js → MagicLinkTitleSection-ZnbKPIvJ-C28UB4ql.js} +1 -1
  129. package/dist/assets/{MailingDetailsSection-DZT7JPlI-BJWdOrL7.js → MailingDetailsSection-DZT7JPlI-C38hqmub.js} +1 -1
  130. package/dist/assets/{MobileAppDrawer-CDJXGCc5.js → MobileAppDrawer-B2Fzw8F_.js} +1 -1
  131. package/dist/assets/{MoreMenuButton-CJue6xR9-BbSipzeZ.js → MoreMenuButton-CJue6xR9-DaOmUQCK.js} +1 -1
  132. package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-CaNC5sNf.js → MyBankConnectionsSettingsPage-aQDVaEG1-BQj6U5VD.js} +1 -1
  133. package/dist/assets/{MyPendingActivationChargeCardListPage-BJrk56oA-6BRLJ-N-.js → MyPendingActivationChargeCardListPage-BJrk56oA-a4lk-FRm.js} +1 -1
  134. package/dist/assets/{MyProfileSettingsPage-L9WuP6HZ-Db8rdNHA.js → MyProfileSettingsPage-L9WuP6HZ-D4wjrOZn.js} +1 -1
  135. package/dist/assets/{NavBarWithPicker-zmvBmWS1-BJLXNi9F.js → NavBarWithPicker-zmvBmWS1-C1LKFsDL.js} +1 -1
  136. package/dist/assets/{NavigationArrow-D26UG3p--4hBtDCeO.js → NavigationArrow-D26UG3p--CCqiziIA.js} +1 -1
  137. package/dist/assets/{NavigationDots-Bv4tBDN3-Bbc9Y5nB.js → NavigationDots-Bv4tBDN3-CX4VVQFS.js} +1 -1
  138. package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-CZ-KVTn5.js → NewGlobalMerchantPage-vOn2O6B9-BmOnDaTo.js} +1 -1
  139. package/dist/assets/{NoDataChart-CgT19fV7-YzA74zXg.js → NoDataChart-CgT19fV7-BnUaWo2A.js} +1 -1
  140. package/dist/assets/{NoDataTable-CPjJmo4s-DC_mvjeS.js → NoDataTable-CPjJmo4s-BDfqEXQj.js} +1 -1
  141. package/dist/assets/{NotFoundPage-CP2i3FTm-g8WrWuym.js → NotFoundPage-CP2i3FTm-DrcRl_rx.js} +1 -1
  142. package/dist/assets/{NotFoundScreen-C-f3wZff.js → NotFoundScreen-BBemVqe2.js} +1 -1
  143. package/dist/assets/{NotificationRoutes-Dg3XIX9Z.js → NotificationRoutes-U-LaNI42.js} +1 -1
  144. package/dist/assets/{NotificationSettingsPage-CT9Dnb03-CCebCFV1.js → NotificationSettingsPage-CT9Dnb03-Dm7KyS7f.js} +1 -1
  145. package/dist/assets/{NotificationsListConfig-Bn1zmx6b-DJcpP8xc.js → NotificationsListConfig-Bn1zmx6b-CgwI3kB8.js} +1 -1
  146. package/dist/assets/{NotificationsPage-DDwdR_Jq-tej2yJGV.js → NotificationsPage-DDwdR_Jq-CLxtwJ7_.js} +1 -1
  147. package/dist/assets/{OpExByVendorPage-DukFYlqO-CYuzPdO5.js → OpExByVendorPage-DukFYlqO-DLkue9kB.js} +1 -1
  148. package/dist/assets/{OverlayContainerPage-D4QU0p4o-DLRAVdMQ.js → OverlayContainerPage-D4QU0p4o-C-Icci7k.js} +1 -1
  149. package/dist/assets/{PandLWithForecastPage-Bgflh9Om-c5nThMSc.js → PandLWithForecastPage-Bgflh9Om-BLh8XrcC.js} +1 -1
  150. package/dist/assets/{PandLWithForecastRoutes-C5n-QYrM.js → PandLWithForecastRoutes-D-HhWNvF.js} +1 -1
  151. package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-CdhcYMbE.js → PaymentAccountSetupBillingAddressSection-JPO-rPAd-Dmaxec0g.js} +1 -1
  152. package/dist/assets/{PeoplePage-CDvKreQl-CENmGC_v.js → PeoplePage-CDvKreQl-Br9fXMF2.js} +1 -1
  153. package/dist/assets/{PeopleRoutes-B8sI0j_D.js → PeopleRoutes-Dq51UjI9.js} +1 -1
  154. package/dist/assets/{PerformanceRoutes-WZ7erXWO.js → PerformanceRoutes-cKruQlcS.js} +1 -1
  155. package/dist/assets/{Preview-Qum01O_7.js → Preview-B_UHWYM5.js} +1 -1
  156. package/dist/assets/{ProductsCarousel-7R3cvGiS-CXIq3yeY.js → ProductsCarousel-7R3cvGiS-DmQ2H6G4.js} +1 -1
  157. package/dist/assets/{PromoBaseCards-DdCMZIc7-DUsRLuwv.js → PromoBaseCards-DdCMZIc7-Df8cZl94.js} +1 -1
  158. package/dist/assets/{QBOConnectionDialog-Ca36jKz2-VzJ-tNft.js → QBOConnectionDialog-Ca36jKz2-DAMkmB7c.js} +1 -1
  159. package/dist/assets/{QBOConnectionScreen-BKn1bsKK.js → QBOConnectionScreen-JiiEAGy2.js} +1 -1
  160. package/dist/assets/{QBOSetupSection-CzBfIVqR-BsH0kNj1.js → QBOSetupSection-CzBfIVqR-CbTARgMf.js} +1 -1
  161. package/dist/assets/{ReferralListScreen-CLDDODhh.js → ReferralListScreen-CSsSh4ih.js} +1 -1
  162. package/dist/assets/{ReimbursementApprovalRoutes-BzZGabOs.js → ReimbursementApprovalRoutes-CVWnCLDW.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-BF8arjsj.js → ReimbursementApprovalRuleDetailPage-DUVSGQJ6-DvpCvtrE.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DgkaZC29.js → ReimbursementApprovalRuleDetailScreen-DZcx_Ou3.js} +1 -1
  165. package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-Bhu7VNJX.js → ReimbursementApprovalRulesPage-B48x1gPM-DxxLWTnS.js} +1 -1
  166. package/dist/assets/{ReimbursementDetailPage-oIC9QEyF-BYQFBAjr.js → ReimbursementDetailPage-oIC9QEyF-DlTQsBwh.js} +1 -1
  167. package/dist/assets/{ReimbursementPromoPage-BKgsJieE-BqeZtzWt.js → ReimbursementPromoPage-BKgsJieE-C2_bC473.js} +1 -1
  168. package/dist/assets/{ReimbursementRoutes-DxWYRF54.js → ReimbursementRoutes-Djc8hIjc.js} +1 -1
  169. package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-C3cbeaxi.js → ReimbursementSetUpPage-B_c-ZgFT-BBt2uEqx.js} +1 -1
  170. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CeyGWbKR-Bg0aREFm.js → ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CZtSd4TM.js} +1 -1
  171. package/dist/assets/{ReloadCard-DKGn1uxF-BBMNpGcO.js → ReloadCard-DKGn1uxF-CkrmOtQv.js} +1 -1
  172. package/dist/assets/{ReportTableViewSelector-CXDvZEbR-Cuxyf1PL.js → ReportTableViewSelector-CXDvZEbR-B4WtL-_p.js} +1 -1
  173. package/dist/assets/{ReportsPage-BoUyXSBC-B1CIrnsP.js → ReportsPage-BoUyXSBC-D_vUbcSy.js} +1 -1
  174. package/dist/assets/{ReportsRoutes-PkdA0G8P.js → ReportsRoutes-tnBiH82P.js} +1 -1
  175. package/dist/assets/{RevenueChart-SvdhwBcE-BdTQ1klG.js → RevenueChart-SvdhwBcE-DFVZ2SH4.js} +1 -1
  176. package/dist/assets/{ReviewDetailsPage-tT1l4R2r-P7Hp1_9i.js → ReviewDetailsPage-tT1l4R2r-DKl8wtRU.js} +1 -1
  177. package/dist/assets/{ReviewOverlay-BoM41t8W-CtjlqWcE.js → ReviewOverlay-BoM41t8W-Tjo8TsbC.js} +1 -1
  178. package/dist/assets/{RewardsRoutes-iOGCALA_.js → RewardsRoutes-DS51i8ZJ.js} +1 -1
  179. package/dist/assets/{RoleWithToolTip-C8x5yXaK-CKUn0-uO.js → RoleWithToolTip-C8x5yXaK-oTqAGBzT.js} +1 -1
  180. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bkp0mCOn-CM1N9pbH.js → ScheduleDetailsFixedAssetsPage-Bkp0mCOn-NjexzQQI.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsPage-Dg9rYJbn-D2Q_4uuS.js → ScheduleDetailsPage-Dg9rYJbn-mJi37FRF.js} +1 -1
  182. package/dist/assets/{ScheduleSequenceTable-J6Eja8XA-CqmKdbDZ.js → ScheduleSequenceTable-J6Eja8XA-uTDNIyeO.js} +1 -1
  183. package/dist/assets/{ScreenRoutes-BjC7YyGq.js → ScreenRoutes-DvoBFpYl.js} +2 -2
  184. package/dist/assets/{SetUpAccountSection-sfIB1h4i-BlFfIjSJ.js → SetUpAccountSection-sfIB1h4i-OQRP6w_s.js} +1 -1
  185. package/dist/assets/{SettingsRoutes-BNSu8ey7.js → SettingsRoutes-_PBfx_CH.js} +1 -1
  186. package/dist/assets/{SetupPagesScreen-dWvv8Vkm.js → SetupPagesScreen-Bjv1_530.js} +1 -1
  187. package/dist/assets/{SignIn-Cu2nzuEC-W7neZnzv.js → SignIn-Cu2nzuEC-CgFcNFK3.js} +1 -1
  188. package/dist/assets/{SignInScreen-B2DjBagP.js → SignInScreen-CCXIdR_f.js} +1 -1
  189. package/dist/assets/{SignOutScreen-DOoQWNkA.js → SignOutScreen-nUR_nQi4.js} +1 -1
  190. package/dist/assets/{SpendManagementListViewPage-9V9u1jPF-CNmMfdC5.js → SpendManagementListViewPage-9V9u1jPF-CAhShlf6.js} +3 -3
  191. package/dist/assets/{SpendManagementPerTabPage-COvEPq7V-BfGw3h9d.js → SpendManagementPerTabPage-COvEPq7V-Enwnkp6K.js} +1 -1
  192. package/dist/assets/{SpendManagementSection-dT-N4bSQ-VqvaACUn.js → SpendManagementSection-dT-N4bSQ-BU7QcxyK.js} +1 -1
  193. package/dist/assets/{StatementItem-g5tfNBjV-DCaidCDa.js → StatementItem-g5tfNBjV-B8DjDGkB.js} +1 -1
  194. package/dist/assets/{StatementsPage-DaFrVUeK-BW2Dp2V6.js → StatementsPage-DaFrVUeK-Bb78Acqy.js} +1 -1
  195. package/dist/assets/{StatusSwitcher-CaoFw0cf-Ch4dQfH4.js → StatusSwitcher-CaoFw0cf-BSUpAcCG.js} +1 -1
  196. package/dist/assets/{SubTabSwitcher-zrkVj1aP-D6VIyY-Z.js → SubTabSwitcher-zrkVj1aP-kI_QH-yK.js} +1 -1
  197. package/dist/assets/{SuccessAnimation-oz7yQ6H3-DCH4pSDl.js → SuccessAnimation-oz7yQ6H3-mzE9epVx.js} +1 -1
  198. package/dist/assets/{SummaryCard-B9wqNSwM-BQORweBl.js → SummaryCard-B9wqNSwM-BiOPMjla.js} +1 -1
  199. package/dist/assets/{TaskDetailPage-044JwAvz-BsxB5wXt.js → TaskDetailPage-044JwAvz-CIchaLt5.js} +1 -1
  200. package/dist/assets/{TaskListScreen-COe20neh.js → TaskListScreen-BTd0K2Ah.js} +1 -1
  201. package/dist/assets/{TaskManagementPage-dAK9tl2b-DpxnMG8s.js → TaskManagementPage-dAK9tl2b-B8eIax2u.js} +1 -1
  202. package/dist/assets/{TaskRoutes-CqUuXVTM.js → TaskRoutes-C34_uNkE.js} +1 -1
  203. package/dist/assets/{TimeRangeSwitcher-r1TNqVRb-DDWjaMZm.js → TimeRangeSwitcher-r1TNqVRb-ca11ciDj.js} +1 -1
  204. package/dist/assets/{TimeframeSwitcher-DHfHCTa4-DIsvW45z.js → TimeframeSwitcher-DHfHCTa4-CRY0pI2L.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcherWithToggle-DvBvguRl-DJysAVHF.js → TimeframeSwitcherWithToggle-DvBvguRl-zevKhD94.js} +1 -1
  206. package/dist/assets/{TopExCard-BUjnGDUB-ttJkE96A.js → TopExCard-BUjnGDUB-HxwM-fNF.js} +1 -1
  207. package/dist/assets/{TopExDetailPage-CNDkfc3u-eQOjfT63.js → TopExDetailPage-CNDkfc3u-IVplKWSE.js} +1 -1
  208. package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-B9afzw67.js → TransactionActivityLogPage-kSQqJVpX-Dthtq0jn.js} +1 -1
  209. package/dist/assets/{TransactionDetailPage-f7vWtXWL-BHkxNNoi.js → TransactionDetailPage-f7vWtXWL-DFjYfEw-.js} +1 -1
  210. package/dist/assets/{TransactionDetailRoutes-CFxJlCDv.js → TransactionDetailRoutes-D0IUp-c0.js} +1 -1
  211. package/dist/assets/{TransactionDetailScreen-RMm3yh3q.js → TransactionDetailScreen-DuZvqtgf.js} +1 -1
  212. package/dist/assets/{TransactionList-3-mUZOsw-BRm-0gwi.js → TransactionList-3-mUZOsw-kAZ-qL0T.js} +1 -1
  213. package/dist/assets/{TransactionListBig-Bx_Rm9ho-BW3qg5px.js → TransactionListBig-Bx_Rm9ho-Du7QkIGC.js} +1 -1
  214. package/dist/assets/{TransactionListPage-q6x4_jni-Ck3BfjqI.js → TransactionListPage-q6x4_jni-D2QSW9vu.js} +1 -1
  215. package/dist/assets/{TransactionListRoutes-FdD6hwPS.js → TransactionListRoutes-PB1J2m8T.js} +1 -1
  216. package/dist/assets/{TransactionVendorDetailPage-MjSH5hfq-AIc-njlZ.js → TransactionVendorDetailPage-MjSH5hfq-BRDls23z.js} +1 -1
  217. package/dist/assets/{TransferDrawerPage-BayVa6po-DzuT5ckv.js → TransferDrawerPage-BayVa6po-u89zHtOp.js} +1 -1
  218. package/dist/assets/{TreasuryOverviewPage-CuqWmrO5-DQP2rVmX.js → TreasuryOverviewPage-CuqWmrO5-Duo1If9V.js} +1 -1
  219. package/dist/assets/{TreasuryPromoPage-BCjz1EKX-HfD9h1oo.js → TreasuryPromoPage-BCjz1EKX-9FM2wcwv.js} +1 -1
  220. package/dist/assets/{TreasuryRoutes-SUWjRFNC.js → TreasuryRoutes-BFHIVJGR.js} +1 -1
  221. package/dist/assets/{TreasuryStatementsPage-CGr00SXF-CDKxxWlC.js → TreasuryStatementsPage-CGr00SXF-CPBafn5H.js} +1 -1
  222. package/dist/assets/{TreasuryTaxLetterPage-D9_qnlK4-B94LHF1S.js → TreasuryTaxLetterPage-D9_qnlK4-BmLnB6xa.js} +1 -1
  223. package/dist/assets/{TrendChart-JTOG0a7B-BP3jqykN.js → TrendChart-JTOG0a7B-B1HzEifS.js} +1 -1
  224. package/dist/assets/{TrendWithTransactions-CTJhTpAM-B82CLfKh.js → TrendWithTransactions-CTJhTpAM-FxLucl6g.js} +1 -1
  225. package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-CyjKlDmg.js → UncategorizedAccountsMappingPage-TGKYpC5A-DrDVb8s-.js} +1 -1
  226. package/dist/assets/{UnitIntegrationPage-mt2IjA5X-CV4KfkCa.js → UnitIntegrationPage-mt2IjA5X-B0h7UR57.js} +1 -1
  227. package/dist/assets/{UploadAdditionalDocumentOverlay-DZfpwE5J-BKhXo9Nh.js → UploadAdditionalDocumentOverlay-DZfpwE5J-BZwjrrpj.js} +1 -1
  228. package/dist/assets/{Vendor2FAPopup-DAOf5cJD-CIUFbRo1.js → Vendor2FAPopup-DAOf5cJD-GFzHEit0.js} +1 -1
  229. package/dist/assets/{VendorACHDetailsPage-CCOupiSZ-DAoMIzt9.js → VendorACHDetailsPage-CCOupiSZ-BPHL9d4l.js} +1 -1
  230. package/dist/assets/{VendorDetailPage-DufNphGD-BCVjx7rq.js → VendorDetailPage-DufNphGD-DqlByCd7.js} +1 -1
  231. package/dist/assets/{VendorDomesticWireDetailsPage-BayV34Rt-DE4GVLFX.js → VendorDomesticWireDetailsPage-BayV34Rt-Du-36wGx.js} +1 -1
  232. package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-D0wpTO-8.js → VendorFiling1099EditablePage-CRnO7Ubw-CSnvYMK9.js} +1 -1
  233. package/dist/assets/{VendorFirstReviewPage-DA0EL4RJ-H5XWEMm0.js → VendorFirstReviewPage-DA0EL4RJ-CKfw2PVJ.js} +1 -1
  234. package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-DWZVbqks.js → VendorInternationalWireDetailsPage-HUtNyn9Z-C58PYE3l.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DRVMUeXi-C6tRB2gd.js → VendorInternationalWireSwiftDetailsPage-DRVMUeXi-ln7X-i9Z.js} +1 -1
  236. package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-DANPCbwg.js → VendorsAccountsSection-D6Qa1zf9-CVqHH4cq.js} +1 -1
  237. package/dist/assets/{VendorsRoutes-BVCRqCEG.js → VendorsRoutes-D3omEpvR.js} +1 -1
  238. package/dist/assets/{VerifyDevice-B6B_nk3v-DJK02mA1.js → VerifyDevice-B6B_nk3v-7J7PFtZ-.js} +1 -1
  239. package/dist/assets/{VideoPlayer-BRAgZThr-DohfH4SH.js → VideoPlayer-BRAgZThr-BbqnCIc-.js} +1 -1
  240. package/dist/assets/{VideoPopup-C_SkBI9U-BZBvhjwG.js → VideoPopup-C_SkBI9U-BL3_M3X0.js} +1 -1
  241. package/dist/assets/{WiseConfirmationScreen-DPzL3Nm5.js → WiseConfirmationScreen-DvushDs-.js} +1 -1
  242. package/dist/assets/{ZeniAccountDetailPage-Dp-eo-Vq-COZCEmi9.js → ZeniAccountDetailPage-Dp-eo-Vq-B3WRlZyy.js} +1 -1
  243. package/dist/assets/{ZeniAccountListViewPage-S-XmAYqD-D7H8v3r1.js → ZeniAccountListViewPage-S-XmAYqD-BHUjzyQE.js} +1 -1
  244. package/dist/assets/{ZeniAccountNavBarPieces-DhjBxfEr-Cs-gaW1N.js → ZeniAccountNavBarPieces-DhjBxfEr-BkpO-_U2.js} +1 -1
  245. package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-oZ6IBRNP.js → ZeniAccountPromoPage-BgYCHYLO-g5oLmJuT.js} +1 -1
  246. package/dist/assets/{ZeniAccountRoutes-47ve1PwB.js → ZeniAccountRoutes-JNlaxrz8.js} +1 -1
  247. package/dist/assets/{ZeniAccountSetupPage-CvnIMdcY-dKy7tH_r.js → ZeniAccountSetupPage-CvnIMdcY-BSUOWmK4.js} +1 -1
  248. package/dist/assets/{ZeniAccountStatementScreen-BpjEIKgA.js → ZeniAccountStatementScreen-Df6Ut17b.js} +1 -1
  249. package/dist/assets/{ZeniAvatar-CwHVUcMc-C16MROkP.js → ZeniAvatar-CwHVUcMc-CqvMhhIi.js} +1 -1
  250. package/dist/assets/{ZeniCopyright-BlLvlGZV-DW5yyzHt.js → ZeniCopyright-BlLvlGZV-D_cpkbcT.js} +1 -1
  251. package/dist/assets/{ZeniDatePicker-DCurorsW-CYLvWUcS.js → ZeniDatePicker-DCurorsW-D16AsniI.js} +1 -1
  252. package/dist/assets/{ZeniTransferAmountSlider-BNYgPwHs-DSQbkcUQ.js → ZeniTransferAmountSlider-BNYgPwHs-rAtxCD8c.js} +1 -1
  253. package/dist/assets/{accountMappingHelper-C-aWzSgw.js → accountMappingHelper-DaPjToYl.js} +1 -1
  254. package/dist/assets/{add-to-wallet-DgdBD8_G-DXAWHlrW.js → add-to-wallet-DgdBD8_G-DvLI4jaw.js} +1 -1
  255. package/dist/assets/{analytics-BmnY7Of2.js → analytics-BuacLKrs.js} +1 -1
  256. package/dist/assets/{analyticsHelper-Bh2orC3q.js → analyticsHelper-CHcSxJdc.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CYr5V2MV-y-wB64MS.js → analyticsHelper-CYr5V2MV-DP0yfEiC.js} +1 -1
  258. package/dist/assets/{arrow-south-east-round-PEovUgvH-D1I1BAuQ.js → arrow-south-east-round-PEovUgvH-90lG1L3u.js} +1 -1
  259. package/dist/assets/{auto-transfer-rule-mbafm5D3-r5N7lB7E.js → auto-transfer-rule-mbafm5D3-CL7RFrAP.js} +1 -1
  260. package/dist/assets/{avatar-Dz7aEm3d-CWSJfcBr.js → avatar-Dz7aEm3d--QTMwhPr.js} +1 -1
  261. package/dist/assets/{calculateSize-Bn1NnCzV-TroXRAr5.js → calculateSize-Bn1NnCzV-SxKA7C8w.js} +1 -1
  262. package/dist/assets/{chartTypes-40RenddT-Bnggt3nP.js → chartTypes-40RenddT-D0AbAyeZ.js} +1 -1
  263. package/dist/assets/{clock-CJkylEKt-CcT-fN9H.js → clock-CJkylEKt-Cp3w47l8.js} +1 -1
  264. package/dist/assets/{common-DEB71I4X-BP6KIcNH.js → common-DEB71I4X-D2h2kF8O.js} +1 -1
  265. package/dist/assets/{commonDimensions-BMnB1-xU-1VIWnl3s.js → commonDimensions-BMnB1-xU-CuHaP4qo.js} +1 -1
  266. package/dist/assets/{commonTypes-DsWS6Ccc-BDxz0JyY.js → commonTypes-DsWS6Ccc-D27m4dJL.js} +1 -1
  267. package/dist/assets/{core-B3AUZ034.js → core-twTS7Cne.js} +1 -1
  268. package/dist/assets/{dash.all.min-CqgOQ8Xc.js → dash.all.min-BOiJW2p5.js} +1 -1
  269. package/dist/assets/{decodeURIComponentSafe-D4h--dTH.js → decodeURIComponentSafe-B0iGosVv.js} +1 -1
  270. package/dist/assets/{detailCommon-CrcyqWtZ-BELajPOa.js → detailCommon-CrcyqWtZ-Co4x3-EY.js} +1 -1
  271. package/dist/assets/{dnd-mmN84DSl.js → dnd-BWijMgNi.js} +1 -1
  272. package/dist/assets/{dollar-round-D18u7nlm-BWc-oi1O.js → dollar-round-D18u7nlm-CiBCyYiG.js} +1 -1
  273. package/dist/assets/{downloadPdf-CUUx8PWn-DMS-X4cm.js → downloadPdf-CUUx8PWn-B-oFkl1r.js} +1 -1
  274. package/dist/assets/{empty-ClYhFGkg.js → empty-BAMh3RJk.js} +1 -1
  275. package/dist/assets/{empty-DVr7EnEn.js → empty-BuEMRnA-.js} +1 -1
  276. package/dist/assets/{epic-CbXz6OFl.js → epic-Dx6vN-UO.js} +1 -1
  277. package/dist/assets/{filter-cZIFUNvj-CBkV_xVZ.js → filter-cZIFUNvj-CH_l3zIc.js} +1 -1
  278. package/dist/assets/{getLocaleForTenant-DD-EE4Du.js → getLocaleForTenant-CY5R0VDK.js} +1 -1
  279. package/dist/assets/{gift-box-Cmt9OgIZ-Cp742cB5.js → gift-box-Cmt9OgIZ-BCDDcFDZ.js} +1 -1
  280. package/dist/assets/{graphic-no-data-l-DU4J8fDt-aEBiiMn8.js → graphic-no-data-l-DU4J8fDt-DVAyGHzA.js} +1 -1
  281. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DujNi495.js → graphic-no-data-net-burn-l-CzmycA0m-DlMg8P68.js} +1 -1
  282. package/dist/assets/{handshake-BPg58FML-DXe8dYDO.js → handshake-BPg58FML-7TxvMz9v.js} +1 -1
  283. package/dist/assets/{helper-BMiMbXMj-DaIOHAer.js → helper-BMiMbXMj-B-wSFTz-.js} +1 -1
  284. package/dist/assets/{hyperlink-DQyCeXx2-CXNsIl9J.js → hyperlink-DQyCeXx2-DhYPEFJi.js} +1 -1
  285. package/dist/assets/{index-thVhxS1z.js → index-BYeMrBg9.js} +1 -1
  286. package/dist/assets/{index-CXU2FVzB.js → index-DO6IEWSk.js} +1 -1
  287. package/dist/assets/{index-D6tI4qS0.js → index-DoiSNwZH.js} +1 -1
  288. package/dist/assets/{index-D0KjvO9E.js → index-Mx2SsGnu.js} +1 -1
  289. package/dist/assets/{index-BtPm9NIK.js → index-k1doZNFg.js} +444 -444
  290. package/dist/assets/{index-DHw8aJ44.js → index-zkfIzc9c.js} +1 -1
  291. package/dist/assets/{lexical-Bg0iM57w.js → lexical-CZE2Lq-0.js} +1 -1
  292. package/dist/assets/{liveblocks-DFhc43aC.js → liveblocks-CM0QMS_I.js} +1 -1
  293. package/dist/assets/{lottie-BaQk2SMe.js → lottie-Bdr-9mLw.js} +1 -1
  294. package/dist/assets/{mapLoadingInProgressToTreeNode-DGnyXKBT-Wps1a9Kl.js → mapLoadingInProgressToTreeNode-DGnyXKBT-BSjhxbWc.js} +1 -1
  295. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-B4027zU8.js → mapSectionWithAcOnlyToTreeNode-BkPRWtaj-CxIv2d9v.js} +1 -1
  296. package/dist/assets/{mapSpacerToTreeNode-CvGdU9Ma-Cc1qVXN0.js → mapSpacerToTreeNode-CvGdU9Ma-oI33_r0x.js} +1 -1
  297. package/dist/assets/{mapTimeframeBalancesToTreeNode-BCOsOvxo-BX8RS135.js → mapTimeframeBalancesToTreeNode-BCOsOvxo-BejLDcnD.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-DIqYP3NK-DcYeE0sW.js → mapTimeframeBalancesToTreeNode-DIqYP3NK-CPJM42M2.js} +1 -1
  299. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-CrJ8hg5j.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-DquHI1rq.js} +1 -1
  300. package/dist/assets/{media-player-DZNXgAVG.js → media-player-DTa5D54u.js} +2 -2
  301. package/dist/assets/{money-2cg1MuG4-BI9DAoQY.js → money-2cg1MuG4-B6SZvN8P.js} +1 -1
  302. package/dist/assets/{mui-BHPGtaMB.js → mui-Bi07oTwe.js} +1 -1
  303. package/dist/assets/{page-detail-CWX5S47F-iWLSE6no.js → page-detail-CWX5S47F-y9rokQDc.js} +1 -1
  304. package/dist/assets/{page-summary-D7_VQHwN-BgG0ZQev.js → page-summary-D7_VQHwN-pIoT3Pmw.js} +1 -1
  305. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Cgco5JZt.js → panelSelectedMixin-CzfD5-Zs-Bh-ojoWH.js} +1 -1
  306. package/dist/assets/{pathToGoBack-Z7p6r6H4.js → pathToGoBack-Md2zV7uG.js} +1 -1
  307. package/dist/assets/{pdf-BC9fZG9d.js → pdf-emb33J2I.js} +3 -3
  308. package/dist/assets/{pdf-lib-BMom1oAq.js → pdf-lib-CILJewzg.js} +1 -1
  309. package/dist/assets/{plaid-Koifne5k.js → plaid-Dw_qIY4R.js} +1 -1
  310. package/dist/assets/{pusher-BdSpE7Mf.js → pusher-DynBuu5N.js} +1 -1
  311. package/dist/assets/{radio-default-CiSgisfh-nXNoiiEG.js → radio-default-CiSgisfh-GKL562Zm.js} +1 -1
  312. package/dist/assets/{react-DTD1FjkF.js → react-1mNX_DRd.js} +1 -1
  313. package/dist/assets/{react-NRHLHLBh.js → react-Ar6ZOtfZ.js} +1 -1
  314. package/dist/assets/{react-BpR3neXG.js → react-BL4qYNQl.js} +1 -1
  315. package/dist/assets/{react-BFPsGEjR.js → react-CHxjXjfJ.js} +3 -3
  316. package/dist/assets/{react-C1IHISvT.js → react-DiCJT7O0.js} +1 -1
  317. package/dist/assets/{react-yyp5ThFM.js → react-DvA2K4aW.js} +1 -1
  318. package/dist/assets/{react-CIV5YenX.js → react-Xs8hOk7X.js} +1 -1
  319. package/dist/assets/{react-VDSbRVm5.js → react-vzV2OwEE.js} +1 -1
  320. package/dist/assets/{recharts-DCahVeG0.js → recharts-CS0s98U8.js} +1 -1
  321. package/dist/assets/{routePaths-Dqvnjt0t.js → routePaths-DiyiibEL.js} +1 -1
  322. package/dist/assets/{sentry-DU2EcgXN.js → sentry-CytkDQe2.js} +1 -1
  323. package/dist/assets/{shield-DOlUxcFf-YrgbzvCT.js → shield-DOlUxcFf-CuS9M_ww.js} +1 -1
  324. package/dist/assets/{spend-limit-D6SyboD4-BIEmtKpL.js → spend-limit-D6SyboD4-DuCQ_jaT.js} +1 -1
  325. package/dist/assets/{toCOABalancesWithID-DkMGvlEt-Chva4nz-.js → toCOABalancesWithID-DkMGvlEt-DFgINRIk.js} +1 -1
  326. package/dist/assets/{toChartData-C6s-eBzE-xR7CEkgo.js → toChartData-C6s-eBzE-BfIZvn48.js} +1 -1
  327. package/dist/assets/{transaction-placeholder-CpOwZAMG-CNW_yHtL.js → transaction-placeholder-CpOwZAMG-DuWev16q.js} +1 -1
  328. package/dist/assets/{undo-b_3XZ5CX-BTtZXb5Z.js → undo-b_3XZ5CX-Cg47YjTI.js} +1 -1
  329. package/dist/assets/{unlock-BPWn2I5L-CYQ3BxxF.js → unlock-BPWn2I5L-DplIQ8y4.js} +1 -1
  330. package/dist/assets/{uploadAttachment-BlLqRIXe-CGlO_7vi.js → uploadAttachment-BlLqRIXe-B6ElpyTj.js} +1 -1
  331. package/dist/assets/{uploadReceipts-Dge0cNF1-CtZmuvXk.js → uploadReceipts-Dge0cNF1-Co75nE7C.js} +1 -1
  332. package/dist/assets/{url-DX7gND89.js → url-DlqX0g3J.js} +1 -1
  333. package/dist/assets/{url-Dqzk0kdF.js → url-wSyZyUAL.js} +1 -1
  334. package/dist/assets/{useDeviceId-BmcpsNHk.js → useDeviceId-CW9B9UlH.js} +1 -1
  335. package/dist/assets/{useInitialThreadRequest-QVhB5q5V.js → useInitialThreadRequest-1tDzaux1.js} +1 -1
  336. package/dist/assets/{useLongPress-GCK2COYQ-DY5WLHMQ.js → useLongPress-GCK2COYQ-DxXBKjrG.js} +1 -1
  337. package/dist/assets/{usp-line-BBd1wKwW-DNpFJb5T.js → usp-line-BBd1wKwW-DHy4exHr.js} +1 -1
  338. package/dist/assets/{utils-CPca4UDN.js → utils-CSjogEj5.js} +1 -1
  339. package/dist/assets/{withTransactionSidePanel-Dgn2a95s.js → withTransactionSidePanel-kYDF1Rc9.js} +1 -1
  340. package/dist/assets/{zeni-epic-state-Bnfd9FE6.js → zeni-epic-state-DyRbb6Q5.js} +3 -3
  341. package/dist/assets/{zeni-icon-only-Bl-Y4_od.js → zeni-icon-only-C6-rv1y7.js} +1 -1
  342. package/dist/index.html +1 -1
  343. package/package.json +1 -1
  344. package/dist/assets/CustomerOnboardingAuthScreen-CIAq5RQZ.js +0 -1
  345. package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-C6RxLb64.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as Pn,t as Bn,y as Rn,fy as zn,fz as Mn,fA as Nn,fB as Ln,bz as Fn,a7 as On,b as y,V as t,et as dt,eu as En,o as a,ev as _n,ew as Kn,ex as Wn,a4 as Se,ey as Zn,a6 as b,a_ as pt,aM as mt,cK as ut,bK as yt,bL as ht,bM as bt,fC as Un,fD as Vn,fE as Gn,fF as Xn,eD as j,fG as $,eF as A,eG as k,eC as Yn,j as gt,e as oe,eE as Lt,eM as Hn,eH as qn,eI as Jn,fH as Qn,fI as ea,a9 as ta,m as xt,bg as ve,fJ as na,fK as N,O as aa,u as s,K as ia,bp as la,fL as oa,a8 as ra,fM as sa,eN as ft,H as ca,cl as da,bB as pa,fN as wt,ar as ma,at as ua,l as ya,bi as Ft,cm as ha,fO as ba,x as Ot,r as ga,ap as xa,aR as fa,fP as wa,s as Ta}from"./index-BtPm9NIK.js";import{a as p}from"./sentry-DU2EcgXN.js";import{n as i}from"./mui-BHPGtaMB.js";import{_ as va}from"./liveblocks-DFhc43aC.js";import{bZ as Da,bG as Ia,b_ as ja,Fl as $a,bW as Aa,bX as ka,bs as Sa}from"./zeni-epic-state-Bnfd9FE6.js";import{o as Ca,t as Pa}from"./LowBalancePopup-ScEqPY9J-gzuIRHXd.js";import"./pdf-BC9fZG9d.js";import"./core-B3AUZ034.js";import"./lottie-BaQk2SMe.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./recharts-DCahVeG0.js";import"./utils-CPca4UDN.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]="15dea8be-0e17-4fa7-992a-957cdb0553e0",e._sentryDebugIdIdentifier="sentry-dbid-15dea8be-0e17-4fa7-992a-957cdb0553e0")}catch{}})();const Ba={formTitle:new ca("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:Ra,common:{noText:S,strings:{empty:d},currency:Tt,via:za,more:Ma,edit:Na},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:Et}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:La}}}}=aa.getLocalizedStrings(),Ie=Ra.visual.MMMDCommaYYYYformat,Pi=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:_t,isRealTimeApprovalEnabled:Kt,isInternationalPaymentShaVsOurEnabled:Wt,hasZeniAssistAccess:Zt,analytics:z,showMarkAsPaidButtonToCreator:Z,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Ut,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Yt,onAttachmentClick:Le,saveBillDetails:Ht,discardOutsideZeniPaymentData:qt,onBackClick:Fe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:en,onRefundPaymentClick:tn,initialOpenThreadRequest:U})=>{const l=Pn(),o=Bn(),Oe=Rn(),[nn,V]=p.useState(!1),[Ee,se]=p.useState(!1),[ce,de]=p.useState(!1),[_e,pe]=p.useState(!1),[an,me]=p.useState(!1),[Ke,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?zn:Mn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(ln);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[on,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:C}=Nn(T,"both",!1),f=Be&&h!=null,We=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Ln)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{ee(u),G(!1)},[ee,G]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!C&&(ee(ue.threadId),Q(null))},[ue,X,C,ee,Q]);const Ze=p.useRef(!1),[sn,cn]=p.useState(!1),dn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,cn(!0))});Fn({componentName:"bill.details",enabled:sn});const[M,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,Ve]=p.useState("approved"),[pn,Ge]=p.useState(!1),[mn,Xe]=p.useState(!1),[Ye,He]=p.useState(!1),qe=()=>Ge(!1),Je=On(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),q())},[e,q,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,un=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&Y?.code?Y:ae,L=Fa(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?un:Y?.code==null||ae?.code!="approved"&&Y.code!=="mark_as_paid"?ae:Y,he=e.transactionDetails?.vendor?.name,P=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},yn={onOkClick:()=>{V(!1),M.primaryButtonText===n.delete?Xt?.(e.isRecurring):M.title===n.cancelBillTitle?Me?.(e.isRecurring):M.title===n.cancelAndDeleteBillTitle||M.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):M.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{V(!1),de(!1)}},hn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},bn=()=>{const[r]=ga("ZeniAssist");return r!=null?t.jsx(xa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",F?.description??"",P?["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 B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],gn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,c={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),xn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,fn=c.paymentToBankAccount?.bankAccountNumber?c.paymentToBankAccount?.bankAccountNumber?.slice(c.paymentToBankAccount?.bankAccountNumber?.length-4):c.paymentType?.method?.includes("international")&&c.paymentToBankAccount?.bankAccountIban?c.paymentToBankAccount?.bankAccountIban?.slice(c.paymentToBankAccount?.bankAccountIban.length-4):"",wn=c.paymentToBankAccount?.bankAccountName!=null&&c.paymentToBankAccount?.bankAccountName!=""?c.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${c.paymentToBankAccount?.bankName} XXXX${fn}`,Tn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),le=e.transactionDetails?.billPayInfo!=null?Da(e.transactionDetails?.billPayInfo):void 0,vn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ia(ja(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,nt=dt(c?.paymentType?.method??"").replace("Same Day",""),Dn=(c?.paymentToBankAccount!=null||c?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(En,{paymentTypeLabel:nt,onClick:()=>Ge(!0),style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(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),fe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",jn=Zt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(fe||we)&&In===!1,Te=fe||we,$n=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,An=!$n&&(!et||D?.code==="processing"&&!P),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),H=$a(e.transactionDetails?.bulkProcessingDetail?.type),O=Aa(e.paymentMethodType?.method),kn=!H&&(E!=="processing"&&it||E==="processing"&&!P||E==="processing"&&lt||x&&O&&Pe),rt=()=>{Xe(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Sn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?_n(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,c.paymentDate):void 0,st=()=>{Ve("approved"),Ke===!0&&J(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ja,{windowSize:l,ref:ct,children:[t.jsx(Kn,{anchor:"right",open:pn,onClose:qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Wn,{companyName:Zn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:c.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:qe})}),t.jsxs(ni,{ref:dn.current,windowSize:l,children:[t.jsx(bi,{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:Oe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):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:Fe,"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:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):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:Fe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(ai,{windowSize:l,children:[Ke?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Pa,{onCancel:()=>{qt(),Xe(!1),Ye&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Ht(!0,Ye,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||ce?t.jsx(yt,{titleComponent:t.jsx(bt,{children:M.title}),descriptionComponent:t.jsx(ht,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:yn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oa(l,e):null}):null,an?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:hn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(li,{windowSize:l,children:[l!=="small"?t.jsxs(oi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&L!=null&&L.code==="deleted"||L?.value===Ce.tabsById.overdue?t.jsx(di,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Un,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Vn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ka(H,e,_),t.jsx(Gn,{sectionId:Xn,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),c.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ie.memo??S,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ii,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Cn=>Cn.id===r.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[be.length>1?t.jsx(ei,{windowSize:l,children:t.jsx(ti,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:B!=null?Se("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?xn(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(ri,{windowSize:l,children:[t.jsx(si,{children:n.total}),t.jsx(ci,{children:ge!=null?t.jsx(Yn,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,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"?Et.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:c.paymentType?.method!=null&&c.paymentType.method.includes(ka)&&Wt&&c.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:Hn(c.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_a(e.outsideZeniPaymentInfo):dt(c.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:c.paymentToBankAccount!=null?wn:c.paymentToPI!=null?c.paymentToPI.displayText:Tn,style:{width:"auto"},showEyeIcon:c.paymentToBankAccount!=null&&!!c.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||c.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=c?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?ha(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${c?.paymentToBankAccount?.bankRoutingNumberAch}, ${c?.paymentToBankAccount?.bankName}
1
+ import{J as Pn,t as Bn,y as Rn,fy as zn,fz as Mn,fA as Nn,fB as Ln,bz as Fn,a7 as On,b as y,V as t,et as dt,eu as En,o as a,ev as _n,ew as Kn,ex as Wn,a4 as Se,ey as Zn,a6 as b,a_ as pt,aM as mt,cK as ut,bK as yt,bL as ht,bM as bt,fC as Un,fD as Vn,fE as Gn,fF as Xn,eD as j,fG as $,eF as A,eG as k,eC as Yn,j as gt,e as oe,eE as Lt,eM as Hn,eH as qn,eI as Jn,fH as Qn,fI as ea,a9 as ta,m as xt,bg as ve,fJ as na,fK as N,O as aa,u as s,K as ia,bp as la,fL as oa,a8 as ra,fM as sa,eN as ft,H as ca,cl as da,bB as pa,fN as wt,ar as ma,at as ua,l as ya,bi as Ft,cm as ha,fO as ba,x as Ot,r as ga,ap as xa,aR as fa,fP as wa,s as Ta}from"./index-k1doZNFg.js";import{a as p}from"./sentry-CytkDQe2.js";import{n as i}from"./mui-Bi07oTwe.js";import{_ as va}from"./liveblocks-CM0QMS_I.js";import{bZ as Da,bG as Ia,b_ as ja,Fl as $a,bW as Aa,bX as ka,bs as Sa}from"./zeni-epic-state-DyRbb6Q5.js";import{o as Ca,t as Pa}from"./LowBalancePopup-ScEqPY9J-wCMhmKTa.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./recharts-CS0s98U8.js";import"./utils-CSjogEj5.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]="15dea8be-0e17-4fa7-992a-957cdb0553e0",e._sentryDebugIdIdentifier="sentry-dbid-15dea8be-0e17-4fa7-992a-957cdb0553e0")}catch{}})();const Ba={formTitle:new ca("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:Ra,common:{noText:S,strings:{empty:d},currency:Tt,via:za,more:Ma,edit:Na},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:Et}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:La}}}}=aa.getLocalizedStrings(),Ie=Ra.visual.MMMDCommaYYYYformat,Pi=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:_t,isRealTimeApprovalEnabled:Kt,isInternationalPaymentShaVsOurEnabled:Wt,hasZeniAssistAccess:Zt,analytics:z,showMarkAsPaidButtonToCreator:Z,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Ut,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Yt,onAttachmentClick:Le,saveBillDetails:Ht,discardOutsideZeniPaymentData:qt,onBackClick:Fe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:en,onRefundPaymentClick:tn,initialOpenThreadRequest:U})=>{const l=Pn(),o=Bn(),Oe=Rn(),[nn,V]=p.useState(!1),[Ee,se]=p.useState(!1),[ce,de]=p.useState(!1),[_e,pe]=p.useState(!1),[an,me]=p.useState(!1),[Ke,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?zn:Mn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(ln);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[on,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:C}=Nn(T,"both",!1),f=Be&&h!=null,We=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Ln)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{ee(u),G(!1)},[ee,G]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!C&&(ee(ue.threadId),Q(null))},[ue,X,C,ee,Q]);const Ze=p.useRef(!1),[sn,cn]=p.useState(!1),dn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,cn(!0))});Fn({componentName:"bill.details",enabled:sn});const[M,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,Ve]=p.useState("approved"),[pn,Ge]=p.useState(!1),[mn,Xe]=p.useState(!1),[Ye,He]=p.useState(!1),qe=()=>Ge(!1),Je=On(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),q())},[e,q,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,un=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&Y?.code?Y:ae,L=Fa(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?un:Y?.code==null||ae?.code!="approved"&&Y.code!=="mark_as_paid"?ae:Y,he=e.transactionDetails?.vendor?.name,P=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},yn={onOkClick:()=>{V(!1),M.primaryButtonText===n.delete?Xt?.(e.isRecurring):M.title===n.cancelBillTitle?Me?.(e.isRecurring):M.title===n.cancelAndDeleteBillTitle||M.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):M.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{V(!1),de(!1)}},hn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},bn=()=>{const[r]=ga("ZeniAssist");return r!=null?t.jsx(xa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",F?.description??"",P?["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 B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],gn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,c={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),xn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,fn=c.paymentToBankAccount?.bankAccountNumber?c.paymentToBankAccount?.bankAccountNumber?.slice(c.paymentToBankAccount?.bankAccountNumber?.length-4):c.paymentType?.method?.includes("international")&&c.paymentToBankAccount?.bankAccountIban?c.paymentToBankAccount?.bankAccountIban?.slice(c.paymentToBankAccount?.bankAccountIban.length-4):"",wn=c.paymentToBankAccount?.bankAccountName!=null&&c.paymentToBankAccount?.bankAccountName!=""?c.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${c.paymentToBankAccount?.bankName} XXXX${fn}`,Tn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),le=e.transactionDetails?.billPayInfo!=null?Da(e.transactionDetails?.billPayInfo):void 0,vn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ia(ja(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,nt=dt(c?.paymentType?.method??"").replace("Same Day",""),Dn=(c?.paymentToBankAccount!=null||c?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(En,{paymentTypeLabel:nt,onClick:()=>Ge(!0),style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(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),fe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",jn=Zt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(fe||we)&&In===!1,Te=fe||we,$n=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,An=!$n&&(!et||D?.code==="processing"&&!P),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),H=$a(e.transactionDetails?.bulkProcessingDetail?.type),O=Aa(e.paymentMethodType?.method),kn=!H&&(E!=="processing"&&it||E==="processing"&&!P||E==="processing"&&lt||x&&O&&Pe),rt=()=>{Xe(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Sn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?_n(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,c.paymentDate):void 0,st=()=>{Ve("approved"),Ke===!0&&J(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ja,{windowSize:l,ref:ct,children:[t.jsx(Kn,{anchor:"right",open:pn,onClose:qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Wn,{companyName:Zn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:c.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:qe})}),t.jsxs(ni,{ref:dn.current,windowSize:l,children:[t.jsx(bi,{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:Oe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):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:Fe,"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:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):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:Fe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(ai,{windowSize:l,children:[Ke?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Pa,{onCancel:()=>{qt(),Xe(!1),Ye&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Ht(!0,Ye,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||ce?t.jsx(yt,{titleComponent:t.jsx(bt,{children:M.title}),descriptionComponent:t.jsx(ht,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:yn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oa(l,e):null}):null,an?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:hn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(li,{windowSize:l,children:[l!=="small"?t.jsxs(oi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&L!=null&&L.code==="deleted"||L?.value===Ce.tabsById.overdue?t.jsx(di,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Un,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Vn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ka(H,e,_),t.jsx(Gn,{sectionId:Xn,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),c.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ie.memo??S,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ii,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Cn=>Cn.id===r.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[be.length>1?t.jsx(ei,{windowSize:l,children:t.jsx(ti,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:B!=null?Se("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?xn(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(ri,{windowSize:l,children:[t.jsx(si,{children:n.total}),t.jsx(ci,{children:ge!=null?t.jsx(Yn,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,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"?Et.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:c.paymentType?.method!=null&&c.paymentType.method.includes(ka)&&Wt&&c.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:Hn(c.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_a(e.outsideZeniPaymentInfo):dt(c.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:c.paymentToBankAccount!=null?wn:c.paymentToPI!=null?c.paymentToPI.displayText:Tn,style:{width:"auto"},showEyeIcon:c.paymentToBankAccount!=null&&!!c.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||c.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=c?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?ha(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${c?.paymentToBankAccount?.bankRoutingNumberAch}, ${c?.paymentToBankAccount?.bankName}
2
2
  ${De.achDetails.bankAccountNumber} ${c?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),c?.paymentToBankAccount==null&&c?.paymentToPI==null&&c?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ba,{paymentType:c?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Jn(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:qn(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(Qn,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ea,{amount:gn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Yt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:_t,signedInUserId:re?.userId,showRealTimeApproval:Kt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:Qt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor==null||ye||e.transactionDetails.isDeleted?null:t.jsx(ta,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:Z||x,showCancel:!Z&&x,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ue==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ve("rejected"),_!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ea(Z,ot),isLoading:Ue==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Z?rt:()=>{_!=null?J(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:Z?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ua,{children:t.jsxs(qa,{windowSize:l,children:[!H&&Ee?t.jsx(xt,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(K,{onClick:()=>{te({title:P?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:P?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E!=="processing"||P?null:t.jsx(K,{onClick:()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}),E==="processing"&&lt?t.jsx(K,{onClick:()=>{te({title:P?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:P?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&O&&Pe?t.jsx(K,{onClick:()=>{He(!0),rt()},"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(xt,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[fe?t.jsx(K,{onClick:()=>{z.trackRetryClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(K,{onClick:()=>{z.trackRefundClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ha,{windowSize:l,children:[jn===!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:xe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(bn,{}):t.jsx(Ga,{})})}):null,H||xe!==!0?null:t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(Ya,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Xa,{})})}),!H&&An===!0&&kn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ma,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:xe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Va,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(va,{id:v,children:t.jsx(na,{isDrawerOpen:on,allowComposer:!0,drawerTitle:La,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:Sn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>G(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Oe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(Sa(),"date")===!0?{value:Ce.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[x].color,bgColor:N[x].bgColor,borderColor:N[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Lt(g.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:x!=null?Se("0,0[.]00",x):S})]})]})},Ea=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,_a=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const W=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${x} ${za} ${W}`},Ka=(e,g,x)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(x!=null){const W=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",W)}`,description:x.replace("Low balance! ","")})}return null},Wa=i.div``,Za=i.div``,Ua=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1 +1 @@
1
- import{j as l}from"./pdf-BC9fZG9d.js";import{a as f}from"./sentry-DU2EcgXN.js";import{j,h as U,i as B,u as v,N as $,k as T,l as O,R as N,m as h}from"./core-B3AUZ034.js";import{cs as F,Km as A,K2 as b,t8 as I,t2 as L,t6 as w,sX as K,K4 as W,s_ as X,ta as q,t9 as E}from"./zeni-epic-state-Bnfd9FE6.js";import{y as k,je as P,jC as V,jX as z,l9 as G,k3 as _,la as H}from"./index-BtPm9NIK.js";import"./mui-BHPGtaMB.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-DgkaZC29.js";import M from"./NotFoundScreen-C-f3wZff.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="09fef146-27f5-4d6b-bb16-a0475c54bbd1",e._sentryDebugIdIdentifier="sentry-dbid-09fef146-27f5-4d6b-bb16-a0475c54bbd1")}catch{}})();const R="bill-approval-rule-update",Q=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(z(G)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=f.useState(!1),[u,s]=f.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>F(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(f.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),f.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(L(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");f.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const y={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx($,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(Q,{currentTenant:c,location:o,navigate:e,...y})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(y=>{const i=y.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=y.actors.selectedNonUsers.map(S=>{const C=!!J(S.value);return{type:C?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!C}}),m=i.concat(x);g.push({action:y.stepType.selectedOption,actors:m,operator:m.length>1?y.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(E(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(E(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(q())},onSaveRuleSuccess:()=>{t("../")}}})(H);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=O(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=f.useState(!1);if(f.useEffect(()=>{n||(c(!0),o(X(!0)))}),f.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(N,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
1
+ import{j as l}from"./pdf-emb33J2I.js";import{a as f}from"./sentry-CytkDQe2.js";import{j,h as U,i as B,u as v,N as $,k as T,l as O,R as N,m as h}from"./core-twTS7Cne.js";import{cs as F,Km as A,K2 as b,t8 as I,t2 as L,t6 as w,sX as K,K4 as W,s_ as X,ta as q,t9 as E}from"./zeni-epic-state-DyRbb6Q5.js";import{y as k,je as P,jC as V,jX as z,l9 as G,k3 as _,la as H}from"./index-k1doZNFg.js";import"./mui-Bi07oTwe.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-DZcx_Ou3.js";import M from"./NotFoundScreen-BBemVqe2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="09fef146-27f5-4d6b-bb16-a0475c54bbd1",e._sentryDebugIdIdentifier="sentry-dbid-09fef146-27f5-4d6b-bb16-a0475c54bbd1")}catch{}})();const R="bill-approval-rule-update",Q=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(z(G)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=f.useState(!1),[u,s]=f.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>F(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(f.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),f.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(L(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");f.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const y={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx($,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(Q,{currentTenant:c,location:o,navigate:e,...y})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(y=>{const i=y.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=y.actors.selectedNonUsers.map(S=>{const C=!!J(S.value);return{type:C?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!C}}),m=i.concat(x);g.push({action:y.stepType.selectedOption,actors:m,operator:m.length>1?y.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(E(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(E(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(q())},onSaveRuleSuccess:()=>{t("../")}}})(H);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=O(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=f.useState(!1);if(f.useEffect(()=>{n||(c(!0),o(X(!0)))}),f.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(N,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
@@ -1,4 +1,4 @@
1
- import{b as F,u as U,J as M,O as _,T as W,a7 as G,a0 as J,b$ as X,V as o,a_ as H,A as K,a9 as Q,o as d,fo as Y}from"./index-BtPm9NIK.js";import{a as $}from"./sentry-DU2EcgXN.js";import{n as h}from"./mui-BHPGtaMB.js";import{b as Z,f as ee,o as L,l as R}from"./FollowStepsSection-0eFMS0c5-DZBefIWn.js";import"./pdf-BC9fZG9d.js";import"./zeni-epic-state-Bnfd9FE6.js";import"./core-B3AUZ034.js";import"./lottie-BaQk2SMe.js";import"./liveblocks-DFhc43aC.js";import"./recharts-DCahVeG0.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./utils-CPca4UDN.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]="ac028a09-d579-4866-9200-b66f57baed76",e._sentryDebugIdIdentifier="sentry-dbid-ac028a09-d579-4866-9200-b66f57baed76")}catch{}})();const T="billPayApprovalRuleDetailPage",k="lowerBound",C="upperBound",I="steps",b="applyToExistingBills",ae={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:a,onBackClick:l,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=le(e,a==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return $.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=J(m);X(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(H,{title:a==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(T),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j(T),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:a==="approval_create"&&p.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const le=(e,a)=>{const{criteria:l,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),L(e.allAttributes),L(e.filteredAttributes),s??[])??[],[k]:a?void 0:l!=null?l.range.min.amount??0:0,[C]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},te=(e,a,l,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:R},actors:{allUsers:a,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(l,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:a,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,a)=>e.filter(l=>l.userId!=null&&a.findIndex(s=>s.userId===l.userId)>-1),oe=(e,a)=>e.filter(l=>a.findIndex(s=>s.subType===l.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=h.div`
1
+ import{b as F,u as U,J as M,O as _,T as W,a7 as G,a0 as J,b$ as X,V as o,a_ as H,A as K,a9 as Q,o as d,fo as Y}from"./index-k1doZNFg.js";import{a as $}from"./sentry-CytkDQe2.js";import{n as h}from"./mui-Bi07oTwe.js";import{b as Z,f as ee,o as L,l as R}from"./FollowStepsSection-0eFMS0c5-BaucUfRt.js";import"./pdf-emb33J2I.js";import"./zeni-epic-state-DyRbb6Q5.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.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]="ac028a09-d579-4866-9200-b66f57baed76",e._sentryDebugIdIdentifier="sentry-dbid-ac028a09-d579-4866-9200-b66f57baed76")}catch{}})();const T="billPayApprovalRuleDetailPage",k="lowerBound",C="upperBound",I="steps",b="applyToExistingBills",ae={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:a,onBackClick:l,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=le(e,a==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return $.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=J(m);X(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(H,{title:a==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(T),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j(T),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:a==="approval_create"&&p.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const le=(e,a)=>{const{criteria:l,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),L(e.allAttributes),L(e.filteredAttributes),s??[])??[],[k]:a?void 0:l!=null?l.range.min.amount??0:0,[C]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},te=(e,a,l,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:R},actors:{allUsers:a,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(l,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:a,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,a)=>e.filter(l=>l.userId!=null&&a.findIndex(s=>s.userId===l.userId)>-1),oe=(e,a)=>e.filter(l=>a.findIndex(s=>s.subType===l.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{J as W,O as S,V as o,a_ as E,f as G,a6 as b,b as l,s as M,o as i,a4 as z,bg as P,bK as V,bL as q,bM as O,ch as F,u as r,at as J,H as k,as as K,e as j,cg as Q,aR as X,j as Y}from"./index-BtPm9NIK.js";import{n as t}from"./mui-BHPGtaMB.js";import{a as Z}from"./sentry-DU2EcgXN.js";import"./pdf-BC9fZG9d.js";import"./zeni-epic-state-Bnfd9FE6.js";import"./core-B3AUZ034.js";import"./lottie-BaQk2SMe.js";import"./liveblocks-DFhc43aC.js";import"./recharts-DCahVeG0.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./utils-CPca4UDN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="da7e85b8-e7c8-4392-929f-0bcbec5c2946",e._sentryDebugIdIdentifier="sentry-dbid-da7e85b8-e7c8-4392-929f-0bcbec5c2946")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:x=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:g}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(g)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(T,{}),o.jsx(le,{}),o.jsx(T,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(g)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${_}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},H))})}),v?o.jsx(V,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
1
+ import{J as W,O as S,V as o,a_ as E,f as G,a6 as b,b as l,s as M,o as i,a4 as z,bg as P,bK as V,bL as q,bM as O,ch as F,u as r,at as J,H as k,as as K,e as j,cg as Q,aR as X,j as Y}from"./index-k1doZNFg.js";import{n as t}from"./mui-Bi07oTwe.js";import{a as Z}from"./sentry-CytkDQe2.js";import"./pdf-emb33J2I.js";import"./zeni-epic-state-DyRbb6Q5.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="da7e85b8-e7c8-4392-929f-0bcbec5c2946",e._sentryDebugIdIdentifier="sentry-dbid-da7e85b8-e7c8-4392-929f-0bcbec5c2946")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:x=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:g}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(g)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(T,{}),o.jsx(le,{}),o.jsx(T,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(g)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${_}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},H))})}),v?o.jsx(V,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.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{t as H,J as y,a7 as Q,V as e,eO as Y,a_ as ee,i as C,a6 as B,F as m,O as I,o,I as ie,bX as oe,y as M,ab as U,W as se,b as le,e as $,bG as re,ac as te,au as ne,u as ae}from"./index-BtPm9NIK.js";import{a as g}from"./sentry-DU2EcgXN.js";import{n as s}from"./mui-BHPGtaMB.js";import{Fa as de,bK as ce,Fb as pe}from"./zeni-epic-state-Bnfd9FE6.js";import{C as me}from"./VideoPopup-C_SkBI9U-BZBvhjwG.js";import{M as b}from"./usp-line-BBd1wKwW-DNpFJb5T.js";import"./pdf-BC9fZG9d.js";import"./core-B3AUZ034.js";import"./lottie-BaQk2SMe.js";import"./liveblocks-DFhc43aC.js";import"./recharts-DCahVeG0.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./utils-CPca4UDN.js";import"./VideoPlayer-BRAgZThr-DohfH4SH.js";import"./media-player-DZNXgAVG.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="277f8e85-f1fe-4b6c-a947-7c09cf717770",i._sentryDebugIdIdentifier="sentry-dbid-277f8e85-f1fe-4b6c-a947-7c09cf717770")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
1
+ import{t as H,J as y,a7 as Q,V as e,eO as Y,a_ as ee,i as C,a6 as B,F as m,O as I,o,I as ie,bX as oe,y as M,ab as U,W as se,b as le,e as $,bG as re,ac as te,au as ne,u as ae}from"./index-k1doZNFg.js";import{a as g}from"./sentry-CytkDQe2.js";import{n as s}from"./mui-Bi07oTwe.js";import{Fa as de,bK as ce,Fb as pe}from"./zeni-epic-state-DyRbb6Q5.js";import{C as me}from"./VideoPopup-C_SkBI9U-BL3_M3X0.js";import{M as b}from"./usp-line-BBd1wKwW-DHy4exHr.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.js";import"./VideoPlayer-BRAgZThr-BbqnCIc-.js";import"./media-player-DTa5D54u.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="277f8e85-f1fe-4b6c-a947-7c09cf717770",i._sentryDebugIdIdentifier="sentry-dbid-277f8e85-f1fe-4b6c-a947-7c09cf717770")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{j as a}from"./pdf-BC9fZG9d.js";import{j as Y,i as se,h as W,l as ee,u as k,N as Q,k as q,g as zt,R as Zt,m as y}from"./core-B3AUZ034.js";import{cs as O,JE as Ve,bt as rt,CI as Ht,bn as ct,Fa as de,JF as dt,ss as ut,tC as Pe,s$ as Kt,bm as Ae,JG as Jt,JH as Wt,bE as qt,JI as Xt,JJ as pt,JK as mt,uc as $e,sH as we,JL as Qt,sg as Ke,JM as Yt,xp as ea,sk as ta,sq as ht,JN as Be,JO as Ue,JP as aa,JQ as na,tG as _e,JR as ia,tD as bt,tT as oa,JS as gt,tn as Je,ts as la,JT as sa,JU as ce,JV as St,JW as yt,JX as ft,dn as ra,sM as Fe,Fb as It,JY as ca,ef as da,JZ as ua,J_ as pa,cz as vt,cx as kt,J$ as Le,K0 as ma,K1 as ha,Hm as Ge,K2 as ba,Hn as ne,Ho as Me,K3 as ga,K4 as Sa,K5 as ya,tu as We,tr as fa,K6 as Ia,K7 as va,K8 as ka,td as wa,K9 as Ba,Ka as Ca,Kb as xa,Ek as wt,bM as Bt,gV as Aa,bW as Ea,bs as Ct,F9 as xt,rR as Da,Kc as Ta,xc as ja,xi as Pa,os as Fa,tE as Ra,uj as Va,h6 as Se,Kd as $a,Ke as At,hz as Ua,h0 as Et,hl as Dt,hk as qe,bG as pe,bX as _a,Kf as La,Kg as ye,fH as Ga,Kh as Xe,Ki as Ma,fL as Na,g4 as Oa,ux as za,Kj as Za,ht as Ha,un as Ka,Kk as Qe,ur as Ja,uw as Wa,ut as qa,ul as Xa,Kl as Tt,sB as Qa,Km as Ya,Kn as en,di as tn,dh as an,dg as nn,h9 as on,hr as Ye,hB as ln,l_ as sn,hi as rn,up as cn,fR as dn,hG as un,Ko as pn,fJ as mn,lR as hn,Kp as bn,tj as gn,Fk as Sn,Ej as yn,Gp as fn,bO as In,bN as vn,bK as kn,bL as wn}from"./zeni-epic-state-Bnfd9FE6.js";import{y as ie,je as V,t as fe,aE as oe,aG as g,aF as Ce,jC as X,o as w,bc as Ee,jl as T,kP as Bn,jy as Z,jT as Ne,jA as D,J as Ie,w as jt,k8 as Cn,O as Oe,jF as De,e as Pt,ks as xn,b as Ft,kg as Rt,kQ as An,jR as En,G as Vt,jX as Dn,kR as Tn,kS as jn,kT as Pn,kU as Fn,kV as Rn,kW as Vn,kX as $n,kY as Un,kL as _n,kZ as Ln,k_ as Gn,jZ as Mn}from"./index-BtPm9NIK.js";import{n as $,S as Nn}from"./mui-BHPGtaMB.js";import{A as et}from"./AddressScreen-BWfJAlfj.js";import{g as le,a as Te,i as $t,V as ze,b as Ze,c as On,v as zn,d as Zn,A as me,D as he}from"./DomesticWireDetailScreen-Cijy0Efi.js";import{a as I}from"./sentry-DU2EcgXN.js";import{u as Ut}from"./useInitialThreadRequest-QVhB5q5V.js";import xe from"./NotFoundScreen-C-f3wZff.js";import{S as Hn}from"./zeni-icon-only-Bl-Y4_od.js";import{D as Kn}from"./DrawerScreen-DVazDF-l.js";import{M as _t}from"./MobileAppDrawer-CDJXGCc5.js";import{F as Lt}from"./FeaturePreviewScreen-CsodJgmF.js";import{S as je}from"./SetupPagesScreen-dWvv8Vkm.js";import{B as Jn}from"./BillPayApprovalRoutes-3120qDp_.js";import{FallBackRoute as Wn}from"./ScreenRoutes-BjC7YyGq.js";import"./lottie-BaQk2SMe.js";import"./liveblocks-DFhc43aC.js";import"./recharts-DCahVeG0.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./utils-CPca4UDN.js";import"./analyticsHelper-Bh2orC3q.js";import"./routePaths-Dqvnjt0t.js";import"./BusinessVerificationPageScreen-C7iPYOZn.js";import"./ReimbursementApprovalRuleDetailScreen-DgkaZC29.js";import"./getLocaleForTenant-DD-EE4Du.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0eaec19d-189e-450d-a3bd-4c0859847e53",e._sentryDebugIdIdentifier="sentry-dbid-0eaec19d-189e-450d-a3bd-4c0859847e53")}catch{}})();const qn=q(function(e,t){const i=Ve(e,t.billId),o=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:c??""},u=Z(t.location.state?.pathnameStackToGoBack);let l=!0;u.poppedPathname?.includes("bills")===!0&&(l=!1);let s=`${i.createdBy?.firstName??"Zeni"} ${i.createdBy?.lastName??""}`;const n=Ae(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:b}=Jt(i.billActivities,Wt(t.currentTenant),o);d=S,p=b}const m=qt(t.currentTenant?.userRole??[]),h=i.transactionDetails!=null&&Xt(i.transactionDetails,m,o);return{billDetails:i,createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ne}/transaction_attachment`,signedInUser:o,showBackButton:l,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:T,showMarkAsPaidButtonToCreator:h,isZeniUser:n}},function(e,t){const{billId:i,currentTenant:o,location:c,navigate:r}=t,{tenantEmailDomain:u}=o;return{redirectToBillsScreen:()=>{const l=le(u),s=D(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(ht(i))},cancelAndDeleteBill:(l,s)=>{s===!0?T.trackBillPayCancelAndDeleteBill(i,l):T.trackBillPayCancelBill(i),e(ta(i,s))},onSaveRealTimeApprovals:l=>{e(ea(i,"bill_pay",l))},updateEditRealTimeApproverClicked:l=>{e(Yt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(Ke(i,l.type,"")):e(Ke(i,l.type,l.description??""))},retryOrRefundBill:l=>{l.type==="retry"?e(we(i,"retry")):e(we(i,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(l,s)=>{const n=Te(u,l,s),d=D(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const l=Z(t.location.state?.pathnameStackToGoBack),s=l.poppedPathname??le(u);r(s,{state:{pathnameStackToGoBack:l.newStack}})},onRetryPaymentClick:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Qt({billId:t.billId}))},onRefundPaymentClick:()=>{e(we(t.billId,"refund"))},saveBillDetails:(l,s,n)=>{l&&e(mt({data:n,billId:i})),e($e(l?"paid":"pending_approval",l,s,i))},discardOutsideZeniPaymentData:()=>{e(pt({billId:i}))}}})(Bn);function Xn(){const e=Y(),t=se(),i=W(),{billId:o}=ee(),c=ie(),r=V.getSignedInUser(),u=fe(),l=k(M=>O(M)),s=k(M=>Ve(M,o??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Ut(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[h,S]=I.useState(!1),[b,f]=I.useState(!1),[A,E]=I.useState(!1),{useFeatureGate:v,useDynamicConfig:_}=oe(),{isFeatureEnabled:F}=v(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=v(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=v(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=_(Ce.zeniAssistConfig),H=Ht(l),x=ct(l.userRole),z=m&&de(u?.loggedInUserRoleMap),L=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:K}=v(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:J}=v(g.billPaySetupShowInternationalPaymentByWise);if(I.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&H===!1?E(!1):E(s.billActivities[0]?.isRealTimeApprovalEnabled&&(x||z||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,x,z,l.isZeni,H,r]),I.useEffect(()=>{o!=null&&t(dt(o))},[o]),I.useEffect(()=>{h||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,L,!1)))},[h,s,o,t]),I.useEffect(()=>{b||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,L,J,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Kt()))},[b,s,o,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(Q,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(X,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(Ee,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(qn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:A,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:K,hasZeniAssistAccess:L,isDetectInsufficientFundsEnabled:R})]})}const be=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Qn={containerWidth:new Ft(100,58)},Yn=q(function(e,t){const i=V.getSignedInUser(),o=e.tenantState.currentTenantId,c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:o??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Rt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:T,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u}},function(e,t){const i=V.getSignedInUser();return{onInvoiceUpload:o=>{o!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(o),t.setShowConfirmationPopup(!0)):e(_e(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(bt(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(xn);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=W().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=Ie(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:h}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:b}=d(Ce.zeniAssistConfig),f=b.user_ids!=null&&l?.userId!=null&&b.user_ids.includes(l?.userId),A=k(U=>O(U)).companyName,[E,v]=I.useState(!1),[_,F]=I.useState(!1),[G,R]=I.useState(!1),[B,H]=I.useState(),x=k(U=>Ue(U,p,h,i));let z=x.fetchState,L=x.file,K=x.showAutofill;const J=k(U=>Ve(U,i??""));c===!1&&(z=J.fetchState,L=J.transactionDetails?.attachments?.[0],K=!1);const M=()=>{u.toggle()},te=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;I.useEffect(()=>{z==="Not-Started"&&(c&&_?F(!1):!c&&E&&v(!1))},[i]),I.useEffect(()=>{E||i==null||c||(v(!0),t(ut(i,m,f,!1)),_||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!_&&(F(!0),t(Pe(!1,m,f,S,i)))},[E,_,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(_e(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(z==="Error"||J.fetchState==="Error")return a.jsx(xe,{});if(z!="Completed")return a.jsx(X,{fetchState:z,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const U=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:be.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:be.overwriteDescription}),primaryButtonText:be.buttons.yes,secondaryButtonText:be.buttons.no,action:ue,isEditPopup:!0}):null,r!=="small"?a.jsxs(ni,{children:[a.jsx(ci,{onClick:M}),a.jsxs(ai,{showContent:l?.userEmailDomain==="zeni.ai",children:[a.jsx(ii,{showAutofill:K}),a.jsx(oi,{showAutofill:K,children:A})]})]}):null,a.jsx(Yn,{billId:i,file:L,showAutofill:K,uploadStatus:x.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,J,x),setShowConfirmationPopup:R,setPayload:H,showActionButtons:ti(c,x),isInitialEdit:!!x.isInitialEdit,billStage:U}),a.jsx(ui,{windowSize:r,children:e})]})}}function ei(e,t,i){let o,c;return e?(o=i.recurringConfig?.currentInstance,c=i.recurringConfig?.totalPaymentCycles):(o=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(li,{children:[a.jsx(si,{children:`${be.recurringBill.recurringCycle}
1
+ import{j as a}from"./pdf-emb33J2I.js";import{j as Y,i as se,h as W,l as ee,u as k,N as Q,k as q,g as zt,R as Zt,m as y}from"./core-twTS7Cne.js";import{cs as O,JE as Ve,bt as rt,CI as Ht,bn as ct,Fa as de,JF as dt,ss as ut,tC as Pe,s$ as Kt,bm as Ae,JG as Jt,JH as Wt,bE as qt,JI as Xt,JJ as pt,JK as mt,uc as $e,sH as we,JL as Qt,sg as Ke,JM as Yt,xp as ea,sk as ta,sq as ht,JN as Be,JO as Ue,JP as aa,JQ as na,tG as _e,JR as ia,tD as bt,tT as oa,JS as gt,tn as Je,ts as la,JT as sa,JU as ce,JV as St,JW as yt,JX as ft,dn as ra,sM as Fe,Fb as It,JY as ca,ef as da,JZ as ua,J_ as pa,cz as vt,cx as kt,J$ as Le,K0 as ma,K1 as ha,Hm as Ge,K2 as ba,Hn as ne,Ho as Me,K3 as ga,K4 as Sa,K5 as ya,tu as We,tr as fa,K6 as Ia,K7 as va,K8 as ka,td as wa,K9 as Ba,Ka as Ca,Kb as xa,Ek as wt,bM as Bt,gV as Aa,bW as Ea,bs as Ct,F9 as xt,rR as Da,Kc as Ta,xc as ja,xi as Pa,os as Fa,tE as Ra,uj as Va,h6 as Se,Kd as $a,Ke as At,hz as Ua,h0 as Et,hl as Dt,hk as qe,bG as pe,bX as _a,Kf as La,Kg as ye,fH as Ga,Kh as Xe,Ki as Ma,fL as Na,g4 as Oa,ux as za,Kj as Za,ht as Ha,un as Ka,Kk as Qe,ur as Ja,uw as Wa,ut as qa,ul as Xa,Kl as Tt,sB as Qa,Km as Ya,Kn as en,di as tn,dh as an,dg as nn,h9 as on,hr as Ye,hB as ln,l_ as sn,hi as rn,up as cn,fR as dn,hG as un,Ko as pn,fJ as mn,lR as hn,Kp as bn,tj as gn,Fk as Sn,Ej as yn,Gp as fn,bO as In,bN as vn,bK as kn,bL as wn}from"./zeni-epic-state-DyRbb6Q5.js";import{y as ie,je as V,t as fe,aE as oe,aG as g,aF as Ce,jC as X,o as w,bc as Ee,jl as T,kP as Bn,jy as Z,jT as Ne,jA as D,J as Ie,w as jt,k8 as Cn,O as Oe,jF as De,e as Pt,ks as xn,b as Ft,kg as Rt,kQ as An,jR as En,G as Vt,jX as Dn,kR as Tn,kS as jn,kT as Pn,kU as Fn,kV as Rn,kW as Vn,kX as $n,kY as Un,kL as _n,kZ as Ln,k_ as Gn,jZ as Mn}from"./index-k1doZNFg.js";import{n as $,S as Nn}from"./mui-Bi07oTwe.js";import{A as et}from"./AddressScreen-CE8x2lDp.js";import{g as le,a as Te,i as $t,V as ze,b as Ze,c as On,v as zn,d as Zn,A as me,D as he}from"./DomesticWireDetailScreen-DacvZAfq.js";import{a as I}from"./sentry-CytkDQe2.js";import{u as Ut}from"./useInitialThreadRequest-1tDzaux1.js";import xe from"./NotFoundScreen-BBemVqe2.js";import{S as Hn}from"./zeni-icon-only-C6-rv1y7.js";import{D as Kn}from"./DrawerScreen-B1Tmjk6I.js";import{M as _t}from"./MobileAppDrawer-B2Fzw8F_.js";import{F as Lt}from"./FeaturePreviewScreen-DqxtfQjE.js";import{S as je}from"./SetupPagesScreen-Bjv1_530.js";import{B as Jn}from"./BillPayApprovalRoutes-D-Lr-knt.js";import{FallBackRoute as Wn}from"./ScreenRoutes-DvoBFpYl.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.js";import"./analyticsHelper-CHcSxJdc.js";import"./routePaths-DiyiibEL.js";import"./BusinessVerificationPageScreen-CsiX3KGh.js";import"./ReimbursementApprovalRuleDetailScreen-DZcx_Ou3.js";import"./getLocaleForTenant-CY5R0VDK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0eaec19d-189e-450d-a3bd-4c0859847e53",e._sentryDebugIdIdentifier="sentry-dbid-0eaec19d-189e-450d-a3bd-4c0859847e53")}catch{}})();const qn=q(function(e,t){const i=Ve(e,t.billId),o=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:c??""},u=Z(t.location.state?.pathnameStackToGoBack);let l=!0;u.poppedPathname?.includes("bills")===!0&&(l=!1);let s=`${i.createdBy?.firstName??"Zeni"} ${i.createdBy?.lastName??""}`;const n=Ae(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:b}=Jt(i.billActivities,Wt(t.currentTenant),o);d=S,p=b}const m=qt(t.currentTenant?.userRole??[]),h=i.transactionDetails!=null&&Xt(i.transactionDetails,m,o);return{billDetails:i,createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ne}/transaction_attachment`,signedInUser:o,showBackButton:l,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:T,showMarkAsPaidButtonToCreator:h,isZeniUser:n}},function(e,t){const{billId:i,currentTenant:o,location:c,navigate:r}=t,{tenantEmailDomain:u}=o;return{redirectToBillsScreen:()=>{const l=le(u),s=D(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(ht(i))},cancelAndDeleteBill:(l,s)=>{s===!0?T.trackBillPayCancelAndDeleteBill(i,l):T.trackBillPayCancelBill(i),e(ta(i,s))},onSaveRealTimeApprovals:l=>{e(ea(i,"bill_pay",l))},updateEditRealTimeApproverClicked:l=>{e(Yt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(Ke(i,l.type,"")):e(Ke(i,l.type,l.description??""))},retryOrRefundBill:l=>{l.type==="retry"?e(we(i,"retry")):e(we(i,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(l,s)=>{const n=Te(u,l,s),d=D(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const l=Z(t.location.state?.pathnameStackToGoBack),s=l.poppedPathname??le(u);r(s,{state:{pathnameStackToGoBack:l.newStack}})},onRetryPaymentClick:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Qt({billId:t.billId}))},onRefundPaymentClick:()=>{e(we(t.billId,"refund"))},saveBillDetails:(l,s,n)=>{l&&e(mt({data:n,billId:i})),e($e(l?"paid":"pending_approval",l,s,i))},discardOutsideZeniPaymentData:()=>{e(pt({billId:i}))}}})(Bn);function Xn(){const e=Y(),t=se(),i=W(),{billId:o}=ee(),c=ie(),r=V.getSignedInUser(),u=fe(),l=k(M=>O(M)),s=k(M=>Ve(M,o??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Ut(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[h,S]=I.useState(!1),[b,f]=I.useState(!1),[A,E]=I.useState(!1),{useFeatureGate:v,useDynamicConfig:_}=oe(),{isFeatureEnabled:F}=v(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=v(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=v(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=_(Ce.zeniAssistConfig),H=Ht(l),x=ct(l.userRole),z=m&&de(u?.loggedInUserRoleMap),L=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:K}=v(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:J}=v(g.billPaySetupShowInternationalPaymentByWise);if(I.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&H===!1?E(!1):E(s.billActivities[0]?.isRealTimeApprovalEnabled&&(x||z||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,x,z,l.isZeni,H,r]),I.useEffect(()=>{o!=null&&t(dt(o))},[o]),I.useEffect(()=>{h||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,L,!1)))},[h,s,o,t]),I.useEffect(()=>{b||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,L,J,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Kt()))},[b,s,o,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(Q,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(X,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(Ee,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(qn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:A,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:K,hasZeniAssistAccess:L,isDetectInsufficientFundsEnabled:R})]})}const be=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Qn={containerWidth:new Ft(100,58)},Yn=q(function(e,t){const i=V.getSignedInUser(),o=e.tenantState.currentTenantId,c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:o??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Rt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:T,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u}},function(e,t){const i=V.getSignedInUser();return{onInvoiceUpload:o=>{o!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(o),t.setShowConfirmationPopup(!0)):e(_e(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(bt(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(xn);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=W().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=Ie(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:h}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:b}=d(Ce.zeniAssistConfig),f=b.user_ids!=null&&l?.userId!=null&&b.user_ids.includes(l?.userId),A=k(U=>O(U)).companyName,[E,v]=I.useState(!1),[_,F]=I.useState(!1),[G,R]=I.useState(!1),[B,H]=I.useState(),x=k(U=>Ue(U,p,h,i));let z=x.fetchState,L=x.file,K=x.showAutofill;const J=k(U=>Ve(U,i??""));c===!1&&(z=J.fetchState,L=J.transactionDetails?.attachments?.[0],K=!1);const M=()=>{u.toggle()},te=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;I.useEffect(()=>{z==="Not-Started"&&(c&&_?F(!1):!c&&E&&v(!1))},[i]),I.useEffect(()=>{E||i==null||c||(v(!0),t(ut(i,m,f,!1)),_||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!_&&(F(!0),t(Pe(!1,m,f,S,i)))},[E,_,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(_e(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(z==="Error"||J.fetchState==="Error")return a.jsx(xe,{});if(z!="Completed")return a.jsx(X,{fetchState:z,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const U=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:be.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:be.overwriteDescription}),primaryButtonText:be.buttons.yes,secondaryButtonText:be.buttons.no,action:ue,isEditPopup:!0}):null,r!=="small"?a.jsxs(ni,{children:[a.jsx(ci,{onClick:M}),a.jsxs(ai,{showContent:l?.userEmailDomain==="zeni.ai",children:[a.jsx(ii,{showAutofill:K}),a.jsx(oi,{showAutofill:K,children:A})]})]}):null,a.jsx(Yn,{billId:i,file:L,showAutofill:K,uploadStatus:x.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,J,x),setShowConfirmationPopup:R,setPayload:H,showActionButtons:ti(c,x),isInitialEdit:!!x.isInitialEdit,billStage:U}),a.jsx(ui,{windowSize:r,children:e})]})}}function ei(e,t,i){let o,c;return e?(o=i.recurringConfig?.currentInstance,c=i.recurringConfig?.totalPaymentCycles):(o=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(li,{children:[a.jsx(si,{children:`${be.recurringBill.recurringCycle}
2
2
  ${o}/${c}`}),a.jsx(ri,{})]}):void 0}function ti(e,t){const i=t.billActivities?.[0],o=t.billStage==="pending_approval"&&i?.areApprovalsSerialized===!0&&i?.currentPendingStepIndex===0;return e&&(t.billStage==="draft"||o)}const ai=$.div`
3
3
  display: ${e=>e.showContent?"flex":"none"};
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as Oe,J as Ue,a7 as V,T as Re,b$ as $e,O as ze,ad as Z,V as t,ew as He,e as Le,a6 as qe,b as u,a_ as Ne,f as Me,A as Je,eP as R,d3 as Qe,eQ as Ge,aU as Ke,cW as Xe,bg as Ye,eR as Ze,a9 as et,o as z,eS as tt,u as o,s as it,b6 as nt}from"./index-BtPm9NIK.js";import{a as m}from"./sentry-DU2EcgXN.js";import{n as b}from"./mui-BHPGtaMB.js";import{ca as ot}from"./zeni-epic-state-Bnfd9FE6.js";import{g as at}from"./UploadAdditionalDocumentOverlay-DZfpwE5J-BKhXo9Nh.js";import"./pdf-BC9fZG9d.js";import"./core-B3AUZ034.js";import"./lottie-BaQk2SMe.js";import"./liveblocks-DFhc43aC.js";import"./recharts-DCahVeG0.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./utils-CPca4UDN.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]="3a724a8f-4beb-47b2-998a-9e75756a86c8",e._sentryDebugIdIdentifier="sentry-dbid-3a724a8f-4beb-47b2-998a-9e75756a86c8")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,o[5],o[5]),sectionRowGap:new u(o[5],o[9],o[9]),lastSectionPaddingBottom:new u(o[7],o[10],o[10]),iconWidthHeight:new u(20,o[4]),subTitlePaddingTop:new u(12,o[3]),subTitlePaddingBottom:new u(o[3],o[3]),overlayWidth:new u(100,100,59)},ee="billPaySetUpPage",F="billPayAccount",Tt=({billPaySetupView:e,isDisabled:p,billpayApprovalView:x,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ie,isAccountsEnabled:ne,isLocalCurrencyEnabled:oe,analytics:y,filesEndPoint:ae,authParams:le,accountsPromoConfig:ce,onBackClick:se,onBusinessVerificationSectionClick:de,onSetupApprovalRulesSectionClick:re,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:he,onUpdatePrimaryFundingAccount:fe,onUpdateAccountClick:ge,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:be,onEnableBillPayClick:ye,onEnableBillPaySuccess:H,onClickMenuIcon:Se,onInternationPaymentSetUpClick:we,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke,onSignUpClick:Ae})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),L=m.useRef(null),{fetchState:h,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,f=A?.internationalWireOnboardingStatus,T=f==null||f.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,W=E.link_account.updateStatus,_=E.update_account.updateStatus,j=V(h),M=V(w.fetchState),J=V(W.fetchState),Q=V(_.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>$(e),[e]),values:$(e)});m.useEffect(()=>{!k&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&S(!0),k&&j==="In-Progress"&&h==="Completed"&&S(!1)},[l,h,j]),m.useEffect(()=>{(j==="In-Progress"&&h==="Completed"||J==="In-Progress"&&W.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&P.reset($(e))},[j,h,P,e,J,W.fetchState,Q,_.fetchState]);const Ve=P.handleSubmit(G=>{y.trackEnableBillPay(),ye()});m.useEffect(()=>{const G=P.watch((K,{name:X})=>{X!=null&&K!=null&&$e(()=>(async(Y,De)=>{const c=De[F];if(Y.includes(F)){if(Y.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&fe(c.fundingAccount.selectedOption,g.accType)}}else if(c.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=c.account.selectedOption){const g=c.account.allOptions.find(U=>U.value===c.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),ge(c.account.selectedOption,d.id,d.accType)}}})(X,K))});return()=>{G.unsubscribe()}}),m.useEffect(()=>{M==="In-Progress"&&w.fetchState==="Completed"&&H()},[H,M,w.fetchState]);const{commonSetUp:Fe,spendManagement:Ee}=ze.getLocalizedStrings(),{setUp:r}=Fe,{billPaySetup:a}=Ee.billPay,D=A?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||ot(d?.providerVerificationStatus?.code??"")),O=A?.isBillPayEnabled===!0,We=D?r.setupVerifiedSubTitle:a.setupSubTitle,_e=h==="In-Progress"||h==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(C.colors.brandColorJadeDark);return t.jsxs(ct,{ref:L,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":qe("bill-pay-setup-drawer"),children:t.jsx(at,{authParams:le,filesEndPoint:ae,updateStatus:w,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,companyOfficer:l,onClose:()=>S(!1),onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke})}),t.jsx(Ne,{title:a.setupTitle,style:{zIndex:3},onBackClick:se,showMenuIcon:!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:Se,scrollableContent:L,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(dt,{windowSize:i,children:We}),_e?t.jsx(ut,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(lt,{children:[t.jsx(Je,{...P,children:t.jsx("form",{id:te(ee),onSubmit:Ve,children:t.jsxs(pt,{windowSize:i,children:[t.jsx(R,{onClick:()=>{k||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"?de?.():S(!0)},title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:je,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ie,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:E,allBankAccounts:Ie,sectionId:F,isDisabled:p,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:be,onEstablishConnectionSuccess:he,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:ne,onSignUpClick:Ae,pageName:"Bill Pay Setup",accountsPromoConfig:ce}),t.jsx(R,{title:I.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:a.approvalSubTitle,header:I.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:re,status:I.length>0?Be:void 0})]})})}),s===!0?t.jsx(R,{title:T?a.enableInternationalWireTitle:a.internationWireTitle,subTitle:a.internationalWireSubTitle2,header:a.internationalWireHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(oe),we?.()},status:T?void 0:{name:f.name,code:f.code},statusInfoIcon:f?.code==="verification_pending"||f?.code==="verification_failed"?t.jsx(Ye,{title:f.code==="verification_pending"?a.tooltipTexts.pendingInternationalVerificationText:a.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!O&&I.length>0?t.jsx(et,{formId:te(ee),primaryBtn:{label:a.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:w.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:a.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!O,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},lt=b.div``,ct=b.div`
1
+ import{y as Oe,J as Ue,a7 as V,T as Re,b$ as $e,O as ze,ad as Z,V as t,ew as He,e as Le,a6 as qe,b as u,a_ as Ne,f as Me,A as Je,eP as R,d3 as Qe,eQ as Ge,aU as Ke,cW as Xe,bg as Ye,eR as Ze,a9 as et,o as z,eS as tt,u as o,s as it,b6 as nt}from"./index-k1doZNFg.js";import{a as m}from"./sentry-CytkDQe2.js";import{n as b}from"./mui-Bi07oTwe.js";import{ca as ot}from"./zeni-epic-state-DyRbb6Q5.js";import{g as at}from"./UploadAdditionalDocumentOverlay-DZfpwE5J-BZwjrrpj.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.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]="3a724a8f-4beb-47b2-998a-9e75756a86c8",e._sentryDebugIdIdentifier="sentry-dbid-3a724a8f-4beb-47b2-998a-9e75756a86c8")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,o[5],o[5]),sectionRowGap:new u(o[5],o[9],o[9]),lastSectionPaddingBottom:new u(o[7],o[10],o[10]),iconWidthHeight:new u(20,o[4]),subTitlePaddingTop:new u(12,o[3]),subTitlePaddingBottom:new u(o[3],o[3]),overlayWidth:new u(100,100,59)},ee="billPaySetUpPage",F="billPayAccount",Tt=({billPaySetupView:e,isDisabled:p,billpayApprovalView:x,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ie,isAccountsEnabled:ne,isLocalCurrencyEnabled:oe,analytics:y,filesEndPoint:ae,authParams:le,accountsPromoConfig:ce,onBackClick:se,onBusinessVerificationSectionClick:de,onSetupApprovalRulesSectionClick:re,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:he,onUpdatePrimaryFundingAccount:fe,onUpdateAccountClick:ge,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:be,onEnableBillPayClick:ye,onEnableBillPaySuccess:H,onClickMenuIcon:Se,onInternationPaymentSetUpClick:we,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke,onSignUpClick:Ae})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),L=m.useRef(null),{fetchState:h,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,f=A?.internationalWireOnboardingStatus,T=f==null||f.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,W=E.link_account.updateStatus,_=E.update_account.updateStatus,j=V(h),M=V(w.fetchState),J=V(W.fetchState),Q=V(_.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>$(e),[e]),values:$(e)});m.useEffect(()=>{!k&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&S(!0),k&&j==="In-Progress"&&h==="Completed"&&S(!1)},[l,h,j]),m.useEffect(()=>{(j==="In-Progress"&&h==="Completed"||J==="In-Progress"&&W.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&P.reset($(e))},[j,h,P,e,J,W.fetchState,Q,_.fetchState]);const Ve=P.handleSubmit(G=>{y.trackEnableBillPay(),ye()});m.useEffect(()=>{const G=P.watch((K,{name:X})=>{X!=null&&K!=null&&$e(()=>(async(Y,De)=>{const c=De[F];if(Y.includes(F)){if(Y.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&fe(c.fundingAccount.selectedOption,g.accType)}}else if(c.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=c.account.selectedOption){const g=c.account.allOptions.find(U=>U.value===c.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),ge(c.account.selectedOption,d.id,d.accType)}}})(X,K))});return()=>{G.unsubscribe()}}),m.useEffect(()=>{M==="In-Progress"&&w.fetchState==="Completed"&&H()},[H,M,w.fetchState]);const{commonSetUp:Fe,spendManagement:Ee}=ze.getLocalizedStrings(),{setUp:r}=Fe,{billPaySetup:a}=Ee.billPay,D=A?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||ot(d?.providerVerificationStatus?.code??"")),O=A?.isBillPayEnabled===!0,We=D?r.setupVerifiedSubTitle:a.setupSubTitle,_e=h==="In-Progress"||h==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(C.colors.brandColorJadeDark);return t.jsxs(ct,{ref:L,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":qe("bill-pay-setup-drawer"),children:t.jsx(at,{authParams:le,filesEndPoint:ae,updateStatus:w,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,companyOfficer:l,onClose:()=>S(!1),onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke})}),t.jsx(Ne,{title:a.setupTitle,style:{zIndex:3},onBackClick:se,showMenuIcon:!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:Se,scrollableContent:L,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(dt,{windowSize:i,children:We}),_e?t.jsx(ut,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(lt,{children:[t.jsx(Je,{...P,children:t.jsx("form",{id:te(ee),onSubmit:Ve,children:t.jsxs(pt,{windowSize:i,children:[t.jsx(R,{onClick:()=>{k||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"?de?.():S(!0)},title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:je,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ie,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:E,allBankAccounts:Ie,sectionId:F,isDisabled:p,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:be,onEstablishConnectionSuccess:he,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:ne,onSignUpClick:Ae,pageName:"Bill Pay Setup",accountsPromoConfig:ce}),t.jsx(R,{title:I.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:a.approvalSubTitle,header:I.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:re,status:I.length>0?Be:void 0})]})})}),s===!0?t.jsx(R,{title:T?a.enableInternationalWireTitle:a.internationWireTitle,subTitle:a.internationalWireSubTitle2,header:a.internationalWireHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(oe),we?.()},status:T?void 0:{name:f.name,code:f.code},statusInfoIcon:f?.code==="verification_pending"||f?.code==="verification_failed"?t.jsx(Ye,{title:f.code==="verification_pending"?a.tooltipTexts.pendingInternationalVerificationText:a.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!O&&I.length>0?t.jsx(et,{formId:te(ee),primaryBtn:{label:a.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:w.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:a.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!O,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},lt=b.div``,ct=b.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{y as Ce,J as Pe,T as xe,b$ as Ie,ad as k,O as Ae,V as t,b as C,a_ as ve,f as je,A as ke,aU as $e,c0 as Te,a9 as Be,o as a,gY as De,ei as Ve,ej as Ee,u as P,s as ze,g7 as Le,e as Oe,H as _e}from"./index-BtPm9NIK.js";import{a as W}from"./sentry-DU2EcgXN.js";import{n as r}from"./mui-BHPGtaMB.js";import{M as Me,o as F,t as He}from"./PaymentAccountSetupBillingAddressSection-JPO-rPAd-CdhcYMbE.js";import{F as Re}from"./SetUpAccountSection-sfIB1h4i-BlFfIjSJ.js";import"./pdf-BC9fZG9d.js";import"./zeni-epic-state-Bnfd9FE6.js";import"./core-B3AUZ034.js";import"./lottie-BaQk2SMe.js";import"./liveblocks-DFhc43aC.js";import"./recharts-DCahVeG0.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./utils-CPca4UDN.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-DsWS6Ccc-BDxz0JyY.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]="250da757-1749-41b4-a6e5-51f5659a44a9",e._sentryDebugIdIdentifier="sentry-dbid-250da757-1749-41b4-a6e5-51f5659a44a9")}catch{}})();const u={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},Ue={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:d,onClickMenuIcon:I,uiState:q,stripeKey:G,googleAPIKey:Y,companyId:Q,onUpdateAccountClick:X,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:re,handleResetCardPaymentErrorStatuses:de,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=Ce(),o=Pe(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:T},cardPaymentView:m}=i,me=i.subscriptionBillingAddress,B=h?.providerVerificationStatus,he=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",g=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:N(i),values:N(i),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(H=>{le(Q)}),D=i.subscriptionBillingAddressSaveStatus;W.useEffect(()=>{const H=g.watch((R,{name:U})=>{U!=null&&R!=null&&Ie(()=>(async(b,s)=>{const A=s[x];if(b.includes(n)&&s[n]!=null){const v=g.getValues(`${n}`).country;let c=s[n];if(b.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:S}=s[n].street,j=Ve(S?.country);c={street:s[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(c={...c,country:j})}else b===`${n}.country`&&v.selectedOption!=null&&(c={...c,countryCode:Ee(v.selectedOption)});c!=null&&ce(c)}else b.includes(x)&&A.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==A.account.selectedOption&&X(A.account.selectedOption,h.paymentAccountId)})(U,R))});return()=>{H.unsubscribe()}});const V=f.mode==="light"?new k(f.colors.brandColorJadeLight):new k(f.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:fe,subText:we}=ye,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,w=Me(y.header,y.titleText,y.protectedCardNo,m);let _;z&&(_={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:F(L).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:F(L).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=W.useState(!1);return t.jsxs(Fe,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:f.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:o,children:[t.jsx(Ke,{windowSize:o,children:Se}),he?t.jsx(Ne,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...g,children:t.jsx(Qe,{children:t.jsx("form",{id:J(K),onSubmit:ge,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Re,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:x,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx($e,{width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:m,resetCardPaymentViewState:re,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),qe(o,l.headers.billingAddress,me,Y,d)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:J(K),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(He,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:de,stripeKey:G,cardSetupInProgress:M,setCardSetupInProgress:be})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},We=r.div`
1
+ import{y as Ce,J as Pe,T as xe,b$ as Ie,ad as k,O as Ae,V as t,b as C,a_ as ve,f as je,A as ke,aU as $e,c0 as Te,a9 as Be,o as a,gY as De,ei as Ve,ej as Ee,u as P,s as ze,g7 as Le,e as Oe,H as _e}from"./index-k1doZNFg.js";import{a as W}from"./sentry-CytkDQe2.js";import{n as r}from"./mui-Bi07oTwe.js";import{M as Me,o as F,t as He}from"./PaymentAccountSetupBillingAddressSection-JPO-rPAd-Dmaxec0g.js";import{F as Re}from"./SetUpAccountSection-sfIB1h4i-OQRP6w_s.js";import"./pdf-emb33J2I.js";import"./zeni-epic-state-DyRbb6Q5.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-DsWS6Ccc-D27m4dJL.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]="250da757-1749-41b4-a6e5-51f5659a44a9",e._sentryDebugIdIdentifier="sentry-dbid-250da757-1749-41b4-a6e5-51f5659a44a9")}catch{}})();const u={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},Ue={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:d,onClickMenuIcon:I,uiState:q,stripeKey:G,googleAPIKey:Y,companyId:Q,onUpdateAccountClick:X,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:re,handleResetCardPaymentErrorStatuses:de,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=Ce(),o=Pe(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:T},cardPaymentView:m}=i,me=i.subscriptionBillingAddress,B=h?.providerVerificationStatus,he=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",g=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:N(i),values:N(i),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(H=>{le(Q)}),D=i.subscriptionBillingAddressSaveStatus;W.useEffect(()=>{const H=g.watch((R,{name:U})=>{U!=null&&R!=null&&Ie(()=>(async(b,s)=>{const A=s[x];if(b.includes(n)&&s[n]!=null){const v=g.getValues(`${n}`).country;let c=s[n];if(b.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:S}=s[n].street,j=Ve(S?.country);c={street:s[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(c={...c,country:j})}else b===`${n}.country`&&v.selectedOption!=null&&(c={...c,countryCode:Ee(v.selectedOption)});c!=null&&ce(c)}else b.includes(x)&&A.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==A.account.selectedOption&&X(A.account.selectedOption,h.paymentAccountId)})(U,R))});return()=>{H.unsubscribe()}});const V=f.mode==="light"?new k(f.colors.brandColorJadeLight):new k(f.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:fe,subText:we}=ye,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,w=Me(y.header,y.titleText,y.protectedCardNo,m);let _;z&&(_={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:F(L).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:F(L).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=W.useState(!1);return t.jsxs(Fe,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:f.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:o,children:[t.jsx(Ke,{windowSize:o,children:Se}),he?t.jsx(Ne,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...g,children:t.jsx(Qe,{children:t.jsx("form",{id:J(K),onSubmit:ge,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Re,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:x,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx($e,{width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:m,resetCardPaymentViewState:re,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),qe(o,l.headers.billingAddress,me,Y,d)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:J(K),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(He,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:de,stripeKey:G,cardSetupInProgress:M,setCardSetupInProgress:be})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},We=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as v,bK as U,bL as L,bM as M,iH as V,ag as W,O as q}from"./index-BtPm9NIK.js";import{a as g}from"./sentry-DU2EcgXN.js";import{FY as z}from"./zeni-epic-state-Bnfd9FE6.js";import{u as H}from"./ReviewOverlay-BoM41t8W-CtjlqWcE.js";import"./pdf-BC9fZG9d.js";import"./core-B3AUZ034.js";import"./mui-BHPGtaMB.js";import"./recharts-DCahVeG0.js";import"./lottie-BaQk2SMe.js";import"./liveblocks-DFhc43aC.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./utils-CPca4UDN.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]="97d495b0-cdc5-4fea-8cbf-1b362751ca29",e._sentryDebugIdIdentifier="sentry-dbid-97d495b0-cdc5-4fea-8cbf-1b362751ca29")}catch{}})();const{common:s,spendManagement:{billPay:x}}=q.getLocalizedStrings(),l=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:o,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:_,currentSubTab:f}=e,u=i==="review",[C,w]=g.useState(!1),[n,b]=g.useState(T(e,u)),[d,k]=g.useState(u),[P,E]=g.useState(0),[y,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(I=setInterval(()=>{b(p=>p.map((S,O)=>(clearInterval(I),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),P===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(T(e,!1)),()=>{clearInterval(I)}),[n.length,P,d,e.fetchState,u,e]);const R=n.length,h=n.filter(p=>p.reviewStatus.code!=="error").length,D={onOkClick:p=>{w(!1),r.trackBillPayBulkPopupConfirm(i,_,f,K(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:F,description:A}=G(m,h,R,d),B=e.fetchState==="Completed"&&h===0,N={label:B?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:B?c:()=>{r.trackBillPayBulkSubmit(i,_,f),o(i)},style:i==="send_for_approval"?{minWidth:"92px"}:{}},$={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:()=>{const{title:p,description:S}=Y(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,_,f),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(U,{titleComponent:v.jsx(M,{children:y.title}),descriptionComponent:v.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(H,{title:F,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:B}})]})},T=(e,r)=>{const o=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:W("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&z(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?l.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:!!r||o,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},K=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=V([...o,t.isRecurring?"recurring":"one-time"])}),o},Y=e=>{const{this_:r,these:o,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:l.popUps.reject.title.replace("<_payment_>",l.payments),description:l.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:l.popUps.reject.title.replace("<_payment_>",l.payment),description:l.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},G=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:_,is:f,do_:u,does:C}=s.texts,w=r>1,n=o>1;let b="",d="";return e!=="Completed"||t?(b=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(b=l.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:l.bill).replace("<_has_>",n?m:c),d=r===0?l.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):`${r}/${o} ${l.reviewPage.billsReviewed.description.replace("<_bill_>",o>1?i:a).replace("<_is_>",w?_:f)}`),{title:b,description:d}},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} ${l.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,K as getBillsUniqueType};
1
+ import{V as v,bK as U,bL as L,bM as M,iH as V,ag as W,O as q}from"./index-k1doZNFg.js";import{a as g}from"./sentry-CytkDQe2.js";import{FY as z}from"./zeni-epic-state-DyRbb6Q5.js";import{u as H}from"./ReviewOverlay-BoM41t8W-Tjo8TsbC.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./mui-Bi07oTwe.js";import"./recharts-CS0s98U8.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.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]="97d495b0-cdc5-4fea-8cbf-1b362751ca29",e._sentryDebugIdIdentifier="sentry-dbid-97d495b0-cdc5-4fea-8cbf-1b362751ca29")}catch{}})();const{common:s,spendManagement:{billPay:x}}=q.getLocalizedStrings(),l=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:o,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:_,currentSubTab:f}=e,u=i==="review",[C,w]=g.useState(!1),[n,b]=g.useState(T(e,u)),[d,k]=g.useState(u),[P,E]=g.useState(0),[y,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(I=setInterval(()=>{b(p=>p.map((S,O)=>(clearInterval(I),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),P===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(T(e,!1)),()=>{clearInterval(I)}),[n.length,P,d,e.fetchState,u,e]);const R=n.length,h=n.filter(p=>p.reviewStatus.code!=="error").length,D={onOkClick:p=>{w(!1),r.trackBillPayBulkPopupConfirm(i,_,f,K(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:F,description:A}=G(m,h,R,d),B=e.fetchState==="Completed"&&h===0,N={label:B?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:B?c:()=>{r.trackBillPayBulkSubmit(i,_,f),o(i)},style:i==="send_for_approval"?{minWidth:"92px"}:{}},$={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:()=>{const{title:p,description:S}=Y(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,_,f),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(U,{titleComponent:v.jsx(M,{children:y.title}),descriptionComponent:v.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(H,{title:F,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:B}})]})},T=(e,r)=>{const o=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:W("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&z(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?l.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:!!r||o,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},K=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=V([...o,t.isRecurring?"recurring":"one-time"])}),o},Y=e=>{const{this_:r,these:o,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:l.popUps.reject.title.replace("<_payment_>",l.payments),description:l.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:l.popUps.reject.title.replace("<_payment_>",l.payment),description:l.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},G=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:_,is:f,do_:u,does:C}=s.texts,w=r>1,n=o>1;let b="",d="";return e!=="Completed"||t?(b=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(b=l.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:l.bill).replace("<_has_>",n?m:c),d=r===0?l.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):`${r}/${o} ${l.reviewPage.billsReviewed.description.replace("<_bill_>",o>1?i:a).replace("<_is_>",w?_:f)}`),{title:b,description:d}},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} ${l.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,K as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{J as n,V as s,a6 as b,o as e}from"./index-BtPm9NIK.js";import{n as a}from"./mui-BHPGtaMB.js";import{o as l}from"./commonDimensions-BMnB1-xU-1VIWnl3s.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]="40d8c9ae-648e-4396-a0fa-906ea12ba3d7",o._sentryDebugIdIdentifier="sentry-dbid-40d8c9ae-648e-4396-a0fa-906ea12ba3d7")}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=n();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(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(p,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const p=a.div`
1
+ import{J as n,V as s,a6 as b,o as e}from"./index-k1doZNFg.js";import{n as a}from"./mui-Bi07oTwe.js";import{o as l}from"./commonDimensions-BMnB1-xU-CuHaP4qo.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]="40d8c9ae-648e-4396-a0fa-906ea12ba3d7",o._sentryDebugIdIdentifier="sentry-dbid-40d8c9ae-648e-4396-a0fa-906ea12ba3d7")}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=n();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(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(p,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const p=a.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{y as rt,J as lt,a7 as ve,V as t,F as J,T as ct,cc as dt,z as pt,b$ as ut,ag as Ie,a5 as ke,fr as mt,i as ft,a_ as yt,a6 as ht,c0 as gt,bK as xt,bL as St,bM as wt,f as bt,A as Ct,a9 as Dt,o as c,b as F,W as Fe,O as _e,fs as Ot,eT as $e,ei as Tt,bX as vt,a8 as It,s as Ae,H as kt,B as $t,u as k}from"./index-BtPm9NIK.js";import{a as _}from"./sentry-DU2EcgXN.js";import{n as d}from"./mui-BHPGtaMB.js";import{El as Nt,bQ as K,ES as jt,ER as Pt,ET as Vt}from"./zeni-epic-state-Bnfd9FE6.js";import{r as Lt,z as Ft}from"./CompanyOfficerDetailsSection-BaPhFsLx-BbMqIHn4.js";import"./pdf-BC9fZG9d.js";import"./core-B3AUZ034.js";import"./lottie-BaQk2SMe.js";import"./liveblocks-DFhc43aC.js";import"./recharts-DCahVeG0.js";import"./dnd-mmN84DSl.js";import"./analytics-BmnY7Of2.js";import"./plaid-Koifne5k.js";import"./utils-CPca4UDN.js";import"./helper-BMiMbXMj-DaIOHAer.js";import"./LabeledAddressValueField-C6-hVsPb-BrwGoslB.js";import"./LabeledCountryMultiSelectField-sj8p7Rne-DX3ttOa8.js";import"./LabeledCreatableSingleSelectField-DUTQh416-CXgMt8c7.js";import"./LabeledDocumentField-Bp9m-OrP-DsdEjHL5.js";import"./LabeledNameField--saAep-_-DBD-AVmo.js";import"./commonTypes-DsWS6Ccc-BDxz0JyY.js";import"./avatar-Dz7aEm3d-CWSJfcBr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="257e69a1-0d1e-4d69-b9e0-979351c8237f",e._sentryDebugIdIdentifier="sentry-dbid-257e69a1-0d1e-4d69-b9e0-979351c8237f")}catch{}})();const w={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])},_t={stepTitle:new kt("h6Regular","h5Regular")},Ne="businessVerificationPage",O="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Pe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),va=({businessVerificationDetails:e,allNationalityCountries:b,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:N,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:We,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:Xe,saveNewAddressInLocalStore:pe,onSaveDetailsClick:qe,onClickMenuIcon:Ge,onExecuteTreasuryTransfer:He})=>{const Je=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:D}=e,Ke=ve(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Qe=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(J,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(J,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(J,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(J,{href:i.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Y]=_.useState(!1),[X,ue]=_.useState("save"),[ee,et]=_.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:zt(e,A,U,b)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,v=Object.values(D).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&D[I]?.isPhoneVerified!==!0)return void u.setError(`${T}.${v}.phone`,{type:"custom"});const n=dt(Object.values(D).map(r=>Object.values(r?.deleteFileStatusById??{}).filter(g=>g!=null))),m=Object.values(o?.deleteFileStatusById??{}).filter(r=>r!=null);Nt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=D[I],g=r?.email,P=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,L=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?K(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,De=ne?.firstName,Oe=ne?.lastName,Te=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&P!=null&&L!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&be!=null&&Se!=null&&se!=null&&Ce!=null&&De!=null&&Oe!=null&&Te!=null&&S?.trackBusinessVerificationSend({email:g,birthday:P.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:L,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:De,lastName:Oe,email:Te},h,s?"Settings":void 0)})(),Me?.(I),Q===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(T)&&Xe?.(g[T])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=ve(e.companyDetailsLocalData?.addressStatus);_.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&me==null&&(pe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${O}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,me,pe,u]);const fe=z?.companyOfficers.slice(0,10).sort((n,m)=>n.user.createTime?.isAfter(m.user.createTime)===!0?1:-1),ae=fe?.map(n=>n.user),st=fe?.map(n=>n.role),nt={onOkClick:()=>{Y(!1),B();const n=[],m=z?.company.company.incInfo.fileIds??[];u.getValues(`${O}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const P=r?.fileIds??[];u.getValues(`${T}.${g}.fileIds`).forEach(l=>{P.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(ke(f),f,je.currencySymbol).toUpperCase(),ie=j?.code==="pending_review"||j?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&j?.code==="pending_review"&&Ke==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(ke(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),t.jsx(ft,{label:i.submittedButton,onClick:()=>{B(),oe?.()},variant:"primary"})]}):t.jsxs(Rt,{isSettings:s,children:[t.jsx(yt,{title:x&&C===!0?Bt:i.header,backgroundColor:Je.colors.grey5,style:{zIndex:ee?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Y(!0):B()},showBackButton:!s&&!x,showMenuIcon:!!s&&(p==="medium-compact"||p==="small"),onClickMenuIcon:Ge,rightSideComponent:x?t.jsx(ia,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{B(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:i.discardTitle}),descriptionComponent:t.jsx(St,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,t.jsxs(Mt,{windowSize:p,children:[(!x||C===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(bt,{size:"ExtraLarge",start:!0})}):t.jsx(Ct,{...u,children:t.jsxs("form",{id:Ve(Ne),onSubmit:at,children:[x&&C===!0&&t.jsxs(Et,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Jt,{children:t.jsxs(Kt,{children:[t.jsx(Le,{}),ye&&t.jsx(Le,{}),t.jsx(Qt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Lt,{companyOfficerData:D,allNationalityCountries:b,allOfficers:ae??[],sectionId:T,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:N,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Ft,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:R},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",hideNewOnboardingFields:q?.companyVerificationStatus?.code==="verified"&&!((o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null),sectionId:O,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:b})]}),h==="zeni_accounts"?t.jsx(Xt,{windowSize:p,children:i.threadText.replace("__amount__",ot)}):null]})})]}),$==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?t.jsx(Dt,{formId:Ve(Ne),primaryBtn:{label:C?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?w.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?w.width.valuePx(p):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(p),paddingRight:w.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:C?Pe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(C)B();else{const n=D[I],m=o?.primaryContactLocalData;X!=="save"&&ue("save");const r=n?.email??"",g=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email??"",L=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!L?((!l?.firstName||!l?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),P=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email,L=y?.email;if(V){if(!L)return(y?.firstName||y?.lastName)&&u.trigger(`${O}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(l?.firstName||l?.lastName||l?.birthday||l?.nationalityCountryCode||l?.ownershipInCompany||l?.phone||l?.ssn||l?.titleAtCompany||l?.addressStatus?.addressToCreate||l?.fileIds!=null&&l?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0})();g&&P&&(S?.trackBusinessVerificationSave({email:r,birthday:n?.birthday?.toString(),companyOwnership:n?.ownershipInCompany,firstName:n?.firstName,lastName:n?.lastName,companyRole:n?.titleAtCompany,phone:n?.phone,formattedAddress:n?.addressStatus?.addressToCreate!=null?K(n?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:n?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Qe,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,b,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[O]:{companyDescription:a?.companyDescription??"",ein:a?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:a?.companyId??"",syncToken:a?.syncToken,companyLegalName:a?.companyLegalName??"",companyWebsite:a?.website?.toString()??"",companyAddress:a?.addressStatus?.addressToCreate,registeredAddress:a?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:a?.companyIndustry,allOptions:b?.map(f=>f.code)},companyPhone:a?.phone??"",companyTaxId:a?.taxIdOrEIN??"",primaryContactName:{firstName:a?.primaryContactLocalData?.firstName??"",lastName:a?.primaryContactLocalData?.lastName??""},primaryContactEmail:a?.primaryContactLocalData?.email??"",primaryContactUserId:a?.primaryContactLocalData?.userId,primaryContactSyncToken:a?.primaryContactLocalData?.syncToken,fileIds:a?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:a?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:a?.incDate?.toDate(),typeOfIncorporation:{selectedOption:a?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:a?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:a?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:a?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:a?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:a?.transactionVolume,allOptions:[...Vt]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Pt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[T]:Object.values(E).map((f,N)=>{const s=f,x=Ot(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${N+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:Tt(s?.nationalityCountryCode,R.map(S=>S.countryCode)),ssn:s?.ssn,role:{selectedOption:s?.titleAtCompany,allOptions:$?.map(S=>S.code)},phone:s?.phone??"",ownership:s?.ownershipInCompany,officerAddress:s?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,s?.userFiles??[],x),back:$e(!1,s?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&N===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Ve=e=>`${e}_form`,Rt=d.div`
1
+ import{y as rt,J as lt,a7 as ve,V as t,F as J,T as ct,cc as dt,z as pt,b$ as ut,ag as Ie,a5 as ke,fr as mt,i as ft,a_ as yt,a6 as ht,c0 as gt,bK as xt,bL as St,bM as wt,f as bt,A as Ct,a9 as Dt,o as c,b as F,W as Fe,O as _e,fs as Ot,eT as $e,ei as Tt,bX as vt,a8 as It,s as Ae,H as kt,B as $t,u as k}from"./index-k1doZNFg.js";import{a as _}from"./sentry-CytkDQe2.js";import{n as d}from"./mui-Bi07oTwe.js";import{El as Nt,bQ as K,ES as jt,ER as Pt,ET as Vt}from"./zeni-epic-state-DyRbb6Q5.js";import{r as Lt,z as Ft}from"./CompanyOfficerDetailsSection-BaPhFsLx-DHUewusV.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.js";import"./helper-BMiMbXMj-B-wSFTz-.js";import"./LabeledAddressValueField-C6-hVsPb-Cx3qxpIQ.js";import"./LabeledCountryMultiSelectField-sj8p7Rne-BB5IjdKT.js";import"./LabeledCreatableSingleSelectField-DUTQh416-C_C7TgJg.js";import"./LabeledDocumentField-Bp9m-OrP-BZJ1R-di.js";import"./LabeledNameField--saAep-_-CReVVQpK.js";import"./commonTypes-DsWS6Ccc-D27m4dJL.js";import"./avatar-Dz7aEm3d--QTMwhPr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="257e69a1-0d1e-4d69-b9e0-979351c8237f",e._sentryDebugIdIdentifier="sentry-dbid-257e69a1-0d1e-4d69-b9e0-979351c8237f")}catch{}})();const w={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])},_t={stepTitle:new kt("h6Regular","h5Regular")},Ne="businessVerificationPage",O="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Pe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),va=({businessVerificationDetails:e,allNationalityCountries:b,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:N,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:We,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:Xe,saveNewAddressInLocalStore:pe,onSaveDetailsClick:qe,onClickMenuIcon:Ge,onExecuteTreasuryTransfer:He})=>{const Je=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:D}=e,Ke=ve(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Qe=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(J,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(J,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(J,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(J,{href:i.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Y]=_.useState(!1),[X,ue]=_.useState("save"),[ee,et]=_.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:zt(e,A,U,b)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,v=Object.values(D).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&D[I]?.isPhoneVerified!==!0)return void u.setError(`${T}.${v}.phone`,{type:"custom"});const n=dt(Object.values(D).map(r=>Object.values(r?.deleteFileStatusById??{}).filter(g=>g!=null))),m=Object.values(o?.deleteFileStatusById??{}).filter(r=>r!=null);Nt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=D[I],g=r?.email,P=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,L=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?K(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,De=ne?.firstName,Oe=ne?.lastName,Te=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&P!=null&&L!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&be!=null&&Se!=null&&se!=null&&Ce!=null&&De!=null&&Oe!=null&&Te!=null&&S?.trackBusinessVerificationSend({email:g,birthday:P.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:L,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:De,lastName:Oe,email:Te},h,s?"Settings":void 0)})(),Me?.(I),Q===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(T)&&Xe?.(g[T])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=ve(e.companyDetailsLocalData?.addressStatus);_.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&me==null&&(pe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${O}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,me,pe,u]);const fe=z?.companyOfficers.slice(0,10).sort((n,m)=>n.user.createTime?.isAfter(m.user.createTime)===!0?1:-1),ae=fe?.map(n=>n.user),st=fe?.map(n=>n.role),nt={onOkClick:()=>{Y(!1),B();const n=[],m=z?.company.company.incInfo.fileIds??[];u.getValues(`${O}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const P=r?.fileIds??[];u.getValues(`${T}.${g}.fileIds`).forEach(l=>{P.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(ke(f),f,je.currencySymbol).toUpperCase(),ie=j?.code==="pending_review"||j?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&j?.code==="pending_review"&&Ke==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(ke(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),t.jsx(ft,{label:i.submittedButton,onClick:()=>{B(),oe?.()},variant:"primary"})]}):t.jsxs(Rt,{isSettings:s,children:[t.jsx(yt,{title:x&&C===!0?Bt:i.header,backgroundColor:Je.colors.grey5,style:{zIndex:ee?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Y(!0):B()},showBackButton:!s&&!x,showMenuIcon:!!s&&(p==="medium-compact"||p==="small"),onClickMenuIcon:Ge,rightSideComponent:x?t.jsx(ia,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{B(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:i.discardTitle}),descriptionComponent:t.jsx(St,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,t.jsxs(Mt,{windowSize:p,children:[(!x||C===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(bt,{size:"ExtraLarge",start:!0})}):t.jsx(Ct,{...u,children:t.jsxs("form",{id:Ve(Ne),onSubmit:at,children:[x&&C===!0&&t.jsxs(Et,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Jt,{children:t.jsxs(Kt,{children:[t.jsx(Le,{}),ye&&t.jsx(Le,{}),t.jsx(Qt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Lt,{companyOfficerData:D,allNationalityCountries:b,allOfficers:ae??[],sectionId:T,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:N,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Ft,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:R},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",hideNewOnboardingFields:q?.companyVerificationStatus?.code==="verified"&&!((o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null),sectionId:O,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:b})]}),h==="zeni_accounts"?t.jsx(Xt,{windowSize:p,children:i.threadText.replace("__amount__",ot)}):null]})})]}),$==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?t.jsx(Dt,{formId:Ve(Ne),primaryBtn:{label:C?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?w.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?w.width.valuePx(p):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(p),paddingRight:w.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:C?Pe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(C)B();else{const n=D[I],m=o?.primaryContactLocalData;X!=="save"&&ue("save");const r=n?.email??"",g=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email??"",L=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!L?((!l?.firstName||!l?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),P=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email,L=y?.email;if(V){if(!L)return(y?.firstName||y?.lastName)&&u.trigger(`${O}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(l?.firstName||l?.lastName||l?.birthday||l?.nationalityCountryCode||l?.ownershipInCompany||l?.phone||l?.ssn||l?.titleAtCompany||l?.addressStatus?.addressToCreate||l?.fileIds!=null&&l?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0})();g&&P&&(S?.trackBusinessVerificationSave({email:r,birthday:n?.birthday?.toString(),companyOwnership:n?.ownershipInCompany,firstName:n?.firstName,lastName:n?.lastName,companyRole:n?.titleAtCompany,phone:n?.phone,formattedAddress:n?.addressStatus?.addressToCreate!=null?K(n?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:n?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Qe,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,b,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[O]:{companyDescription:a?.companyDescription??"",ein:a?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:a?.companyId??"",syncToken:a?.syncToken,companyLegalName:a?.companyLegalName??"",companyWebsite:a?.website?.toString()??"",companyAddress:a?.addressStatus?.addressToCreate,registeredAddress:a?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:a?.companyIndustry,allOptions:b?.map(f=>f.code)},companyPhone:a?.phone??"",companyTaxId:a?.taxIdOrEIN??"",primaryContactName:{firstName:a?.primaryContactLocalData?.firstName??"",lastName:a?.primaryContactLocalData?.lastName??""},primaryContactEmail:a?.primaryContactLocalData?.email??"",primaryContactUserId:a?.primaryContactLocalData?.userId,primaryContactSyncToken:a?.primaryContactLocalData?.syncToken,fileIds:a?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:a?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:a?.incDate?.toDate(),typeOfIncorporation:{selectedOption:a?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:a?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:a?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:a?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:a?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:a?.transactionVolume,allOptions:[...Vt]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Pt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[T]:Object.values(E).map((f,N)=>{const s=f,x=Ot(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${N+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:Tt(s?.nationalityCountryCode,R.map(S=>S.countryCode)),ssn:s?.ssn,role:{selectedOption:s?.titleAtCompany,allOptions:$?.map(S=>S.code)},phone:s?.phone??"",ownership:s?.ownershipInCompany,officerAddress:s?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,s?.userFiles??[],x),back:$e(!1,s?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&N===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Ve=e=>`${e}_form`,Rt=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{j as k}from"./pdf-BC9fZG9d.js";import{a as A}from"./sentry-DU2EcgXN.js";import{j as ae,h as ne,i as se,l as oe,u as V,N as ie,k as re}from"./core-B3AUZ034.js";import{t as ce,aE as ue,y as de,aF as le,je as E,bc as pe,jl as B,k3 as x,jC as me,G as z,l5 as fe,kg as ye,jA as j,ej as R}from"./index-BtPm9NIK.js";import{Ka as Se,cs as G,nT as ge,CK as Ie,td as he,vY as be,yv as Oe,z9 as Te,A2 as ke,Kx as Ce,Ky as De,Kz as Ve,KA as Ae,KB as we,H3 as Ne,Jy as _e,Hf as ve,hq as Fe,di as xe,dh as ze,dg as Ee,l_ as Be,lR as je,lO as Re,hi as Pe,o0 as Me,n_ as P,bG as M,oc as U,bJ as Ue}from"./zeni-epic-state-Bnfd9FE6.js";import{n as Le}from"./mui-BHPGtaMB.js";import{c as L}from"./routePaths-Dqvnjt0t.js";import{M as Ge}from"./MobileAppDrawer-CDJXGCc5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2b05b710-472d-4a39-989d-b23ee10a004e",e._sentryDebugIdIdentifier="sentry-dbid-2b05b710-472d-4a39-989d-b23ee10a004e")}catch{}})();const Ke=Le.div`
1
+ import{j as k}from"./pdf-emb33J2I.js";import{a as A}from"./sentry-CytkDQe2.js";import{j as ae,h as ne,i as se,l as oe,u as V,N as ie,k as re}from"./core-twTS7Cne.js";import{t as ce,aE as ue,y as de,aF as le,je as E,bc as pe,jl as B,k3 as x,jC as me,G as z,l5 as fe,kg as ye,jA as j,ej as R}from"./index-k1doZNFg.js";import{Ka as Se,cs as G,nT as ge,CK as Ie,td as he,vY as be,yv as Oe,z9 as Te,A2 as ke,Kx as Ce,Ky as De,Kz as Ve,KA as Ae,KB as we,H3 as Ne,Jy as _e,Hf as ve,hq as Fe,di as xe,dh as ze,dg as Ee,l_ as Be,lR as je,lO as Re,hi as Pe,o0 as Me,n_ as P,bG as M,oc as U,bJ as Ue}from"./zeni-epic-state-DyRbb6Q5.js";import{n as Le}from"./mui-Bi07oTwe.js";import{c as L}from"./routePaths-DiyiibEL.js";import{M as Ge}from"./MobileAppDrawer-B2Fzw8F_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2b05b710-472d-4a39-989d-b23ee10a004e",e._sentryDebugIdIdentifier="sentry-dbid-2b05b710-472d-4a39-989d-b23ee10a004e")}catch{}})();const Ke=Le.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{V as n,f as r,o as i}from"./index-BtPm9NIK.js";import{n as d}from"./mui-BHPGtaMB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2edc2c01-f957-4568-9b04-7ff007e4a666",e._sentryDebugIdIdentifier="sentry-dbid-2edc2c01-f957-4568-9b04-7ff007e4a666")}catch{}})();const f=d.div`
1
+ import{V as n,f as r,o as i}from"./index-k1doZNFg.js";import{n as d}from"./mui-Bi07oTwe.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2edc2c01-f957-4568-9b04-7ff007e4a666",e._sentryDebugIdIdentifier="sentry-dbid-2edc2c01-f957-4568-9b04-7ff007e4a666")}catch{}})();const f=d.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{J as m,V as t,O as y,j as w,o as a,H as b,B as x}from"./index-BtPm9NIK.js";import{n as o}from"./mui-BHPGtaMB.js";import{a as c}from"./sentry-DU2EcgXN.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]="f2a4433d-a2d0-483b-afde-90b914a9bd4d",e._sentryDebugIdIdentifier="sentry-dbid-f2a4433d-a2d0-483b-afde-90b914a9bd4d")}catch{}})();const{common:p,spendManagement:{chargeCard:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=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,f=e.status.code!=="request_on_hold"&&s?i:d,n=e.type.code.includes("physical");return t.jsxs($,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,t.jsx(H,{}),d,n&&!s?t.jsx(u,{className:"physical-card-icon"}):null,e.status.code!=="request_on_hold"&&s?i:null,n&&s?t.jsx(u,{}):null]})},$=o(x)`
1
+ import{J as m,V as t,O as y,j as w,o as a,H as b,B as x}from"./index-k1doZNFg.js";import{n as o}from"./mui-Bi07oTwe.js";import{a as c}from"./sentry-CytkDQe2.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]="f2a4433d-a2d0-483b-afde-90b914a9bd4d",e._sentryDebugIdIdentifier="sentry-dbid-f2a4433d-a2d0-483b-afde-90b914a9bd4d")}catch{}})();const{common:p,spendManagement:{chargeCard:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=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,f=e.status.code!=="request_on_hold"&&s?i:d,n=e.type.code.includes("physical");return t.jsxs($,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,t.jsx(H,{}),d,n&&!s?t.jsx(u,{className:"physical-card-icon"}):null,e.status.code!=="request_on_hold"&&s?i:null,n&&s?t.jsx(u,{}):null]})},$=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%;