@zeniai/web-app-ui 4.14.30-qa → 4.14.31-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 (372) hide show
  1. package/dist/assets/{ACHDetailsPage-CQdbfxHV-CVfdxX3S.js → ACHDetailsPage-CFhoboVe-DcRe2nTt.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-jyNXVGMj-Df3oatFx.js → AIPerformancePage-DB-fTWME-DYZeuOnD.js} +1 -1
  3. package/dist/assets/AccountInfoPage-pEEhPqOb-B-Hd8VtG.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-eYEsv7ac-DDYvpmDy.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-EbQpyRJx-CBjiURZ4.js → AccountLockedInfoModal-jYWr_8TD-DcOOzUkE.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CK1QV13E-DZmItK8g.js → AccountReconDetailsDrawerPage-3Q0EPYhL-27wJMTjD.js} +2 -2
  7. package/dist/assets/{AccountRow-B3Sz6a-V-CTAgoDt8.js → AccountRow-CdgvnPG8-BR1hQ4Zy.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DJtz56-u-DZZMgyeG.js → AccountsPromoCardStack-DHo59LLN-ChbxyMzd.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-BDtxj9h6-CGRCP-Ov.js → AddAddressForCardDrawer-BzO1FXUa-kLdLeGkd.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Czepun8f-BSrXEfN0.js → AddToWalletPage-BfXFbHjk-CYPGe181.js} +1 -1
  11. package/dist/assets/{AddressRoutes-TFWvRoK1.js → AddressRoutes-XcDMlDlS.js} +1 -1
  12. package/dist/assets/{AddressScreen-TV5gX_gl.js → AddressScreen-DPPx0MfK.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-DzAVDq_i-ym_LOlxy.js → AgingReportsPage-C1hFq4KH-DN--gN3O.js} +8 -8
  14. package/dist/assets/{AiCfoScreen-D6K-vpzr.js → AiCfoScreen-30SW2q3w.js} +1 -1
  15. package/dist/assets/{AllUserItems-BEoRQT-v-B0L7dc_f.js → AllUserItems-B6pnKByY-DyP7v-cA.js} +5 -5
  16. package/dist/assets/{ApAgingDetailPage-55JdoIHh-DrarMtyY.js → ApAgingDetailPage-CxLVGnpY-BYGcfd1t.js} +8 -8
  17. package/dist/assets/{AppBasePage-CLye29uw-XKxIMpL1.js → AppBasePage-DiVxF606-AXI0aqhJ.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-CDawrmfz-CIsX5yBE.js → AppDrawerContent-B_EWsf8O-CMysKcTU.js} +5 -5
  19. package/dist/assets/{ApprovalRulesSettingsPage-BHUZdWCO-Dwb34rZQ.js → ApprovalRulesSettingsPage-HHjDp_NQ-jrLhlHCF.js} +1 -1
  20. package/dist/assets/{ArAgingChart-DeL9nNI7-jiARVqmw.js → ArAgingChart-Ba4A-i2N-PODxdvyn.js} +4 -4
  21. package/dist/assets/{ArAgingDetailPage-CuG65EQs-DJsQVyGf.js → ArAgingDetailPage-prgcvsS4-BsTAVwTa.js} +1 -1
  22. package/dist/assets/{AttachmentView-C5anq6-B-B0oKrwit.js → AttachmentView-SsWJw4A8-RJr9hQhO.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-1PK_fwhP-DTycoTBO.js → BalancesInsightWithToolTip-DE6gDjGA-e_65zoZY.js} +4 -4
  24. package/dist/assets/{BankAccountSection-BUJoSOk8-CktP5_6B.js → BankAccountSection-B4jmT0lb-zwPodZbw.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-BQaoV2yQ-D2dPrb3a.js → BankAccountWarningSection-Bz2itMx0-BfZtVATK.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-DRDS5xzS-sJm12Xpi.js → BankConnectionsSettingsPage-BcVk7bTt-C3Wp_iZl.js} +9 -9
  27. package/dist/assets/{BillDetailPage-CtVVaqTN-Cs2maBN6.js → BillDetailPage-Dkqmi4H1-C6mDNSc2.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-BcknH4As.js → BillPayApprovalRoutes-CaSA1uSR.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-6GHCsDkX-BhEokdj1.js → BillPayApprovalRuleDetailPage-Blxlv3pa-BYAGbgwQ.js} +4 -4
  30. package/dist/assets/{BillPayApprovalRulesPage-QKjq-qVP-bPrJjJ_n.js → BillPayApprovalRulesPage-B_QwggJS-BveqhBul.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-_n9uoXTN-C-ItO23h.js → BillPayPromoPage-Bx2AXpWe-BrIbmhut.js} +11 -11
  32. package/dist/assets/{BillPayRoutes-CrujOQ7A.js → BillPayRoutes-CMdKHc5T.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-DNYX24VA-xlmRW4oi.js → BillPaySetUpPage-CM7_DkHC-Bt5CjJNs.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-Btv3yiNs-8WC50UDB.js → BillingSettingsPage-DM0OIfxa-CKHUmPAw.js} +3 -3
  35. package/dist/assets/{BillsBulkReviewDrawerPage-BiLLeGke-JyRoZ7s-.js → BillsBulkReviewDrawerPage-C3xmQ7wz-Cf_j4N1J.js} +1 -1
  36. package/dist/assets/{BoxItem-Dqp4SNlI-CnJYfmyU.js → BoxItem-CvCo0wr6-BAtsmvg4.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-_8Wg_S5G-CBDfKOCi.js → BusinessVerificationPage-BAZmkR4a-BbYTLnZH.js} +3 -3
  38. package/dist/assets/{BusinessVerificationPageScreen-BSkh5puj.js → BusinessVerificationPageScreen-DVGxc_kT.js} +1 -1
  39. package/dist/assets/{BusyIndication-BZLVwIo8-D7x09Syx.js → BusyIndication-Cp8KWKB2-paVspSd6.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-12zyW5qQ-CZArd4_p.js → CardNumberSubText-DHtSIcZZ-CJNkVpEB.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-B8-TDuv8-BtBdmaco.js → CashbackDetailPage-CNS1FA6b-DNPbsy8R.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-Bdz5L2ko-B9HW8VJu.js → ChargeCardDetailPage-C4NeG7IM-Bqzrs3Tx.js} +1 -1
  43. package/dist/assets/{ChargeCardListPage-EuJ1VXck-C9ILrDfC.js → ChargeCardListPage-DNYiWaEf-D4WPR4qJ.js} +6 -6
  44. package/dist/assets/{ChargeCardListTable-SgjwYd8W-D2X3nHhv.js → ChargeCardListTable-DdnyzdFf-BLIVQeNK.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-BC2DkmZT-z-BJ1TRl.js → ChargeCardPaymentHistoryPage-CXlqzaUt-nlgSDdhG.js} +10 -10
  46. package/dist/assets/ChargeCardPromoPage-D4canPX9-CjFFR5oK.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-DtXgeUrQ.js → ChargeCardRoutes-DipRg107.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-ByLoLZE_-D5yhBe12.js → ChargeCardSetupPage-BtikPFOq-Ci06zFqY.js} +2 -2
  49. package/dist/assets/{ChargeCardStatementsPage-C4XdqPO1-B4JvhC1B.js → ChargeCardStatementsPage-RepWBbvJ-qZhzfjJs.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-D5X61CKc-DCVEIWOd.js → CheckDepositDrawerPage-BCqg3irO-CU861UMl.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-D7zD4-h0-CXEJdn3k.js → CollapsableReportTable-gy7Ue_fk-Cp0GdxMJ.js} +2 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-w86_5FXJ-BVS8U2VI.js → CompanyOfficerDetailsSection-BsCx7q-g-Bqu05vNe.js} +11 -11
  53. package/dist/assets/{CompanyPassportCard-tpE1lXug-aG1e_v_p.js → CompanyPassportCard-BbUWOs1U-CQapOMzG.js} +6 -6
  54. package/dist/assets/{CompanyPassportPage-bND99CJN-51EM3BS8.js → CompanyPassportPage-BnP2oA1U-DG-ray3n.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-DNHzvh3T.js → CompanyPassportScreen-Bsk4iSLd.js} +1 -1
  56. package/dist/assets/{CompleteProfile-B5W07hcs-BYS2Cw7x.js → CompleteProfile-TiRsm2Fm-Dmw9B9gd.js} +1 -1
  57. package/dist/assets/ConfettiBurst-D7J36hZf-DAmXS8qh.js +1 -0
  58. package/dist/assets/{ConnectionAuthScreen-C1ACdx6M.js → ConnectionAuthScreen-CdbJnza-.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-C96GWvku.js → ConstrainedInnerElement-CgdnMeoA-CpoLys2G.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CrQh8JCh-CdARK_ay.js → CreateOrEditVendorPage-Dihzr1D5-Df0a--du.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-BoVmLCHh-ClmStU3s.js → CreditCardPaymentDrawerPage-CZGzDuxC-CG7xBUFZ.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-D2azwi1T-Yce6ywvM.js → CurrencySelectField-BTAmIqPa-BOvsicp3.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-DxuEGe6X-DOVYYini.js → CustomerOnboardingActivationPage-MVI7kqIh-B52EVUog.js} +3 -3
  64. package/dist/assets/CustomerOnboardingAuthScreen-DO7d0gIb.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--CSEqEIM8.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DRGKainD-DRHsfYAC.js → CustomerOnboardingDetailPageSkeleton-CaI_0pCb-Dx2c__Yb.js} +8 -8
  67. package/dist/assets/CustomerOnboardingNoStepsPage-CO_c2COV-CcNi7DUF.js +66 -0
  68. package/dist/assets/{CustomerOnboardingPage-BXZSl2im-CdR09mXQ.js → CustomerOnboardingPage-BF0vuYaJ-CpeT13Rn.js} +16 -16
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-BJmYX0kI-DgmtQLkO.js → CustomerOnboardingProductSuitePage-BGFdLX1i-C7qSBsYV.js} +3 -3
  70. package/dist/assets/{CustomerOnboardingRoutes-BNk50EBa.js → CustomerOnboardingRoutes-BqTX1iyW.js} +1 -1
  71. package/dist/assets/{Dashboard-yhqyXPbZ-DD3l1FY2.js → Dashboard-Qjedd4r--DdmcDs7e.js} +26 -26
  72. package/dist/assets/{DashboardReportPage-BG4StCjY-BqArxOAD.js → DashboardReportPage-Deith_ON-BYNIuWwI.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-sZ-hP0Lz.js → DashboardRoutes-C3tqy16Q.js} +1 -1
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-C7DfUDio-CXRw7JSP.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-BZ1C0pHF.js → DefaultTenantHome-DTL7QcJH.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-5ZEPnNxa-5QBvNOk0.js → DepositAccTransactionItem-7kYotKov-C07q_etT.js} +7 -7
  77. package/dist/assets/{DepositAccTransactionListPage-BR8d0Kun-DoTQr_rp.js → DepositAccTransactionListPage-Bop4Uj5w-DYSx2RBP.js} +3 -3
  78. package/dist/assets/{DomesticWireDetailScreen-H_WuL4rG.js → DomesticWireDetailScreen-D_BfoPLh.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-wGIWvhgQ-uEZDY48j.js → DomesticWireDetailsPage-_TyXsqEx-jkwnoEUE.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-SLvxfa6B-BbI1muq1.js → DownloadOverlay-Cmd727bN-CUU7ZY9L.js} +14 -14
  81. package/dist/assets/{DrawerPage-CFdTV10k-BDAq-J1m.js → DrawerPage-DmGwfnGp-LTv4sDcy.js} +1 -1
  82. package/dist/assets/{DrawerScreen-DokbcyFi.js → DrawerScreen-DtF71b7B.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-C-Y62PJ0-OR5daMys.js → EditPeoplePage-YyluIC6R-CXdaDa7G.js} +5 -5
  84. package/dist/assets/{EditReimbursementDetailPage-BYpXof8e-DpqR0TKa.js → EditReimbursementDetailPage-DeMid2Ko-Bv-8Xabp.js} +14 -14
  85. package/dist/assets/EntityDetailPage-DPTSSZdS-oHoyHWu0.js +18 -0
  86. package/dist/assets/{EntityDetailRoutes-DPf_I5PV.js → EntityDetailRoutes-DYnivlwX.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-B2uG3-Zh-BNN-XEhG.js → EntitySummarySection-5NbutA8l-CQbl1YIH.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-CrtNuarm-DCl80aVX.js → ExpenseAutomationOverviewPage-CQ_3WluW-CLWld5W7.js} +6 -6
  89. package/dist/assets/{ExpenseAutomationPage-CWPnIMSu-DYb4-i2t.js → ExpenseAutomationPage-VuU4acYd-B7T-Dg4p.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-DUWDjNay.js → ExpenseAutomationRoutes-BlW2sTwn.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-CsI_DUc6-DXAWujAE.js → ExpressPayPage-DhoNmyC2-Bd-YVNzq.js} +10 -10
  92. package/dist/assets/{FeaturePreviewPage-B67a68N9-D61ej93i.js → FeaturePreviewPage-GSwhPxgP-CXXTQoUA.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-Bcvg8Bfv.js → FeaturePreviewScreen-CpHWA-St.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-CgjzMm02-glrhNO5E.js → FollowStepsSection-DaueHRo4-FQso0zsG.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-CIfK-0rd-COml45hA.js → GlobalReviewListPage-DG7_1HOT-_eh0o3Lh.js} +1 -1
  96. package/dist/assets/{InformationCardStack-qKld10kr-0nHm6M6u.js → InformationCardStack-zc-BxR7F-CH328-RF.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-Bbh77o6f-D3KyjkmI.js → InsightsCardStack-DxCA5sFh-Y8l4503l.js} +5 -5
  98. package/dist/assets/{InsightsSection-DgfCOO4F-D4slzBMJ.js → InsightsSection-BdFG3j3R-DjHyJY78.js} +7 -7
  99. package/dist/assets/{IntegrationsSettingsPage-BRQFeOLt-PsXcQlIc.js → IntegrationsSettingsPage-CaiL3kqS-CiO2l-pg.js} +3 -3
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-DPemNncS-DLnjaRZK.js → InternationalWireSwiftDetailsPage-BrQVSzeS-B8g9fXts.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-BOxXfIY5-B_1WnyJ0.js → InternationalWireVerificationPage-NaLnhW9C-Be5m5GNN.js} +10 -10
  102. package/dist/assets/{InviteFormPage-BbbPCdh--NZBdztJE.js → InviteFormPage-fjqv2l7h-CLLSBMJ2.js} +1 -1
  103. package/dist/assets/{InvitePageListView-DqfrAulo-DhRBOiF7.js → InvitePageListView-CQecQhxr-DHxSXSin.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-CgTpZp4M-BUUsiiJF.js → InvitePeoplePage-DAEBuOnk-CNuAu3aA.js} +1 -1
  105. package/dist/assets/{InvoiceUploadSection-DZOzTShz-CcOswv0c.js → InvoiceUploadSection-58l6ePuH-CbCDsLyQ.js} +8 -8
  106. package/dist/assets/{IssueChargeCardPage-x6dLcd-P-w04y_5jk.js → IssueChargeCardPage-Bkxqsgax-B2E0w7s1.js} +8 -8
  107. package/dist/assets/{LabeledAddressValue-CY4Fn72d-eGI6rz6c.js → LabeledAddressValue-CZfFV97h-D0qxrk9o.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-D47ofJFV-vxJBVafU.js → LabeledAddressValueField-D66XOhMx-BL2wLyLH.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-C_c8Rs-i-BHT9Wulx.js → LabeledControlledCheckBoxField-BtnsqE4D-B85xoPON.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-vRw9drBe-B76tRzel.js → LabeledCountryMultiSelectField-kopByxLB-1-3v1UQa.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CdF97ljM-CAYzF-3Y.js → LabeledCreatableSingleSelectField-B6An-cwq-DFSBA92N.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-Dn25Ru1C-B_WMp98N.js → LabeledDocumentField-D_ZD8JTn-vKeq6vm6.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-C2sZjA-q-Ct_5ILId.js → LabeledDropDownFormattedTextField-CJ7ncCzH-B0WjHFnN.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-DzAdekQn-C8rbJEKG.js → LabeledEmailInputField-CSfzMDYO-CWt52Wcv.js} +1 -1
  115. package/dist/assets/{LabeledNameField-Dxx0xwMv-q011DeE8.js → LabeledNameField-DZJXGYR9-BrTXKAba.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-EO8TA_z_-C5J3CIRA.js → LabeledSingleSelectField-D_LoOMiZ-BMpo-aMs.js} +1 -1
  117. package/dist/assets/{LabeledText-Bo7B-LrF-XkdNglCy.js → LabeledText-A1h_ionS-CFl8s8G-.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DD11_Map-Cz77QBp-.js → LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-Q6YssO3g.js} +4 -4
  119. package/dist/assets/{LabeledZeniRolesDropDownField-BJ99uBt1-DRxN007k.js → LabeledZeniRolesDropDownField-DmynBXbJ-B4T-A7Cu.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-BiDoUKQW-DfQfBCux.js → LinkJETransactionPage-D6-fL4a6-tCaqs9Yj.js} +13 -13
  121. package/dist/assets/{LockCardPage-B1QOSByp-DoXf8Ddb.js → LockCardPage-BDlnh_zf-cKP8zIxD.js} +10 -10
  122. package/dist/assets/{LowBalancePopup-Bl_PaIUx-Cz8COji5.js → LowBalancePopup-CBPl_udd-BorudEL4.js} +1 -1
  123. package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-C2vI5jVH.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-BcNOhJgL-mWcNcIhr.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-Df8XYlkg-bsxOE2QI.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-26mPfcBZ.js → MagicLinkRoutes-CcsKjkce.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-BZrsQ5lk.js → MagicLinkSignInScreen-Dw8ViAP-.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-CuL-7CWN-CPURwwOW.js → MagicLinkSuccessPage-Cl461HWp-01GdAVLj.js} +6 -6
  129. package/dist/assets/{MagicLinkTitleSection-RYhrN820-C7Vcy8B4.js → MagicLinkTitleSection-DoIMYrRv-wUyCV4b7.js} +1 -1
  130. package/dist/assets/MailingDetailsSection-NdwWGQ88-ChhAh-Lq.js +21 -0
  131. package/dist/assets/{MobileAppDrawer-CVmbFUtl.js → MobileAppDrawer-D7V2koAX.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-5MZl4h9B-zFBR8G0C.js → MoreMenuButton-CkkW1atP-CT7ietod.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBw6kNsm-CLFKHbI6.js → MyBankConnectionsSettingsPage-BU6TBzI1-DURfzXrx.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-BC4YjZtP-DazHEsal.js → MyPendingActivationChargeCardListPage-DcunCDU6-CQIAZ-Ax.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-DZ5M2BUN-CgmWIcfU.js → MyProfileSettingsPage-DF7ahyXE-BEXIytCm.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-C6FiaLu5-CpPmiX85.js → NavBarWithPicker-D2v1fhLS-CGpIi67k.js} +1 -1
  137. package/dist/assets/{NavigationArrow-BnAgR0wH-BHMKW5N7.js → NavigationArrow-CWUL-6kN-CRVEGy5S.js} +1 -1
  138. package/dist/assets/{NavigationDots-WUDG_g8M-DDdWfUW3.js → NavigationDots-c-XSrFzE-Bl0Sm_Ng.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-gAsCusVw-Dq-IWGpb.js → NewGlobalMerchantPage-FGEO68I8-BKtwnvr_.js} +1 -1
  140. package/dist/assets/{NoDataChart-BBYUjdKn-CRdzJbNp.js → NoDataChart-DJhSgtLu-BO4-72hz.js} +1 -1
  141. package/dist/assets/{NoDataTable-D3750d25-DG2oQDdM.js → NoDataTable-BZiwo2qK-CJLZnBQL.js} +1 -1
  142. package/dist/assets/{NotFoundPage-C4D8Rn9E-CwNmDrN1.js → NotFoundPage-BN5unYX8-B80hQ8eO.js} +3 -3
  143. package/dist/assets/{NotFoundScreen-B8XFlejE.js → NotFoundScreen-BBbILNsa.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-N8MRrxNI.js → NotificationRoutes-BH_Amwk1.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-CD-t91ia-m4MxTTW4.js → NotificationSettingsPage-d8kHDj0M-2vIf0BRe.js} +1 -1
  146. package/dist/assets/{NotificationsListConfig-C7JSE-eQ-KxVFUV3z.js → NotificationsListConfig-ThKLok_w-Bx-0LQ4e.js} +1 -1
  147. package/dist/assets/{NotificationsPage-Be1v8niA-VHkbcX-a.js → NotificationsPage-Uvu6XESA-D1y42vLB.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-D1f1lQbs-DLXANeGq.js → OpExByVendorPage-QyqRkD2_-h8x1NnCW.js} +5 -5
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-B0J4P0vh.js → OverlayContainerPage-BG9y5C0t-B8rQHhtN.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-DIYb7BWp-eRZ2xhPy.js → PandLWithForecastPage-DJ2v5qbE-BgEHjFpy.js} +2 -2
  151. package/dist/assets/{PandLWithForecastRoutes-DV3lwMtf.js → PandLWithForecastRoutes-CCN_Dopf.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-tGkjxbjY-DHB-KR0X.js → PaymentAccountSetupBillingAddressSection-q5z8XZFC-IYhUlGT-.js} +6 -6
  153. package/dist/assets/{PeoplePage-xwAOX4Jk-cobVcrYv.js → PeoplePage-C5ZdpVyR-DA1lsmrN.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-0VPcCQMG.js → PeopleRoutes-BLNrKR-x.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-DWL6I_M2.js → PerformanceRoutes-BBydKp8A.js} +1 -1
  156. package/dist/assets/{Preview-k4ohm46R.js → Preview-C2UYzTeJ.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-OHbYasaa-DyO10mDE.js → ProductsCarousel-CXjLTOLy-2QbHSm9u.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-B_0dccCZ-Cll52Aug.js → PromoBaseCards-CN9uZfG4-CB2JkJIv.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-5ItNvdCA-B93tYXoX.js → QBOConnectionDialog-CXSi1Pd9-CSvewQW2.js} +2 -2
  160. package/dist/assets/{QBOConnectionScreen-CIFlgaXj.js → QBOConnectionScreen-tSJfFhQn.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-CHZgQppe-Boi15f5H.js → QBOSetupSection-BrtLMvEP-D5Os1BGx.js} +3 -3
  162. package/dist/assets/{ReferralListScreen-OXcIgRf5.js → ReferralListScreen-CJqU7RxZ.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRoutes-CoU_u8MQ.js → ReimbursementApprovalRoutes-BHsHN-u_.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CqZT111l-BQrCKR9A.js → ReimbursementApprovalRuleDetailPage-CS1BQ7pL-_lY11RDq.js} +6 -6
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CPkYjm-o.js → ReimbursementApprovalRuleDetailScreen-Bs2ple33.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BzTe2nqd-CnRJV-7t.js → ReimbursementApprovalRulesPage-aLRkhkZB-CV07eSYp.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-DM650uCR-CfT7lIQy.js → ReimbursementDetailPage-Dr5BTvEq-DM2tEzQB.js} +7 -7
  168. package/dist/assets/{ReimbursementPromoPage-CitTg9s4-C0IJS9C3.js → ReimbursementPromoPage-C5Z0mVhQ-Dq3UPRZ3.js} +10 -10
  169. package/dist/assets/{ReimbursementRoutes-CexK6hr3.js → ReimbursementRoutes-iv71wb2Z.js} +1 -1
  170. package/dist/assets/{ReimbursementSetUpPage-qphyaCoX-DoGJ3Yjs.js → ReimbursementSetUpPage-CXhOBErm-BnZZWQ1W.js} +5 -5
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CCJvQKip-DJZoHiHh.js → ReimbursementsBulkReviewDrawerPage-CA0n0mau-Bq7X2QJa.js} +1 -1
  172. package/dist/assets/{ReloadCard-DMNbI6QE-C_0_5wQl.js → ReloadCard-Bjp8ygC2-DsEbxw3o.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-CUG4hVI9-BizHpKUG.js → ReportTableViewSelector-DTk1dNWC-QFtHZK4J.js} +5 -5
  174. package/dist/assets/{ReportsPage-nuM-ub1p-B6rPi-ib.js → ReportsPage-DrjOGopt-xwTAFZ82.js} +4 -4
  175. package/dist/assets/{ReportsRoutes-Cp6mze8I.js → ReportsRoutes-BhpH3vEG.js} +1 -1
  176. package/dist/assets/{RevenueChart-BL5Wb2UT-33eDsujQ.js → RevenueChart-CqGvXDr4-BDXPrwnC.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage-CUolLJ6s-D-zhUoA6.js → ReviewDetailsPage-CWBP7FBN-XuXg3BcA.js} +17 -17
  178. package/dist/assets/{ReviewOverlay-A1OYNSqG-9s_1ZdtP.js → ReviewOverlay-Cxkp85Kw-BxuvLEpC.js} +1 -1
  179. package/dist/assets/{RewardsRoutes-BSovi6wQ.js → RewardsRoutes-CGI6v1LD.js} +1 -1
  180. package/dist/assets/{RoleWithToolTip-VOllzDDB-BYsZPBtm.js → RoleWithToolTip-CqLxmtj6-Rnjw9i_g.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-By3U1RYU-DKJcrnu_.js → ScheduleDetailsFixedAssetsPage-CYvlB3Nf-DLsNuhIe.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-ButJHPUw-QIDoDzfq.js → ScheduleDetailsPage-CZXJ15tN-DK-Vvm5e.js} +1 -1
  183. package/dist/assets/{ScheduleSequenceTable-Dv831gVJ-DAMs3BZ5.js → ScheduleSequenceTable-DNPID_7F-Bz8d2Fhy.js} +14 -14
  184. package/dist/assets/{ScreenRoutes-Dbhh2QOI.js → ScreenRoutes-B0gKACTz.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-BcNG0nDh-wr_b4Gnf.js → SetUpAccountSection-_WPR-q2V-BVzNpUbf.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-DsoaaeGm.js → SettingsRoutes-BrokioTP.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-C8L8QqMz.js → SetupPagesScreen-BiJM7znn.js} +1 -1
  188. package/dist/assets/{SignIn-D80UITQm-DIIeYnW9.js → SignIn-CDEsZw_T-BhKsIiWi.js} +7 -7
  189. package/dist/assets/{SignInScreen-CWsG4Mxf.js → SignInScreen-CRHQkOWq.js} +1 -1
  190. package/dist/assets/{SignOutScreen-Cs9C3-Pe.js → SignOutScreen-CSmP5G0L.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-DSG6Son_-kr01Gbhc.js → SpendManagementListViewPage-MOCWuROI-DdkFjcW6.js} +8 -8
  192. package/dist/assets/{SpendManagementPerTabPage-DiSu0RS1-DHuUoD95.js → SpendManagementPerTabPage-BeK0SCeE-DPZd4om4.js} +1 -1
  193. package/dist/assets/{SpendManagementSection-BXU3RGG8-BYhx4BvA.js → SpendManagementSection-DZFPfKNi-DT0rYb2P.js} +14 -14
  194. package/dist/assets/StatementItem-DjvU5wiI-DmQsj9gw.js +31 -0
  195. package/dist/assets/{StatementsPage-Ck1xzA0w-ClPKQbtk.js → StatementsPage-DYLp_e7W-CYuAqH_I.js} +1 -1
  196. package/dist/assets/{StatusSwitcher-_Cs3CzJl-Dgp2ChlN.js → StatusSwitcher-jxaonB4S-Cxq2Q9_V.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-D3ltE_yc-CnL7Gxp8.js → SubTabSwitcher-CudjNlsi-D6kvvomf.js} +1 -1
  198. package/dist/assets/SuccessAnimation-DE_x1Zz_-AQ5Y5JIA.js +13 -0
  199. package/dist/assets/SummaryCard-DPOhBmkr-Cv-w5fsm.js +1 -0
  200. package/dist/assets/{TaskDetailPage-CJKga1vr-C9aggkuO.js → TaskDetailPage-CXexRKAY-BOPspi-s.js} +1 -1
  201. package/dist/assets/{TaskListScreen--R6ZRUkx.js → TaskListScreen-B0RVzFet.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-BMwMSG1j-H5G6dYbH.js → TaskManagementPage-CTMoHv0R-BGb6WsaA.js} +28 -28
  203. package/dist/assets/{TaskRoutes-DYzJiY4s.js → TaskRoutes-vmd5uItQ.js} +1 -1
  204. package/dist/assets/{TimeRangeSwitcher-B1Wx03tG-BWIrI-Q6.js → TimeRangeSwitcher-SqY2MHGs-ChpZHeuG.js} +2 -2
  205. package/dist/assets/{TimeframeSwitcher-Dmtsdwi9-Cw7Bi58F.js → TimeframeSwitcher-BlJ2fuHy-JP2UlRBY.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-P5CfgTUd-Dktx47QV.js → TimeframeSwitcherWithToggle-Dgc1odUH-ChrHPbvN.js} +2 -2
  207. package/dist/assets/{TopExCard-DQkr9Xhh-BRnZbxyD.js → TopExCard-CG8YLsYe-B5wqJJSw.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-5Di6WUfV-BUXw1BOA.js → TopExDetailPage-TvYCbzSP-CTOCVsET.js} +5 -5
  209. package/dist/assets/{TransactionActivityLogPage-R9LoW4DL-D_EoHZ59.js → TransactionActivityLogPage-BL3vEAdU-Bk3OacNa.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-B-blHtkn-DCMnh0nU.js → TransactionDetailPage-DUouBL0o-DkOa5f2H.js} +32 -32
  211. package/dist/assets/{TransactionDetailRoutes-Ct3Dbt4h.js → TransactionDetailRoutes-D5_-HF2Q.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-BI8wXwWu.js → TransactionDetailScreen-DHwJH1ZP.js} +1 -1
  213. package/dist/assets/{TransactionList-FQvTXSzy-B5IF52jl.js → TransactionList-B16NONME-xM0VK0uD.js} +9 -9
  214. package/dist/assets/{TransactionListBig-CNDw7zRw-TaxjiJ28.js → TransactionListBig-CItPbTRV-BpUwrWyu.js} +1 -1
  215. package/dist/assets/TransactionListPage-DNecYY8M-ptahFcY0.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-B3byuAak.js → TransactionListRoutes-DIJ_fkWS.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-Ch2UUF1f-BrGjAHyI.js → TransactionVendorDetailPage-DpqisXN8-wU2wHv2K.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-C1Ly_xKj-fiBb4oDE.js → TransferDrawerPage-Dsmbswu0-DFQDwnPy.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-Zt5w8zfp-Ch3HnWvf.js → TreasuryOverviewPage-BcRpcYmB-DwdLr4Xt.js} +21 -21
  220. package/dist/assets/{TreasuryPromoPage-BsP73kf7-CL2gh8Up.js → TreasuryPromoPage-DOO_OMRa-uzWYBUzW.js} +14 -14
  221. package/dist/assets/{TreasuryRoutes-CiZ9sTKP.js → TreasuryRoutes-BfRwxvKx.js} +1 -1
  222. package/dist/assets/TreasuryStatementsPage-A_U7bEy5-C1uv8XvN.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-tHkQvX2V-DC4DIUK0.js → TreasuryTaxLetterPage-BsJn-BgX-Dcdm_qTO.js} +3 -3
  224. package/dist/assets/TrendChart-GMMat-NG-BewK0MCc.js +16 -0
  225. package/dist/assets/{TrendWithTransactions-DP1jZL1i-DLC5jL9Q.js → TrendWithTransactions-CrA4opNV-B_vQq65J.js} +7 -7
  226. package/dist/assets/{UncategorizedAccountsMappingPage-4mHyt2P6-CaPpF27u.js → UncategorizedAccountsMappingPage-CrzbFGOi-BDtcuYej.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-BymmWe1G-c3FxOZsw.js → UnitIntegrationPage-XZY6zJa7-D8B46vcm.js} +3 -3
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-DUO2ZoU--C5vn0EeB.js → UploadAdditionalDocumentOverlay-eqwSLigx-kRVMQYF-.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-8kpMx5RI-B6wz9ehO.js → Vendor2FAPopup-BHDivuPB-D7ySxcXF.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-BgbOpk55.js +1 -0
  231. package/dist/assets/{VendorDetailPage-C-JJfR0u-xsJdXYgh.js → VendorDetailPage-DEu-yS8w-BhFmuJot.js} +7 -7
  232. package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-DCXCuX-V.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-B4vFgSwb-BhTGj51T.js → VendorFiling1099EditablePage-C461SzO0-CCIZoPU6.js} +6 -6
  234. package/dist/assets/{VendorFirstReviewPage-CUwdrbjH-C8NXBWTw.js → VendorFirstReviewPage-klbCHS04-UP-04u7X.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireDetailsPage-BzP1zqhw-BApkoCPp.js → VendorInternationalWireDetailsPage-DY0V-VbO-Dl3hBhoD.js} +1 -1
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-h6qnY29-.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-Drue-Lvz-BCNmsP23.js → VendorsAccountsSection-Cqcr-ArD-CzW5lMfP.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-CKhkv2e_.js → VendorsRoutes-DLnvF6hR.js} +1 -1
  239. package/dist/assets/{VerifyDevice-B_NNzkjT-DssvqA1v.js → VerifyDevice-Dhu5iywf-cUES-VE2.js} +9 -9
  240. package/dist/assets/{VideoPlayer-Bc4tAd79-1S5ggZVm.js → VideoPlayer-ZGjx_Hp7-CjY3r1rL.js} +1 -1
  241. package/dist/assets/VideoPopup-R3u0N_if-CaG3EJQq.js +31 -0
  242. package/dist/assets/{WiseConfirmationScreen-DJuJvNzv.js → WiseConfirmationScreen-CT86mZ0i.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-BW6G2voE-DG228Rrt.js → ZeniAccountDetailPage-DQB7sXU9-CZEM5xVV.js} +12 -12
  244. package/dist/assets/{ZeniAccountListViewPage-gNszI2XV-vz3h67sw.js → ZeniAccountListViewPage-BwXKgf6g-FfpOzmd6.js} +1 -1
  245. package/dist/assets/{ZeniAccountNavBarPieces-BP1IxZ18-D8VlWC64.js → ZeniAccountNavBarPieces-CHUTFAWG-v671evv-.js} +4 -4
  246. package/dist/assets/{ZeniAccountPromoPage-LsZxIdX9-BS_EkGM_.js → ZeniAccountPromoPage-BkfJuMNV-CmI6f_1i.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-1i5H0-IW.js → ZeniAccountRoutes-bnzTspvl.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-BExQA9Cz-xecz4xSG.js → ZeniAccountSetupPage-C3drM4Zs-CvpINFn4.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-YmdFA__8.js → ZeniAccountStatementScreen-B5KsFobU.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-5wP6sb3W-CwxwTkTA.js → ZeniAvatar-C38T0-5--BM3XjRcp.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-CMjFbDBQ-Ck2DhCCZ.js → ZeniCopyright-CznSgVJF-BhclYMa4.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-C_YQpGe--B6o5NtIP.js → ZeniDatePicker-Bw9RlgoL-DDQaNsVY.js} +1 -1
  253. package/dist/assets/{ZeniTransferAmountSlider-CIu35Xz9-CbkYbuv-.js → ZeniTransferAmountSlider-C77DEl-C-CYKYiLaT.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-Ctd7yuH3.js → accountMappingHelper-B1SwIfFo.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-q_ZatOIu.js → add-to-wallet-DgdBD8_G-2vbkyqzY.js} +1 -1
  256. package/dist/assets/{analytics-Ci5SIN4_.js → analytics-Qgv3Fhaa.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CG-L3dO7-BuQ3dQan.js → analyticsHelper-Bh8o1v3y-erbhoWbk.js} +1 -1
  258. package/dist/assets/{analyticsHelper-BkUpwFP4.js → analyticsHelper-CsyUSML_.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-BXAmISmi.js → arrow-south-east-round-PEovUgvH-CHgaZ-yo.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-Qtr813uy.js → auto-transfer-rule-mbafm5D3-BdBsn5Ol.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-lVrrjTFE.js → avatar-Dz7aEm3d-CxU8IzEu.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-a5lcVCZG.js → bank-letter-BOcVjN6J-DhC6VHDB.js} +1 -1
  263. package/dist/assets/{calculateSize-CAxK0dN_-CtindZTL.js → calculateSize-QoQyn_Ku-j5kLdf_t.js} +1 -1
  264. package/dist/assets/{chartTypes-_AEkJ5Cg-BoLLmK-7.js → chartTypes-C14YY2Rq-mIXPNQxz.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-CBVPxBka.js → clock-CJkylEKt-BBrb7jeK.js} +1 -1
  266. package/dist/assets/common-Cu5K0AJk-BihNw_Do.js +1 -0
  267. package/dist/assets/{commonDimensions-_Dpm4Anv-JKxakvSV.js → commonDimensions-CVpc-NCw-xOjrok2-.js} +1 -1
  268. package/dist/assets/{commonTypes-C64XobC6-zWzHHgag.js → commonTypes-Ec-PxfpT-DZ1xbinn.js} +1 -1
  269. package/dist/assets/{core-oEkj6b51.js → core-CaikJZHD.js} +1 -1
  270. package/dist/assets/{dash.all.min-DZu0W7MW.js → dash.all.min-CteFsaah.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-AFO0vA4L.js → decodeURIComponentSafe-DcEFJStp.js} +1 -1
  272. package/dist/assets/{dnd-DwLm2ZWc.js → dnd-CzsffKNn.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-BxzwYsJa.js → dollar-round-D18u7nlm-BF4Thvjs.js} +1 -1
  274. package/dist/assets/{downloadPdf-BAZhe2iR-XXbzTfDj.js → downloadPdf-BuPJ6cfr-Cy2ZBk4z.js} +1 -1
  275. package/dist/assets/{empty-fwRWXj2G.js → empty-B5B-FKq1.js} +1 -1
  276. package/dist/assets/{empty-CpgB6ACX.js → empty-CTO6rJhq.js} +1 -1
  277. package/dist/assets/{epic-qeTSmk29.js → epic-DtTDCbBB.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-Cn5LR_-W.js → filter-cZIFUNvj-CWbeOwgA.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-gFC-Rnfp.js → getLocaleForTenant-DLrlmQCo.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CByaMYJG.js → gift-box-Cmt9OgIZ-BfzCBGHZ.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-bzI3_a8w.js → graphic-no-data-l-DU4J8fDt-DEuKmvBU.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CaA33M1d.js → graphic-no-data-net-burn-l-CzmycA0m-CIA_wKU3.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-BxWewJRH.js → handshake-BPg58FML-Z_I5plJl.js} +1 -1
  284. package/dist/assets/{helper-D3UIpXq7-k6HHkxTA.js → helper-AgH8nJln-DNDXfXpF.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-Dt5l5kWs.js → hyperlink-DQyCeXx2-Bwqrw7ES.js} +1 -1
  286. package/dist/assets/{index-Cpbn6-TN.js → index-B7wRNic7.js} +1 -1
  287. package/dist/assets/{index-DRNExedw.js → index-B9eknY8q.js} +1 -1
  288. package/dist/assets/{index-B5c5iTId.js → index-B9myuWEH.js} +1 -1
  289. package/dist/assets/{index-BE_133so.js → index-BL34svil.js} +1 -1
  290. package/dist/assets/{index-CjBlNHKF.js → index-CLf01Vy8.js} +1 -1
  291. package/dist/assets/{index-ByqexAVU.js → index-mhb15COx.js} +2726 -2726
  292. package/dist/assets/{lexical-BLFyyXBr.js → lexical-CXNTSpM4.js} +1 -1
  293. package/dist/assets/{liveblocks-Ia5FU_Xu.js → liveblocks--AdozwCz.js} +1 -1
  294. package/dist/assets/{lottie-DEK510sX.js → lottie-D86WIi_0.js} +1 -1
  295. package/dist/assets/{mapLoadingInProgressToTreeNode-C_DjhqLk-Cbs7Of5h.js → mapLoadingInProgressToTreeNode-DTyQHWMc-BqMSzUiy.js} +1 -1
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B5H-460G.js → mapSectionWithAcOnlyToTreeNode-D7pjBGp6-BMY0vZTn.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-C6nWwAzP.js +1 -0
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode--FHVcIix-DC7cXapm.js → mapTimeframeBalancesToTreeNode-Drhl_lnP-BDA52mbW.js} +1 -1
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-DrvNkcA6.js +1 -0
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-CPa7R1do.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-DHD18LN5.js} +1 -1
  301. package/dist/assets/{media-player-uto_Jl5G.js → media-player-OnsEq_AY.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-BmcWx6In.js → money-2cg1MuG4-CfgKOIyt.js} +1 -1
  303. package/dist/assets/{mui-Cni6P-fz.js → mui-G2MlMTlr.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-B9qcUnuN.js → page-detail-CWX5S47F-CWJ8fnGp.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-ZSqDN0WI.js → page-summary-D7_VQHwN-CaK_VLEF.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-BCo5ICo2.js → panelSelectedMixin-Cddsb26L-XfdQwEMM.js} +1 -1
  307. package/dist/assets/{pathToGoBack-BpMzEQ5A.js → pathToGoBack-Dh6AhADv.js} +1 -1
  308. package/dist/assets/{pdf-CTJ16aEe.js → pdf-DwfifS04.js} +3 -3
  309. package/dist/assets/{pdf-lib-BZoHbIry.js → pdf-lib-CuGtb6jg.js} +1 -1
  310. package/dist/assets/{plaid-B2vW8NaN.js → plaid-CcxzSXZd.js} +1 -1
  311. package/dist/assets/{pusher-DFtcQaPW.js → pusher-BNSVRSP_.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh--JwnmKdf.js → radio-default-CiSgisfh-CF7OSKL1.js} +1 -1
  313. package/dist/assets/{react-C70tWLg5.js → react-BEcxr4nX.js} +1 -1
  314. package/dist/assets/{react-cn6O__9s.js → react-BUDcsgZo.js} +1 -1
  315. package/dist/assets/{react-DZ1_qQub.js → react-C0Whd_8a.js} +1 -1
  316. package/dist/assets/{react-B0u9lmTz.js → react-Chqt_ss-.js} +1 -1
  317. package/dist/assets/{react-DKkpOD3_.js → react-Cobj-_wp.js} +3 -3
  318. package/dist/assets/{react-Cohr3oKl.js → react-DOvM9ag3.js} +1 -1
  319. package/dist/assets/{react-BxE_BeY2.js → react-V3TERlfD.js} +1 -1
  320. package/dist/assets/{react-jjkPSe6Z.js → react-WpjiT9jD.js} +1 -1
  321. package/dist/assets/{recharts-LlOU9oLm.js → recharts-3tylCZU1.js} +1 -1
  322. package/dist/assets/{routePaths-BnaAtOOM.js → routePaths-CDVBEe6a.js} +1 -1
  323. package/dist/assets/{sentry-CY6wsJT-.js → sentry-Cm8I7E9J.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-CGZqPLdL.js → shield-DOlUxcFf-tt-dORuJ.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-DAZsY_K2.js → spend-limit-D6SyboD4-d-tIWfnn.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-wh35N3no-2SjovFHm.js +1 -0
  327. package/dist/assets/{toChartData-BODe4y2V-C6JFTy1O.js → toChartData-G5y-N82I-HPFXqzd4.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-B7lzeBRq.js → transaction-placeholder-CpOwZAMG-CXIruzlf.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-okXLDguZ.js → undo-b_3XZ5CX-5VNbpbUY.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-BcwMx3a4.js → unlock-BPWn2I5L-8UNw8MhM.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BLqHMVJK.js → upload-reimbursement-receipt-O2N8vcO7-BhCuFTsT.js} +1 -1
  332. package/dist/assets/{uploadAttachment-Dbumcc_g-Dxdg1PHe.js → uploadAttachment-RbkIBMGO-BHEoxgsX.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-BX0LuAuH.js → uploadReceipts-CIgkuVpu-BPECKX43.js} +1 -1
  334. package/dist/assets/{url-Cv3aJ--T.js → url-BMzuxPwA.js} +1 -1
  335. package/dist/assets/{url-B5kkbwRv.js → url-CvhemPUG.js} +1 -1
  336. package/dist/assets/{useDeviceId-BWAR3Wtl.js → useDeviceId-BzlY8kf5.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-D1CqutXV.js → useInitialThreadRequest-Dldme96o.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-BX_5sahW.js → useLongPress-GCK2COYQ-BgmUYGJ7.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-CuU9mWQv.js → usp-line-BBd1wKwW-BqojtCEK.js} +1 -1
  340. package/dist/assets/{utils-ChLimP28.js → utils-BhOlvYO8.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-BzduT6UI.js → withTransactionSidePanel-DBF40Qih.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-cFF_NqwA.js → zeni-epic-state-lC5X-sam.js} +7 -7
  343. package/dist/assets/{zeni-icon-only-jOM3nMPU.js → zeni-icon-only-DZ6h0uLr.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +3 -3
  346. package/dist/assets/AccountInfoPage-CiPtog_o-DPWdb5xr.js +0 -18
  347. package/dist/assets/AccountInfoPageContent-Bj0kaRHv-B0-iD3mG.js +0 -149
  348. package/dist/assets/ChargeCardPromoPage-C-z0xtuN-Cj9Xh0NF.js +0 -222
  349. package/dist/assets/ConfettiBurst-C0DFgWJj-BGxc90V2.js +0 -1
  350. package/dist/assets/CustomerOnboardingAuthScreen-voIng-Gb.js +0 -1
  351. package/dist/assets/CustomerOnboardingContainerPage-DS0-65s7-CbCO9XOL.js +0 -1
  352. package/dist/assets/CustomerOnboardingNoStepsPage-C--jDBQq-D1RWdf29.js +0 -66
  353. package/dist/assets/DashboardSidebarBackgroundAnimation-DsWKmIXY-BKVS4wpr.js +0 -12
  354. package/dist/assets/EntityDetailPage-CgDHg6g5-DEy7q7j7.js +0 -18
  355. package/dist/assets/MagicLinkACHDetailsPage-l76_Y3sO-BRaxCag1.js +0 -1
  356. package/dist/assets/MagicLinkDomesticWireDetailsPage-D_z_Q-jz-C4Uhpu4B.js +0 -1
  357. package/dist/assets/MagicLinkInternationalWireDetailsPage-D276lsq_-BhCxcHkI.js +0 -1
  358. package/dist/assets/MailingDetailsSection-D9_I-DTk-CH2kzcO6.js +0 -21
  359. package/dist/assets/StatementItem-B1M65xN--GeNfVEEV.js +0 -31
  360. package/dist/assets/SuccessAnimation-RuQd1S4B-Bm3TMOLx.js +0 -13
  361. package/dist/assets/SummaryCard-buadhnmc-D_ubT5UT.js +0 -1
  362. package/dist/assets/TransactionListPage-BkZLtwmQ-DMj8aMnI.js +0 -35
  363. package/dist/assets/TreasuryStatementsPage-DhXESeOi-D1GmDTaA.js +0 -58
  364. package/dist/assets/TrendChart-B7Pox_TQ-CaG-s4IC.js +0 -16
  365. package/dist/assets/VendorACHDetailsPage-BODHiiUQ-CbkmGhf7.js +0 -1
  366. package/dist/assets/VendorDomesticWireDetailsPage-CVfEcUFJ-Bq6iA8BG.js +0 -1
  367. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dgz0TPoZ-CIw7ERg3.js +0 -1
  368. package/dist/assets/VideoPopup-BYo5bzpU-DUVlPGQp.js +0 -31
  369. package/dist/assets/common-B74Sb4iG-wPHt407r.js +0 -1
  370. package/dist/assets/mapSpacerToTreeNode-Dq4CasLR-Dqbo2uhz.js +0 -1
  371. package/dist/assets/mapTimeframeBalancesToTreeNode-BP0iF3Of-DbCZ7i8N.js +0 -1
  372. package/dist/assets/toCOABalancesWithID-CuxwOBs0-BNfZJE4p.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as a}from"./pdf-CTJ16aEe.js";import{j as Q,i as se,h as q,l as ee,u as k,N as X,k as J,g as Kt,R as zt,m as y}from"./core-oEkj6b51.js";import{ct as O,Kr as Ve,bt as rt,Dr as Zt,bn as ct,FX as de,Ks as dt,tc as ut,um as Pe,tL as Ht,bm as xe,Kt as Wt,Ku as qt,bE as Jt,Kv as Yt,Kw as pt,Kx as mt,uY as $e,tr as we,Ky as Xt,t0 as He,Kz as Qt,y9 as ea,t4 as ta,ta as ht,KA as Be,KB as Le,KC as aa,KD as na,uq as Ue,KE as ia,un as bt,uD as oa,KF as gt,u7 as We,uc as la,KG as sa,KH as ce,KI as St,KJ as yt,KK as ft,dp as ra,tw as Fe,FY as vt,KL as ca,eg as da,KM as ua,KN as pa,cA as It,cy as kt,KO as _e,KP as ma,KQ as ha,I9 as Ge,KR as ba,Ia as ne,Ib as Me,KS as ga,KT as Sa,KU as ya,ue as qe,ub as fa,KV as va,KW as Ia,KX as ka,tZ as wa,KY as Ba,KZ as Ca,K_ as Aa,F5 as wt,bM as Bt,gW as xa,c4 as Da,bs as Ct,FW as At,sB as Ea,K$ as Ta,xY as ja,y2 as Pa,pc as Fa,uo as Ra,v3 as Va,h7 as Se,L0 as $a,L1 as xt,hB as La,h1 as Dt,hm as Et,hl as Je,bG as pe,bX as Ua,L2 as _a,L3 as ye,fI as Ga,L4 as Ye,L5 as Ma,fM as Na,g5 as Oa,vh as Ka,L6 as za,hu as Za,v7 as Ha,L7 as Xe,vb as Wa,vg as qa,vd as Ja,v5 as Ya,L8 as Tt,tl as Xa,L9 as Qa,La as en,dj as tn,di as an,dh as nn,ha as on,hs as Qe,hD as ln,mK as sn,hj as rn,v9 as cn,fS as dn,hI as un,Lb as pn,fK as mn,mB as hn,Lc as bn,u3 as gn,G5 as Sn,F4 as yn,Hb as fn,bO as vn,bN as In,bK as kn,bL as wn}from"./zeni-epic-state-cFF_NqwA.js";import{y as ie,js as V,_ as fe,aE as oe,aG as g,aF as Ce,jQ as Y,o as w,bj as De,jz as T,l2 as Bn,jM as z,k4 as Ne,jO as E,e as ve,N as jt,kn as Cn,O as Oe,jT as Ee,f as Pt,kH as An,x as Ft,kv as Rt,l3 as xn,k2 as Dn,J as Vt,k9 as En,l4 as Tn,l5 as jn,l6 as Pn,l7 as Fn,l8 as Rn,l9 as Vn,la as $n,lb as Ln,k_ as Un,lc as _n,ld as Gn,kc as Mn}from"./index-ByqexAVU.js";import{n as $,S as Nn}from"./mui-Cni6P-fz.js";import{A as et}from"./AddressScreen-TV5gX_gl.js";import{g as le,a as Te,i as $t,V as Ke,b as ze,c as On,v as Kn,d as zn,A as me,D as he}from"./DomesticWireDetailScreen-H_WuL4rG.js";import{a as v}from"./sentry-CY6wsJT-.js";import{u as Lt}from"./useInitialThreadRequest-D1CqutXV.js";import Ae from"./NotFoundScreen-B8XFlejE.js";import{S as Zn}from"./zeni-icon-only-jOM3nMPU.js";import{D as Hn}from"./DrawerScreen-DokbcyFi.js";import{M as Ut}from"./MobileAppDrawer-CVmbFUtl.js";import{F as _t}from"./FeaturePreviewScreen-Bcvg8Bfv.js";import{S as je}from"./SetupPagesScreen-C8L8QqMz.js";import{B as Wn}from"./BillPayApprovalRoutes-BcknH4As.js";import{FallBackRoute as qn}from"./ScreenRoutes-Dbhh2QOI.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./analyticsHelper-BkUpwFP4.js";import"./routePaths-BnaAtOOM.js";import"./BusinessVerificationPageScreen-BSkh5puj.js";import"./ReimbursementApprovalRuleDetailScreen-CPkYjm-o.js";import"./getLocaleForTenant-gFC-Rnfp.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]="280e2f9b-9367-4dc7-827e-d44ece359f7d",e._sentryDebugIdIdentifier="sentry-dbid-280e2f9b-9367-4dc7-827e-d44ece359f7d")}catch{}})();const Jn=J(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=xe(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}=Wt(i.billActivities,qt(t.currentTenant),o);d=S,p=b}const m=Jt(t.currentTenant?.userRole??[]),h=i.transactionDetails!=null&&Yt(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=E(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=E(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(Qt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(He(i,l.type,"")):e(He(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=E(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=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Xt({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 Yn(){const e=Q(),t=se(),i=q(),{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=Lt(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]=v.useState(!1),[b,f]=v.useState(!1),[x,D]=v.useState(!1),{useFeatureGate:I,useDynamicConfig:U}=oe(),{isFeatureEnabled:F}=I(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=I(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=I(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=U(Ce.zeniAssistConfig),Z=Zt(l),A=ct(l.userRole),K=m&&de(u?.loggedInUserRoleMap),_=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:H}=I(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:W}=I(g.billPaySetupShowInternationalPaymentByWise);if(v.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&Z===!1?D(!1):D(s.billActivities[0]?.isRealTimeApprovalEnabled&&(A||K||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,A,K,l.isZeni,Z,r]),v.useEffect(()=>{o!=null&&t(dt(o))},[o]),v.useEffect(()=>{h||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,_,!1)))},[h,s,o,t]),v.useEffect(()=>{b||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,_,W,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Ht()))},[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(X,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(Y,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(De,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(Jn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:x,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:H,hasZeniAssistAccess:_,isDetectInsufficientFundsEnabled:R})]})}const be=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Xn={containerWidth:new Ft(100,58)},Qn=J(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(Ue(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)}}})(An);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=q().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=ve(),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),x=k(L=>O(L)).companyName,[D,I]=v.useState(!1),[U,F]=v.useState(!1),[G,R]=v.useState(!1),[B,Z]=v.useState(),A=k(L=>Le(L,p,h,i));let K=A.fetchState,_=A.file,H=A.showAutofill;const W=k(L=>Ve(L,i??""));c===!1&&(K=W.fetchState,_=W.transactionDetails?.attachments?.[0],H=!1);const M=()=>{u.toggle()},te=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;v.useEffect(()=>{K==="Not-Started"&&(c&&U?F(!1):!c&&D&&I(!1))},[i]),v.useEffect(()=>{D||i==null||c||(I(!0),t(ut(i,m,f,!1)),U||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!U&&(F(!0),t(Pe(!1,m,f,S,i)))},[D,U,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(Ue(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(K==="Error"||W.fetchState==="Error")return a.jsx(Ae,{});if(K!="Completed")return a.jsx(Y,{fetchState:K,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const L=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.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:H}),a.jsx(oi,{showAutofill:H,children:x})]})]}):null,a.jsx(Qn,{billId:i,file:_,showAutofill:H,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,W,A),setShowConfirmationPopup:R,setPayload:Z,showActionButtons:ti(c,A),isInitialEdit:!!A.isInitialEdit,billStage:L}),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-DwfifS04.js";import{j as Q,i as se,h as q,l as ee,u as k,N as X,k as J,g as Kt,R as zt,m as y}from"./core-CaikJZHD.js";import{ct as O,Kr as Ve,bt as rt,Dr as Zt,bn as ct,FX as de,Ks as dt,tc as ut,um as Pe,tL as Ht,bm as xe,Kt as Wt,Ku as qt,bE as Jt,Kv as Yt,Kw as pt,Kx as mt,uY as $e,tr as we,Ky as Xt,t0 as He,Kz as Qt,y9 as ea,t4 as ta,ta as ht,KA as Be,KB as Le,KC as aa,KD as na,uq as Ue,KE as ia,un as bt,uD as oa,KF as gt,u7 as We,uc as la,KG as sa,KH as ce,KI as St,KJ as yt,KK as ft,dp as ra,tw as Fe,FY as vt,KL as ca,eg as da,KM as ua,KN as pa,cA as It,cy as kt,KO as _e,KP as ma,KQ as ha,I9 as Ge,KR as ba,Ia as ne,Ib as Me,KS as ga,KT as Sa,KU as ya,ue as qe,ub as fa,KV as va,KW as Ia,KX as ka,tZ as wa,KY as Ba,KZ as Ca,K_ as Aa,F5 as wt,bM as Bt,gW as xa,c4 as Da,bs as Ct,FW as At,sB as Ea,K$ as Ta,xY as ja,y2 as Pa,pc as Fa,uo as Ra,v3 as Va,h7 as Se,L0 as $a,L1 as xt,hB as La,h1 as Dt,hm as Et,hl as Je,bG as pe,bX as Ua,L2 as _a,L3 as ye,fI as Ga,L4 as Ye,L5 as Ma,fM as Na,g5 as Oa,vh as Ka,L6 as za,hu as Za,v7 as Ha,L7 as Xe,vb as Wa,vg as qa,vd as Ja,v5 as Ya,L8 as Tt,tl as Xa,L9 as Qa,La as en,dj as tn,di as an,dh as nn,ha as on,hs as Qe,hD as ln,mK as sn,hj as rn,v9 as cn,fS as dn,hI as un,Lb as pn,fK as mn,mB as hn,Lc as bn,u3 as gn,G5 as Sn,F4 as yn,Hb as fn,bO as vn,bN as In,bK as kn,bL as wn}from"./zeni-epic-state-lC5X-sam.js";import{y as ie,js as V,_ as fe,aE as oe,aG as g,aF as Ce,jQ as Y,o as w,bj as De,jz as T,l2 as Bn,jM as z,k4 as Ne,jO as E,e as ve,N as jt,kn as Cn,O as Oe,jT as Ee,f as Pt,kH as An,x as Ft,kv as Rt,l3 as xn,k2 as Dn,J as Vt,k9 as En,l4 as Tn,l5 as jn,l6 as Pn,l7 as Fn,l8 as Rn,l9 as Vn,la as $n,lb as Ln,k_ as Un,lc as _n,ld as Gn,kc as Mn}from"./index-mhb15COx.js";import{n as $,S as Nn}from"./mui-G2MlMTlr.js";import{A as et}from"./AddressScreen-DPPx0MfK.js";import{g as le,a as Te,i as $t,V as Ke,b as ze,c as On,v as Kn,d as zn,A as me,D as he}from"./DomesticWireDetailScreen-D_BfoPLh.js";import{a as v}from"./sentry-Cm8I7E9J.js";import{u as Lt}from"./useInitialThreadRequest-Dldme96o.js";import Ae from"./NotFoundScreen-BBbILNsa.js";import{S as Zn}from"./zeni-icon-only-DZ6h0uLr.js";import{D as Hn}from"./DrawerScreen-DtF71b7B.js";import{M as Ut}from"./MobileAppDrawer-D7V2koAX.js";import{F as _t}from"./FeaturePreviewScreen-CpHWA-St.js";import{S as je}from"./SetupPagesScreen-BiJM7znn.js";import{B as Wn}from"./BillPayApprovalRoutes-CaSA1uSR.js";import{FallBackRoute as qn}from"./ScreenRoutes-B0gKACTz.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./analyticsHelper-CsyUSML_.js";import"./routePaths-CDVBEe6a.js";import"./BusinessVerificationPageScreen-DVGxc_kT.js";import"./ReimbursementApprovalRuleDetailScreen-Bs2ple33.js";import"./getLocaleForTenant-DLrlmQCo.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]="280e2f9b-9367-4dc7-827e-d44ece359f7d",e._sentryDebugIdIdentifier="sentry-dbid-280e2f9b-9367-4dc7-827e-d44ece359f7d")}catch{}})();const Jn=J(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=xe(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}=Wt(i.billActivities,qt(t.currentTenant),o);d=S,p=b}const m=Jt(t.currentTenant?.userRole??[]),h=i.transactionDetails!=null&&Yt(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=E(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=E(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(Qt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(He(i,l.type,"")):e(He(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=E(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=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Xt({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 Yn(){const e=Q(),t=se(),i=q(),{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=Lt(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]=v.useState(!1),[b,f]=v.useState(!1),[x,D]=v.useState(!1),{useFeatureGate:I,useDynamicConfig:U}=oe(),{isFeatureEnabled:F}=I(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=I(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=I(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=U(Ce.zeniAssistConfig),Z=Zt(l),A=ct(l.userRole),K=m&&de(u?.loggedInUserRoleMap),_=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:H}=I(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:W}=I(g.billPaySetupShowInternationalPaymentByWise);if(v.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&Z===!1?D(!1):D(s.billActivities[0]?.isRealTimeApprovalEnabled&&(A||K||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,A,K,l.isZeni,Z,r]),v.useEffect(()=>{o!=null&&t(dt(o))},[o]),v.useEffect(()=>{h||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,_,!1)))},[h,s,o,t]),v.useEffect(()=>{b||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,_,W,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Ht()))},[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(X,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(Y,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(De,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(Jn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:x,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:H,hasZeniAssistAccess:_,isDetectInsufficientFundsEnabled:R})]})}const be=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Xn={containerWidth:new Ft(100,58)},Qn=J(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(Ue(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)}}})(An);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=q().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=ve(),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),x=k(L=>O(L)).companyName,[D,I]=v.useState(!1),[U,F]=v.useState(!1),[G,R]=v.useState(!1),[B,Z]=v.useState(),A=k(L=>Le(L,p,h,i));let K=A.fetchState,_=A.file,H=A.showAutofill;const W=k(L=>Ve(L,i??""));c===!1&&(K=W.fetchState,_=W.transactionDetails?.attachments?.[0],H=!1);const M=()=>{u.toggle()},te=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;v.useEffect(()=>{K==="Not-Started"&&(c&&U?F(!1):!c&&D&&I(!1))},[i]),v.useEffect(()=>{D||i==null||c||(I(!0),t(ut(i,m,f,!1)),U||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!U&&(F(!0),t(Pe(!1,m,f,S,i)))},[D,U,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(Ue(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(K==="Error"||W.fetchState==="Error")return a.jsx(Ae,{});if(K!="Completed")return a.jsx(Y,{fetchState:K,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const L=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.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:H}),a.jsx(oi,{showAutofill:H,children:x})]})]}):null,a.jsx(Qn,{billId:i,file:_,showAutofill:H,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,W,A),setShowConfirmationPopup:R,setPayload:Z,showActionButtons:ti(c,A),isInitialEdit:!!A.isInitialEdit,billStage:L}),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,e as Ue,a7 as V,T as Re,c8 as $e,O as ze,ad as Y,V as t,eI as He,f as Le,b as qe,x as u,a_ as Ne,L as Me,A as Je,eZ as R,de as Ze,e_ as Ge,aU as Ke,d4 as Qe,bn as Xe,e$ as Ye,a9 as et,o as z,f0 as tt,m as o,l as it,b6 as nt}from"./index-ByqexAVU.js";import{a as m}from"./sentry-CY6wsJT-.js";import{n as b}from"./mui-Cni6P-fz.js";import{cg as ot}from"./zeni-epic-state-cFF_NqwA.js";import{g as at}from"./UploadAdditionalDocumentOverlay-DUO2ZoU--C5vn0EeB.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="fa686610-b647-435f-9124-97afbb32fdbd",e._sentryDebugIdIdentifier="sentry-dbid-fa686610-b647-435f-9124-97afbb32fdbd")}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:fe,onUpdatePrimaryFundingAccount:he,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:f,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,_=E.link_account.updateStatus,W=E.update_account.updateStatus,j=V(f),M=V(w.fetchState),J=V(_.fetchState),Z=V(W.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"&&f==="Completed"&&S(!1)},[l,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||J==="In-Progress"&&_.fetchState==="Completed"||Z==="In-Progress"&&W.fetchState==="Completed")&&P.reset($(e))},[j,f,P,e,J,_.fetchState,Z,W.fetchState]);const Ve=P.handleSubmit(G=>{y.trackEnableBillPay(),ye()});m.useEffect(()=>{const G=P.watch((K,{name:Q})=>{Q!=null&&K!=null&&$e(()=>(async(X,De)=>{const c=De[F];if(X.includes(F)){if(X.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&he(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)}}})(Q,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,_e=D?r.setupVerifiedSubTitle:a.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(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:_e}),We?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(Ze,{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:fe,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(Qe,{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(Ye,{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:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.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,e as Ue,a7 as V,T as Re,c8 as $e,O as ze,ad as Y,V as t,eI as He,f as Le,b as qe,x as u,a_ as Ne,L as Me,A as Je,eZ as R,de as Ze,e_ as Ge,aU as Ke,d4 as Qe,bn as Xe,e$ as Ye,a9 as et,o as z,f0 as tt,m as o,l as it,b6 as nt}from"./index-mhb15COx.js";import{a as m}from"./sentry-Cm8I7E9J.js";import{n as b}from"./mui-G2MlMTlr.js";import{cg as ot}from"./zeni-epic-state-lC5X-sam.js";import{g as at}from"./UploadAdditionalDocumentOverlay-eqwSLigx-kRVMQYF-.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.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]="68b16f99-a82e-4d6a-b9f2-2e05dad98343",e._sentryDebugIdIdentifier="sentry-dbid-68b16f99-a82e-4d6a-b9f2-2e05dad98343")}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:fe,onUpdatePrimaryFundingAccount:he,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:f,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,_=E.link_account.updateStatus,W=E.update_account.updateStatus,j=V(f),M=V(w.fetchState),J=V(_.fetchState),Z=V(W.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"&&f==="Completed"&&S(!1)},[l,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||J==="In-Progress"&&_.fetchState==="Completed"||Z==="In-Progress"&&W.fetchState==="Completed")&&P.reset($(e))},[j,f,P,e,J,_.fetchState,Z,W.fetchState]);const Ve=P.handleSubmit(G=>{y.trackEnableBillPay(),ye()});m.useEffect(()=>{const G=P.watch((K,{name:Q})=>{Q!=null&&K!=null&&$e(()=>(async(X,De)=>{const c=De[F];if(X.includes(F)){if(X.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&he(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)}}})(Q,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,_e=D?r.setupVerifiedSubTitle:a.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(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:_e}),We?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(Ze,{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:fe,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(Qe,{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(Ye,{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:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.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,e as Pe,T as xe,c8 as Ie,ad as k,O as Ae,V as t,x as C,a_ as ve,L as je,A as ke,aU as $e,c9 as Te,a9 as Be,o as a,ha as De,eu as Ve,ev as Ee,m as P,l as Le,gh as ze,f as Oe,d as _e}from"./index-ByqexAVU.js";import{a as F}from"./sentry-CY6wsJT-.js";import{n as d}from"./mui-Cni6P-fz.js";import{F as Me,o as H,t as Re}from"./PaymentAccountSetupBillingAddressSection-tGkjxbjY-DHB-KR0X.js";import{F as Ue}from"./SetUpAccountSection-BcNG0nDh-wr_b4Gnf.js";import"./pdf-CTJ16aEe.js";import"./zeni-epic-state-cFF_NqwA.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-C64XobC6-zWzHHgag.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]="33ddb14a-3425-4e17-a950-786403de05e2",e._sentryDebugIdIdentifier="sentry-dbid-33ddb14a-3425-4e17-a950-786403de05e2")}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])},We={title:new _e("standardSemiBold","largeSemiBold")},N="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:r,onClickMenuIcon:I,uiState:G,stripeKey:J,googleAPIKey:Z,companyId:Q,onUpdateAccountClick:X,onFetchLinkTokenClick:Y,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:de,handleResetCardPaymentErrorStatuses:re,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const w=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:K(i),values:K(i),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(R=>{le(Q)}),D=i.subscriptionBillingAddressSaveStatus;F.useEffect(()=>{const R=g.watch((U,{name:W})=>{W!=null&&U!=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)})(W,U))});return()=>{R.unsubscribe()}});const V=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:we,subText:fe}=ye,L=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,f=Me(y.header,y.titleText,y.protectedCardNo,m);let _;L&&(_={header:f.header,title:f.title,subtitle:f.subtitle,status:f.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=F.useState(!1);return t.jsxs(He,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(Fe,{windowSize:o,children:[t.jsx(Ne,{windowSize:o,children:Se}),he?t.jsx(Ke,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...g,children:t.jsx(Qe,{children:t.jsx("form",{id:q(N),onSubmit:ge,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ue,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:we,defaultSectionSubTitle:fe,sectionId:x,isDisabled:r,onFetchLinkTokenClick:Y,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:de,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ge(o,l.headers.billingAddress,me,Z,r)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:q(N),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(Re,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:G.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:re,stripeKey:J,cardSetupInProgress:M,setCardSetupInProgress:be})]})},K=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},Fe=d.div`
1
+ import{y as Ce,e as Pe,T as xe,c8 as Ie,ad as k,O as Ae,V as t,x as C,a_ as ve,L as je,A as ke,aU as $e,c9 as Te,a9 as De,o as a,ha as Ve,eu as Be,ev as Ee,m as P,l as Le,gh as ze,f as Oe,d as _e}from"./index-mhb15COx.js";import{a as F}from"./sentry-Cm8I7E9J.js";import{n as d}from"./mui-G2MlMTlr.js";import{F as Me,o as H,t as Re}from"./PaymentAccountSetupBillingAddressSection-q5z8XZFC-IYhUlGT-.js";import{F as Ue}from"./SetUpAccountSection-_WPR-q2V-BVzNpUbf.js";import"./pdf-DwfifS04.js";import"./zeni-epic-state-lC5X-sam.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-Ec-PxfpT-DZ1xbinn.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]="180e3526-27fe-4e21-bf65-1dd21c603758",e._sentryDebugIdIdentifier="sentry-dbid-180e3526-27fe-4e21-bf65-1dd21c603758")}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])},We={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:r,onClickMenuIcon:I,uiState:G,stripeKey:J,googleAPIKey:Z,companyId:Q,onUpdateAccountClick:Y,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:de,handleResetCardPaymentErrorStatuses:re,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=Ce(),o=Pe(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:T},cardPaymentView:m}=i,me=i.subscriptionBillingAddress,D=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(R=>{le(Q)}),V=i.subscriptionBillingAddressSaveStatus;F.useEffect(()=>{const R=g.watch((U,{name:W})=>{W!=null&&U!=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=Be(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&&Y(A.account.selectedOption,h.paymentAccountId)})(W,U))});return()=>{R.unsubscribe()}});const B=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,L=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,w=Me(y.header,y.titleText,y.protectedCardNo,m);let _;L&&(_={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new k(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=F.useState(!1);return t.jsxs(He,{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(Fe,{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:q(K),onSubmit:ge,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ue,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:x,isDisabled:r,onFetchLinkTokenClick:X,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:D?.code==="require_info"||D?.code==="failed",icon:{element:t.jsx($e,{width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:m,resetCardPaymentViewState:de,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ge(o,l.headers.billingAddress,me,Z,r)]})})})}),Te(g.formState.dirtyFields)?t.jsx(De,{formId:q(K),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:V?.fetchState==="In-Progress",isDisabled:V?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Re,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:G.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:re,stripeKey:J,cardSetupInProgress:M,setCardSetupInProgress:be})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:Ve(n,e.subscriptionBillingAddress)[n]}},Fe=d.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -12,7 +12,7 @@ import{y as Ce,e as Pe,T as xe,c8 as Ie,ad as k,O as Ae,V as t,x as C,a_ as ve,L
12
12
  flex-direction: column;
13
13
  width: 100%;
14
14
  background-color: ${e=>e.theme.colors.grey4};
15
- `,Ne=d(Le)`
15
+ `,Ke=d(Le)`
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  display: flex;
18
18
  justify-content: center;
@@ -20,7 +20,7 @@ import{y as Ce,e as Pe,T as xe,c8 as Ie,ad as k,O as Ae,V as t,x as C,a_ as ve,L
20
20
  padding-top: ${e=>u.subTitlePaddingTop.valuePx(e.windowSize)};
21
21
  padding-bottom: ${a.sp3};
22
22
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
23
- `,Ke=d.div`
23
+ `,Ne=d.div`
24
24
  display: flex;
25
25
  width: 100%;
26
26
  height: calc(100vh - 110px);
@@ -1 +1 @@
1
- import{V as b,bR as U,bS as L,bT as V,iT as M,ag as W,O as q}from"./index-ByqexAVU.js";import{a as g}from"./sentry-CY6wsJT-.js";import{GJ as z}from"./zeni-epic-state-cFF_NqwA.js";import{u as G}from"./ReviewOverlay-A1OYNSqG-9s_1ZdtP.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./mui-Cni6P-fz.js";import"./recharts-LlOU9oLm.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="ee89d7bd-e488-4e3b-a6d2-8675c7230076",e._sentryDebugIdIdentifier="sentry-dbid-ee89d7bd-e488-4e3b-a6d2-8675c7230076")}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:w}=e,u=i==="review",[C,f]=g.useState(!1),[n,v]=g.useState(B(e,u)),[d,k]=g.useState(u),[T,E]=g.useState(0),[y,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(I=setInterval(()=>{v(p=>p.map((S,O)=>(clearInterval(I),O===T?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),T===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(B(e,!1)),()=>{clearInterval(I)}),[n.length,T,d,e.fetchState,u,e]);const R=n.length,h=n.filter(p=>p.reviewStatus.code!=="error").length,D={onOkClick:p=>{f(!1),r.trackBillPayBulkPopupConfirm(i,_,w,J(e)),o("reject",p)},onCancelClick:()=>{f(!1)}},{title:A,description:F}=K(m,h,R,d),P=e.fetchState==="Completed"&&h===0,N={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:()=>{r.trackBillPayBulkSubmit(i,_,w),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}=H(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,_,w),f(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(U,{titleComponent:b.jsx(V,{children:y.title}),descriptionComponent:b.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(G,{title:A,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:P}})]})},B=(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:Q(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??""}}))},J=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=M([...o,t.isRecurring?"recurring":"one-time"])}),o},H=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)}},K=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:_,is:w,do_:u,does:C}=s.texts,f=r>1,n=o>1;let v="",d="";return e!=="Completed"||t?(v=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(v=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_>",f?_:w)}`),{title:v,description:d}},Q=(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,J as getBillsUniqueType};
1
+ import{V as b,bR as U,bS as L,bT as V,iT as M,ag as W,O as q}from"./index-mhb15COx.js";import{a as f}from"./sentry-Cm8I7E9J.js";import{GJ as z}from"./zeni-epic-state-lC5X-sam.js";import{u as G}from"./ReviewOverlay-Cxkp85Kw-BxuvLEpC.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./mui-G2MlMTlr.js";import"./recharts-3tylCZU1.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.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]="aaa567ff-65a7-4718-9b00-4fdf5079ff6b",e._sentryDebugIdIdentifier="sentry-dbid-aaa567ff-65a7-4718-9b00-4fdf5079ff6b")}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:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,v]=f.useState(B(e,u)),[d,k]=f.useState(u),[T,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(p=>p.map((S,O)=>(clearInterval(I),O===T?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),T===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(B(e,!1)),()=>{clearInterval(I)}),[n.length,T,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,g,_,J(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:A,description:F}=K(m,h,R,d),P=e.fetchState==="Completed"&&h===0,N={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:()=>{r.trackBillPayBulkSubmit(i,g,_),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}=H(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(U,{titleComponent:b.jsx(V,{children:y.title}),descriptionComponent:b.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(G,{title:A,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:P}})]})},B=(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:Q(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??""}}))},J=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=M([...o,t.isRecurring?"recurring":"one-time"])}),o},H=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)}},K=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=o>1;let v="",d="";return e!=="Completed"||t?(v=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(v=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?g:_)}`),{title:v,description:d}},Q=(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,J as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{e as n,V as s,b,o as e}from"./index-ByqexAVU.js";import{n as a}from"./mui-Cni6P-fz.js";import{o as l}from"./commonDimensions-_Dpm4Anv-JKxakvSV.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]="80988c49-898a-4fd7-88c8-5fa1accea082",o._sentryDebugIdIdentifier="sentry-dbid-80988c49-898a-4fd7-88c8-5fa1accea082")}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(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(p,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const p=a.div`
1
+ import{e as n,V as s,b,o as e}from"./index-mhb15COx.js";import{n as a}from"./mui-G2MlMTlr.js";import{o as l}from"./commonDimensions-CVpc-NCw-xOjrok2-.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]="f794e3fb-c8ac-4f0b-9ac6-6f8744ab2521",o._sentryDebugIdIdentifier="sentry-dbid-f794e3fb-c8ac-4f0b-9ac6-6f8744ab2521")}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(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(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,11 +1,11 @@
1
- import{y as rt,e as lt,a7 as Te,V as t,z as Q,T as ct,cl as dt,B as pt,c8 as ut,ag as Ie,a6 as ke,fB as mt,a as ft,a_ as yt,b as ht,c9 as gt,bR as xt,bS as St,bT as wt,L as Ct,A as bt,a9 as Dt,o as c,x as L,H as Le,O as _e,fC as Ot,f1 as $e,eu as vt,c2 as Tt,a8 as It,l as Ae,d as kt,M as $t,m as k}from"./index-ByqexAVU.js";import{a as _}from"./sentry-CY6wsJT-.js";import{n as d}from"./mui-Cni6P-fz.js";import{F6 as Nt,bQ as J,FE as jt,FD as Ft,FF as Vt}from"./zeni-epic-state-cFF_NqwA.js";import{r as Pt,z as Lt}from"./CompanyOfficerDetailsSection-w86_5FXJ-BVS8U2VI.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./helper-D3UIpXq7-k6HHkxTA.js";import"./LabeledAddressValueField-D47ofJFV-vxJBVafU.js";import"./LabeledCountryMultiSelectField-vRw9drBe-B76tRzel.js";import"./LabeledCreatableSingleSelectField-CdF97ljM-CAYzF-3Y.js";import"./LabeledDocumentField-Dn25Ru1C-B_WMp98N.js";import"./LabeledNameField-Dxx0xwMv-q011DeE8.js";import"./commonTypes-C64XobC6-zWzHHgag.js";import"./avatar-Dz7aEm3d-lVrrjTFE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="7052aac2-4e26-497f-9233-1c498381461b",e._sentryDebugIdIdentifier="sentry-dbid-7052aac2-4e26-497f-9233-1c498381461b")}catch{}})();const w={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,k[3]),subTitlePaddingBottom:new L(k[3],k[3]),verificationDetailsRowGap:new L(12,k[5],k[5]),termsPaddingLeftRight:new L(k[0],k[3])},_t={stepTitle:new kt("h6Regular","h5Regular")},Ne="businessVerificationPage",O="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Fe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),Ta=({businessVerificationDetails:e,allNationalityCountries:C,verficationDetailsFetchState:$,isRefreshingViewInBackground:E,filesEndPoint:a,authParams:R,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:N,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:b=!1,isTreasuryTransferInitiated:K=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Ee,onVerifyOtp:Re,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 Qe=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:D}=e,Je=Te(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(Q,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(Q,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(Q,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(Q,{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,C)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,T=Object.values(D).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${T<0?1:T+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&D[I]?.isPhoneVerified!==!0)return void u.setError(`${v}.${T}.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,F=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,P=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?J(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,Ce=o?.website,be=o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,De=ne?.firstName,Oe=ne?.lastName,ve=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&F!=null&&P!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&Ce!=null&&Se!=null&&se!=null&&be!=null&&De!=null&&Oe!=null&&ve!=null&&S?.trackBusinessVerificationSend({email:g,birthday:F.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:P,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:Ce.toString(),industry:Se,formattedAddress:be},{firstName:De,lastName:Oe,email:ve},h,s?"Settings":void 0)})(),Me?.(I),K===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(v)&&Xe?.(g[v])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=Te(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 F=r?.fileIds??[];u.getValues(`${v}.${g}.fileIds`).forEach(l=>{F.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"&&Je==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:K===!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(Et,{isSettings:s,children:[t.jsx(yt,{title:x&&b===!0?Bt:i.header,backgroundColor:Qe.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||b===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(Ct,{size:"ExtraLarge",start:!0})}):t.jsx(bt,{...u,children:t.jsxs("form",{id:Ve(Ne),onSubmit:at,children:[x&&b===!0&&t.jsxs(Rt,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Qt,{children:t.jsxs(Jt,{children:[t.jsx(Pe,{}),ye&&t.jsx(Pe,{}),t.jsx(Kt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Pt,{companyOfficerData:D,allNationalityCountries:C,allOfficers:ae??[],sectionId:v,isRefreshingViewInBackground:E,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:N,filesEndPoint:a,authParams:R,isPopupOpen:ee,openPopup:et,onGetOtp:Ee,onVerifyOtp:Re,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Lt,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:E},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:R,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:C})]}),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:b?Fe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":b?"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:b?Fe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":b?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(b)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??"",P=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!P?((!l?.firstName||!l?.lastName)&&u.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),F=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email,P=y?.email;if(V){if(!P)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(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0})();g&&F&&(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?J(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?J(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Ke,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,C,$,E)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:R,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:C?.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:[...Ft]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[v]:Object.values(R).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:vt(s?.nationalityCountryCode,E.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`,Et=d.div`
1
+ import{y as rt,e as lt,a7 as Te,V as t,c as Q,T as ct,cl as dt,B as pt,c8 as ut,ag as Ie,a6 as Ne,fB as mt,a as ft,a_ as yt,b as ht,c9 as gt,bR as xt,bS as St,bT as wt,L as bt,A as Ct,a9 as Dt,o as c,x as L,H as Le,O as _e,fC as Ot,f1 as $e,eu as vt,c2 as Tt,a8 as It,l as Ae,d as Nt,M as $t,m as N}from"./index-mhb15COx.js";import{a as _}from"./sentry-Cm8I7E9J.js";import{n as d}from"./mui-G2MlMTlr.js";import{F6 as kt,bQ as J,FE as jt,FD as Vt,FF as Ft}from"./zeni-epic-state-lC5X-sam.js";import{r as Pt,z as Lt}from"./CompanyOfficerDetailsSection-BsCx7q-g-Bqu05vNe.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./helper-AgH8nJln-DNDXfXpF.js";import"./LabeledAddressValueField-D66XOhMx-BL2wLyLH.js";import"./LabeledCountryMultiSelectField-kopByxLB-1-3v1UQa.js";import"./LabeledCreatableSingleSelectField-B6An-cwq-DFSBA92N.js";import"./LabeledDocumentField-D_ZD8JTn-vKeq6vm6.js";import"./LabeledNameField-DZJXGYR9-BrTXKAba.js";import"./commonTypes-Ec-PxfpT-DZ1xbinn.js";import"./avatar-Dz7aEm3d-CxU8IzEu.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]="dd4d5a4a-6ee1-46b0-b9cb-a41cd429efb3",e._sentryDebugIdIdentifier="sentry-dbid-dd4d5a4a-6ee1-46b0-b9cb-a41cd429efb3")}catch{}})();const w={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,N[3]),subTitlePaddingBottom:new L(N[3],N[3]),verificationDetailsRowGap:new L(12,N[5],N[5]),termsPaddingLeftRight:new L(N[0],N[3])},_t={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",O="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Ve,strings:{empty:Bt}}}=_e.getLocalizedStrings(),Ta=({businessVerificationDetails:e,allNationalityCountries:b,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:k,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:K=!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 Qe=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:D}=e,Je=Te(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(Q,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(Q,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(Q,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(Q,{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,T=Object.values(D).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${T<0?1:T+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&D[I]?.isPhoneVerified!==!0)return void u.setError(`${v}.${T}.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);kt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=D[I],g=r?.email,V=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,F=r?.lastName,P=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?J(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,De=ne?.firstName,Oe=ne?.lastName,ve=ne?.email;g!=null&&l!=null&&y!=null&&F!=null&&V!=null&&P!=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&&ve!=null&&S?.trackBusinessVerificationSend({email:g,birthday:V.toString(),companyOwnership:l,firstName:y,lastName:F,companyRole:P,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:De,lastName:Oe,email:ve},h,s?"Settings":void 0)})(),Me?.(I),K===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(v)&&Xe?.(g[v])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=Te(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 V=r?.fileIds??[];u.getValues(`${v}.${g}.fileIds`).forEach(l=>{V.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(Ne(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"&&Je==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(Ne(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:Qe.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:Fe(ke),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(Qt,{children:t.jsxs(Jt,{children:[t.jsx(Pe,{}),ye&&t.jsx(Pe,{}),t.jsx(Kt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Pt,{companyOfficerData:D,allNationalityCountries:b,allOfficers:ae??[],sectionId:v,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:k,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Lt,{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":k,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:Fe(ke),primaryBtn:{label:C?Ve.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:k!=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?Ve.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,F=l?.email??"",P=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return F&&!P?((!l?.firstName||!l?.lastName)&&u.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),V=(()=>{const l=D[I],y=o?.primaryContactLocalData,F=l?.email,P=y?.email;if(F){if(!P)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(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0})();g&&V&&(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?J(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?J(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Ke,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:[...Ft]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Vt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[v]:Object.values(E).map((f,k)=>{const s=f,x=Ot(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${k+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:vt(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&&k===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Fe=e=>`${e}_form`,Rt=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
5
5
  width: 100%;
6
6
  row-gap: ${c.sp3};
7
7
  background-color: ${e=>e.isSettings?"unset":e.theme.colors.grey5};
8
- `,Rt=d.div`
8
+ `,Et=d.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: flex-start;
@@ -135,4 +135,4 @@ import{y as rt,e as lt,a7 as Te,V as t,z as Q,T as ct,cl as dt,B as pt,c8 as ut,
135
135
  &:hover {
136
136
  color: ${e=>e.theme.colors.primary};
137
137
  }
138
- `;export{Ta as default,Ve as uniqueName};
138
+ `;export{Ta as default,Fe as uniqueName};
@@ -1,4 +1,4 @@
1
- import{j as D}from"./pdf-CTJ16aEe.js";import{a as w}from"./sentry-CY6wsJT-.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-oEkj6b51.js";import{_ as ce,aE as ue,y as de,aF as le,js as j,bj as pe,jz as E,ki as x,jQ as me,J as z,lk as fe,kv as ye,jO as B,ev as L}from"./index-ByqexAVU.js";import{KZ as Se,ct as G,oD as ge,Dv as Ie,tZ as be,wI as he,zf as ke,zV as Oe,AO as De,Lk as Te,Ll as Ce,Lm as Ve,Ln as we,Lo as Ae,HS as Ne,Kl as _e,I2 as ve,hr as Fe,dj as xe,di as ze,dh as je,mK as Ee,mB as Be,my as Le,hj as Pe,oM as Re,oK as P,bG as R,oY as M,bJ as Me}from"./zeni-epic-state-cFF_NqwA.js";import{n as Ue}from"./mui-Cni6P-fz.js";import{c as U}from"./routePaths-BnaAtOOM.js";import{M as Ge}from"./MobileAppDrawer-CVmbFUtl.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]="ba44b6ca-7770-4361-82bd-e787d8916b5e",e._sentryDebugIdIdentifier="sentry-dbid-ba44b6ca-7770-4361-82bd-e787d8916b5e")}catch{}})();const Ke=Ue.div`
1
+ import{j as D}from"./pdf-DwfifS04.js";import{a as w}from"./sentry-Cm8I7E9J.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-CaikJZHD.js";import{_ as ce,aE as ue,y as de,aF as le,js as j,bj as pe,jz as E,ki as x,jQ as me,J as z,lk as fe,kv as ye,jO as B,ev as L}from"./index-mhb15COx.js";import{KZ as Se,ct as G,oD as ge,Dv as Ie,tZ as be,wI as he,zf as ke,zV as Oe,AO as De,Lk as Te,Ll as Ce,Lm as Ve,Ln as we,Lo as Ae,HS as Ne,Kl as _e,I2 as ve,hr as Fe,dj as xe,di as ze,dh as je,mK as Ee,mB as Be,my as Le,hj as Pe,oM as Re,oK as P,bG as R,oY as M,bJ as Me}from"./zeni-epic-state-lC5X-sam.js";import{n as Ue}from"./mui-G2MlMTlr.js";import{c as U}from"./routePaths-CDVBEe6a.js";import{M as Ge}from"./MobileAppDrawer-D7V2koAX.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]="ba44b6ca-7770-4361-82bd-e787d8916b5e",e._sentryDebugIdIdentifier="sentry-dbid-ba44b6ca-7770-4361-82bd-e787d8916b5e")}catch{}})();const Ke=Ue.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{V as n,L as r,o as a}from"./index-ByqexAVU.js";import{n as i}from"./mui-Cni6P-fz.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]="b47872d8-7fa2-4095-9a65-64c1aca34f2d",e._sentryDebugIdIdentifier="sentry-dbid-b47872d8-7fa2-4095-9a65-64c1aca34f2d")}catch{}})();const d=i.div`
1
+ import{V as n,L as r,o as a}from"./index-mhb15COx.js";import{n as i}from"./mui-G2MlMTlr.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]="b47872d8-7fa2-4095-9a65-64c1aca34f2d",e._sentryDebugIdIdentifier="sentry-dbid-b47872d8-7fa2-4095-9a65-64c1aca34f2d")}catch{}})();const d=i.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{e as m,V as a,O as w,w as y,o as r,d as b,M as x}from"./index-ByqexAVU.js";import{n as o}from"./mui-Cni6P-fz.js";import{a as c}from"./sentry-CY6wsJT-.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]="1b02f9bd-b331-4840-9932-09c8983062af",e._sentryDebugIdIdentifier="sentry-dbid-1b02f9bd-b331-4840-9932-09c8983062af")}catch{}})();const{common:p,spendManagement:{chargeCard:t}}=w.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},V=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code!=="request_on_hold"&&s?i:d,n=e.type.code.includes("physical");return a.jsxs($,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,a.jsx(v,{}),d,n&&!s?a.jsx(u,{className:"physical-card-icon"}):null,e.status.code!=="request_on_hold"&&s?i:null,n&&s?a.jsx(u,{}):null]})},$=o(x)`
1
+ import{e as m,V as a,O as w,w as y,o as r,d as b,M as x}from"./index-mhb15COx.js";import{n as o}from"./mui-G2MlMTlr.js";import{a as c}from"./sentry-Cm8I7E9J.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]="1b02f9bd-b331-4840-9932-09c8983062af",e._sentryDebugIdIdentifier="sentry-dbid-1b02f9bd-b331-4840-9932-09c8983062af")}catch{}})();const{common:p,spendManagement:{chargeCard:t}}=w.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},V=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code!=="request_on_hold"&&s?i:d,n=e.type.code.includes("physical");return a.jsxs($,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,a.jsx(v,{}),d,n&&!s?a.jsx(u,{className:"physical-card-icon"}):null,e.status.code!=="request_on_hold"&&s?i:null,n&&s?a.jsx(u,{}):null]})},$=o(x)`
2
2
  ${e=>e.forDetailPage?{...y.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{y as S,e as b,V as i,a_ as ee,eO as z,w as u,an as N,bt as ie,o as t,O as w,f as O,x as h,l as v,cI as te,m as l,ag as oe,a5 as B,bl as re,C as $,b as L,iu as X,iv as q,ib as ae,b_ as se,c1 as ne,H as T}from"./index-ByqexAVU.js";import{n as o}from"./mui-Cni6P-fz.js";import{Gu as f,bs as de}from"./zeni-epic-state-cFF_NqwA.js";import{b as K,a as Y}from"./sentry-CY6wsJT-.js";import{F as le}from"./InsightsSection-DgfCOO4F-D4slzBMJ.js";import{M as ce,S as he}from"./common-B74Sb4iG-wPHt407r.js";import{J as pe,E as ge,X as me,Y as xe,F as we,K as ue,W as ye}from"./recharts-LlOU9oLm.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./NavigationDots-WUDG_g8M-DDdWfUW3.js";import"./calculateSize-CAxK0dN_-CtindZTL.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]="4c53b803-88a3-40de-a812-a3b264948a5b",e._sentryDebugIdIdentifier="sentry-dbid-4c53b803-88a3-40de-a812-a3b264948a5b")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=S();return i.jsx(ye,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},V=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,W=o.div`
1
+ import{y as S,e as b,V as i,a_ as ee,eO as z,w as u,an as N,bt as ie,o as t,O as w,f as O,x as h,l as v,cI as te,m as l,ag as oe,a5 as B,bl as re,C as $,b as L,iu as X,iv as q,ib as ae,b_ as se,c1 as ne,H as T}from"./index-mhb15COx.js";import{n as o}from"./mui-G2MlMTlr.js";import{Gu as f,bs as de}from"./zeni-epic-state-lC5X-sam.js";import{b as K,a as Y}from"./sentry-Cm8I7E9J.js";import{F as le}from"./InsightsSection-BdFG3j3R-DjHyJY78.js";import{M as ce,S as he}from"./common-Cu5K0AJk-BihNw_Do.js";import{J as pe,E as ge,X as me,Y as xe,F as we,K as ue,W as ye}from"./recharts-3tylCZU1.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./NavigationDots-c-XSrFzE-Bl0Sm_Ng.js";import"./calculateSize-QoQyn_Ku-j5kLdf_t.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]="06378ab5-1cbd-4ee9-9aab-d8de91054ece",e._sentryDebugIdIdentifier="sentry-dbid-06378ab5-1cbd-4ee9-9aab-d8de91054ece")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=S();return i.jsx(ye,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},V=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,W=o.div`
2
2
  display: flex;
3
3
  gap: ${t.sp1};
4
4
  `,$e=o.div`
@@ -1,4 +1,4 @@
1
- import{y as Qe,e as ve,_ as Dt,h as It,gm as fr,h1 as $i,ad as Xe,gn as $r,a7 as Je,V as t,a_ as vi,m as l,fn as vr,a5 as _e,b as ee,aZ as ki,bn as ta,f as d,o as a,O as $e,ie as kr,w as H,bR as ji,ig as Li,eI as Di,gd as Ii,ih as Ai,b1 as Ti,bd as jr,ab as aa,x as T,ar as ra,b6 as Lr,C as ue,e6 as Ri,au as ia,i6 as Ei,ac as Dr,aA as mt,gq as Ir,bF as Fi,L as ut,an as Pi,cO as zi,bV as Mi,ii as Vi,ij as Ar,ik as it,er as Oi,aj as Hi,il as Ni,im as Bi,bS as Wi,cw as _i,g_ as Ui,l as Fe,bp as Zi,v as Ut,io as Ma,ip as Gi,cJ as Yi,d as Va,M as Tr,at as qi,P as Ki,i5 as ht,ia as Xi,ic as Ji,id as Qi,cR as Oa,en as eo,a as Rr,b_ as Er,bs as to,n as Fr,iq as ao,t as kt,bt as Ha,aV as ro,cF as io,D as oo,H as nt,gl as no,a8 as so,b2 as co,ir as At,eT as lo,is as Pr,fX as zr,it as Lt,hC as Mr,df as Vr,bl as ho,dL as Or,ib as po,c1 as uo,de as mo,cq as go,dR as Co,bK as wo,bL as xo}from"./index-ByqexAVU.js";import{a as o,b as bo}from"./sentry-CY6wsJT-.js";import{n as r,c as ge,k as Hr}from"./mui-Cni6P-fz.js";import{F4 as Tt,bs as yo,c0 as So,Gt as fo}from"./zeni-epic-state-cFF_NqwA.js";import{y as $o}from"./MoreMenuButton-5MZl4h9B-zFBR8G0C.js";import{x as vo}from"./NavigationDots-WUDG_g8M-DDdWfUW3.js";import{A as ko,i as jo,a as Lo,l as Do,r as Io,t as Ao,n as To}from"./add-to-wallet-DgdBD8_G-q_ZatOIu.js";import{L as Zt}from"./lottie-DEK510sX.js";import{t as Ro}from"./spend-limit-D6SyboD4-DAZsY_K2.js";import{j as Eo}from"./CardNumberSubText-12zyW5qQ-CZArd4_p.js";import{t as Fo}from"./panelSelectedMixin-Cddsb26L-BCo5ICo2.js";import{M as Po,S as zo}from"./common-B74Sb4iG-wPHt407r.js";import{r as Nr}from"./core-oEkj6b51.js";import{l as Br}from"./uploadReceipts-CIgkuVpu-BX0LuAuH.js";import{L as Mo,z as Vo,k as Oo,P as Ho}from"./LockCardPage-B1QOSByp-DoXf8Ddb.js";import"./pdf-CTJ16aEe.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./bank-letter-BOcVjN6J-a5lcVCZG.js";import"./dollar-round-D18u7nlm-BxzwYsJa.js";import"./money-2cg1MuG4-BmcWx6In.js";import"./page-summary-D7_VQHwN-ZSqDN0WI.js";import"./transaction-placeholder-CpOwZAMG-B7lzeBRq.js";import"./unlock-BPWn2I5L-BcwMx3a4.js";import"./calculateSize-CAxK0dN_-CtindZTL.js";import"./RoleWithToolTip-VOllzDDB-BYsZPBtm.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]="d3d7b850-8eeb-44f3-ad0b-1b209abf8ca4",e._sentryDebugIdIdentifier="sentry-dbid-d3d7b850-8eeb-44f3-ad0b-1b209abf8ca4")}catch{}})();const Wr=$e.getLocalizedStrings().spendManagement.chargeCard,No=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:$,chargeCardDetailView:h,productInformation:g,creditAccountInformation:u,debitAccountInformation:C,creditAccount:x,creditAccountRepayment:n,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,appleWalletLink:L,googleWalletLink:A,style:p,showDrawerAnimation:R,setWalletType:v,setIsAddToWalletDrawerOpen:V,isDebitCard:O})=>{const f=It().analytics,{isIPadScreen:Z}=Ni(),{isAndroidScreen:K}=Bi(),X=Dt(),E=Tt(X.loggedInUserRoleMap);return t.jsx(Bo,{style:p,children:Z===!0?t.jsx(ea,{onClick:()=>{it({chargeCardDetailView:h,classListFetchState:i,analytics:f,isDebitCard:O,isChargeCardAdmin:E,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:u,debitAccountInformation:C,isChargeCardFeatureEnabled:s,creditAccount:x,creditAccountRepayment:n}),window.open(L,"_blank")}}):K===!0?t.jsx(Qt,{onClick:()=>{it({chargeCardDetailView:h,classListFetchState:i,analytics:f,isDebitCard:O,isChargeCardAdmin:E,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:u,debitAccountInformation:C,isChargeCardFeatureEnabled:s,creditAccount:x,creditAccountRepayment:n}),window.open(A,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{v("apple"),R.current="slide-in-right-to-left-add-to-wallet",it({chargeCardDetailView:h,classListFetchState:i,analytics:f,isDebitCard:O,isChargeCardAdmin:E,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:u,debitAccountInformation:C,creditAccount:x,creditAccountRepayment:n}),V(!0)}}),t.jsx(Qt,{onClick:()=>{v("google"),R.current="slide-in-right-to-left-add-to-wallet",it({chargeCardDetailView:h,classListFetchState:i,analytics:f,isDebitCard:O,isChargeCardAdmin:E,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:u,debitAccountInformation:C,creditAccount:x,creditAccountRepayment:n}),V(!0)}})]})})},Qt=({onClick:e})=>{const i=Qe();return t.jsx(Rr,{prefixIcon:t.jsx(Wo,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":ee("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=Qe();return t.jsx(Rr,{prefixIcon:t.jsx(_o,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":ee("add-to-apple-wallet-button")})},Bo=r.div`
1
+ import{y as Qe,e as ve,_ as Dt,h as It,gm as fr,h1 as $i,ad as Xe,gn as $r,a7 as Je,V as t,a_ as vi,m as l,fn as vr,a5 as _e,b as ee,aZ as ki,bn as ta,f as d,o as a,O as $e,ie as kr,w as H,bR as ji,ig as Li,eI as Di,gd as Ii,ih as Ai,b1 as Ti,bd as jr,ab as aa,x as T,ar as ra,b6 as Lr,C as ue,e6 as Ri,au as ia,i6 as Ei,ac as Dr,aA as mt,gq as Ir,bF as Fi,L as ut,an as Pi,cO as zi,bV as Mi,ii as Vi,ij as Ar,ik as it,er as Oi,aj as Hi,il as Ni,im as Bi,bS as Wi,cw as _i,g_ as Ui,l as Fe,bp as Zi,z as Ut,io as Ma,ip as Gi,cJ as Yi,d as Va,M as Tr,at as qi,P as Ki,i5 as ht,ia as Xi,ic as Ji,id as Qi,cR as Oa,en as eo,a as Rr,b_ as Er,bs as to,n as Fr,iq as ao,v as kt,bt as Ha,aV as ro,cF as io,D as oo,H as nt,gl as no,a8 as so,b2 as co,ir as At,eT as lo,is as Pr,fX as zr,it as Lt,hC as Mr,df as Vr,bl as ho,dL as Or,ib as po,c1 as uo,de as mo,cq as go,dR as Co,bK as wo,bL as xo}from"./index-mhb15COx.js";import{a as o,b as bo}from"./sentry-Cm8I7E9J.js";import{n as r,c as ge,k as Hr}from"./mui-G2MlMTlr.js";import{F4 as Tt,bs as yo,c0 as So,Gt as fo}from"./zeni-epic-state-lC5X-sam.js";import{y as $o}from"./MoreMenuButton-CkkW1atP-CT7ietod.js";import{x as vo}from"./NavigationDots-c-XSrFzE-Bl0Sm_Ng.js";import{A as ko,i as jo,a as Lo,l as Do,r as Io,t as Ao,n as To}from"./add-to-wallet-DgdBD8_G-2vbkyqzY.js";import{L as Zt}from"./lottie-D86WIi_0.js";import{t as Ro}from"./spend-limit-D6SyboD4-d-tIWfnn.js";import{j as Eo}from"./CardNumberSubText-DHtSIcZZ-CJNkVpEB.js";import{t as Fo}from"./panelSelectedMixin-Cddsb26L-XfdQwEMM.js";import{M as Po,S as zo}from"./common-Cu5K0AJk-BihNw_Do.js";import{r as Nr}from"./core-CaikJZHD.js";import{l as Br}from"./uploadReceipts-CIgkuVpu-BPECKX43.js";import{L as Mo,z as Vo,k as Oo,P as Ho}from"./LockCardPage-BDlnh_zf-cKP8zIxD.js";import"./pdf-DwfifS04.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./bank-letter-BOcVjN6J-DhC6VHDB.js";import"./dollar-round-D18u7nlm-BF4Thvjs.js";import"./money-2cg1MuG4-CfgKOIyt.js";import"./page-summary-D7_VQHwN-CaK_VLEF.js";import"./transaction-placeholder-CpOwZAMG-CXIruzlf.js";import"./unlock-BPWn2I5L-8UNw8MhM.js";import"./calculateSize-QoQyn_Ku-j5kLdf_t.js";import"./RoleWithToolTip-CqLxmtj6-Rnjw9i_g.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]="daff5235-6045-48e6-99f1-94f2a2220a25",e._sentryDebugIdIdentifier="sentry-dbid-daff5235-6045-48e6-99f1-94f2a2220a25")}catch{}})();const Wr=$e.getLocalizedStrings().spendManagement.chargeCard,No=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:$,chargeCardDetailView:h,productInformation:g,creditAccountInformation:u,debitAccountInformation:C,creditAccount:x,creditAccountRepayment:n,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,appleWalletLink:L,googleWalletLink:A,style:p,showDrawerAnimation:R,setWalletType:v,setIsAddToWalletDrawerOpen:V,isDebitCard:O})=>{const f=It().analytics,{isIPadScreen:Z}=Ni(),{isAndroidScreen:K}=Bi(),X=Dt(),E=Tt(X.loggedInUserRoleMap);return t.jsx(Bo,{style:p,children:Z===!0?t.jsx(ea,{onClick:()=>{it({chargeCardDetailView:h,classListFetchState:i,analytics:f,isDebitCard:O,isChargeCardAdmin:E,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:u,debitAccountInformation:C,isChargeCardFeatureEnabled:s,creditAccount:x,creditAccountRepayment:n}),window.open(L,"_blank")}}):K===!0?t.jsx(Qt,{onClick:()=>{it({chargeCardDetailView:h,classListFetchState:i,analytics:f,isDebitCard:O,isChargeCardAdmin:E,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:u,debitAccountInformation:C,isChargeCardFeatureEnabled:s,creditAccount:x,creditAccountRepayment:n}),window.open(A,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{v("apple"),R.current="slide-in-right-to-left-add-to-wallet",it({chargeCardDetailView:h,classListFetchState:i,analytics:f,isDebitCard:O,isChargeCardAdmin:E,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:u,debitAccountInformation:C,creditAccount:x,creditAccountRepayment:n}),V(!0)}}),t.jsx(Qt,{onClick:()=>{v("google"),R.current="slide-in-right-to-left-add-to-wallet",it({chargeCardDetailView:h,classListFetchState:i,analytics:f,isDebitCard:O,isChargeCardAdmin:E,cardIssuedByRoles:w,cardIssuedByDepartmentName:b,cardHolderRoles:I,cardHolderDepartmentName:j,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:u,debitAccountInformation:C,creditAccount:x,creditAccountRepayment:n}),V(!0)}})]})})},Qt=({onClick:e})=>{const i=Qe();return t.jsx(Rr,{prefixIcon:t.jsx(Wo,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":ee("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=Qe();return t.jsx(Rr,{prefixIcon:t.jsx(_o,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":ee("add-to-apple-wallet-button")})},Bo=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;