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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/assets/{ACHDetailsPage-BRWOdhMx-lCkplz0-.js → ACHDetailsPage-BRWOdhMx-C6Gex7WO.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-4v4Fkm9f-BqYLGo1s.js → AIPerformancePage-4v4Fkm9f-rzV1vYk0.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Ca_vKG58-pmVk2hiY.js → AccountInfoPage-Ca_vKG58-D9vL6BrQ.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-Dv1IPcdF-ChZIyLOA.js → AccountInfoPageContent-Dv1IPcdF-DmNoelye.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CEk5d9hq-BU7zCzNG.js → AccountLockedInfoModal-CEk5d9hq-BrXDl1bb.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DYKjrPwN-BReGAKzb.js → AccountReconDetailsDrawerPage-DYKjrPwN-B0h7SYBm.js} +1 -1
  7. package/dist/assets/{AccountRow-BM3xLbeh-DwBWMEiu.js → AccountRow-BM3xLbeh-BRRGBsw4.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CTkwARBJ-Dqd8qLkS.js → AccountsPromoCardStack-CTkwARBJ-D5cVfpOD.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-DfOyebHX-BnGN6mbi.js → AddAddressForCardDrawer-DfOyebHX-J1xjsoos.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-OJBvAKUj-CKSRCSe6.js → AddToWalletPage-OJBvAKUj-BWWPwsea.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-n-UKn3Ei-CfeYGvlE.js → AgingReportsPage-n-UKn3Ei-ClsUBsqp.js} +1 -1
  12. package/dist/assets/{AllUserItems-BsvKEVcx-Ckn7N6Nq.js → AllUserItems-BsvKEVcx-CLQk-GvV.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Duu2uAEr-CuSndO2U.js → ApAgingDetailPage-Duu2uAEr-DMEvswfr.js} +1 -1
  14. package/dist/assets/{AppBasePage-DoCF494Z-BPFvSn_P.js → AppBasePage-DoCF494Z-DPqZ-zPj.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DM1t0oLS-DX8gDdRy.js → AppDrawerContent-DM1t0oLS-D4qgaGMa.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-GZCo6_i2-ClrA48La.js → ApprovalRulesSettingsPage-GZCo6_i2-CL_Pu_N2.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CsFDVdeO-C-RKv3GM.js → ArAgingChart-CsFDVdeO-wPr1Z-gM.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CaOr6vAU-Dju9MqE9.js → ArAgingDetailPage-CaOr6vAU-D6s2YCxQ.js} +1 -1
  19. package/dist/assets/{AttachmentView-B0d42oAf-CFenLcCO.js → AttachmentView-B0d42oAf-CP7GaPdT.js} +1 -1
  20. package/dist/assets/{BankAccountSection-Bgdk93V0-DEu58Lvd.js → BankAccountSection-Bgdk93V0-DMqDpohS.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-DMRmF2yM-Bdqe05tT.js → BankAccountWarningSection-DMRmF2yM-BAdjLvye.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BpwKq93l-yFMdYswL.js → BankConnectionsSettingsPage-BpwKq93l-DT-9sR6-.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BG7FhHEq-CI73yv-V.js → BillDetailPage-BG7FhHEq-De1koQ53.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BAK1Gfko-DXu3RSd8.js → BillPayApprovalRuleDetailPage-BAK1Gfko-yPa23IMB.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DiCNUU-G-CN0GV9DL.js → BillPayApprovalRulesPage-DiCNUU-G-Dvl0LA3e.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-aGKOv8Ur-59DxEGOU.js → BillPayPromoPage-aGKOv8Ur-DV_q1PP0.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-DRCjyEfB-CkG4ce3e.js → BillPaySetUpPage-DRCjyEfB-BpGmEhQl.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CdYb74V7-D26O7kQD.js → BillingSettingsPage-CdYb74V7-CiY_IkJZ.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D8EGfY5P-BpW4NDmq.js → BillsBulkReviewDrawerPage-D8EGfY5P-QaLTBqlI.js} +1 -1
  30. package/dist/assets/{BoxItem-WOrvBzns-DD4R649W.js → BoxItem-WOrvBzns-0RF_95zu.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CbqJIVpz-BiQu25FO.js → BusinessVerificationPage-CbqJIVpz-CvMn0Woi.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-DBOH0_yP-Be1TwMNo.js → CardNumberSubText-DBOH0_yP-Hi2tk7qe.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-D-kXy6LW-DDN4yxLo.js → CashbackDetailPage-D-kXy6LW-D6kT7X3d.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BQnJsfn5-D6Qm3_DY.js → ChargeCardDetailPage-BQnJsfn5-Bzp_wcsZ.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-130ILwkr-xWvWRUI-.js → ChargeCardListPage-130ILwkr-Bkwi4cln.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-EGkwcy7i-Gk77wXoS.js → ChargeCardListTable-EGkwcy7i-DAS4SH9r.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-BwqrXrY--B5or9kQv.js → ChargeCardPromoPage-BwqrXrY--e1ZAjCG8.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-DRzB7Rt4-SAR76aeK.js → ChargeCardSetupPage-DRzB7Rt4-CuGVzJjq.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-C3NxKjmB-Bqdh-I41.js → ChargeCardStatementsPage-C3NxKjmB-67kMQdtk.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-ClxKj2js-BOLtAKO1.js → CheckDepositDrawerPage-ClxKj2js-Bu5jcDbI.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-xkNXkjfh-CuBOzrbM.js → CollapsableReportTable-xkNXkjfh-C9AJjQGY.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-BtUBatbQ-CS2katNY.js → CompanyOfficerDetailsSection-BtUBatbQ-C90mnqDM.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-BOxM716U-DxvRrHgL.js → CompanyPassportCard-BOxM716U-Dk-PZwyU.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-DzE7sm8S-ZZY5euQN.js → CompanyPassportPage-DzE7sm8S-DBAlPQ6W.js} +1 -1
  45. package/dist/assets/{CompleteProfile-BjGSPASa-Bfp0I59Q.js → CompleteProfile-BjGSPASa-DiuRh3yD.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-1rYKpbAj-DHWZb_DF.js → ConfettiBurst-1rYKpbAj-B1LMR381.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-WQeDCj-E-ZLNX3FBX.js → CreateOrEditVendorPage-WQeDCj-E-nxdEb3Cj.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-Q12y6HMX-CRUPlZFr.js → CreditCardPaymentDrawerPage-Q12y6HMX-_PjAnniN.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-AjAWhg6e-h8iODRHM.js → CurrencySelectField-AjAWhg6e-CWNdYGdN.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-BJhw-PvI-DfxjHeaa.js → CustomerOnboardingActivationPage-BJhw-PvI-gi7Xknp5.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-CKjCoZrr.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-A_sh3_b9.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-BFUFcvOb.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-CNni6chX-DEHNST6I.js → CustomerOnboardingNoStepsPage-CNni6chX-BhLAdm4e.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-CvN9Jrdy-BbxW7een.js → CustomerOnboardingPage-CvN9Jrdy-Ouii9O51.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-CZkX9ur7-CVf3ueoc.js → CustomerOnboardingProductSuitePage-CZkX9ur7-DDmAp3iB.js} +1 -1
  56. package/dist/assets/{Dashboard-_o0Ftdv8-B4FMEqu7.js → Dashboard-_o0Ftdv8-BPyrISBS.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-Cu5wqWkj-BjOABFkU.js → DashboardReportPage-Cu5wqWkj-ddjVF_A7.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-1uwRQXQg.js → DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-5vM5YWH1.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-BOPK7-7P-CmYSzV4w.js → DepositAccTransactionItem-BOPK7-7P-D1_K0Q08.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-oj9tntbI-CMORNmGB.js → DepositAccTransactionListPage-oj9tntbI-F04V-R4e.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-FGdEilUB-BIDfGIPL.js → DomesticWireDetailsPage-FGdEilUB-Cs01XQlP.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-c57lEf_V-BH-A5hnp.js → DownloadOverlay-c57lEf_V-CjVI-5ho.js} +1 -1
  63. package/dist/assets/{DrawerPage-inbhWwND-BaLC0Hdr.js → DrawerPage-inbhWwND-B4QTLI3G.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-DJthuIP4-Ccr8TbIs.js → EditPeoplePage-DJthuIP4-CZNgV2f1.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-Bt7XKq5h-BcSPiJVn.js → EditReimbursementDetailPage-Bt7XKq5h-DsVbtzZR.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-DbTiF9Hs-DOWN_WQU.js → EntityDetailPage-DbTiF9Hs-CUTSmav7.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-CHgrPo86-C_DZGpt7.js → EntitySummarySection-CHgrPo86-neTWtIRM.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-QZT_UFXf-Q6Yezq8W.js → ExpenseAutomationOverviewPage-QZT_UFXf-By3kW8i_.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-Y7V_Z8rd-Nz-tHH0P.js → ExpenseAutomationPage-Y7V_Z8rd-CtKxoytC.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-CIp_R6ZQ-SvQXytoV.js → ExpressPayPage-CIp_R6ZQ-imzn7QGp.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-qsUO3mUu-CQPzEAZz.js → FeaturePreviewPage-qsUO3mUu-BSN3F0fr.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-ebmR-eLP-CCCIBkct.js → FollowStepsSection-ebmR-eLP-DsRKYTJT.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-9V-xoqvs-O56nx8QU.js → GlobalReviewListPage-9V-xoqvs-DS90md5S.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DnB7TmOk-BJQfDBIj.js → InformationCardStack-DnB7TmOk-FDXtkHxB.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-BBczCYEz-CM9k6Dqk.js → InsightsCardStack-BBczCYEz-Ic_kZcmS.js} +1 -1
  76. package/dist/assets/{InsightsSection-BTXj5WUe-BehAISJe.js → InsightsSection-BTXj5WUe-DE-Y95Zn.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-CByj2tO4-zF-3f5Vb.js → IntegrationsSettingsPage-CByj2tO4-CqaohrSa.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-4-pl1ozv-BL59ObmT.js → InternationalWireSwiftDetailsPage-4-pl1ozv-CEcsHcdo.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-kIajgPZt-Cim3HMUE.js → InternationalWireVerificationPage-kIajgPZt-CLFOWnzE.js} +1 -1
  80. package/dist/assets/{InviteFormPage-XsnZcAvb-F0roB33R.js → InviteFormPage-XsnZcAvb-Cl0rnuXX.js} +1 -1
  81. package/dist/assets/{InvitePageListView-HfsehyxK-ADhebkRn.js → InvitePageListView-HfsehyxK-BThjFkX9.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-DrBtwpMH-D70ug1bL.js → InvitePeoplePage-DrBtwpMH-5_wUNTIP.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-DPd4VmqZ-BLpPijn4.js → InvoiceUploadSection-DPd4VmqZ-DXT3TwTl.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-xbfFhV0O-D87TKikm.js → IssueChargeCardPage-xbfFhV0O-83skQF0Q.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-CB_KH7v5-DhXcxbM6.js → LabeledAddressValue-CB_KH7v5-DZZdZI-o.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-Bt41wdNQ-CdN5suyF.js → LabeledAddressValueField-Bt41wdNQ-BE_1SNIZ.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-Btw_zwzy-I7spg7Dx.js → LabeledControlledCheckBoxField-Btw_zwzy-C0-pJJKq.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-fycRE7PX-BLM_4t-_.js → LabeledCreatableSingleSelectField-fycRE7PX-D2KdHDae.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-C73vQNgq-xVgwP02Y.js → LabeledDocumentField-C73vQNgq-DYnQtN50.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DGb_bDyp-DbOxXrX_.js → LabeledDropDownFormattedTextField-DGb_bDyp-Desfvkao.js} +1 -1
  91. package/dist/assets/{LabeledText-yhm8qxrA-B5O06POj.js → LabeledText-yhm8qxrA-MHGbUIVb.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-BYzGVtZI.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-Cb0RWqnb.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-DGkU72cd-iMLOxXqS.js → LabeledZeniRolesDropDownField-DGkU72cd-C3H9DZqR.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-C0onrP5t-DohOtG77.js → LinkJETransactionPage-C0onrP5t-Cr6v5Ndq.js} +1 -1
  95. package/dist/assets/{LockCardPage-DaVzuRMw-C59qINIA.js → LockCardPage-DaVzuRMw-DIW8PHh-.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-Dd9HLWlh-qIEjt8fN.js → LowBalancePopup-Dd9HLWlh-Cb_EMGu-.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-Cpde2XoD-JoGWlKNi.js → MagicLinkACHDetailsPage-Cpde2XoD-Crg-y33k.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DQYH52_8-Clx_7zaI.js → MagicLinkDomesticWireDetailsPage-DQYH52_8-Bb0E674L.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DwBUSxwe-x_28I9nn.js → MagicLinkInternationalWireDetailsPage-DwBUSxwe-Js76er0B.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-DbhdGmhh-DNYzgAJU.js → MagicLinkSuccessPage-DbhdGmhh-BJvlbB46.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-Bx92291D-D9nsnbMt.js → MagicLinkTitleSection-Bx92291D-DWB_Iri3.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-D-tnK244-BXHufBP2.js → MailingDetailsSection-D-tnK244-MBbqQAnA.js} +1 -1
  103. package/dist/assets/{Menu-0YHUdU0n-12P5RljB.js → Menu-0YHUdU0n-bx6kXJP-.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-Dn9AT8p1-BbviCBBU.js → MyBankConnectionsSettingsPage-Dn9AT8p1-r266gxCl.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-DrQu6s7j-DI8j4Roq.js → MyPendingActivationChargeCardListPage-DrQu6s7j-Bf2bT32p.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-CBvjEd7r-B3f0C00b.js → MyProfileSettingsPage-CBvjEd7r-sV7G2MsW.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-aXn2QYh1-CB_AN-HG.js → NavBarWithPicker-aXn2QYh1-KYd3MInO.js} +1 -1
  108. package/dist/assets/{NavigationArrow-JLUXaIrz-BZffLUxV.js → NavigationArrow-JLUXaIrz-hnxP52QF.js} +1 -1
  109. package/dist/assets/{NavigationDots-B0_dDbgu-D1euhRa0.js → NavigationDots-B0_dDbgu-BN7MNaD8.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-B_019EtP-Cnin4QvT.js → NewGlobalMerchantPage-B_019EtP-JtQIZzzY.js} +1 -1
  111. package/dist/assets/{NoDataChart-DLKHNXD4-CdqcDLeH.js → NoDataChart-DLKHNXD4-B58Vz86W.js} +1 -1
  112. package/dist/assets/{NoDataTable-BMD2qygC-4Ck98ufk.js → NoDataTable-BMD2qygC-BBKhRdZz.js} +1 -1
  113. package/dist/assets/{NotFoundPage-BEya4LS2-BrCuBa4j.js → NotFoundPage-BEya4LS2-BpnuuRwX.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-C9SjRKCu-Du1Cf4y_.js → NotificationSettingsPage-C9SjRKCu-Bo6D9rqk.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-OCeJNw1G-DxjI9EUe.js → NotificationsListConfig-OCeJNw1G-kiMlUGjx.js} +1 -1
  116. package/dist/assets/{NotificationsPage-FJHx_WBG-TAfeF35H.js → NotificationsPage-FJHx_WBG-CEvJrDgr.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-Dxk68R6U-TSpF0BZT.js → OpExByVendorPage-Dxk68R6U-DbhUV9v6.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-BG61qzjJ.js → OverlayContainerPage-Daz3A7cI-Gw5sW5yW.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-Bu49FbWD-DV8somvz.js → PandLWithForecastPage-Bu49FbWD-CMjcN8q1.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-s9EEHxoG-Ccng4Jbq.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-B7nnjdzg.js} +1 -1
  121. package/dist/assets/{PeoplePage-DN5VtG7Q-CKG_6p7l.js → PeoplePage-DN5VtG7Q-CYT3IA3D.js} +1 -1
  122. package/dist/assets/{Preview-8iqIdVv4.js → Preview-DN5LtpGN.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-6gthLCkf-RpcyX94H.js → ProductsCarousel-6gthLCkf-b5n53cJI.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-CzPzj69A-DGTVwpLe.js → PromoBaseCards-CzPzj69A-CK3QM4Oh.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-BFy0lMZd-D5AhMSo8.js → QBOConnectionDialog-BFy0lMZd-BCOPL4lD.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-DcLYyQ5m-DYCAROkc.js → QBOSetupSection-DcLYyQ5m-C2W9Lslv.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRuleDetailPage-0o5lDuM2-Cr0TZK-s.js → ReimbursementApprovalRuleDetailPage-0o5lDuM2-fGX9qD5a.js} +1 -1
  128. package/dist/assets/{ReimbursementApprovalRulesPage-D5ZMrrmO-CIYzhtUg.js → ReimbursementApprovalRulesPage-D5ZMrrmO-Blufu1Cd.js} +1 -1
  129. package/dist/assets/{ReimbursementDetailPage-DatcF8rt-B5PSoIBr.js → ReimbursementDetailPage-DatcF8rt-DMKe8Zeo.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-MweW-4DO-BO5Os0EF.js → ReimbursementPromoPage-MweW-4DO-BsroeOr6.js} +1 -1
  131. package/dist/assets/{ReimbursementSetUpPage-BD2LWlbW-YI084Mlh.js → ReimbursementSetUpPage-BD2LWlbW-ChxsPAdC.js} +1 -1
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DV_PLm_g-CdjeW3Za.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-Cl_vqFs2.js} +1 -1
  133. package/dist/assets/{ReloadCard-9KpQCrce-Y78Zw9cJ.js → ReloadCard-9KpQCrce-BgaRwlzC.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-BPliEsuo-CZegsDsW.js → ReportTableViewSelector-BPliEsuo-DnvE2OuI.js} +1 -1
  135. package/dist/assets/{ReportsPage-h2DAaQfK-Dj7aDDw4.js → ReportsPage-h2DAaQfK-Ctv-fiH6.js} +1 -1
  136. package/dist/assets/{RevenueChart-DY2s_upY-DFXm-6Am.js → RevenueChart-DY2s_upY-BY2Ckaqk.js} +1 -1
  137. package/dist/assets/{ReviewDetailsPage-BiYxRnvA-cVXSS1nN.js → ReviewDetailsPage-BiYxRnvA-BgGTsqDh.js} +1 -1
  138. package/dist/assets/{ReviewOverlay-BvPN7IKD-BVyGsnOK.js → ReviewOverlay-BvPN7IKD-ComW1tq2.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-aW95rpRe-D_rCTb4X.js → RoleWithToolTip-aW95rpRe-BuhNLzjw.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlXqz1QQ-CI8b87nD.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-Bi2sWIaX.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsPage-DebosLND-CytjKLyD.js → ScheduleDetailsPage-DebosLND-CXMPKa0J.js} +1 -1
  142. package/dist/assets/{ScheduleSequenceTable-Dd4Ep_c0-CndtHY8m.js → ScheduleSequenceTable-Dd4Ep_c0-D4KyAHCN.js} +1 -1
  143. package/dist/assets/{ScreenRoutes-CrZHoFIY.js → ScreenRoutes-DJ-IBMnY.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-Dhb8A0Oe-CHZzV0W4.js → SetUpAccountSection-Dhb8A0Oe-CgzT6w6k.js} +1 -1
  145. package/dist/assets/{SignIn-DQBJB5ad-yHNBe1dm.js → SignIn-DQBJB5ad-PY8xPbSn.js} +1 -1
  146. package/dist/assets/{SignInScreen-B08t21nJ.js → SignInScreen-OrlBO37V.js} +1 -1
  147. package/dist/assets/{SpendManagementListViewPage-Ac-9u-X2-ConJ7IhF.js → SpendManagementListViewPage-Ac-9u-X2-B3aQaxtz.js} +3 -3
  148. package/dist/assets/{SpendManagementPerTabPage-DgrMAQ8l-CwC7irjo.js → SpendManagementPerTabPage-DgrMAQ8l-fK9tWofz.js} +1 -1
  149. package/dist/assets/{SpendManagementSection-Ci2yOCJ9-DUAKhgdu.js → SpendManagementSection-Ci2yOCJ9-DHLPmR4R.js} +1 -1
  150. package/dist/assets/{StatementItem-hcBoe79o-BTjI_1ZK.js → StatementItem-hcBoe79o-BeqbktGs.js} +1 -1
  151. package/dist/assets/{StatementsPage-DVR5LhTi-ldyTOd7O.js → StatementsPage-DVR5LhTi-C1CV2L-H.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-Cy5ITFgi-DNMieZwF.js → StatusSwitcher-Cy5ITFgi-M-7RYm_O.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-DhsES2OW-DrYqVYfO.js → SubTabSwitcher-DhsES2OW-o0NnrhbM.js} +1 -1
  154. package/dist/assets/{SummaryCard-Byv4Hw8Q-CEnhPnYc.js → SummaryCard-Byv4Hw8Q-YkgRmT3F.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-CVXMOPf2-q63kh_yR.js → TaskManagementPage-CVXMOPf2-CyIb_P6_.js} +1 -1
  156. package/dist/assets/{TimeRangeSwitcher-jct2_5PE-DPu4jgs4.js → TimeRangeSwitcher-jct2_5PE-CwT2bhu4.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcher-BK-qliOX-BjbSBToW.js → TimeframeSwitcher-BK-qliOX-BeczRDCr.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-Cl6ISBIz-3_smJQH4.js → TimeframeSwitcherWithToggle-Cl6ISBIz-D0mJ8ZQM.js} +1 -1
  159. package/dist/assets/{TopExCard-o4Q3ze1b-CQFtRtLu.js → TopExCard-o4Q3ze1b-CiyTQ0Na.js} +1 -1
  160. package/dist/assets/{TopExDetailPage-BsCwwwDi-CdmjqJ_1.js → TopExDetailPage-BsCwwwDi-Chgp4onc.js} +1 -1
  161. package/dist/assets/{TransactionDetailPage-rpCG65yC-CLh205i5.js → TransactionDetailPage-rpCG65yC-DlKelLT6.js} +1 -1
  162. package/dist/assets/{TransactionList-YI4oZaim-xbjxS_zo.js → TransactionList-YI4oZaim-Dv-Kiy26.js} +1 -1
  163. package/dist/assets/{TransactionListBig-D_Jw9Ip2-Bz8jw08Q.js → TransactionListBig-D_Jw9Ip2-DU24zWmp.js} +1 -1
  164. package/dist/assets/{TransactionListPage-B2yWm7eA-DCySOEer.js → TransactionListPage-B2yWm7eA-B6I7TfzO.js} +1 -1
  165. package/dist/assets/{TransactionVendorDetailPage-Dr5C4-7q-BPGPWJM6.js → TransactionVendorDetailPage-Dr5C4-7q-D8fA6qs-.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-BnEVH7Mc-C6QWMjAo.js → TransferDrawerPage-BnEVH7Mc-DauOEimB.js} +1 -1
  167. package/dist/assets/{TreasuryOverviewPage-C927Rdkg-PWkTzy8N.js → TreasuryOverviewPage-C927Rdkg-DNxaxv7V.js} +1 -1
  168. package/dist/assets/{TreasuryPromoPage-C6D3bF2f-xmypxDfH.js → TreasuryPromoPage-C6D3bF2f-Cu-ikaiF.js} +1 -1
  169. package/dist/assets/{TreasuryStatementsPage-BE54gWl6-BusQnftI.js → TreasuryStatementsPage-BE54gWl6-DVw_Pd4H.js} +1 -1
  170. package/dist/assets/{TreasuryTaxLetterPage-BaHut8Wc-DaO1lvfz.js → TreasuryTaxLetterPage-BaHut8Wc-BJmyD6Xb.js} +1 -1
  171. package/dist/assets/{TrendChart-BI4Tz813-BMzjSOb0.js → TrendChart-BI4Tz813-Ct89w_SR.js} +1 -1
  172. package/dist/assets/{TrendWithTransactions-BicIDSlC-GPxD5Pyy.js → TrendWithTransactions-BicIDSlC-ZW08DzEe.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-sbn4Sdr2-CCtQxv0E.js → UncategorizedAccountsMappingPage-sbn4Sdr2-HoQwPwtY.js} +1 -1
  174. package/dist/assets/{UnitIntegrationPage-CZUyjeh5-DYAwrSQY.js → UnitIntegrationPage-CZUyjeh5-CBxsIbT5.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-4AWDV_HK-CxD_HluI.js → UploadAdditionalDocumentOverlay-4AWDV_HK-DG6Pqkg4.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-C_PmEAQ7-BaU4ZlJ1.js → Vendor2FAPopup-C_PmEAQ7-DsroLHcB.js} +1 -1
  177. package/dist/assets/{VendorACHDetailsPage-DMMoCytX-D-f3jOPl.js → VendorACHDetailsPage-DMMoCytX-DMUzcLGv.js} +1 -1
  178. package/dist/assets/{VendorDetailPage-CLFKkF8I-DlccPRJ1.js → VendorDetailPage-CLFKkF8I-DQhHhYeE.js} +1 -1
  179. package/dist/assets/{VendorDomesticWireDetailsPage-WxmpwlTS-CXFWxa5o.js → VendorDomesticWireDetailsPage-WxmpwlTS-DflMkq0S.js} +1 -1
  180. package/dist/assets/{VendorFiling1099EditablePage-CrWrhHZl-MLHVoFXe.js → VendorFiling1099EditablePage-CrWrhHZl-RUJmiteL.js} +1 -1
  181. package/dist/assets/{VendorFirstReviewPage-C6MnbIan-CvuNZRdM.js → VendorFirstReviewPage-C6MnbIan-DfNT8ipC.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CzPRK4E2-DP27a23P.js → VendorInternationalWireDetailsPage-CzPRK4E2-DEeW06Ii.js} +1 -1
  183. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BBYmlLxN-CGwvkONg.js → VendorInternationalWireSwiftDetailsPage-BBYmlLxN-D5NJXIg4.js} +1 -1
  184. package/dist/assets/{VendorsAccountsSection-CVh1n81R-CZE2h2vy.js → VendorsAccountsSection-CVh1n81R-DPKfyxHB.js} +1 -1
  185. package/dist/assets/{VerifyDevice-BHocExfO-CXvB8GAp.js → VerifyDevice-BHocExfO-D6-XstL_.js} +1 -1
  186. package/dist/assets/{VideoPlayer-9rYRtSLf-C_MG4aUQ.js → VideoPlayer-9rYRtSLf-C2tN6slV.js} +2 -2
  187. package/dist/assets/{VideoPopup-D1o92dj6-Dti5suvC.js → VideoPopup-D1o92dj6-dYsmHuqM.js} +1 -1
  188. package/dist/assets/{WarningsDrawerPage-CzufXgaN-BVjYF7DU.js → WarningsDrawerPage-CzufXgaN-DySBdAxg.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-ZZ3Ra-Jf-_49Q_UUx.js → ZeniAccountDetailPage-ZZ3Ra-Jf-BNynUFV-.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage-Cxid0mfh-Bo45T4Gx.js → ZeniAccountListViewPage-Cxid0mfh-C6SAOGnC.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-DDc-xph4-CzcxivOl.js → ZeniAccountNavBarPieces-DDc-xph4-DCgpbgFC.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-YIYFkPIB-YhnencbA.js → ZeniAccountPromoPage-YIYFkPIB-CJIjJmOW.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-BJ9UJ0dP-yNigxq0M.js → ZeniAccountSetupPage-BJ9UJ0dP-BmzxpT_Q.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-CztmWsFm-x7y7hEtI.js → ZeniCopyright-CztmWsFm-CEHbuJRM.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-g9qU5Lsq-BdpWeRuR.js → ZeniTransferAmountSlider-g9qU5Lsq-DaJM-Zzr.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-CnbN5S25.js → add-to-wallet-DgdBD8_G-B8DNqx9o.js} +1 -1
  197. package/dist/assets/{analytics-C6bOaJY9.js → analytics-BcBotjGt.js} +1 -1
  198. package/dist/assets/{analyticsHelper-Dyr99-JR.js → analyticsHelper-BkAup1an.js} +1 -1
  199. package/dist/assets/{analyticsHelper-D4lKCWjQ-7uZfvraO.js → analyticsHelper-D4lKCWjQ-uiC6qzPQ.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-D0tcq0ac.js → arrow-south-east-round-PEovUgvH-B5LiEtQ7.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-C5MrpFJF.js → auto-transfer-rule-mbafm5D3-pcOkjfSG.js} +1 -1
  202. package/dist/assets/{chartTypes-BPPSjkhb-H7A_cnp3.js → chartTypes-BPPSjkhb-CNucJ3Rc.js} +1 -1
  203. package/dist/assets/{commonDimensions-Ds75pRzR-DJ4H9OI5.js → commonDimensions-Ds75pRzR-Lp1VP2lr.js} +1 -1
  204. package/dist/assets/{constants-DNQWEIo3.js → constants-C26RvjTa.js} +1 -1
  205. package/dist/assets/{core-BiYEzgTE.js → core-D862DhQW.js} +1 -1
  206. package/dist/assets/{dash.all.min-CNiNGlQC.js → dash.all.min-Dd3IyQan.js} +1 -1
  207. package/dist/assets/{detailCommon-DdZdfmYT-DWQ_1h8d.js → detailCommon-DdZdfmYT-CQMu0x4K.js} +1 -1
  208. package/dist/assets/{downloadPdf-B8UMaJCC-BA2fFFfC.js → downloadPdf-B8UMaJCC-DWe6y9jd.js} +1 -1
  209. package/dist/assets/{empty-B0QxjPHg.js → empty-CsIG0tT3.js} +1 -1
  210. package/dist/assets/{empty-D0VQVmJ6.js → empty-O7-1FZu6.js} +1 -1
  211. package/dist/assets/{epic-BPfIZ-JM.js → epic-DpOk1Akv.js} +1 -1
  212. package/dist/assets/{gift-box-Cmt9OgIZ-DZtTQChg.js → gift-box-Cmt9OgIZ-qKu8XAEa.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-D9COe3MR.js → graphic-no-data-l-DU4J8fDt-EmTebCLp.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CnFblD9c.js → graphic-no-data-net-burn-l-CzmycA0m-BpIUS7ZS.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-Dk4MbD0e.js → handshake-BPg58FML-CteUkqrC.js} +1 -1
  216. package/dist/assets/{index-Bl0eTNht.js → index-BJaCDeX5.js} +1 -1
  217. package/dist/assets/{index-D66eZF3S.js → index-BLj8pdwc.js} +1 -1
  218. package/dist/assets/{index-QkeEXb1H.js → index-C8UTOqgA.js} +1 -1
  219. package/dist/assets/{index-BBJ8MbHB.js → index-CuVSU687.js} +7 -7
  220. package/dist/assets/{index-BLOT0kav.js → index-DeW7Kpb9.js} +1 -1
  221. package/dist/assets/{index-CmMi38cf.js → index-N9kNL3-T.js} +1 -1
  222. package/dist/assets/{index-BWdq4kfG.js → index-oVOuouQM.js} +1 -1
  223. package/dist/assets/{lexical-Cbl76XZt.js → lexical-CRBFqIC9.js} +1 -1
  224. package/dist/assets/{liveblocks-BstIT-4Z.js → liveblocks-DflJlh5b.js} +1 -1
  225. package/dist/assets/{lottie-Dcr3TlBE.js → lottie-CcCMX6aw.js} +1 -1
  226. package/dist/assets/{mapLoadingInProgressToTreeNode-DGRrn6kh-B7ARKarP.js → mapLoadingInProgressToTreeNode-DGRrn6kh-jjr6aqiz.js} +1 -1
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-rrJBbsC8-DldkvgD3.js → mapSectionWithAcOnlyToTreeNode-rrJBbsC8-BqG16ngg.js} +1 -1
  228. package/dist/assets/{mapSpacerToTreeNode-CWvamMX2-8qhsm047.js → mapSpacerToTreeNode-CWvamMX2-CY16hkon.js} +1 -1
  229. package/dist/assets/{mapTimeframeBalancesToTreeNode-DfQk4Tsr-CLPrV0Gx.js → mapTimeframeBalancesToTreeNode-DfQk4Tsr-CBK-Ixz1.js} +1 -1
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-_jEVk1uh-Dt-fMHUy.js → mapTimeframeBalancesToTreeNode-_jEVk1uh-B427vZ3Q.js} +1 -1
  231. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-BVNM6n_o.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-DzPSMSMR.js} +1 -1
  232. package/dist/assets/{mui-CqcpY1UR.js → mui-BEw4Lk5H.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-KNgKNFoz.js → page-detail-CWX5S47F-DXepJGQ8.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-yEV1b0CM.js → radio-default-CiSgisfh-CcFLLukM.js} +1 -1
  235. package/dist/assets/{react-BR4cTFeR.js → react-BK3EtQG9.js} +1 -1
  236. package/dist/assets/{react-COBWBcIx.js → react-BRwHsC_m.js} +1 -1
  237. package/dist/assets/{react-CHCFBd-l.js → react-C9icBUdR.js} +2 -2
  238. package/dist/assets/{react-CAF4_aM2.js → react-C_LCLoDa.js} +1 -1
  239. package/dist/assets/{react-B4eK6Gcb.js → react-DACO-cch.js} +1 -1
  240. package/dist/assets/{react-CG2AEOc2.js → react-DN-vK816.js} +1 -1
  241. package/dist/assets/{react-4Ya91sN5.js → react-DzjHvHCR.js} +1 -1
  242. package/dist/assets/{react-BPBfJ6wZ.js → react-PRJtCYNt.js} +1 -1
  243. package/dist/assets/{recharts-bDaLwU4I.js → recharts-DUFfumXl.js} +1 -1
  244. package/dist/assets/{sentry-CTfRDee5.js → sentry--XfBdOsd.js} +1 -1
  245. package/dist/assets/{shield-DOlUxcFf-CaZu4NEg.js → shield-DOlUxcFf-Ctuv2p3t.js} +1 -1
  246. package/dist/assets/{toCOABalancesWithID-CkjRB0sJ-DDXgenlP.js → toCOABalancesWithID-CkjRB0sJ-BxFes0p3.js} +1 -1
  247. package/dist/assets/{toChartData-CMi2WgAy-Bk_h1ue0.js → toChartData-CMi2WgAy-Dwiz362D.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-DpKoIbbu.js → transaction-placeholder-CpOwZAMG-CEsinkjo.js} +1 -1
  249. package/dist/assets/{uploadAttachment-B4ddYCCL-B4kq7cBL.js → uploadAttachment-B4ddYCCL-B0DyVyD2.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-DdOlSolA.js → uploadReceipts-CPw64UYa-DQ3LqJi8.js} +1 -1
  251. package/dist/assets/{url-BPLyW2rO.js → url-DJZRPtFq.js} +1 -1
  252. package/dist/assets/{url-DI6ZTkbp.js → url-DjtBIoYx.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-DwbMzQIX.js → useLongPress-GCK2COYQ-BHPbrL7M.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-CG6D_gsM.js → usp-line-BBd1wKwW-Biliax2b.js} +1 -1
  255. package/dist/assets/{utils-BI6ira9J.js → utils-CMZ62InI.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-n7oqKrUc.js → zeni-epic-state-D6S6lAfe.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +1 -1
  259. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-D7esgWyy.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as Wn,av as Zn,d as Kn,gc as Un,gd as Vn,ge as Gn,gf as Hn,ca as qn,aN as Xn,y,V as t,f3 as dt,f4 as Jn,o as a,f5 as Qn,f6 as Yn,f7 as ea,aK as Ae,f8 as ta,aM as b,bz as ct,bm as pt,dr as mt,cm as ut,cn as yt,co as ht,gg as na,gh as aa,gi as ia,gj as la,fd as $,gk as I,ff as A,fg as k,fc as oa,b as bt,p as ie,fe as Lt,fm as ra,fh as sa,fi as da,gl as ca,gm as pa,aO as ma,an as gt,bQ as we,gn as ua,go as L,F as ya,c as s,ah as ha,b$ as ba,gp as ga,L as fa,gq as xa,fn as ft,a as wa,d0 as Ta,cf as va,gr as xt,b5 as Da,b7 as ja,l as $a,bS as Ot,d1 as Ia,gs as Aa,ag as Ft,aW as ka,b3 as Sa,br as Ca,eJ as Pa,ak as Ba}from"./index-BBJ8MbHB.js";import{a as p}from"./sentry-CTfRDee5.js";import{n as i}from"./mui-CqcpY1UR.js";import{a as Ra}from"./liveblocks-BstIT-4Z.js";import{bO as za,bL as Ma,bP as Na,FB as La,bN as Oa,bH as Fa,bh as Ea}from"./zeni-epic-state-n7oqKrUc.js";import{o as _a,t as Wa}from"./LowBalancePopup-Dd9HLWlh-qIEjt8fN.js";import"./core-BiYEzgTE.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./recharts-bDaLwU4I.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="ad91825d-1fe3-4578-8676-c37b9b7cf9b1",e._sentryDebugIdIdentifier="sentry-dbid-ad91825d-1fe3-4578-8676-c37b9b7cf9b1")}catch{}})();const Za=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new wa("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ua,common:{noText:C,strings:{empty:c},currency:wt,via:Va,more:Ga,edit:Ha},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:Tt,vendorCreation:Te,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:qa}}}}=ya.getLocalizedStrings(),ve=Ua.visual.MMMDCommaYYYYformat,Ei=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Ut,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Be,deleteBill:Ht,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:qt,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Wn(),o=Zn(),Le=Kn(),[nn,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[an,ce]=p.useState(!1),[Ee,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?Un:Vn,{requestToOpenThread:pe,setRequestToOpenThread:_e,setOpenThread:Q}=p.useContext(ln),[on,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(Hn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{Q(u),V(!1)},[Q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),_e(null))},[pe,G,P,Q,_e]);const Ze=p.useRef(!1),[sn,dn]=p.useState(!1),cn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,dn(!0))});qn({componentName:"bill.details",enabled:sn});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ue]=p.useState("approved"),[pn,Ve]=p.useState(!1),[mn,Ge]=p.useState(!1),[He,qe]=p.useState(!1),Xe=()=>Ve(!1),un=()=>Ve(!0),Je=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),X())},[e,X,Be]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[Je,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,yn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",D=me?w:te?.code=="approved"&&H?.code?H:te,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?yn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},hn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},bn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},gn=()=>{Y({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},fn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Y({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},xn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),se(!1)}},wn={onOkClick:r=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ce(!1)}},Tn=()=>{const[r]=ka("ZeniAssist");return r!=null?t.jsx(Sa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??wt.currencyCode},ye=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],vn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),Dn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,In=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Di,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),An=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Ia(r.toLowerCase()):r??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
1
+ import{q as Wn,av as Zn,d as Kn,gc as Un,gd as Vn,ge as Gn,gf as Hn,ca as qn,aN as Xn,y,V as t,f3 as dt,f4 as Jn,o as a,f5 as Qn,f6 as Yn,f7 as ea,aK as Ae,f8 as ta,aM as b,bz as ct,bm as pt,dr as mt,cm as ut,cn as yt,co as ht,gg as na,gh as aa,gi as ia,gj as la,fd as $,gk as I,ff as A,fg as k,fc as oa,b as bt,p as ie,fe as Lt,fm as ra,fh as sa,fi as da,gl as ca,gm as pa,aO as ma,an as gt,bQ as we,gn as ua,go as L,F as ya,c as s,ah as ha,b$ as ba,gp as ga,L as fa,gq as xa,fn as ft,a as wa,d0 as Ta,cf as va,gr as xt,b5 as Da,b7 as ja,l as $a,bS as Ot,d1 as Ia,gs as Aa,ag as Ft,aW as ka,b3 as Sa,br as Ca,eJ as Pa,ak as Ba}from"./index-CuVSU687.js";import{a as p}from"./sentry--XfBdOsd.js";import{n as i}from"./mui-BEw4Lk5H.js";import{a as Ra}from"./liveblocks-DflJlh5b.js";import{bO as za,bL as Ma,bP as Na,FB as La,bN as Oa,bH as Fa,bh as Ea}from"./zeni-epic-state-D6S6lAfe.js";import{o as _a,t as Wa}from"./LowBalancePopup-Dd9HLWlh-Cb_EMGu-.js";import"./core-D862DhQW.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./recharts-DUFfumXl.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="ad91825d-1fe3-4578-8676-c37b9b7cf9b1",e._sentryDebugIdIdentifier="sentry-dbid-ad91825d-1fe3-4578-8676-c37b9b7cf9b1")}catch{}})();const Za=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new wa("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ua,common:{noText:C,strings:{empty:c},currency:wt,via:Va,more:Ga,edit:Ha},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:Tt,vendorCreation:Te,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:qa}}}}=ya.getLocalizedStrings(),ve=Ua.visual.MMMDCommaYYYYformat,Ei=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Ut,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Be,deleteBill:Ht,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:qt,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Wn(),o=Zn(),Le=Kn(),[nn,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[an,ce]=p.useState(!1),[Ee,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?Un:Vn,{requestToOpenThread:pe,setRequestToOpenThread:_e,setOpenThread:Q}=p.useContext(ln),[on,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(Hn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{Q(u),V(!1)},[Q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),_e(null))},[pe,G,P,Q,_e]);const Ze=p.useRef(!1),[sn,dn]=p.useState(!1),cn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,dn(!0))});qn({componentName:"bill.details",enabled:sn});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ue]=p.useState("approved"),[pn,Ve]=p.useState(!1),[mn,Ge]=p.useState(!1),[He,qe]=p.useState(!1),Xe=()=>Ve(!1),un=()=>Ve(!0),Je=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),X())},[e,X,Be]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[Je,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,yn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",D=me?w:te?.code=="approved"&&H?.code?H:te,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?yn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},hn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},bn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},gn=()=>{Y({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},fn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Y({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},xn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),se(!1)}},wn={onOkClick:r=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ce(!1)}},Tn=()=>{const[r]=ka("ZeniAssist");return r!=null?t.jsx(Sa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??wt.currencyCode},ye=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],vn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),Dn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,In=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Di,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),An=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Ia(r.toLowerCase()):r??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
2
  ${Te.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Te.achDetails.accountTypeLabel} ${u}`},ae=e.transactionDetails?.billPayInfo!=null?za(e.transactionDetails?.billPayInfo):void 0,kn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ma(Na(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,et=e.transactionDetails?.billPayInfo.expectedDepositDate??kn,tt=dt(d?.paymentType?.method??"").replace("Same Day",""),Sn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Jn,{paymentTypeLabel:tt,onClick:un,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Cn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Aa,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,be=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),at=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),ge=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,Pn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Bn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||fe)&&Pn===!1,xe=ge||fe,Rn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,zn=!Rn&&(!Ye||D?.code==="processing"&&!B),it=!Ye,lt=["small","medium-compact","medium-regular"].includes(l),q=La(e.transactionDetails?.bulkProcessingDetail?.type),F=Oa(e.paymentMethodType?.method),Mn=!q&&(E!=="processing"&&at||E==="processing"&&!B||E==="processing"&&it||f&&F&&Se),Nn=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,He,r)},ot=()=>{Ge(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Ln=()=>{qe(!0),ot()},On=()=>{Jt(),Ge(!1),He&&qe(!1)},Fn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,rt=()=>{Ue("approved"),Ee===!0&&J(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ze({billId:e.transactionDetails?.id??"",type:"approved"})},En=()=>{Ue("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},st=p.useRef(null);return t.jsxs(ci,{windowSize:l,ref:st,children:[t.jsx(Yn,{anchor:"right",open:pn,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ea,{companyName:ta(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(ve)??"",paymentType:tt,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(yi,{ref:cn.current,windowSize:l,children:[t.jsx(Ai,{windowSize:l,children:l==="small"?t.jsx(ct,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(St,{windowSize:l,children:[x?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>mt(u)),void 0,void 0,"page icon")},children:[t.jsx(pt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(ct,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(St,{windowSize:l,children:[x?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>mt(u)),void 0,void 0,"page icon")},children:[t.jsx(pt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:st,source:"BillDetailPage"})}),t.jsxs(hi,{windowSize:l,children:[Ee?t.jsx(_a,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:rt,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Wa,{onCancel:On,onProceedForMarkAsPaid:Nn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||re?t.jsx(ut,{titleComponent:t.jsx(ht,{children:N.title}),descriptionComponent:t.jsx(yt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:xn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Ja(l,e):null}):null,an?t.jsx(ut,{titleComponent:t.jsx(ht,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(yt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:wn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(gi,{windowSize:l,children:[l!=="small"?t.jsxs(fi,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(na,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:et,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:et,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ei(q,e,_),t.jsx(ia,{sectionId:la,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx(I,{label:{label:n.invoiceNumber,width:j},text:ne.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx(I,{label:{label:n.invoiceDate,width:j},text:ne.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx(I,{label:{label:n.billDueDate,width:j},text:ne.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx(I,{label:{label:n.memo,width:j},text:ne.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(bi,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),ye.length>0?ye.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(_n=>_n.id===r.lineId)?.recipientAmount;return t.jsxs(pi,{children:[ye.length>1?t.jsx(mi,{windowSize:l,children:t.jsx(ui,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx(I,{label:{label:n.amount,width:j},text:R!=null?Ae("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx(I,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx(I,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx(I,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx(I,{label:{label:n.billable,width:j},text:r.billable!=null?Dn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx(I,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(xi,{windowSize:l,children:[t.jsx(wi,{children:n.total}),t.jsx(Ti,{children:he!=null?t.jsx(oa,{amount:he,integerStyles:bt.h6Medium.cssObject,decimalStyles:bt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx(I,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Et.addMoney:_})}),t.jsx(z,{})]}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx(I,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Fa)&&Zt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ni,{children:ra(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Ya(e.outsideZeniPaymentInfo):dt(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:In,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:An(),additionalInfoLabel:t.jsx(ti,{children:Sn})}),Cn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:da(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:sa(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ca,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??wt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(pa,{amount:vn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:qt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:_t,signedInUserId:le?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:Yt},historicActivities:e.billHistory.activities}),t.jsx(vi,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ma,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||f,showCancel:!K&&f,cancelBtn:{label:lt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:En,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(K,lt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?ot:()=>{_!=null?J(!0):rt()},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(ai,{children:t.jsxs(di,{windowSize:l,children:[!q&&Oe?t.jsx(gt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&at?t.jsx(W,{onClick:hn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:bn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&it?t.jsx(W,{onClick:gn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Se?t.jsx(W,{onClick:Ln,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(gt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(W,{onClick:fn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(si,{windowSize:l,children:[Bn===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:xe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:xe,"data-testid":b("other-actions-icon-container"),children:xe?t.jsx(Tn,{}):t.jsx(li,{})})}):null,!q&&be===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ha,placement:"top",children:t.jsx(ri,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(oi,{})})}):null,!q&&zn===!0&&Mn?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(ii,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(Ra,{id:v,children:t.jsx(ua,{isDrawerOpen:on,allowComposer:!0,drawerTitle:qa,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Fn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>V(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Le.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Xa=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(Ea(),"date")===!0?{value:ke.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Ja=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ii,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Lt(g.withdrawFrom,e):c})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:f!=null?Ae("0,0[.]00",f):C})]})]})},Qa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ya=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${f} ${Va} ${Z}`},ei=(e,g,f)=>{if(e)return t.jsx(xt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Tt.duplicateWarning.title,description:Tt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(xt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ti=i.div``,ni=i.div``,ai=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1,4 +1,4 @@
1
- import{y as z,c as D,q as O,F as U,a8 as G,aN as M,aG as W,cB as X,V as o,bz as Z,ab as H,aO as J,o as c}from"./index-BBJ8MbHB.js";import{a as L}from"./sentry-CTfRDee5.js";import{n as b}from"./mui-CqcpY1UR.js";import{b as K,f as Q,o as R,l as T}from"./FollowStepsSection-ebmR-eLP-CCCIBkct.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./zeni-epic-state-n7oqKrUc.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="c8c7ff08-896a-4029-a194-1fd41ea29b2d",e._sentryDebugIdIdentifier="sentry-dbid-c8c7ff08-896a-4029-a194-1fd41ea29b2d")}catch{}})();const _="billPayApprovalRuleDetailPage",C="lowerBound",N="upperBound",v="steps",Y={footerPadding:new z(D[2],D[3])};function ve({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:h=!0,hideUpperBoundField:I=!1,onSaveRuleClick:k,onSaveRuleSuccess:A}){const w=O(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ee(e,l==="approval_create"&&!n),g=G({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,P=M(u?.fetchState),{upperBound:B}=y,{allApprovalRules:d,allAccountingClasses:E,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,x=d.length>0?d[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=d.findIndex(p=>p.approvalRuleId===i),x=m>0?d[m-1].criteria[0].range.min.amount:0}const F=g.handleSubmit(()=>{k()}),V=async(i,p)=>{r(p)};return L.useEffect(()=>{const i=g.watch((p,{name:$})=>{if($!=null&&p!=null){const q=W(p);X(()=>V($,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...g,children:o.jsx("form",{id:j(_),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:I?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:x,validate:i=>n?!0:i!=null&&i>x},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:N,placeholder:"Infinity",isDisabled:h,hideField:I,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:v,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[v],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:j(_),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(w)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[v]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),R(e.allAttributes),R(e.filteredAttributes),r??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[N]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},ae=(e,l,a,r,s)=>s&&s.length>0?s.map((n,h)=>({stepIndex:h,stepType:{selectedOption:n.action,allOptions:T},actors:{allUsers:l,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),te=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),j=e=>`${e}_form`,Ie=e=>`${e}`,re=b.div`
1
+ import{y as z,c as D,q as O,F as U,a8 as G,aN as M,aG as W,cB as X,V as o,bz as Z,ab as H,aO as J,o as c}from"./index-CuVSU687.js";import{a as L}from"./sentry--XfBdOsd.js";import{n as b}from"./mui-BEw4Lk5H.js";import{b as K,f as Q,o as R,l as T}from"./FollowStepsSection-ebmR-eLP-DsRKYTJT.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./recharts-DUFfumXl.js";import"./zeni-epic-state-D6S6lAfe.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="c8c7ff08-896a-4029-a194-1fd41ea29b2d",e._sentryDebugIdIdentifier="sentry-dbid-c8c7ff08-896a-4029-a194-1fd41ea29b2d")}catch{}})();const _="billPayApprovalRuleDetailPage",C="lowerBound",N="upperBound",v="steps",Y={footerPadding:new z(D[2],D[3])};function ve({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:h=!0,hideUpperBoundField:I=!1,onSaveRuleClick:k,onSaveRuleSuccess:A}){const w=O(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ee(e,l==="approval_create"&&!n),g=G({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,P=M(u?.fetchState),{upperBound:B}=y,{allApprovalRules:d,allAccountingClasses:E,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,x=d.length>0?d[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=d.findIndex(p=>p.approvalRuleId===i),x=m>0?d[m-1].criteria[0].range.min.amount:0}const F=g.handleSubmit(()=>{k()}),V=async(i,p)=>{r(p)};return L.useEffect(()=>{const i=g.watch((p,{name:$})=>{if($!=null&&p!=null){const q=W(p);X(()=>V($,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...g,children:o.jsx("form",{id:j(_),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:I?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:x,validate:i=>n?!0:i!=null&&i>x},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:N,placeholder:"Infinity",isDisabled:h,hideField:I,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:v,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[v],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:j(_),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(w)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[v]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),R(e.allAttributes),R(e.filteredAttributes),r??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[N]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},ae=(e,l,a,r,s)=>s&&s.length>0?s.map((n,h)=>({stepIndex:h,stepType:{selectedOption:n.action,allOptions:T},actors:{allUsers:l,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),te=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),j=e=>`${e}_form`,Ie=e=>`${e}`,re=b.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{q as R,F as y,V as t,bz as N,m as E,aM as v,y as r,ak as B,aK as j,cm as H,cn as V,co as _,o as i,cY as U,c as l,b7 as G,a as z,b6 as q,p as S,cV as F,br as J,b as X}from"./index-BBJ8MbHB.js";import{n as o}from"./mui-CqcpY1UR.js";import{a as Y}from"./sentry-CTfRDee5.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./zeni-epic-state-n7oqKrUc.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="363d79a2-7b40-48a9-acb5-95fbf8188fb3",e._sentryDebugIdIdentifier="sentry-dbid-363d79a2-7b40-48a9-acb5-95fbf8188fb3")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},K=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:$})=>{const[u,w]=Y.useState(!1),n=R(),{range:m}=d.criteria[0],{steps:x,approvalRuleId:g}=d,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{w(!0)},A={onOkClick:()=>{w(!1),$?.(g)},onCancelClick:()=>{w(!1)}};return t.jsxs(O,{windowSize:n,isLastSection:h,children:[t.jsxs(Q,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",m.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),m.max==null?t.jsx(de,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":v("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(g)},"data-testid":v("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:x.length===1,windowSize:n,children:x.map((c,D)=>t.jsxs(ie,{isSingleStep:x.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(I,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(T,{className:"operator",children:c.operator}):null]},`${p.subType}_${M}`)),c.actors.map(p=>t.jsxs(I,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(T,{className:"operator",children:c.operator}):null]},p.userId))]},D))})}),u?t.jsx(H,{titleComponent:t.jsx(_,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},O=o.div`
1
+ import{q as R,F as y,V as t,bz as N,m as E,aM as v,y as r,ak as B,aK as j,cm as H,cn as V,co as _,o as i,cY as U,c as l,b7 as G,a as z,b6 as q,p as S,cV as F,br as J,b as X}from"./index-CuVSU687.js";import{n as o}from"./mui-BEw4Lk5H.js";import{a as Y}from"./sentry--XfBdOsd.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./recharts-DUFfumXl.js";import"./zeni-epic-state-D6S6lAfe.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="363d79a2-7b40-48a9-acb5-95fbf8188fb3",e._sentryDebugIdIdentifier="sentry-dbid-363d79a2-7b40-48a9-acb5-95fbf8188fb3")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},K=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:$})=>{const[u,w]=Y.useState(!1),n=R(),{range:m}=d.criteria[0],{steps:x,approvalRuleId:g}=d,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{w(!0)},A={onOkClick:()=>{w(!1),$?.(g)},onCancelClick:()=>{w(!1)}};return t.jsxs(O,{windowSize:n,isLastSection:h,children:[t.jsxs(Q,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",m.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),m.max==null?t.jsx(de,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":v("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(g)},"data-testid":v("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:x.length===1,windowSize:n,children:x.map((c,D)=>t.jsxs(ie,{isSingleStep:x.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(I,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(T,{className:"operator",children:c.operator}):null]},`${p.subType}_${M}`)),c.actors.map(p=>t.jsxs(I,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(T,{className:"operator",children:c.operator}):null]},p.userId))]},D))})}),u?t.jsx(H,{titleComponent:t.jsx(_,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},O=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{av as W,q as f,aN as Y,V as e,fo as ee,bz as ie,n as B,aM as C,ad as m,F as M,o as s,ap as se,D as le,d as I,aQ as D,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,c as de}from"./index-BBJ8MbHB.js";import{a as g}from"./sentry-CTfRDee5.js";import{n as l}from"./mui-CqcpY1UR.js";import{Fq as ce,bS as pe,Fr as me}from"./zeni-epic-state-n7oqKrUc.js";import{f as xe}from"./VideoPopup-D1o92dj6-Dti5suvC.js";import{M as b}from"./usp-line-BBd1wKwW-CG6D_gsM.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./VideoPlayer-9rYRtSLf-C_MG4aUQ.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="befab5b0-e363-47c8-9e76-9da6fc10c4ec",i._sentryDebugIdIdentifier="sentry-dbid-befab5b0-e363-47c8-9e76-9da6fc10c4ec")}catch{}})();const U="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
1
+ import{av as W,q as f,aN as Y,V as e,fo as ee,bz as ie,n as B,aM as C,ad as m,F as M,o as s,ap as se,D as le,d as I,aQ as D,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,c as de}from"./index-CuVSU687.js";import{a as g}from"./sentry--XfBdOsd.js";import{n as l}from"./mui-BEw4Lk5H.js";import{Fq as ce,bS as pe,Fr as me}from"./zeni-epic-state-D6S6lAfe.js";import{f as xe}from"./VideoPopup-D1o92dj6-dYsmHuqM.js";import{M as b}from"./usp-line-BBd1wKwW-Biliax2b.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./recharts-DUFfumXl.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";import"./VideoPlayer-9rYRtSLf-C2tN6slV.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="befab5b0-e363-47c8-9e76-9da6fc10c4ec",i._sentryDebugIdIdentifier="sentry-dbid-befab5b0-e363-47c8-9e76-9da6fc10c4ec")}catch{}})();const U="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as $e,q as De,aN as W,a8 as Oe,cB as Re,F as Ue,aS as Q,V as t,f6 as He,p as ze,aM as Le,y as u,bz as qe,m as Me,ab as Ne,fp as H,dM as Ge,fq as Je,bu as Ze,dC as Ke,bQ as Qe,fr as Xe,aO as Ye,o as L,fs as et,c as a,ak as tt,bH as it}from"./index-BBJ8MbHB.js";import{a as m}from"./sentry-CTfRDee5.js";import{n as b}from"./mui-CqcpY1UR.js";import{bJ as nt}from"./zeni-epic-state-n7oqKrUc.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-4AWDV_HK-CxD_HluI.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="b69a3d5c-64df-4e55-8459-13da03137445",e._sentryDebugIdIdentifier="sentry-dbid-b69a3d5c-64df-4e55-8459-13da03137445")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",E="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=$e(),i=De(),[A,S]=m.useState(!1),M=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:Ie}=v,$=_.link_account.updateStatus,D=_.update_account.updateStatus,B=W(f),J=W(P.fetchState),Z=W($.fetchState),K=W(D.fetchState),w=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&$.fetchState==="Completed"||K==="In-Progress"&&D.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Z,$.fetchState,K,D.fetchState]);const je=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,F)=>{const o=F[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,We=O?r.setupVerifiedSubTitle:l.setupSubTitle,Ee=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=k.mode==="light"?new Q(k.colors.brandColorJadeLight):new Q(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:We}),Ee?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...w,children:t.jsx("form",{id:Y(X),onSubmit:je,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Qe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&j.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
1
+ import{d as $e,q as De,aN as W,a8 as Oe,cB as Re,F as Ue,aS as Q,V as t,f6 as He,p as ze,aM as Le,y as u,bz as qe,m as Me,ab as Ne,fp as H,dM as Ge,fq as Je,bu as Ze,dC as Ke,bQ as Qe,fr as Xe,aO as Ye,o as L,fs as et,c as a,ak as tt,bH as it}from"./index-CuVSU687.js";import{a as m}from"./sentry--XfBdOsd.js";import{n as b}from"./mui-BEw4Lk5H.js";import{bJ as nt}from"./zeni-epic-state-D6S6lAfe.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-4AWDV_HK-DG6Pqkg4.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./recharts-DUFfumXl.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="b69a3d5c-64df-4e55-8459-13da03137445",e._sentryDebugIdIdentifier="sentry-dbid-b69a3d5c-64df-4e55-8459-13da03137445")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",E="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=$e(),i=De(),[A,S]=m.useState(!1),M=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:Ie}=v,$=_.link_account.updateStatus,D=_.update_account.updateStatus,B=W(f),J=W(P.fetchState),Z=W($.fetchState),K=W(D.fetchState),w=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&$.fetchState==="Completed"||K==="In-Progress"&&D.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Z,$.fetchState,K,D.fetchState]);const je=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,F)=>{const o=F[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,We=O?r.setupVerifiedSubTitle:l.setupSubTitle,Ee=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=k.mode==="light"?new Q(k.colors.brandColorJadeLight):new Q(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:We}),Ee?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...w,children:t.jsx("form",{id:Y(X),onSubmit:je,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Qe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&j.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as we,q as be,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ie,m as Ae,ab as ve,bu as ke,cC as je,aO as $e,o as s,hF as Ve,eU as Be,eV as Te,c as x,ak as De,gO as Ee,p as Le,a as ze}from"./index-BBJ8MbHB.js";import{a as F}from"./sentry-CTfRDee5.js";import{n as r}from"./mui-CqcpY1UR.js";import{M as Oe,r as H,o as Me}from"./PaymentAccountSetupBillingAddressSection-s9EEHxoG-Ccng4Jbq.js";import{F as _e}from"./SetUpAccountSection-Dhb8A0Oe-CHZzV0W4.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./zeni-epic-state-n7oqKrUc.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="a62ee704-9480-475e-9576-d6140cf6e3d8",e._sentryDebugIdIdentifier="sentry-dbid-a62ee704-9480-475e-9576-d6140cf6e3d8")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new ze("standardSemiBold","largeSemiBold")},R="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:V},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=V.fetchState==="In-Progress"||V.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(i),values:U(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),T=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,k=Be(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const D=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new j(D)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=F.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(He,{windowSize:o,children:[t.jsx(Ue,{windowSize:o,children:ge}),ue?t.jsx(We,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:W(R),onSubmit:pe,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:D},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx($e,{formId:W(R),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.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:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},U=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ve(n,e.subscriptionBillingAddress)[n]}},He=r.div`
1
+ import{d as we,q as be,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ie,m as Ae,ab as ve,bu as ke,cC as je,aO as $e,o as s,hF as Ve,eU as Be,eV as Te,c as x,ak as De,gO as Ee,p as Le,a as ze}from"./index-CuVSU687.js";import{a as F}from"./sentry--XfBdOsd.js";import{n as r}from"./mui-BEw4Lk5H.js";import{M as Oe,r as H,o as Me}from"./PaymentAccountSetupBillingAddressSection-s9EEHxoG-B7nnjdzg.js";import{F as _e}from"./SetUpAccountSection-Dhb8A0Oe-CgzT6w6k.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./recharts-DUFfumXl.js";import"./zeni-epic-state-D6S6lAfe.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="a62ee704-9480-475e-9576-d6140cf6e3d8",e._sentryDebugIdIdentifier="sentry-dbid-a62ee704-9480-475e-9576-d6140cf6e3d8")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new ze("standardSemiBold","largeSemiBold")},R="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:V},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=V.fetchState==="In-Progress"||V.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(i),values:U(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),T=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,k=Be(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const D=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new j(D)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=F.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(He,{windowSize:o,children:[t.jsx(Ue,{windowSize:o,children:ge}),ue?t.jsx(We,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:W(R),onSubmit:pe,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:D},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx($e,{formId:W(R),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.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:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},U=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ve(n,e.subscriptionBillingAddress)[n]}},He=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as b,cm as O,cn as M,co as W,j$ as q,aV as z,F as G}from"./index-BBJ8MbHB.js";import{a as f}from"./sentry-CTfRDee5.js";import{G4 as K}from"./zeni-epic-state-n7oqKrUc.js";import{u as Q}from"./ReviewOverlay-BvPN7IKD-BVyGsnOK.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./mui-CqcpY1UR.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8133b8da-1296-43a2-a77e-d89c03ebf438",e._sentryDebugIdIdentifier="sentry-dbid-8133b8da-1296-43a2-a77e-d89c03ebf438")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,v]=f.useState(T(e,u)),[p,E]=f.useState(u),[B,k]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(I),L===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),k(d=>d+1)},1e3)),B===n.length&&p&&(E(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},V={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(O,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(M,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:V,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},Y=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Y as getBillsUniqueType};
1
+ import{V as b,cm as O,cn as M,co as W,j$ as q,aV as z,F as G}from"./index-CuVSU687.js";import{a as f}from"./sentry--XfBdOsd.js";import{G4 as K}from"./zeni-epic-state-D6S6lAfe.js";import{u as Q}from"./ReviewOverlay-BvPN7IKD-ComW1tq2.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./recharts-DUFfumXl.js";import"./mui-BEw4Lk5H.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8133b8da-1296-43a2-a77e-d89c03ebf438",e._sentryDebugIdIdentifier="sentry-dbid-8133b8da-1296-43a2-a77e-d89c03ebf438")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,v]=f.useState(T(e,u)),[p,E]=f.useState(u),[B,k]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(I),L===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),k(d=>d+1)},1e3)),B===n.length&&p&&(E(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},V={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(O,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(M,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:V,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},Y=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Y as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{q as l,V as s,aM as b,o as e}from"./index-BBJ8MbHB.js";import{n as a}from"./mui-CqcpY1UR.js";import{o as p}from"./commonDimensions-Ds75pRzR-DJ4H9OI5.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="5587ad1d-50f9-4728-927a-5e8c8215964c",o._sentryDebugIdIdentifier="sentry-dbid-5587ad1d-50f9-4728-927a-5e8c8215964c")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
1
+ import{q as l,V as s,aM as b,o as e}from"./index-CuVSU687.js";import{n as a}from"./mui-BEw4Lk5H.js";import{o as p}from"./commonDimensions-Ds75pRzR-Lp1VP2lr.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="5587ad1d-50f9-4728-927a-5e8c8215964c",o._sentryDebugIdIdentifier="sentry-dbid-5587ad1d-50f9-4728-927a-5e8c8215964c")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{d as ct,q as dt,aN as Te,V as a,ad as W,a8 as mt,cP as ut,ax as pt,cB as ft,aV as ve,aL as Ie,g5 as yt,n as ht,bz as gt,aM as xt,cC as St,cm as wt,cn as bt,co as Ct,m as Dt,ab as Tt,aO as vt,o,y as L,al as Oe,F as Ve,g6 as It,ft as ke,eU as kt,D as $t,L as jt,ak as Fe,a as Nt,B as Pt,c as $}from"./index-BBJ8MbHB.js";import{a as O}from"./sentry-CTfRDee5.js";import{n as d}from"./mui-CqcpY1UR.js";import{EH as Lt,bi as G}from"./zeni-epic-state-n7oqKrUc.js";import{S as Ot,s as Vt}from"./CompanyOfficerDetailsSection-BtUBatbQ-CS2katNY.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./LabeledAddressValueField-Bt41wdNQ-CdN5suyF.js";import"./LabeledCreatableSingleSelectField-fycRE7PX-BLM_4t-_.js";import"./LabeledDocumentField-C73vQNgq-xVgwP02Y.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new e.Error().stack;T&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[T]="720b06ae-a0bf-4799-bf77-25afbe430f76",e._sentryDebugIdIdentifier="sentry-dbid-720b06ae-a0bf-4799-bf77-25afbe430f76")}catch{}})();const x={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,$[3]),subTitlePaddingBottom:new L($[3],$[3]),verificationDetailsRowGap:new L(12,$[5],$[5]),termsPaddingLeftRight:new L($[0],$[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Ne,strings:{empty:Bt}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:j,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:A,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Je=Te(R.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Q]=O.useState(!1),[M,oe]=O.useState("save"),[X,Ze]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:At(e,A,E,T)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,k=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&k!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:k,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",k=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!k?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Lt(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(I),q===!0&&Qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&We?.(s[D])},nt=O.useCallback(pt((t,s)=>{st(t,s)},300),[]);O.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{Q(!1),V();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach(k=>{b.includes(k)||t.push(k)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{Q(!1)}},lt=ve(Ie(p),p,je.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?Bt:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?Q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),j==="In-Progress"||j==="Not-Started"?a.jsx(Mt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:Pe($e),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Jt,{children:a.jsxs(Kt,{children:[a.jsx(Le,{}),de&&a.jsx(Le,{}),a.jsx(Yt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Y??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:U,allIndustries:A})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),j==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Pe($e),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=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:S?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const t=w[I],s=l?.primaryContactLocalData;M!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(I))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},At=(e,T,j,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=e,A=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.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:T?.map(p=>p.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(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(B).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:j?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Pe=e=>`${e}_form`,Et=d.div`
1
+ import{d as ct,q as dt,aN as Te,V as a,ad as W,a8 as mt,cP as ut,ax as pt,cB as ft,aV as ve,aL as Ie,g5 as yt,n as ht,bz as gt,aM as xt,cC as St,cm as wt,cn as bt,co as Ct,m as Dt,ab as Tt,aO as vt,o,y as L,al as Oe,F as Ve,g6 as It,ft as ke,eU as kt,D as $t,L as jt,ak as Fe,a as Nt,B as Pt,c as $}from"./index-CuVSU687.js";import{a as O}from"./sentry--XfBdOsd.js";import{n as d}from"./mui-BEw4Lk5H.js";import{EH as Lt,bi as G}from"./zeni-epic-state-D6S6lAfe.js";import{S as Ot,s as Vt}from"./CompanyOfficerDetailsSection-BtUBatbQ-C90mnqDM.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./recharts-DUFfumXl.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";import"./LabeledAddressValueField-Bt41wdNQ-BE_1SNIZ.js";import"./LabeledCreatableSingleSelectField-fycRE7PX-D2KdHDae.js";import"./LabeledDocumentField-C73vQNgq-DYnQtN50.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new e.Error().stack;T&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[T]="720b06ae-a0bf-4799-bf77-25afbe430f76",e._sentryDebugIdIdentifier="sentry-dbid-720b06ae-a0bf-4799-bf77-25afbe430f76")}catch{}})();const x={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,$[3]),subTitlePaddingBottom:new L($[3],$[3]),verificationDetailsRowGap:new L(12,$[5],$[5]),termsPaddingLeftRight:new L($[0],$[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Ne,strings:{empty:Bt}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:j,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:A,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Je=Te(R.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Q]=O.useState(!1),[M,oe]=O.useState("save"),[X,Ze]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:At(e,A,E,T)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,k=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&k!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:k,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",k=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!k?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Lt(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(I),q===!0&&Qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&We?.(s[D])},nt=O.useCallback(pt((t,s)=>{st(t,s)},300),[]);O.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{Q(!1),V();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach(k=>{b.includes(k)||t.push(k)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{Q(!1)}},lt=ve(Ie(p),p,je.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?Bt:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?Q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),j==="In-Progress"||j==="Not-Started"?a.jsx(Mt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:Pe($e),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Jt,{children:a.jsxs(Kt,{children:[a.jsx(Le,{}),de&&a.jsx(Le,{}),a.jsx(Yt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Y??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:U,allIndustries:A})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),j==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Pe($e),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=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:S?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const t=w[I],s=l?.primaryContactLocalData;M!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(I))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},At=(e,T,j,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=e,A=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.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:T?.map(p=>p.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(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(B).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:j?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Pe=e=>`${e}_form`,Et=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{q as m,V as r,F as y,b as w,o as s,a as b,B as x}from"./index-BBJ8MbHB.js";import{n as o}from"./mui-CqcpY1UR.js";import{a as c}from"./sentry-CTfRDee5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7a6da756-eb81-49ce-adf3-ad5df1546f93",e._sentryDebugIdIdentifier="sentry-dbid-7a6da756-eb81-49ce-adf3-ad5df1546f93")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:a,styles:l})=>{const g=m(),f=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!a?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:a,className:"cardName",title:`${h}`,children:[f,r.jsx(H,{}),d,n&&!a?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,n&&a?r.jsx(u,{}):null]})},v=o(x)`
1
+ import{q as m,V as r,F as y,b as w,o as s,a as b,B as x}from"./index-CuVSU687.js";import{n as o}from"./mui-BEw4Lk5H.js";import{a as c}from"./sentry--XfBdOsd.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7a6da756-eb81-49ce-adf3-ad5df1546f93",e._sentryDebugIdIdentifier="sentry-dbid-7a6da756-eb81-49ce-adf3-ad5df1546f93")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:a,styles:l})=>{const g=m(),f=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!a?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:a,className:"cardName",title:`${h}`,children:[f,r.jsx(H,{}),d,n&&!a?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,n&&a?r.jsx(u,{}):null]})},v=o(x)`
2
2
  ${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{d as j,q as f,V as t,bz as te,fc as L,b as u,b1 as Z,bY as ie,o as i,F as w,p as B,y as h,ak as v,de as oe,c as l,aV as re,aK as T,bO as ae,ag as $,aM as z,jd as N,je as U,iT as se,cv as ne,cy as de,al as O,iU as le,iV as ce}from"./index-BBJ8MbHB.js";import{n as o}from"./mui-CqcpY1UR.js";import{FY as b,bh as he}from"./zeni-epic-state-n7oqKrUc.js";import{w as R,a as K}from"./sentry-CTfRDee5.js";import{q as pe}from"./InsightsSection-BTXj5WUe-BehAISJe.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as fe}from"./recharts-bDaLwU4I.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./NavigationDots-B0_dDbgu-D1euhRa0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="3b315d47-4e1a-487d-af7f-153af36664a2",e._sentryDebugIdIdentifier="sentry-dbid-3b315d47-4e1a-487d-af7f-153af36664a2")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
1
+ import{d as j,q as f,V as t,bz as te,fc as L,b as u,b1 as Z,bY as ie,o as i,F as w,p as B,y as h,ak as v,de as oe,c as l,aV as re,aK as T,bO as ae,ag as $,aM as z,jd as N,je as U,iT as se,cv as ne,cy as de,al as O,iU as le,iV as ce}from"./index-CuVSU687.js";import{n as o}from"./mui-BEw4Lk5H.js";import{FY as b,bh as he}from"./zeni-epic-state-D6S6lAfe.js";import{w as R,a as K}from"./sentry--XfBdOsd.js";import{q as pe}from"./InsightsSection-BTXj5WUe-DE-Y95Zn.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as fe}from"./recharts-DUFfumXl.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";import"./NavigationDots-B0_dDbgu-BN7MNaD8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="3b315d47-4e1a-487d-af7f-153af36664a2",e._sentryDebugIdIdentifier="sentry-dbid-3b315d47-4e1a-487d-af7f-153af36664a2")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
2
2
  display: flex;
3
3
  gap: ${i.sp1};
4
4
  `,ke=o.div`
@@ -1,4 +1,4 @@
1
- import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN as et,V as t,gV as ji,bz as Li,c as l,fQ as br,aK as Ge,aM as J,o as a,bQ as Qt,p as d,F as ke,iZ as Sr,b as U,cm as Ii,i_ as Di,f6 as Ai,gJ as Ti,i$ as Ri,bC as Ei,bL as yr,aQ as ea,j0 as Fi,j1 as $r,j2 as ot,y as T,bH as vr,b8 as ta,h as Pi,aR as kr,aZ as zi,j3 as Mi,j4 as Vi,b5 as aa,ag as ge,ey as Oi,iN as Hi,u as gt,gU as jr,m as mt,b1 as Ni,dj as Bi,cq as Wi,cn as Ui,d2 as _i,ht as Zi,ak as Oe,bS as Gi,aW as Wt,j5 as Fa,j6 as Yi,a as Pa,B as Lr,b7 as qi,j7 as Xi,iH as pt,iS as Ji,iX as Ki,iY as Qi,dr as za,eQ as eo,n as Ir,cv as Dr,iQ as to,bV as ao,l as Ar,j8 as ro,au as vt,bY as Ma,bv as io,db as oo,al as st,hp as no,ap as so,L as co,bD as lo,j9 as Dt,fj as ho,ja as Tr,jb as Rr,gt as Er,jc as jt,i8 as Fr,bO as po,ed as Pr,iT as uo,cy as mo,dM as go,cY as Co,iU as fo,iV as wo,ej as xo,cd as bo,ce as So}from"./index-BBJ8MbHB.js";import{a as o,w as yo}from"./sentry-CTfRDee5.js";import{n as r,c as we,k as zr}from"./mui-CqcpY1UR.js";import{EF as At,bh as $o,bf as vo}from"./zeni-epic-state-n7oqKrUc.js";import{k as ko}from"./NavigationDots-B0_dDbgu-D1euhRa0.js";import{A as jo,i as Lo,a as Io,l as Do,r as Ao,t as To,n as Ro}from"./add-to-wallet-DgdBD8_G-CnbN5S25.js";import{L as Ut}from"./lottie-Dcr3TlBE.js";import{j as Eo}from"./CardNumberSubText-DBOH0_yP-Be1TwMNo.js";import{r as Mr}from"./core-BiYEzgTE.js";import{l as Vr}from"./uploadReceipts-CPw64UYa-DdOlSolA.js";import{L as Fo,z as Po,k as zo,P as Mo}from"./LockCardPage-DaVzuRMw-C59qINIA.js";import"./liveblocks-BstIT-4Z.js";import"./recharts-bDaLwU4I.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./RoleWithToolTip-aW95rpRe-D_rCTb4X.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="8db79c29-cc3b-480b-a576-6e50d8929549",e._sentryDebugIdIdentifier="sentry-dbid-8db79c29-cc3b-480b-a576-6e50d8929549")}catch{}})();const Or=ke.getLocalizedStrings().spendManagement.chargeCard,Vo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:I,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=It().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:K}=Vi(),_=Lt(),D=At(_.loggedInUserRoleMap);return t.jsx(Oo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(I,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(Ho,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(No,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-apple-wallet-button")})},Oo=r.div`
1
+ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN as et,V as t,gV as ji,bz as Li,c as l,fQ as br,aK as Ge,aM as J,o as a,bQ as Qt,p as d,F as ke,iZ as Sr,b as U,cm as Ii,i_ as Di,f6 as Ai,gJ as Ti,i$ as Ri,bC as Ei,bL as yr,aQ as ea,j0 as Fi,j1 as $r,j2 as ot,y as T,bH as vr,b8 as ta,h as Pi,aR as kr,aZ as zi,j3 as Mi,j4 as Vi,b5 as aa,ag as ge,ey as Oi,iN as Hi,u as gt,gU as jr,m as mt,b1 as Ni,dj as Bi,cq as Wi,cn as Ui,d2 as _i,ht as Zi,ak as Oe,bS as Gi,aW as Wt,j5 as Fa,j6 as Yi,a as Pa,B as Lr,b7 as qi,j7 as Xi,iH as pt,iS as Ji,iX as Ki,iY as Qi,dr as za,eQ as eo,n as Ir,cv as Dr,iQ as to,bV as ao,l as Ar,j8 as ro,au as vt,bY as Ma,bv as io,db as oo,al as st,hp as no,ap as so,L as co,bD as lo,j9 as Dt,fj as ho,ja as Tr,jb as Rr,gt as Er,jc as jt,i8 as Fr,bO as po,ed as Pr,iT as uo,cy as mo,dM as go,cY as Co,iU as fo,iV as wo,ej as xo,cd as bo,ce as So}from"./index-CuVSU687.js";import{a as o,w as yo}from"./sentry--XfBdOsd.js";import{n as r,c as we,k as zr}from"./mui-BEw4Lk5H.js";import{EF as At,bh as $o,bf as vo}from"./zeni-epic-state-D6S6lAfe.js";import{k as ko}from"./NavigationDots-B0_dDbgu-BN7MNaD8.js";import{A as jo,i as Lo,a as Io,l as Do,r as Ao,t as To,n as Ro}from"./add-to-wallet-DgdBD8_G-B8DNqx9o.js";import{L as Ut}from"./lottie-CcCMX6aw.js";import{j as Eo}from"./CardNumberSubText-DBOH0_yP-Hi2tk7qe.js";import{r as Mr}from"./core-D862DhQW.js";import{l as Vr}from"./uploadReceipts-CPw64UYa-DQ3LqJi8.js";import{L as Fo,z as Po,k as zo,P as Mo}from"./LockCardPage-DaVzuRMw-DIW8PHh-.js";import"./liveblocks-DflJlh5b.js";import"./recharts-DUFfumXl.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";import"./RoleWithToolTip-aW95rpRe-BuhNLzjw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="8db79c29-cc3b-480b-a576-6e50d8929549",e._sentryDebugIdIdentifier="sentry-dbid-8db79c29-cc3b-480b-a576-6e50d8929549")}catch{}})();const Or=ke.getLocalizedStrings().spendManagement.chargeCard,Vo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:I,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=It().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:K}=Vi(),_=Lt(),D=At(_.loggedInUserRoleMap);return t.jsx(Oo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(I,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(Ho,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(No,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-apple-wallet-button")})},Oo=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{a7 as Ka,aN as N,av as Za,fP as Qa,iH as V,q as Pe,o as a,d as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aK as he,aV as ot,aM as st,F as Fe,y as W,ag as q,a as tr,B as ar,cT as rr,as as ta,bH as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gM as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,c as _,d4 as aa,ap as hr,ak as mr,D as pr,cS as Cr,bt as gr,bS as br}from"./index-BBJ8MbHB.js";import{a as l}from"./sentry-CTfRDee5.js";import{n as r,c as lt,k as fr}from"./mui-CqcpY1UR.js";import{EF as xr,FX as yr,bh as zt,bL as Sr,bP as wr}from"./zeni-epic-state-n7oqKrUc.js";import{K as kr}from"./SpendManagementSection-Ci2yOCJ9-DUAKhgdu.js";import{D as ie,l as $r,r as Ir}from"./ChargeCardListTable-EGkwcy7i-Gk77wXoS.js";import{ChargeCardPromoUserContent as jr}from"./ChargeCardPromoPage-BwqrXrY--B5or9kQv.js";import{N as vr,J as Lr}from"./PromoBaseCards-CzPzj69A-DGTVwpLe.js";import{z as Nt,L as Ot,k as Ar,P as Pr}from"./LockCardPage-DaVzuRMw-C59qINIA.js";import{r as Fr,i as Er}from"./graphic-no-data-net-burn-l-CzmycA0m-CnFblD9c.js";import{t as Mr,o as Tr}from"./arrow-south-east-round-PEovUgvH-D0tcq0ac.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./Menu-0YHUdU0n-12P5RljB.js";import"./RoleWithToolTip-aW95rpRe-D_rCTb4X.js";import"./CardNumberSubText-DBOH0_yP-Be1TwMNo.js";import"./NavigationDots-B0_dDbgu-D1euhRa0.js";import"./usp-line-BBd1wKwW-CG6D_gsM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="877e8534-da4a-4eb8-9c61-aad15ad76030",e._sentryDebugIdIdentifier="sentry-dbid-877e8534-da4a-4eb8-9c61-aad15ad76030")}catch{}})();const ut={infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},Ae=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,_t=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:k,statusMessage:U})=>{const B=Pe(),L=k!==void 0,G=k==="rejected"?Ae.status.requestRejected:k==="under_review"?Ae.status.requestUnderReview:"";return t.jsxs(Rr,{windowSize:B,cardPromoType:e,"data-testid":st("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ra,{isStatusMode:L,children:[t.jsxs(oa,{children:[L?t.jsx(Nr,{children:G}):t.jsx(ia,{children:u}),t.jsx(_r,{children:d}),L?null:t.jsx(Wr,{children:n})]}),!L&&t.jsxs(Gr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(nt,{slideUpCount:m.length,children:m.map((oe,ne)=>t.jsx(na,{children:oe},`card-promo-${ne.toString()}`))}),t.jsx(qr,{})]}),U!=null&&L?t.jsx(Or,{status:k,children:U}):null]}),t.jsx(Hr,{isStatusMode:L,children:t.jsx(vr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Jr,{isStatusMode:L,children:t.jsx(Lr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Ut=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Br,{windowSize:m,cardType:e,children:t.jsxs(zr,{children:[t.jsxs(oa,{children:[t.jsx(ia,{children:c}),t.jsx(Vr,{children:t.jsx(Ur,{children:u})}),t.jsx(Kr,{windowSize:m,children:t.jsxs(Zr,{windowSize:m,onClick:()=>n(e),"data-testid":st("total-cashback-info"),children:[t.jsx(na,{children:Ae.createNow}),t.jsx(Qr,{})]})})]}),e==="creditCard"?t.jsxs(Xr,{children:[t.jsx(ei,{children:Ae.creditLimit}),t.jsx(ti,{children:d})]}):null]})})},Dr=e=>{const c=e-1;let u=`
1
+ import{a7 as Ka,aN as N,av as Za,fP as Qa,iH as V,q as Pe,o as a,d as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aK as he,aV as ot,aM as st,F as Fe,y as W,ag as q,a as tr,B as ar,cT as rr,as as ta,bH as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gM as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,c as _,d4 as aa,ap as hr,ak as mr,D as pr,cS as Cr,bt as gr,bS as br}from"./index-CuVSU687.js";import{a as l}from"./sentry--XfBdOsd.js";import{n as r,c as lt,k as fr}from"./mui-BEw4Lk5H.js";import{EF as xr,FX as yr,bh as zt,bL as Sr,bP as wr}from"./zeni-epic-state-D6S6lAfe.js";import{K as kr}from"./SpendManagementSection-Ci2yOCJ9-DHLPmR4R.js";import{D as ie,l as $r,r as Ir}from"./ChargeCardListTable-EGkwcy7i-DAS4SH9r.js";import{ChargeCardPromoUserContent as jr}from"./ChargeCardPromoPage-BwqrXrY--e1ZAjCG8.js";import{N as vr,J as Lr}from"./PromoBaseCards-CzPzj69A-CK3QM4Oh.js";import{z as Nt,L as Ot,k as Ar,P as Pr}from"./LockCardPage-DaVzuRMw-DIW8PHh-.js";import{r as Fr,i as Er}from"./graphic-no-data-net-burn-l-CzmycA0m-BpIUS7ZS.js";import{t as Mr,o as Tr}from"./arrow-south-east-round-PEovUgvH-B5LiEtQ7.js";import"./liveblocks-DflJlh5b.js";import"./core-D862DhQW.js";import"./recharts-DUFfumXl.js";import"./lottie-CcCMX6aw.js";import"./analytics-BcBotjGt.js";import"./lexical-CRBFqIC9.js";import"./utils-CMZ62InI.js";import"./Menu-0YHUdU0n-bx6kXJP-.js";import"./RoleWithToolTip-aW95rpRe-BuhNLzjw.js";import"./CardNumberSubText-DBOH0_yP-Hi2tk7qe.js";import"./NavigationDots-B0_dDbgu-BN7MNaD8.js";import"./usp-line-BBd1wKwW-Biliax2b.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="877e8534-da4a-4eb8-9c61-aad15ad76030",e._sentryDebugIdIdentifier="sentry-dbid-877e8534-da4a-4eb8-9c61-aad15ad76030")}catch{}})();const ut={infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},Ae=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,_t=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:k,statusMessage:U})=>{const B=Pe(),L=k!==void 0,G=k==="rejected"?Ae.status.requestRejected:k==="under_review"?Ae.status.requestUnderReview:"";return t.jsxs(Rr,{windowSize:B,cardPromoType:e,"data-testid":st("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ra,{isStatusMode:L,children:[t.jsxs(oa,{children:[L?t.jsx(Nr,{children:G}):t.jsx(ia,{children:u}),t.jsx(_r,{children:d}),L?null:t.jsx(Wr,{children:n})]}),!L&&t.jsxs(Gr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(nt,{slideUpCount:m.length,children:m.map((oe,ne)=>t.jsx(na,{children:oe},`card-promo-${ne.toString()}`))}),t.jsx(qr,{})]}),U!=null&&L?t.jsx(Or,{status:k,children:U}):null]}),t.jsx(Hr,{isStatusMode:L,children:t.jsx(vr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Jr,{isStatusMode:L,children:t.jsx(Lr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Ut=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Br,{windowSize:m,cardType:e,children:t.jsxs(zr,{children:[t.jsxs(oa,{children:[t.jsx(ia,{children:c}),t.jsx(Vr,{children:t.jsx(Ur,{children:u})}),t.jsx(Kr,{windowSize:m,children:t.jsxs(Zr,{windowSize:m,onClick:()=>n(e),"data-testid":st("total-cashback-info"),children:[t.jsx(na,{children:Ae.createNow}),t.jsx(Qr,{})]})})]}),e==="creditCard"?t.jsxs(Xr,{children:[t.jsx(ei,{children:Ae.creditLimit}),t.jsx(ti,{children:d})]}):null]})})},Dr=e=>{const c=e-1;let u=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{ca as ni,V as t,a8 as li,ab as di,F as le,q as ie,av as ke,a7 as ci,d as Fe,gR as hi,iI as pi,iJ as ui,iK as mi,aO as gi,o as i,aM as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iL as fi,iM as yi,bQ as ye,bL as ki,aQ as Si,y as C,ey as vi,b8 as $i,iN as ji,aR as bi,u as Ii,ag as ee,gU as Li,al as J,ak as Q,c as p,cO as Fi,cX as zi,iO as Ai,iP as Ri,a as ft,bV as yt,iQ as kt,iR as Pi,bO as Bi,cv as Je,iS as St,dr as Di,ds as q,aK as ce,cs as vt,m as $t,iT as _i,cy as Ei,iA as Qe,bH as jt,bJ as bt,iU as Oi,iV as Ti,aS as $e,br as Vi,bW as Ni,bX as Ui,iW as Mi}from"./index-BBJ8MbHB.js";import{w as pe,a as f}from"./sentry-CTfRDee5.js";import{n as o,c as Ye}from"./mui-CqcpY1UR.js";import{P as Te}from"./Menu-0YHUdU0n-12P5RljB.js";import{T as It}from"./RoleWithToolTip-aW95rpRe-D_rCTb4X.js";import{j as Ve}from"./CardNumberSubText-DBOH0_yP-Be1TwMNo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5afaf1ff-1e45-4bb7-b93d-b22d67394542",e._sentryDebugIdIdentifier="sentry-dbid-5afaf1ff-1e45-4bb7-b93d-b22d67394542")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:j,onChargeCardResendInviteClick:S})=>{const[h,m]=f.useState(!1),[y,P]=f.useState(!1);f.useEffect(()=>{h||P(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),P(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||U,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,k)},[a.id]),T=St(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),S(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&P(!0)},onMouseLeave:()=>{A&&P(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
1
+ import{ca as ni,V as t,a8 as li,ab as di,F as le,q as ie,av as ke,a7 as ci,d as Fe,gR as hi,iI as pi,iJ as ui,iK as mi,aO as gi,o as i,aM as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iL as fi,iM as yi,bQ as ye,bL as ki,aQ as Si,y as C,ey as vi,b8 as $i,iN as ji,aR as bi,u as Ii,ag as ee,gU as Li,al as J,ak as Q,c as p,cO as Fi,cX as zi,iO as Ai,iP as Ri,a as ft,bV as yt,iQ as kt,iR as Pi,bO as Bi,cv as Je,iS as St,dr as Di,ds as q,aK as ce,cs as vt,m as $t,iT as _i,cy as Ei,iA as Qe,bH as jt,bJ as bt,iU as Oi,iV as Ti,aS as $e,br as Vi,bW as Ni,bX as Ui,iW as Mi}from"./index-CuVSU687.js";import{w as pe,a as f}from"./sentry--XfBdOsd.js";import{n as o,c as Ye}from"./mui-BEw4Lk5H.js";import{P as Te}from"./Menu-0YHUdU0n-bx6kXJP-.js";import{T as It}from"./RoleWithToolTip-aW95rpRe-BuhNLzjw.js";import{j as Ve}from"./CardNumberSubText-DBOH0_yP-Hi2tk7qe.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5afaf1ff-1e45-4bb7-b93d-b22d67394542",e._sentryDebugIdIdentifier="sentry-dbid-5afaf1ff-1e45-4bb7-b93d-b22d67394542")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:j,onChargeCardResendInviteClick:S})=>{const[h,m]=f.useState(!1),[y,P]=f.useState(!1);f.useEffect(()=>{h||P(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),P(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||U,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,k)},[a.id]),T=St(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),S(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&P(!0)},onMouseLeave:()=>{A&&P(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
2
2
  color: inherit;
3
3
  `,fe=o(Q)`
4
4
  color: ${I.important};