@zeniai/web-cockpit-ui 1.14.14-qa → 1.14.15-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/dist/assets/{ACHDetailsPage-DzRJ2QAk-CD7bvBrj.js → ACHDetailsPage-DyEK-yAb-CR1iB_xc.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BFjLWbFj-B8php81u.js → AIPerformancePage-Do5bswa_-CdgPK33C.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-iz3OwpQ7-C_rGxBXY.js → AccountInfoPage-BBhgLi_k-BrzJFlaA.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DqO5Kcep-Hi_ZRI3e.js → AccountInfoPageContent-BJqXMkH6-BzGTbIN9.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-kNZ0VZns-bS4LQ1sQ.js → AccountReconDetailsDrawerPage-CV09UnoU-l4pTZ2vA.js} +1 -1
  6. package/dist/assets/{AccountRow-CAXWtAin-BGG9HEwp.js → AccountRow-TlJ0aU9H-BM9KA8Rp.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-Dqrhr23F-C910Mcf5.js → AccountsPromoCardStack-D8Y5MNXA-C4cMa-NA.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-D2IMZgZa-B-aO9Stn.js → AddAddressForCardDrawer-DKJpGW7r-0F7SORv2.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-qgqXvx0C-CiPgkIQp.js → AddToWalletPage-1gMvHWq2-CbJs4xPg.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-CNWj8sV2-CLLqpf6D.js → AgingReportsPage-Bzn9xmRs-DzMv0HiR.js} +1 -1
  11. package/dist/assets/{AllUserItems--netGz7H-CJzpZ7a6.js → AllUserItems-BPSpj-dO-3CLmRBZX.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-CxLaoiqg-BsazbW1l.js → ApAgingDetailPage-C2HUvxWk-DFYdmJfh.js} +1 -1
  13. package/dist/assets/{AppBasePage-CbUMSiOb-CrwHY3Fg.js → AppBasePage-C63xauck-BWBOM_23.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-BNTS8MtE-DGIlwro-.js → AppDrawerContent-Cq8GkRBD-DMx8Mcso.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-lFVUzKhw-BtcvSbhM.js → ApprovalRulesSettingsPage-zKh1CLv3-BIYZpY6g.js} +1 -1
  16. package/dist/assets/{ArAgingChart-BBavISMZ-Bg2WSdl_.js → ArAgingChart-Bs2fblA6-BsbEizCk.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-Bk49E_4I-B9ITkdyZ.js → ArAgingDetailPage-BWsV1tQP-D86I5PY2.js} +1 -1
  18. package/dist/assets/{AttachmentView-g756MrON-Dx8kJ_wk.js → AttachmentView-BDkq5i_5-BO6ipJLN.js} +1 -1
  19. package/dist/assets/{BankAccountSection-C0U0fm6r-DEPr81SF.js → BankAccountSection-DL-Qgypb-qVlfhNvY.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-GcaV2hCI-BQKm1Ol8.js → BankAccountWarningSection-PFOmZUmz-Bqvid317.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-YwtSaNry-Bd_-Nk2r.js → BankConnectionsSettingsPage-BiPEOltR-i9HyK4Qm.js} +1 -1
  22. package/dist/assets/{BillDetailPage-e0b0r_9U-C7RrAILe.js → BillDetailPage-nUoy5Pib-SqAso5S8.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-DZNOlmqa-vJ0wioqn.js → BillPayApprovalRuleDetailPage-uCd9CD_--DRTBOlZT.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-HvIHZYLp-DRglk4Bn.js → BillPayApprovalRulesPage-BsvzOO92-DBBsEfq5.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-BKRIBuWK-BqkTD413.js → BillPayPromoPage-D9tHxFrw-DLOlbZMx.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-DVFYVrcF-CaXLevRO.js → BillPaySetUpPage-Ci__X7jC-CQdjr8_2.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-Boq7QJuJ-B5yYk5Zb.js → BillingSettingsPage-JcOqMK9G-B8TUnhBr.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-DB1RnMx6-CkQIDNyM.js → BillsBulkReviewDrawerPage-FeZEMsS6-Ce-L5sMw.js} +1 -1
  29. package/dist/assets/{BoxItem-C5PEWObZ-CeuLKKcA.js → BoxItem-BcQH7ATF-CgWI28ii.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-ClBQ39GB-Dp7StxAv.js +140 -0
  31. package/dist/assets/{CardNumberSubText-Qd4Nl4Ie-BDRMn3jX.js → CardNumberSubText-CRythvN3-BPNRschq.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-pMaAPWGY-D9Y3IKTQ.js → CashbackDetailPage-CDa_GOsq-D-9-JqVH.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-ZhB56XeA-D-PHMtiH.js → ChargeCardDetailPage-BVxvmvYF-Dz3Dkcri.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-3k973dhm-2eKPtsLs.js → ChargeCardListPage-Dk_9p-sM-CLfdE6hG.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-aotBBLcN-BjoQ3nLG.js → ChargeCardListTable-DLAZTf8n-CNRNdnEB.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-D5h6LEV7-CtqHAn85.js → ChargeCardPromoPage-COA7csMK-CXI_5Tho.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-DLhS4IXu-ClI3TH91.js → ChargeCardSetupPage-QPLpJN2z-BC_NFJKr.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-C9JupC6z-DmxpqXJ6.js → ChargeCardStatementsPage-DwJYJjcf-DEvRTjh8.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-DlCRcsWm-D__qzTWb.js → ChargeCardUtils-BbByGmi9-DEgVq9Nd.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-Cpt5a98f-dacal49t.js → ChaseOverlay-CvXMdD8r-BjJFL-eT.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-Nz2eeTkw-BpYeX6Ap.js → CheckDepositDrawerPage-Cfdkbh0L-DFqxsNxb.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-D_yuiPyJ-DvwXVdxx.js → CollapsableReportTable-BptltmMq-DGFCje0J.js} +1 -1
  43. package/dist/assets/CompanyOfficerDetailsSection-DTbhxCCJ-uAcyCJzT.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-yl1IgKFI-PAYHKbkv.js → CompanyPassportCard-CRgbazO4-DnDR61ME.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-CVyMn0gX-B5YsJ6DE.js → CompanyPassportPage-wdWKvOuO-UVTXarrj.js} +1 -1
  46. package/dist/assets/{CompleteProfile-DzShtAr0-lZLdASXR.js → CompleteProfile-Cp_nXCBI-D_xHWKd0.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-C47O0k3A-DgYPkzlU.js → ConfettiBurst-tf23hrA_-CQK1q6oq.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-LadbvQ9C-BUhpPwKd.js → CreateOrEditVendorPage-DTbrZv48-UgMANJA2.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BQKmQNsf-I4kqkHCD.js → CreditCardPaymentDrawerPage-CGGM52ND-gsvEVx3R.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-BKgF2tFu-DparH7B9.js → CreditCardPaymentPlgSection-BS99Rbz7-D3hONmqh.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-D_UXMdLl-CNFJ6MOy.js → CurrencySelectField-Cz1ZFZNL-Do8LBYx6.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-DYDUNktm-Cuul6Xm-.js → CustomerOnboardingActivationPage-Bw2z91CF-CXlsYQiE.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DXWtttsb-CkJ9yVd4.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-IwCrs_Ni-BwoSRsex.js → CustomerOnboardingDetailPageSkeleton-BY4rv3eB-CqGuM0YC.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BinWH6wJ-CzTA-Ar-.js → CustomerOnboardingNoStepsPage-ByTpLszW-NQIzex-L.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-mGYcMJc6-B5TFAAVl.js → CustomerOnboardingPage-eyRDjOy--Cv80zIzo.js} +4 -4
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CMmP2rhp-sRUh6iMf.js → CustomerOnboardingProductSuitePage-C_GOhUsC-C7NxSpR8.js} +1 -1
  58. package/dist/assets/{Dashboard-B8ej675T-BXfFBFZn.js → Dashboard-DXTfxwrE-Df2X5_2C.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-D0g4Un-7-Bm03Ezvt.js → DashboardReportPage-C7LmV0rQ-DqW7yfxe.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-BiYFTagV-COtoJPkR.js → DepositAccTransactionItem-BH6np-wq-pvmH9-13.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-B7seT4iQ-DcnxHPIM.js → DepositAccTransactionListPage-BTZovTIK-dLGcWM1z.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-c2Omt2uV-DlmFY2Kw.js → DomesticWireDetailsPage-DhM2CLtr-DepJOUT4.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-Ca73StXh-D0NZgBgD.js → DownloadOverlay-CwqxQGbr-CGdDh008.js} +1 -1
  64. package/dist/assets/{DrawerPage-DbQ3fJ0a-DXEqv1MQ.js → DrawerPage-C3k5XFW6-D1QbIJ62.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-BSGpToFc-CchXHa_A.js → EditPeoplePage-D2zQG-_T-BY4H9at4.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-CF4ITGWS-6ZvkVOwA.js → EditReimbursementDetailPage-DXLAtkkp-Cb7fe5V0.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-CjjeYmrY-bmebsPCj.js → EntityDetailPage-_060OpVJ-Dl6JyUuQ.js} +1 -1
  68. package/dist/assets/{EntitySummarySection-CATUFkYD-CbbHQNn7.js → EntitySummarySection-0QXWkpbX-B1FOGhKX.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-DZJM8s1B-D66s2e8m.js → ExpenseAutomationOverviewPage-GPO42_rS-DYsIHfpN.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-CJcg4JEX-BIBOqZFd.js → ExpenseAutomationPage-BQArYLAG-D24JhqEL.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-DtAXlY7R-Ba2dQlX0.js → ExpressPayPage-DacK02lD-CBLCoj0U.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-BsLKydgB-BPHzHuJw.js → FeaturePreviewPage-Bv0D92ik-F_nngpEs.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-CkJm4bPf-CPlDdB_W.js → FollowStepsSection-CMTo4gYl-U-WQSPk0.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-DmxSD6UV-BUfgnFpU.js → GlobalReviewListPage-BbI2YDxl-BJZeR8WE.js} +1 -1
  75. package/dist/assets/{HelpButton-BFbQbBAV-BQPDLXHd.js → HelpButton-Coe4ii48-CP7NC72-.js} +1 -1
  76. package/dist/assets/{InformationCardStack-BMrkstMK-C8LTAHrF.js → InformationCardStack-BIumm5SJ-1AXNePG9.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-wYrlCPh0-D2rKcLyu.js → InsightsCardStack-nndLG-Gx-CPrz5cnd.js} +1 -1
  78. package/dist/assets/{InsightsSection-DncKJ7JM-ChN_oqlZ.js → InsightsSection-CSG5sVaE-B6JiP7yi.js} +1 -1
  79. package/dist/assets/{IntegrationsSettingsPage-xySXq7aa-C58pEBs2.js → IntegrationsSettingsPage-BRH3t6mo-DdFh5Rf1.js} +1 -1
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-CSqm7kj7-CiFzXT35.js → InternationalWireSwiftDetailsPage-vgA7iek9-DBrrwazq.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-DUHW34SM-DlE-Wsjz.js → InternationalWireVerificationPage-DEIs1ydr-0N725pEo.js} +1 -1
  82. package/dist/assets/{InviteFormPage-FjAlfXw_-Dh7IBTtO.js → InviteFormPage-Bowy0arK-BdVkelsH.js} +1 -1
  83. package/dist/assets/{InvitePageListView-PObzTGOB-Df4c2HGS.js → InvitePageListView-DuXb15Ll-C1oqEYaE.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-BuqTZXW2-DraxkQIU.js → InvitePeoplePage-By3sTPj1-YDstidmS.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-CZXO__Vx-BgqHdBYt.js → InvoiceUploadSection-B8OA6oqe-2tj6XHC5.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-CjsftuWA-CIBGJvCn.js → IssueChargeCardPage-BIL4e5I_-4QbaL8H_.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-CfUYrlxS-B7W2Dek5.js → LabeledAddressValue-BJ1dXCb1-KlPGwEsa.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-B5z2zp_k-CGSpumtp.js → LabeledAddressValueField-DZCn1w6m-DlnblRke.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-CHl3uhk9-BFLBybV4.js → LabeledControlledCheckBoxField-CwiyOI1Z-D7LWnjIE.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CP-IuKrc-DjM8Weti.js → LabeledCreatableSingleSelectField-yLzlQU6_-DKdnF88p.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-DyMGgcCu-Bgxu4H6-.js → LabeledDocumentField-gxNaFx2j-qq-lZmSF.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-Bism2Slt-BWwjKMX5.js → LabeledDropDownFormattedTextField-M_7KWHOd-hGN1wwbj.js} +1 -1
  93. package/dist/assets/{LabeledText-RBbOYz7n-DBpZsWkU.js → LabeledText-CO_4w9Rx-BHaswoQg.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Mu2WJq-Di4MWf5A.js → LabeledUserSingleSelectWithSubtitlesField-zPoNOgP7-Coi1U77m.js} +1 -1
  95. package/dist/assets/{LabeledZeniRolesDropDownField-BCvUNHGc-CO5qR-vY.js → LabeledZeniRolesDropDownField-C8-KfR-4-Bo19dflJ.js} +1 -1
  96. package/dist/assets/{LinkJETransactionPage-C4JGb7aV-328UsU_k.js → LinkJETransactionPage-CZVlsT4d-DWiZb23z.js} +1 -1
  97. package/dist/assets/{LowBalancePopup-BeDr-jas-CZ5XIvfc.js → LowBalancePopup-Dl5IXVvh-CJcvyvoh.js} +1 -1
  98. package/dist/assets/{MagicLinkACHDetailsPage-B8zPEOQv-Dla85qjg.js → MagicLinkACHDetailsPage-CP6ti0Ic-DSdPwaam.js} +1 -1
  99. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CGdUqm2t-or9ptgFU.js → MagicLinkDomesticWireDetailsPage-BhpSDeQW-Dfr8KlVS.js} +1 -1
  100. package/dist/assets/{MagicLinkInternationalWireDetailsPage-8hkLJ9A0-B0cV-OxG.js → MagicLinkInternationalWireDetailsPage-BXxTeh0G-CtvniFoq.js} +1 -1
  101. package/dist/assets/{MagicLinkSuccessPage-DWCZWHis-BetY1CoQ.js → MagicLinkSuccessPage-Bix48QB5-BI2C-LU1.js} +1 -1
  102. package/dist/assets/{MagicLinkTitleSection-u5U6e-ve-CH9mVJpo.js → MagicLinkTitleSection-DdTLuD-8-D3POGhAB.js} +1 -1
  103. package/dist/assets/{MailingDetailsSection-nhPvZjVn-sir6Tfnb.js → MailingDetailsSection-Bo_v3Gp2-KQtMHUYs.js} +1 -1
  104. package/dist/assets/{MeetingCalenderPopup-CUA73Qvk-DoxrAhy8.js → MeetingCalenderPopup-DlnppXL_-CUHiDz63.js} +1 -1
  105. package/dist/assets/{Menu-D2zz2q9--B_AhVrPl.js → Menu-B_GJLZiP-BW2ajxXL.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-CGZMdkpt-DdZf0Y6A.js → MyBankConnectionsSettingsPage-2DAYVmHh-GUdcUjZQ.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-BKFgjKZX-BF7kPRDf.js → MyPendingActivationChargeCardListPage-CWQq9D2t-ErEXa5Ab.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-BMRJLHbT-DBXZ0zCZ.js → MyProfileSettingsPage-imD_-Umc-QbWQNe6Z.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-BXotE7Lk-S3JyXTjR.js → NavBarWithPicker-D0Bv9P4m-CbuI_X1k.js} +1 -1
  110. package/dist/assets/{NavigationArrow-D-l9zblc-REpeCLdo.js → NavigationArrow-De1st3tA-D1UxRic2.js} +1 -1
  111. package/dist/assets/{NavigationDots-BXUbx14l-6QIteFmi.js → NavigationDots-BfJxPG2K-BkZqVum6.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-DtDgNdr1-LA7e2sKB.js → NewGlobalMerchantPage-euJK3CXB-saCWbHbN.js} +1 -1
  113. package/dist/assets/{NoDataChart-Bve5zpXV-CWu45raX.js → NoDataChart-D_S6Pfkm-C2Kc7qtF.js} +1 -1
  114. package/dist/assets/{NoDataTable-3ROU0Vbp-CI99S85V.js → NoDataTable-CLwNCXFE-D3npQzLx.js} +1 -1
  115. package/dist/assets/{NotFoundPage-DAo53P_6-Dftm7F3Z.js → NotFoundPage-JfbMP3OG-CXI7bNdG.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-DcGcigHn-aQqj0_Qj.js → NotificationSettingsPage-YBgrQBb2-CFbgdfVP.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-oE-ICX7d-BF8EQwxW.js → NotificationsListConfig-TCmn6L9k-nr6vflWI.js} +1 -1
  118. package/dist/assets/{NotificationsPage-TCXj6rCg-BaNkn_3l.js → NotificationsPage-C3pnQT-K-DzeH8fmd.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-xWhiJMru-CE1GX5w_.js → OpExByVendorPage-7FEOhvd--CM9TYAHU.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-GWXnlbZH-BbWbCUrG.js → OverlayContainerPage-GWXnlbZH-LIk5K9-C.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-BamjcoA8-Bx0wvTBG.js → PandLWithForecastPage-D0f5zvhp-B7mneOVq.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Byvw69gz-mE6MxWqh.js → PaymentAccountSetupBillingAddressSection-CBvjcBEH-CXrtDUXk.js} +1 -1
  123. package/dist/assets/{PeoplePage-BYeGKWDm-C03lvJfM.js → PeoplePage-B-j04rvc-B9Gs58fo.js} +1 -1
  124. package/dist/assets/{PortfolioAllocationFormPage-C-l23Cwp-cpiqeU3l.js → PortfolioAllocationFormPage-yvAHgF_R-DmHT3I_l.js} +1 -1
  125. package/dist/assets/{PortfolioDetails-BRhzzSFg-DO-1SFen.js → PortfolioDetails-C-YfZonF-Di6ScpkZ.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CP6ldspb-C0Np0Gj6.js → ProductsCarousel-9USsVLuf-A8Pb9na8.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-Jze9Y7gb-D1gxtikT.js → PromoBaseCards-OKpdHchW-i4Aus_7s.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-9VnW9Bu9-H93cd5b5.js → QBOConnectionDialog-BUr2NQiK-Aqi4uG-w.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-B1rw0-Q--zMoFTXwP.js → QBOSetupSection-Cmf7-3wv-a5e4QtQ4.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DEK0sHby-DrT2jHvA.js → ReimbursementApprovalRuleDetailPage-Dev4FHVt-C92gnL5H.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-D7dRwcKc-CLGfbhLw.js → ReimbursementApprovalRulesPage-BLMJY7El-CiLtyPS5.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-ZwlUAEc8-BqgpWdW7.js → ReimbursementDetailPage-BIyq0BC0-6zfZQkfP.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-CKuYFvqQ-DPri4GXp.js → ReimbursementPromoPage-Dox8Q_BC-sIFfcJ7t.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-Rn1i_Dc1-CMeSSlT5.js → ReimbursementSetUpPage-VKXRSodl-BJwVjHfr.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BwVFxo9s-D9yi3bRo.js → ReimbursementsBulkReviewDrawerPage-BmUcVSjU-5gKW2h5e.js} +1 -1
  136. package/dist/assets/{ReloadCard-7VJ3paTm-CAZ4QKCl.js → ReloadCard-DZhxB7Ar-3pX1Dvm4.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-BrPJNFJD-BCUhxgyI.js → ReportTableViewSelector-DSfx5ZD--DVGbGr0z.js} +1 -1
  138. package/dist/assets/{ReportsPage-CCTvsUrL-DQ0C9QaF.js → ReportsPage-CLH0u0Bh-DDZqu2t3.js} +1 -1
  139. package/dist/assets/{RevenueChart-CCWOE5TQ-CdghIL8Z.js → RevenueChart-BeqQveLu-BLMOp8Ij.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-Y6gEXgmb-DEYn6MSL.js → ReviewDetailsPage-Dq7hRX5W-Dpl9KJkf.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-CjSSDflN-CPgx4xba.js → ReviewOverlay-BNHqYk2g-D0iT-J9q.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-CFMnZiem-C4TYM06A.js → RoleWithToolTip-Cob2-Ppj-C_s6kG4X.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DVyLY2NJ-BsTj20p_.js → ScheduleDetailsFixedAssetsPage-QE0wa196-BDGpj2am.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-Dl76cUvA-Fycb4MqL.js → ScheduleDetailsPage-BVyX-Z0H-DEBuXdBs.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-CrxRnZch-BOdDiuzm.js → ScheduleSequenceTable-D1FYbPfU-DU9S07xt.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-wx53GRGK.js → ScreenRoutes-Xcu_dsY9.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-Cv2os5ln-DPXBfr4R.js → SetUpAccountSection-CYn2o43t-Bpg0pToC.js} +1 -1
  148. package/dist/assets/{SetUpDefaultSection-BX28nGOx-BuMe3hLW.js → SetUpDefaultSection-C0-L2ZyA-COKZA6T-.js} +1 -1
  149. package/dist/assets/{SignIn-Bu5OrOXS-wy_xaGKY.js → SignIn-BIxTodeo-BLdheQTi.js} +1 -1
  150. package/dist/assets/{SignInScreen-JF_uZaEa.js → SignInScreen-BM8ypOO4.js} +1 -1
  151. package/dist/assets/{SpendManagementListViewPage-C5e1RRp_-BVnkblC5.js → SpendManagementListViewPage-DXtvYcrg-iTUPRfV0.js} +3 -3
  152. package/dist/assets/{SpendManagementPerTabPage-DZVY7vQ1-0CpCBBdQ.js → SpendManagementPerTabPage-Cn-UsxaR-C3J9zkot.js} +1 -1
  153. package/dist/assets/{SpendManagementSection-BJMJInkt-B5d_jbBf.js → SpendManagementSection-BBR4aFIT-JT9BxyTy.js} +1 -1
  154. package/dist/assets/{SpendMgmtSetupAccountSection-chezHlCW-BQkEXaOg.js → SpendMgmtSetupAccountSection-DedLETSm-D7MuWTH4.js} +1 -1
  155. package/dist/assets/{StatementItem-BFkpLh_o-y7ZGW1Vq.js → StatementItem-CnpTW8qb-BYZ_h7VG.js} +1 -1
  156. package/dist/assets/{StatementsPage-DWVI5t34-C9LKXGoX.js → StatementsPage-Pdhh6wDA-D6S4uOd7.js} +1 -1
  157. package/dist/assets/{StatusSwitcher-LVFF4Wxb-KYvjAXRF.js → StatusSwitcher-CY3fhZpk-CRtOh969.js} +1 -1
  158. package/dist/assets/{SubTabSwitcher-BCJ6BY1u-CWKSNIjs.js → SubTabSwitcher-BgzS4on6-mKZmBEH_.js} +1 -1
  159. package/dist/assets/{SummaryCard-BauMuQ8s-Cp_w4Wqg.js → SummaryCard-DB_r9qW_-CTe61HcF.js} +1 -1
  160. package/dist/assets/{TaskManagementPage-vrN0Gf0_-BQxIgTC4.js → TaskManagementPage-B0gR2j1v-CS51JkmU.js} +1 -1
  161. package/dist/assets/{TimeRangeSwitcher-CNA64z6j-BjqPYk8T.js → TimeRangeSwitcher-BbdpFsMU-BPeXdkc0.js} +1 -1
  162. package/dist/assets/{TimeframeSwitcher-C1Yz0y7I-CSIg0wbX.js → TimeframeSwitcher-CUpsv6b1-L84OUMou.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcherWithToggle-C_Ah5N3M-BY1ssq39.js → TimeframeSwitcherWithToggle-DZbOWm8e-BWeA2PCI.js} +1 -1
  164. package/dist/assets/{TopExCard-Jo-Rn1MM-C8jicn1C.js → TopExCard-Bn5xXUvj-D1V8RPTg.js} +1 -1
  165. package/dist/assets/{TopExDetailPage-DDbJXH3w-CD_BWdGs.js → TopExDetailPage-DRjO-pGo-B7tFNTC-.js} +1 -1
  166. package/dist/assets/{TransactionDetailPage-BuIbGizX-F9O378Ra.js → TransactionDetailPage-L-yLO1SI-CIWP2d9W.js} +1 -1
  167. package/dist/assets/{TransactionList-CLKRxE0g-DNe71eGT.js → TransactionList-CSb5yqQj-DuZWKirU.js} +1 -1
  168. package/dist/assets/{TransactionListBig-B5vQkCC2-a4zGr6G6.js → TransactionListBig-f2x4xrky-DwUpevlR.js} +1 -1
  169. package/dist/assets/{TransactionListPage-BqX_rZET-CUMQNYL_.js → TransactionListPage-XP6Axg1M-BXMcfFNW.js} +1 -1
  170. package/dist/assets/{TransactionVendorDetailPage-DkTOdWyJ-CKBEI1cd.js → TransactionVendorDetailPage-CY9kUYZc-Lru4_qR4.js} +1 -1
  171. package/dist/assets/{TransferDrawerPage-BOGBvRan-CjFpKlV5.js → TransferDrawerPage-DOMX4_HE-C4a3FolX.js} +1 -1
  172. package/dist/assets/{TreasuryOverviewPage-DyhWQzuM-fH7XT1iO.js → TreasuryOverviewPage-B01cSfUQ-CzhZxZKn.js} +2 -2
  173. package/dist/assets/{TreasuryPromoPage-DeahUeak-CT1FYSVG.js → TreasuryPromoPage-DC46ObGy-CFm5vR7T.js} +1 -1
  174. package/dist/assets/TreasurySetupPage-CiIqfQLR-CejuLzZM.js +146 -0
  175. package/dist/assets/{TreasuryStatementsPage-DjTS6UJU-v5QihWpg.js → TreasuryStatementsPage-C_pfPvgz-DmI7EzSk.js} +1 -1
  176. package/dist/assets/{TreasuryTaxLetterPage-B8-Rgr_d-DzbjM2nz.js → TreasuryTaxLetterPage-D-4Ntky2-xZV4fXfv.js} +1 -1
  177. package/dist/assets/{TreasuryTransferOrReviewPage-CWMEjwJl-D0XGTiiK.js → TreasuryTransferOrReviewPage-CjxiFUqO-JJCQbqAN.js} +1 -1
  178. package/dist/assets/{TrendChart-DZxa1hWw-DQJyr6Gq.js → TrendChart-DKIa4o8k-CoNPqTlA.js} +1 -1
  179. package/dist/assets/{TrendWithTransactions-DqF_gmA3-OahVeCao.js → TrendWithTransactions-BumhCIjm-gZh4UsjF.js} +1 -1
  180. package/dist/assets/{UncategorizedAccountsMappingPage-BTMqGJ-S-CIMe5xBe.js → UncategorizedAccountsMappingPage-C4Njvj_H-DztroIrS.js} +1 -1
  181. package/dist/assets/{UnitIntegrationPage-BypogBLd-DWGWwZzF.js → UnitIntegrationPage-D_tfUXdS-B3x8_h1N.js} +1 -1
  182. package/dist/assets/{UploadAdditionalDocumentOverlay-BtjgWIt2-TPUqMBUX.js → UploadAdditionalDocumentOverlay-CSdTPTA3-X7rEur2Q.js} +1 -1
  183. package/dist/assets/{Vendor2FAPopup-Cvht-fPJ-C_7afR47.js → Vendor2FAPopup-DgKVft1G-Bh4gZ5wc.js} +1 -1
  184. package/dist/assets/{VendorACHDetailsPage-UxL2Rrtg-DTdzfYXL.js → VendorACHDetailsPage-DdAbrbpS-CfYbL_d6.js} +1 -1
  185. package/dist/assets/{VendorDetailPage-D1W5LzEm-QwipvyBw.js → VendorDetailPage-CSPbUx-h-C1LwTfnG.js} +1 -1
  186. package/dist/assets/{VendorDomesticWireDetailsPage-42tTXqjf-6mVdshAx.js → VendorDomesticWireDetailsPage-GODvpEne-g15gbymX.js} +1 -1
  187. package/dist/assets/{VendorFiling1099EditablePage-C-s1YZ6j-sTOOAgLc.js → VendorFiling1099EditablePage-ByfEwSZJ-Dnk9uxWt.js} +1 -1
  188. package/dist/assets/{VendorFirstReviewPage-DNWyzefV-DvCg1v5F.js → VendorFirstReviewPage-B2-UtNMO-B9gZuu-S.js} +1 -1
  189. package/dist/assets/{VendorInternationalWireDetailsPage-BLN_3qXP-CM_mA6aB.js → VendorInternationalWireDetailsPage-DSziQ0jO-BQin9ttL.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CK3lcupO-BMWjw1KX.js → VendorInternationalWireSwiftDetailsPage-Dqc7XLbW-WHIhq_gs.js} +1 -1
  191. package/dist/assets/{VendorsAccountsSection-DN_7lQ28-cEhDobar.js → VendorsAccountsSection-BLwMi5AB-Bd-223-b.js} +1 -1
  192. package/dist/assets/{WarningsDrawerPage-BO2PAioX-BhdINS-A.js → WarningsDrawerPage-3h7UME3Y-CKPc_4w8.js} +1 -1
  193. package/dist/assets/{ZeniAccountDetailPage-yp-KTRnk-Do84GYYz.js → ZeniAccountDetailPage-Dn70Xhjm-Bm3fagRu.js} +1 -1
  194. package/dist/assets/{ZeniAccountListViewPage-D5aqQNtX-BB0gnGLd.js → ZeniAccountListViewPage-C7CX6-Bl-CdiM8oGr.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-VPw7D7l3-C2OS1zdz.js → ZeniAccountNavBarPieces-Cl1zQVNd-BoOmxgUm.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-wCKqqpXU-Xl62BzvW.js → ZeniAccountPromoPage-CLufbB-B-CxZ93-O_.js} +1 -1
  197. package/dist/assets/{ZeniAccountSetupPage-C9Huhxgd-ClP-TxFI.js → ZeniAccountSetupPage-rLdRA3Ld-0f1innhT.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-DFiO9ffO-CdZ1GVnQ.js → ZeniCopyright-BItiuePl-DMGV7d5T.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-CrkvbV6i-Ckvq_hVC.js → ZeniTransferAmountSlider-DYCK5UWr-pLWKMQLD.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CcOQPReQ-Bxil0fX9.js → analyticsHelper-D4zFEqKN-Cv-Rt4Wa.js} +1 -1
  201. package/dist/assets/{analyticsHelper-DdGBglEP.js → analyticsHelper-D_rWzdzn.js} +1 -1
  202. package/dist/assets/{chartTypes-COEFDZb5-DwGNA7GB.js → chartTypes-yiqF7w9Y-C7Vh16CR.js} +1 -1
  203. package/dist/assets/{commonDimensions-CP6T7HqS-D48QOLbv.js → commonDimensions-PPvas5dK-BI_doeoz.js} +1 -1
  204. package/dist/assets/{detailCommon-Ce5EinV2-CYS83M8u.js → detailCommon-mCAXI64G-gkKdDA26.js} +1 -1
  205. package/dist/assets/{downloadPdf-D5vJmVtA-B3Fqszb0.js → downloadPdf-C3XpsGeN-BXwAdg40.js} +1 -1
  206. package/dist/assets/{index-Cvfy0zsh.js → index-DR9vSgqx.js} +6 -6
  207. package/dist/assets/{mapLoadingInProgressToTreeNode-rI4nf6KS-CK98QO6t.js → mapLoadingInProgressToTreeNode-7wU2HX2P-DM7OpgTV.js} +1 -1
  208. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CQQ7dl1d-uEBESQE9.js → mapSectionWithAcOnlyToTreeNode-dSxF1sWM-9rR9XYui.js} +1 -1
  209. package/dist/assets/{mapSpacerToTreeNode-Br4381dY-DvCypDQ4.js → mapSpacerToTreeNode-1mXbBuNs-D0-H7nmE.js} +1 -1
  210. package/dist/assets/{mapTimeframeBalancesToTreeNode-CFc2Dxqu-D_L54Bbm.js → mapTimeframeBalancesToTreeNode-DXVQrusd-BdiZmBVF.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-B-Zn7TpW-BH302By2.js → mapTimeframeBalancesToTreeNode-DtAULIDB-CEdGFH8Q.js} +1 -1
  212. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DaXzy5qa-Crsiejrh.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DAqn8gdX-BFVS7nhC.js} +1 -1
  213. package/dist/assets/{play-icon-nZkbdoFU-DLANNZGF.js → play-icon-NvLdXSYk-BtJZRy06.js} +1 -1
  214. package/dist/assets/{toCOABalancesWithID-COQYDD-b-D2r9WVRN.js → toCOABalancesWithID-C9fWPLt9-OoFxmlBV.js} +1 -1
  215. package/dist/assets/{toChartData-Djv4ERSl-BDHZyRCT.js → toChartData-BMDCuCgs-pMvlI-3e.js} +1 -1
  216. package/dist/assets/{treasuryColorHelper-D8HHUK60-C135QZF4.js → treasuryColorHelper-COfuUI3C-DV_5mX3C.js} +1 -1
  217. package/dist/assets/{uploadAttachment-BLy0prl2-WutsqSlB.js → uploadAttachment-DSku547V-Dvu5JOyk.js} +1 -1
  218. package/dist/assets/{uploadReceipts-D80JLNY4-CM61PF-k.js → uploadReceipts-D80JLNY4-jTx9mqdq.js} +1 -1
  219. package/dist/index.html +1 -1
  220. package/package.json +4 -4
  221. package/dist/assets/BusinessVerificationPage-JFwqav9V-DcT8aYGJ.js +0 -140
  222. package/dist/assets/CompanyOfficerDetailsSection-C3yfgjGi-Bd3_muTE.js +0 -232
  223. package/dist/assets/CustomerOnboardingContainerPage-D34Fz5xA-C6h4Jblo.js +0 -1
  224. package/dist/assets/DocumentSecurityBanner-CQSsX1R1-B63qiUpU.js +0 -29
  225. package/dist/assets/TreasurySetupPage-kCSON6p8-DfPMx5Ua.js +0 -152
@@ -1,4 +1,4 @@
1
- import{X as Nn,w as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,bC as Zn,a2 as Kn,M as Un,C as u,j as t,l as L,cF as it,cG as Vn,o as a,cH as Gn,cI as Hn,_ as b,cJ as Yn,a0 as Ae,cK as qn,aV as lt,aJ as ot,dq as rt,bO as st,bQ as dt,bR as ct,fM as Qn,fN as Jn,fO as Xn,fP as ea,cP as j,cQ as I,cR as $,fQ as A,cO as ta,f as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fR as la,fS as oa,a4 as ra,p as mt,bs as Te,fT as sa,fU as O,q as r,r as da,bo as ca,fV as pa,a3 as ma,fW as ua,fX as ut,cZ as yt,Q as ya,cu as ha,bH as ba,am as xa,ao as ga,k as fa,eW as zt,fY as wa,v as Mt,ac as Ta,ak as va,aO as Da,eG as ja,e as Ia}from"./index-Cvfy0zsh.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-BeDr-jas-CZ5XIvfc.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Un.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:_t,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:Pe,deleteBill:Ut,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Vt,onAttachmentClick:ze,saveBillDetails:Gt,discardOutsideZeniPaymentData:Ht,onBackClick:Me,updateEditRealTimeApproverClicked:Yt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:Qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Fn(),[Xt,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,q]=p.useState(!1),y=e.transactionDetails?.id,tn=_t?En:Ln,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:Q}=p.useContext(tn),[nn,V]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:G,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(_n)),[G,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{Q(h),V(!1)},[Q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),Le(null))},[pe,G,P,Q,Le]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ue]=p.useState(!1),[Ve,Ge]=p.useState(!1),He=()=>Ke(!1),rn=()=>Ke(!0),Ye=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),Y())},[e,Y,Pe]),p.useEffect(()=>{Ye==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[Ye,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&H?.code?H:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:H?.code!=null&&(ee?.code=="approved"||H.code==="mark_as_paid")?H:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,qe=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ut?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{U(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
1
+ import{X as Nn,w as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,bC as Zn,a2 as Kn,M as Un,C as u,j as t,l as L,cF as it,cG as Vn,o as a,cH as Gn,cI as Hn,_ as b,cJ as Yn,a0 as Ae,cK as qn,aV as lt,aJ as ot,dq as rt,bO as st,bQ as dt,bR as ct,fM as Qn,fN as Jn,fO as Xn,fP as ea,cP as j,cQ as I,cR as $,fQ as A,cO as ta,f as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fR as la,fS as oa,a4 as ra,p as mt,bs as Te,fT as sa,fU as O,q as r,r as da,bo as ca,fV as pa,a3 as ma,fW as ua,fX as ut,cZ as yt,Q as ya,cu as ha,bH as ba,am as xa,ao as ga,k as fa,eW as zt,fY as wa,v as Mt,ac as Ta,ak as va,aO as Da,eG as ja,e as Ia}from"./index-DR9vSgqx.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-Dl5IXVvh-CJcvyvoh.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Un.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:_t,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:Pe,deleteBill:Ut,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Vt,onAttachmentClick:ze,saveBillDetails:Gt,discardOutsideZeniPaymentData:Ht,onBackClick:Me,updateEditRealTimeApproverClicked:Yt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:Qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Fn(),[Xt,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,q]=p.useState(!1),y=e.transactionDetails?.id,tn=_t?En:Ln,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:Q}=p.useContext(tn),[nn,V]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:G,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(_n)),[G,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{Q(h),V(!1)},[Q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),Le(null))},[pe,G,P,Q,Le]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ue]=p.useState(!1),[Ve,Ge]=p.useState(!1),He=()=>Ke(!1),rn=()=>Ke(!0),Ye=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),Y())},[e,Y,Pe]),p.useEffect(()=>{Ye==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[Ye,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&H?.code?H:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:H?.code!=null&&(ee?.code=="approved"||H.code==="mark_as_paid")?H:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,qe=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ut?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{U(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
2
2
  ${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?L.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?L.zeniDate(L.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Xe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Vn,{paymentTypeLabel:Xe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$n=Lt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!Qe||v?.code==="processing"&&!M),Sn=!Qe,et=["small","medium-compact","medium-regular"].includes(l),ae=L.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),E=L.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Gt(!0,Ve,c)},tt=()=>{Ue(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ge(!0),tt()},Bn=()=>{Ht(),Ue(!1),Ve&&Ge(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),W=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Gn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Ee===!0&&q(!1),W!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),W!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(qa,{windowSize:l,ref:at,children:[t.jsx(Hn,{anchor:"right",open:ln,onClose:He,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Yn,{companyName:qn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Xe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:He})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),V(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),V(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Ee?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{q(!1),qe()},onClickAway:()=>{q(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Xt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,La(ae,e,W),t.jsx(Xn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&k?.code==="pending_approval"?Nt.addMoney:W})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Et&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(_a,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:E&&e.outsideZeniPaymentInfo!=null?Ea(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),jn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Vt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Yt,onSaveRealTimeApprovals:qt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:_e==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(K,et),isLoading:_e==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{W!=null?q(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ya,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(_,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(_,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(_,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&E&&Wt?t.jsx(_,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(_,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(_,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ha,{windowSize:l,children:[$n===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Ua,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ga,{onClick:qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Va,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx($a,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:G,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>V(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(L.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ea=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},La=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},Wa=i.div``,_a=i.div``,Za=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1,4 +1,4 @@
1
- import{C as q,q as B,X as z,M as D,a as M,a2 as W,j as o,S as G,c3 as X,aV as Z,F as H,a4 as J,o as c}from"./index-Cvfy0zsh.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-CkJm4bPf-CPlDdB_W.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new q(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=z(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const O=G(d);X(()=>V(U,O))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
1
+ import{C as q,q as B,X as z,M as D,a as M,a2 as W,j as o,S as G,c3 as X,aV as Z,F as H,a4 as J,o as c}from"./index-DR9vSgqx.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-CMTo4gYl-U-WQSPk0.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new q(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=z(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const O=G(d);X(()=>V(U,O))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{X as I,M as y,j as t,aV as D,c as E,_ as b,C as r,e as B,a0 as j,bO as H,bQ as G,bR as U,o as i,cq as q,q as l,ao as O,Q as z,an as Q,g as S,cn as V,aO as _,f as F}from"./index-Cvfy0zsh.js";import{n as o,b as Y}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=Y.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(K,{windowSize:n,isLastSection:f,children:[t.jsxs(X,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(H,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},K=o.div`
1
+ import{X as I,M as y,j as t,aV as D,c as E,_ as b,C as r,e as B,a0 as j,bO as H,bQ as G,bR as U,o as i,cq as q,q as l,ao as O,Q as z,an as Q,g as S,cn as V,aO as _,f as F}from"./index-DR9vSgqx.js";import{n as o,b as Y}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=Y.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(K,{windowSize:n,isLastSection:f,children:[t.jsxs(X,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(H,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},K=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{w as se,X as b,a2 as le,l as j,M as L,j as e,aV as oe,K as U,_ as h,i as x,o as s,Z as te,c0 as re,u as A,a6 as D,m as ae,C as ne,g as u,c2 as ce,a7 as de,ap as me,q as pe}from"./index-Cvfy0zsh.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-CUA73Qvk-DoxrAhy8.js";import{f as ge,C as V}from"./play-icon-nZkbdoFU-DLANNZGF.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
1
+ import{w as se,X as b,a2 as le,l as j,M as L,j as e,aV as oe,K as U,_ as h,i as x,o as s,Z as te,c0 as re,u as A,a6 as D,m as ae,C as ne,g as u,c2 as ce,a7 as de,ap as me,q as pe}from"./index-DR9vSgqx.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-DlnppXL_-CUHiDz63.js";import{f as ge,C as V}from"./play-icon-NvLdXSYk-BtJZRy06.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as Oe,X as _e,a2 as V,a as De,c3 as Re,M as Ue,l as He,a8 as X,j as t,cI as ze,_ as Le,g as Me,C as u,aV as qe,c as Ne,F as Ge,c_ as Ke,aR as Je,c$ as Qe,bs as Xe,d0 as Ye,a4 as Ze,o as L,q as a,e as et,b4 as tt}from"./index-Cvfy0zsh.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{D as it}from"./HelpButton-BFbQbBAV-BQPDLXHd.js";import"./SetUpAccountSection-Cv2os5ln-DPXBfr4R.js";import{K as H}from"./SetUpDefaultSection-BX28nGOx-BuMe3hLW.js";import{f as nt}from"./SpendMgmtSetupAccountSection-chezHlCW-BQkEXaOg.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BtjgWIt2-TPUqMBUX.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CUA73Qvk-DoxrAhy8.js";import"./ChaseOverlay-Cpt5a98f-dacal49t.js";import"./ChargeCardUtils-DlCRcsWm-D__qzTWb.js";import"./CreditCardPaymentPlgSection-BKgF2tFu-DparH7B9.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",E="billPayAccount",Bt=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,S]=m.useState(!1),q=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,O=$.link_account.updateStatus,_=$.update_account.updateStatus,I=V(p),K=V(b.fetchState),J=V(O.fetchState),Q=V(_.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&I==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,I]),m.useEffect(()=>{(I==="In-Progress"&&p==="Completed"||J==="In-Progress"&&O.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&x.reset(z(e))},[I,p,x,e,J,O.fetchState,Q,_.fetchState]);const Ie=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Be=async(P,F)=>{const o=F[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const P=x.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{K==="In-Progress"&&b.fetchState==="Completed"&&M()},[M,K,b.fetchState]);const{commonSetUp:Fe,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new X(C.colors.brandColorJadeLight):new X(C.colors.brandColorJadeDark),$e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Ie,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},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"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
1
+ import{u as Oe,X as _e,a2 as V,a as De,c3 as Re,M as Ue,l as He,a8 as X,j as t,cI as ze,_ as Le,g as Me,C as u,aV as qe,c as Ne,F as Ge,c_ as Ke,aR as Je,c$ as Qe,bs as Xe,d0 as Ye,a4 as Ze,o as L,q as a,e as et,b4 as tt}from"./index-DR9vSgqx.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{D as it}from"./HelpButton-Coe4ii48-CP7NC72-.js";import"./SetUpAccountSection-CYn2o43t-Bpg0pToC.js";import{K as H}from"./SetUpDefaultSection-C0-L2ZyA-COKZA6T-.js";import{f as nt}from"./SpendMgmtSetupAccountSection-DedLETSm-D7MuWTH4.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-CSdTPTA3-X7rEur2Q.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DlnppXL_-CUHiDz63.js";import"./ChaseOverlay-CvXMdD8r-BjJFL-eT.js";import"./ChargeCardUtils-BbByGmi9-DEgVq9Nd.js";import"./CreditCardPaymentPlgSection-BS99Rbz7-D3hONmqh.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",E="billPayAccount",Bt=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,S]=m.useState(!1),q=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,O=$.link_account.updateStatus,_=$.update_account.updateStatus,I=V(p),K=V(b.fetchState),J=V(O.fetchState),Q=V(_.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&I==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,I]),m.useEffect(()=>{(I==="In-Progress"&&p==="Completed"||J==="In-Progress"&&O.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&x.reset(z(e))},[I,p,x,e,J,O.fetchState,Q,_.fetchState]);const Ie=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Be=async(P,F)=>{const o=F[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const P=x.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{K==="In-Progress"&&b.fetchState==="Completed"&&M()},[M,K,b.fetchState]);const{commonSetUp:Fe,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new X(C.colors.brandColorJadeLight):new X(C.colors.brandColorJadeDark),$e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Ie,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},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"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{u as fe,X as Ce,a as xe,c3 as Pe,a8 as k,M as be,j as t,C as P,aV as Ae,c as Ie,F as ve,aR as je,c4 as ke,a4 as $e,o as s,h0 as Oe,cw as Ve,cx as Be,q as b,e as Ee,gf as Te,Q as ze,g as Le}from"./index-Cvfy0zsh.js";import{b as H,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as W,e as Me}from"./PaymentAccountSetupBillingAddressSection-Byvw69gz-mE6MxWqh.js";import{O as Re}from"./SetUpAccountSection-Cv2os5ln-DPXBfr4R.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-BX28nGOx-BuMe3hLW.js";import"./ChaseOverlay-Cpt5a98f-dacal49t.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},He={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(a),values:F(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),B=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Ve(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:T}=be.getLocalizedStrings(),ge=T.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(L).name}),color:new k(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=H.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:T.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Re,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:R,setCardSetupInProgress:we})]})},F=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
1
+ import{u as fe,X as Ce,a as xe,c3 as Pe,a8 as k,M as be,j as t,C as P,aV as Ae,c as Ie,F as ve,aR as je,c4 as ke,a4 as $e,o as s,h0 as Oe,cw as Ve,cx as Be,q as b,e as Ee,gf as Te,Q as ze,g as Le}from"./index-DR9vSgqx.js";import{b as H,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as W,e as Me}from"./PaymentAccountSetupBillingAddressSection-CBvjcBEH-CXrtDUXk.js";import{O as Re}from"./SetUpAccountSection-CYn2o43t-Bpg0pToC.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-C0-L2ZyA-COKZA6T-.js";import"./ChaseOverlay-CvXMdD8r-BjJFL-eT.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},He={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(a),values:F(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),B=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Ve(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:T}=be.getLocalizedStrings(),ge=T.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(L).name}),color:new k(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=H.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:T.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Re,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:R,setCardSetupInProgress:we})]})},F=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{M as V,j as b,bO as M,bQ as q,bR as z,ji as W,l as G,ab as Q}from"./index-Cvfy0zsh.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-CjSSDflN-CPgx4xba.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[P,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),P===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Z(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Y(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=H(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(M,{titleComponent:b.jsx(z,{children:f.title}),descriptionComponent:b.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Q("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&G.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:J(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Y=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},Z=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},H=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},J=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Y as getBillsUniqueType};
1
+ import{M as V,j as b,bO as M,bQ as q,bR as z,ji as W,l as G,ab as Q}from"./index-DR9vSgqx.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-BNHqYk2g-D0iT-J9q.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[P,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),P===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Z(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Y(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=H(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(M,{titleComponent:b.jsx(z,{children:f.title}),descriptionComponent:b.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Q("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&G.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:J(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Y=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},Z=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},H=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},J=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Y as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{X as a,j as s,_ as b,o as r}from"./index-Cvfy0zsh.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-CP6T7HqS-D48QOLbv.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.div`
1
+ import{X as a,j as s,_ as b,o as r}from"./index-DR9vSgqx.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-PPvas5dK-BI_doeoz.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.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)};
@@ -0,0 +1,140 @@
1
+ import{u as et,X as tt,a2 as Se,j as i,M as Te,i as G,a as it,ch as at,l as L,z as st,c3 as nt,ab as rt,a1 as ot,K as lt,aV as ct,_ as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,c as yt,F as ht,a4 as gt,o,C as N,m as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a3 as Ct,e as ke,Q as bt,h as vt,q as k}from"./index-DR9vSgqx.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{x as Dt,s as Tt}from"./CompanyOfficerDetailsSection-DTbhxCCJ-uAcyCJzT.js";import{r as It}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-DZCn1w6m-DlnblRke.js";import"./LabeledCreatableSingleSelectField-yLzlQU6_-DKdnF88p.js";import"./LabeledDocumentField-gxNaFx2j-qq-lZmSF.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),mi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:z,filesEndPoint:r,authParams:B,productType:y,allIndustries:_,companyTitles:E,maxInsuredAmount:u,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:ze,onClickMenuIcon:Be})=>{const _e=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(_t,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=P.useState(!1),[M,se]=P.useState("save"),[K,Me]=P.useState(!1),p=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,_,E,A)}),{isValid:Ge}=p.formState,Q=O?.company.company.companyBillPayInfo,W=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?W?.companyVerificationStatus:Q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,oe=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,we=Y?.email;a!=null&&f!=null&&C!=null&&I!=null&&c!=null&&oe!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:oe,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",I=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Qe=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return p.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},We=p.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){p.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(Ze(),Ve?.(T))}),Xe=async(e,a)=>{e.includes(b)?Oe?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=p.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,p]);const re=O?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=re?.map(e=>e.user),Je=re?.map(e=>e.role),Ye={onOkClick:()=>{Z(!1),V();const e=[],a=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=rt(ot(u),u,jt.currencySymbol).toUpperCase(),q=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Wt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Kt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:_e.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{mt(p.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ye}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...p,children:i.jsxs("form",{id:De(be),onSubmit:We,children:[h&&w===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Zt,{})]})})]}),i.jsx($e,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(zt,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:z,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:$,filesEndPoint:r,authParams:B,isPopupOpen:K,openPopup:Me,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:z},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:_})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?W?.companyVerificationStatus?.code!=="pending_review"&&W?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)V();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ke(),C=Qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),ze?.(T))}}},helperText:Re,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Pt=(t,A,F,z)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,_=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:_.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)}},[v]:Object.values(B).map((u,$)=>{const n=u,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,z.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
2
+ display: flex;
3
+ min-height: 100%;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ row-gap: ${o.sp3};
7
+ background-color: ${t=>t.isSettings?"unset":t.theme.colors.grey5};
8
+ `,Vt=d.div`
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: flex-start;
12
+ justify-content: center;
13
+ gap: ${o.sp1};
14
+ width: 100%;
15
+ padding-bottom: ${o.sp3};
16
+ `,Ot=d(ke)`
17
+ color: ${t=>t.theme.colors.hero};
18
+ display: flex;
19
+ justify-content: center;
20
+ width: ${t=>x.titleWidth.valuePx(t.windowSize)};
21
+ padding-top: ${t=>x.subTitlePaddingTop.valuePx(t.windowSize)};
22
+ padding-bottom: ${t=>x.subTitlePaddingBottom.valuePx(t.windowSize)};
23
+ text-align: ${t=>t.windowSize==="small"?"initial":"center"};
24
+ `,Lt=d.div`
25
+ display: flex;
26
+ justify-content: flex-start;
27
+ height: 100%;
28
+ overflow-y: auto;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ padding-bottom: ${o.sp9};
32
+ row-gap: ${t=>x.verificationDetailsRowGap.valuePx(t.windowSize)};
33
+ `,At=d.div`
34
+ display: flex;
35
+ width: 100%;
36
+ height: calc(100vh - 110px);
37
+ flex-direction: row;
38
+ justify-content: center;
39
+ align-items: center;
40
+ background-color: ${t=>t.theme.colors.grey4};
41
+ `,zt=d.div`
42
+ display: flex;
43
+ flex-direction: column;
44
+ row-gap: ${o.sp11};
45
+ `,Bt=d(Ie)`
46
+ margin-top: ${o.sp2};
47
+ padding: ${o.sp2} ${o.sp2};
48
+ text-align: center;
49
+ color: ${t=>t.theme.colors.grey1};
50
+ width: ${t=>x.width.valuePx(t.windowSize)};
51
+ `,_t=d(Ie)`
52
+ text-align: center;
53
+ max-width: 750px;
54
+ color: ${t=>t.theme.colors.hero};
55
+ `,Et=d.div`
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: ${o.sp3};
59
+ width: 100%;
60
+ `,Rt=d(vt)`
61
+ ${t=>`${kt.stepTitle.style(t.windowSize)}`};
62
+ color: ${t=>t.theme.colors.primary};
63
+ text-align: left;
64
+ `,Ut=d.div`
65
+ display: flex;
66
+ align-items: center;
67
+ overflow: hidden;
68
+ gap: ${o.sp2};
69
+ `,Mt=d.div`
70
+ display: flex;
71
+ width: 100%;
72
+ gap: ${o.sp3};
73
+ `,Gt=d.div`
74
+ width: 50%;
75
+ height: 2px;
76
+ background-color: ${t=>t.theme.colors.primary};
77
+ border-radius: ${o.sp2};
78
+ flex-shrink: 0;
79
+ `,Zt=d.div`
80
+ width: 50%;
81
+ height: 2px;
82
+ background-color: ${t=>t.theme.colors.grey3};
83
+ border-radius: ${o.sp2};
84
+ flex-shrink: 0;
85
+ position: relative;
86
+ overflow: hidden;
87
+
88
+ &::after {
89
+ content: "";
90
+ position: absolute;
91
+ top: 0;
92
+ left: 0;
93
+ height: 100%;
94
+ width: 100%;
95
+ background-color: ${t=>t.theme.colors.primary};
96
+ animation: fillProgress 1s ease-in-out forwards;
97
+ }
98
+
99
+ @keyframes fillProgress {
100
+ 0% {
101
+ transform: translateX(-100%);
102
+ }
103
+ 100% {
104
+ transform: translateX(0%);
105
+ }
106
+ }
107
+ `,$e=d(ke)`
108
+ color: ${t=>t.theme.colors.hero};
109
+ margin-top: ${t=>t.isReadonly?o.sp0:o.sp3};
110
+ white-space: pre-line;
111
+ `,Kt=d($e)`
112
+ margin-top: ${o.sp0};
113
+ text-align: center;
114
+ `,Qt=d.div`
115
+ display: flex;
116
+ flex-direction: column;
117
+ align-items: center;
118
+ justify-content: center;
119
+ gap: ${o.sp5};
120
+ margin: auto;
121
+ `,Wt=d.div`
122
+ display: flex;
123
+ flex-direction: column;
124
+ align-items: center;
125
+ justify-content: center;
126
+ gap: ${o.sp3};
127
+ `,Xt=d(St)`
128
+ color: ${t=>t.theme.colors.primary};
129
+ white-space: pre-line;
130
+ text-align: center;
131
+ `,qt=d(Ct)`
132
+ cursor: pointer;
133
+ color: ${t=>t.theme.colors.hero};
134
+ width: ${o.sp4};
135
+ height: ${o.sp4};
136
+ min-height: ${o.sp4};
137
+ &:hover {
138
+ color: ${t=>t.theme.colors.primary};
139
+ }
140
+ `;export{mi as default,De as uniqueName};
@@ -1,4 +1,4 @@
1
- import{X as g,M as w,j as t,f as x,Q as $,o as s,h as C}from"./index-Cvfy0zsh.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
1
+ import{X as g,M as w,j as t,f as x,Q as $,o as s,h as C}from"./index-DR9vSgqx.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
2
2
  ${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{u as k,X as f,j as t,aV as te,M as w,cO as P,f as u,aj as U,bB as ie,o as i,g as B,C as h,e as v,dd as oe,l as y,q as l,b5 as re,b6 as ae,av as se,au as ne,ab as de,b7 as le,b9 as ce,iv as he,a0 as O,bl as pe,_ as L,v as $,iw as q,ix as X,id as me,bY as ge,b$ as xe,m as T,ie as we,ig as ue}from"./index-Cvfy0zsh.js";import{n as o,f as R,b as K}from"./vendor-CnQcJ2Lu.js";import{B as ye}from"./InsightsSection-DncKJ7JM-ChN_oqlZ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-BXUbx14l-6QIteFmi.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
1
+ import{u as k,X as f,j as t,aV as te,M as w,cO as P,f as u,aj as U,bB as ie,o as i,g as B,C as h,e as v,dd as oe,l as y,q as l,b5 as re,b6 as ae,av as se,au as ne,ab as de,b7 as le,b9 as ce,iv as he,a0 as O,bl as pe,_ as L,v as $,iw as q,ix as X,id as me,bY as ge,b$ as xe,m as T,ie as we,ig as ue}from"./index-DR9vSgqx.js";import{n as o,f as R,b as K}from"./vendor-CnQcJ2Lu.js";import{B as ye}from"./InsightsSection-CSG5sVaE-B6JiP7yi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-BfJxPG2K-BkZqVum6.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
2
2
  display: flex;
3
3
  gap: ${i.sp1};
4
4
  `,ve=o.div`
@@ -1,4 +1,4 @@
1
- import{u as Be,X as fe,w as nt,d2 as st,fc as Ka,l as Ne,gW as qr,a8 as He,M as pe,fd as Xa,j as t,gk as Gr,aV as Kr,q as c,fl as Ja,a0 as ye,_ as Z,o as a,bs as Pt,g as p,ih as Qa,f as _,bO as Xr,ii as Jr,cI as Qr,gb as ei,a as ti,ge as ai,co as ri,C as D,p as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a6 as Mt,ij as di,ik as tr,b4 as ar,ap as Vt,eQ as ci,a7 as rr,af as li,il as hi,im as pi,am as Ot,v as ge,eu as ui,ic as mi,ay as dt,fe as ir,c as ot,aj as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,e as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,ao as $i,ip as vi,eO as ki,bY as sr,iq as Li,t as ut,bB as pa,aS as ji,da as Di,ez as Ii,m as et,f9 as Ai,Z as Ti,k as Ri,a3 as Fi,a$ as Ei,ir as xt,cW as zi,bl as Pi,is as dr,it as cr,fZ as lr,iu as wt,hE as hr,id as Mi,b$ as Vi,ea as pr,ie as Oi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bF as Ui,bG as _i}from"./index-Cvfy0zsh.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-BXUbx14l-6QIteFmi.js";import{L as qi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-DlCRcsWm-D__qzTWb.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-Qd4Nl4Ie-BDRMn3jX.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-D80JLNY4-CM61PF-k.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:V,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:q}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:q===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.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":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.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":Z("add-to-apple-wallet-button")})},io=r.div`
1
+ import{u as Be,X as fe,w as nt,d2 as st,fc as Ka,l as Ne,gW as qr,a8 as He,M as pe,fd as Xa,j as t,gk as Gr,aV as Kr,q as c,fl as Ja,a0 as ye,_ as Z,o as a,bs as Pt,g as p,ih as Qa,f as _,bO as Xr,ii as Jr,cI as Qr,gb as ei,a as ti,ge as ai,co as ri,C as D,p as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a6 as Mt,ij as di,ik as tr,b4 as ar,ap as Vt,eQ as ci,a7 as rr,af as li,il as hi,im as pi,am as Ot,v as ge,eu as ui,ic as mi,ay as dt,fe as ir,c as ot,aj as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,e as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,ao as $i,ip as vi,eO as ki,bY as sr,iq as Li,t as ut,bB as pa,aS as ji,da as Di,ez as Ii,m as et,f9 as Ai,Z as Ti,k as Ri,a3 as Fi,a$ as Ei,ir as xt,cW as zi,bl as Pi,is as dr,it as cr,fZ as lr,iu as wt,hE as hr,id as Mi,b$ as Vi,ea as pr,ie as Oi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bF as Ui,bG as _i}from"./index-DR9vSgqx.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-BfJxPG2K-BkZqVum6.js";import{L as qi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-BbByGmi9-DEgVq9Nd.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-CRythvN3-BPNRschq.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-D80JLNY4-jTx9mqdq.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:V,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:q}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:q===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.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":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.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":Z("add-to-apple-wallet-button")})},io=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{d2 as St,w as jt,fk as vt,l as M,ff as v,X as pe,M as Be,o as a,u as _e,j as t,aV as kt,fy as Pt,cO as A,f as C,bs as le,g as n,a0 as It,ab as ce,_ as me,C as B,v as E,Q as Tt,h as Mt,cl as At,aC as Fe,b4 as Et,af as ue,a6 as Lt,m as ge,q as I,d3 as Rt,Z as Dt,e as zt,c0 as Nt,ck as Ot,aQ as Bt}from"./index-Cvfy0zsh.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-CnQcJ2Lu.js";import{Y as Ft}from"./SpendManagementSection-BJMJInkt-B5d_jbBf.js";import{ChargeCardPromoUserContent as Ut}from"./ChargeCardPromoPage-D5h6LEV7-CtqHAn85.js";import{N as Wt,J as Gt}from"./PromoBaseCards-Jze9Y7gb-D1gxtikT.js";import{M as Yt}from"./ChargeCardListTable-aotBBLcN-BjoQ3nLG.js";import{r as Ht,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Vt,o as Zt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CUA73Qvk-DoxrAhy8.js";import"./NavigationDots-BXUbx14l-6QIteFmi.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-D2zz2q9--B_AhVrPl.js";import"./RoleWithToolTip-CFMnZiem-C4TYM06A.js";import"./CardNumberSubText-Qd4Nl4Ie-BDRMn3jX.js";import"./ChargeCardUtils-DlCRcsWm-D__qzTWb.js";const be={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:l,title:h,subTitle:r,slidingTextList:u,onClick:d})=>{const p=pe();return t.jsxs(Qt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:l}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ye,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Gt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:l,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Kt,{windowSize:u,cardType:e,children:t.jsxs(Xt,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:l})}),t.jsx(la,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ye,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},qt=e=>{const s=e-1;let l=`
1
+ import{d2 as St,w as jt,fk as vt,l as M,ff as v,X as pe,M as Be,o as a,u as _e,j as t,aV as kt,fy as Pt,cO as A,f as C,bs as le,g as n,a0 as It,ab as ce,_ as me,C as B,v as E,Q as Tt,h as Mt,cl as At,aC as Fe,b4 as Et,af as ue,a6 as Lt,m as ge,q as I,d3 as Rt,Z as Dt,e as zt,c0 as Nt,ck as Ot,aQ as Bt}from"./index-DR9vSgqx.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-CnQcJ2Lu.js";import{Y as Ft}from"./SpendManagementSection-BBR4aFIT-JT9BxyTy.js";import{ChargeCardPromoUserContent as Ut}from"./ChargeCardPromoPage-COA7csMK-CXI_5Tho.js";import{N as Wt,J as Gt}from"./PromoBaseCards-OKpdHchW-i4Aus_7s.js";import{M as Yt}from"./ChargeCardListTable-DLAZTf8n-CNRNdnEB.js";import{r as Ht,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Vt,o as Zt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-DlnppXL_-CUHiDz63.js";import"./NavigationDots-BfJxPG2K-BkZqVum6.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-B_GJLZiP-BW2ajxXL.js";import"./RoleWithToolTip-Cob2-Ppj-C_s6kG4X.js";import"./CardNumberSubText-CRythvN3-BPNRschq.js";import"./ChargeCardUtils-BbByGmi9-DEgVq9Nd.js";const be={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:l,title:h,subTitle:r,slidingTextList:u,onClick:d})=>{const p=pe();return t.jsxs(Qt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:l}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ye,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Gt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:l,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Kt,{windowSize:u,cardType:e,children:t.jsxs(Xt,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:l})}),t.jsx(la,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ye,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},qt=e=>{const s=e-1;let l=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as i,X as V,w as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,_ as b,M as _,bL as ji,f as oe,g as y,aj as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a6 as Li,C as p,eu as Ri,ap as Pi,ic as Di,a7 as Ui,ay as Ni,v as F,fe as Ti,q as a,dq as Vi,a0 as T,bV as De,c as Ue,bs as le,bl as _i,m as k,bY as we,e as U,i1 as ue,b4 as Ne,bc as Te,id as Mi,b$ as Oi,a8 as G,ie as Ei,ig as Fi}from"./index-Cvfy0zsh.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{R as Ve}from"./Menu-D2zz2q9--B_AhVrPl.js";import{T as _e}from"./RoleWithToolTip-CFMnZiem-C4TYM06A.js";import{R as ce}from"./CardNumberSubText-Qd4Nl4Ie-BDRMn3jX.js";import{_ as Me}from"./ChargeCardUtils-DlCRcsWm-D__qzTWb.js";const W=_.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=_.getLocalizedStrings().common.strings.empty,$e={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Oe=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Ei,Fi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Oe(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=_.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Gi,{children:[i.jsx(Zi,{children:i.jsx(Qi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Xi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Yi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
1
+ import{j as i,X as V,w as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,_ as b,M as _,bL as ji,f as oe,g as y,aj as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a6 as Li,C as p,eu as Ri,ap as Pi,ic as Di,a7 as Ui,ay as Ni,v as F,fe as Ti,q as a,dq as Vi,a0 as T,bV as De,c as Ue,bs as le,bl as _i,m as k,bY as we,e as U,i1 as ue,b4 as Ne,bc as Te,id as Mi,b$ as Oi,a8 as G,ie as Ei,ig as Fi}from"./index-DR9vSgqx.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{R as Ve}from"./Menu-B_GJLZiP-BW2ajxXL.js";import{T as _e}from"./RoleWithToolTip-Cob2-Ppj-C_s6kG4X.js";import{R as ce}from"./CardNumberSubText-CRythvN3-BPNRschq.js";import{_ as Me}from"./ChargeCardUtils-BbByGmi9-DEgVq9Nd.js";const W=_.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=_.getLocalizedStrings().common.strings.empty,$e={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Oe=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Ei,Fi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Oe(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=_.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Gi,{children:[i.jsx(Zi,{children:i.jsx(Qi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Xi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Yi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
2
2
  top: ${r.sp0};
3
3
  left: ${r.sp0};
4
4
  z-index: 2;