@zeniai/web-cockpit-ui 1.14.99-prod → 1.15.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/dist/assets/ACHDetailsPage-DYlcHRQe-lxtPXqrl.js +21 -0
  2. package/dist/assets/{AIPerformancePage-4v4Fkm9f-BGIv1oaj.js → AIPerformancePage-DpXZ7sco-B8d5E6QI.js} +107 -107
  3. package/dist/assets/AccountInfoPage-BEOrrVQS-L5aJOIaA.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Dv1IPcdF-_hAyQHXK.js → AccountInfoPageContent-BJkLJK6O-CmMcM25y.js} +23 -23
  5. package/dist/assets/AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DYKjrPwN-GYy2K63e.js → AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js} +12 -12
  7. package/dist/assets/{AccountRow-BM3xLbeh-LSvaNMl5.js → AccountRow-B0gU16A_-Ks_Pft1z.js} +25 -25
  8. package/dist/assets/{AccountsPromoCardStack-CTkwARBJ-CYXZwH-K.js → AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js} +28 -28
  9. package/dist/assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js +6 -0
  10. package/dist/assets/{AddToWalletPage-OJBvAKUj-BCWDL4sh.js → AddToWalletPage-DNPLnpTq-CxRyEwld.js} +23 -23
  11. package/dist/assets/{AgingReportsPage-n-UKn3Ei-BRiBj-cl.js → AgingReportsPage-Bff4u7T1-DOBvEqCj.js} +10 -10
  12. package/dist/assets/{AllUserItems-BsvKEVcx-MMgTwBEV.js → AllUserItems-D8zdAu_1-C-zZqgmo.js} +10 -10
  13. package/dist/assets/ApAgingDetailPage-2NsAj3gO-DfogwLMb.js +46 -0
  14. package/dist/assets/{AppBasePage-DoCF494Z-CnvPfO_f.js → AppBasePage-Uyk9GOud-D7f8hWuo.js} +8 -8
  15. package/dist/assets/{AppDrawerContent-DM1t0oLS-DH7eKMj_.js → AppDrawerContent-RX7rx40V-DlBxQF_L.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-GZCo6_i2-DsqjaiCh.js → ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js} +6 -6
  17. package/dist/assets/{ArAgingChart-CsFDVdeO-DVRC9Zw_.js → ArAgingChart-BxTkvrC9-BgC5YBPR.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js +46 -0
  19. package/dist/assets/{AttachmentView-B0d42oAf-CXhefwMW.js → AttachmentView-zHGhIkWo-C64qXCAp.js} +6 -6
  20. package/dist/assets/{BankAccountSection-Bgdk93V0-CBGAHi6W.js → BankAccountSection-HRSyjIxV-CV6PAaFg.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-DMRmF2yM-8sv_FXc-.js → BankAccountWarningSection-CNusQFRM-4Y94-VD5.js} +7 -7
  22. package/dist/assets/{BankConnectionsSettingsPage-BpwKq93l-BzA7tupy.js → BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js} +22 -22
  23. package/dist/assets/BillDetailPage-CgCMZFw1-pAtGUG0W.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js +241 -0
  26. package/dist/assets/BillPayPromoPage-DOEbuNgH-BglT_61W.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-DRCjyEfB-B31U7mEh.js → BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js} +4 -4
  28. package/dist/assets/BillingSettingsPage-ZupDcNHz-B6O6l_7B.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D8EGfY5P-CM01CzA6.js → BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js} +1 -1
  30. package/dist/assets/{BoxItem-WOrvBzns-DeYLQS9P.js → BoxItem-42doFhpg-BDC_fDqi.js} +5 -5
  31. package/dist/assets/BusinessVerificationPage-De9zCAm7-geq4Sk8A.js +138 -0
  32. package/dist/assets/CardNumberSubText-C6jdBRC2-YbNbzp0H.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-D-kXy6LW-DM_m3Pbc.js → CashbackDetailPage-B2drd1Nz-BAvHe1xx.js} +27 -27
  34. package/dist/assets/{ChargeCardDetailPage-BQnJsfn5-BqOML7j0.js → ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js} +254 -254
  35. package/dist/assets/ChargeCardListPage-DlI8ZfB0-CMLNFzih.js +412 -0
  36. package/dist/assets/{ChargeCardListTable-EGkwcy7i-tKLI1qa_.js → ChargeCardListTable-CooASbVZ-CSvbg9sF.js} +71 -71
  37. package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js +553 -0
  38. package/dist/assets/{ChargeCardPromoPage-BwqrXrY--BIBCTDIo.js → ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js} +38 -38
  39. package/dist/assets/{ChargeCardSetupPage-DRzB7Rt4-BMsw70X3.js → ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-C3NxKjmB-DFEobVrF.js → ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js} +9 -9
  41. package/dist/assets/{CheckDepositDrawerPage-ClxKj2js-D2Sutkxs.js → CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js} +18 -18
  42. package/dist/assets/{CollapsableReportTable-xkNXkjfh-C1PiZIcU.js → CollapsableReportTable-DLOi0feI-SZFbl9NV.js} +41 -41
  43. package/dist/assets/CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js +330 -0
  44. package/dist/assets/{CompanyPassportCard-BOxM716U-DDGzDD6a.js → CompanyPassportCard-B8PLT6MG-BUc5HZU7.js} +7 -7
  45. package/dist/assets/CompanyPassportPage-CQZPgrNF-KJN_fT4M.js +347 -0
  46. package/dist/assets/{CompleteProfile-BjGSPASa-B6ClspdM.js → CompleteProfile-fNSWTbef-pSYliRNx.js} +3 -3
  47. package/dist/assets/ConfettiBurst-B6ej_xoO-BzptsIBR.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-WQeDCj-E-CvHzuStm.js → CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js} +17 -17
  49. package/dist/assets/CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js +227 -0
  50. package/dist/assets/{CurrencySelectField-AjAWhg6e-Ddk75hhe.js → CurrencySelectField-DsZTOj_T-DmNXNRTP.js} +5 -5
  51. package/dist/assets/{CustomerOnboardingActivationPage-BJhw-PvI-C1M1JTtp.js → CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js} +29 -29
  52. package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-3pvCMT54.js → CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js} +14 -14
  54. package/dist/assets/CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js +66 -0
  55. package/dist/assets/CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js +107 -0
  56. package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js +202 -0
  57. package/dist/assets/{Dashboard-_o0Ftdv8-Br9P4eg7.js → Dashboard-cbXIPzMy-DLCpLMr4.js} +21 -21
  58. package/dist/assets/{DashboardReportPage-Cu5wqWkj-2emLbNj7.js → DashboardReportPage-Pc0G2Tok-BRmpg3ok.js} +28 -28
  59. package/dist/assets/DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js +12 -0
  60. package/dist/assets/{DepositAccTransactionItem-BOPK7-7P-OoXxiYYg.js → DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-oj9tntbI-CjhxGWP2.js → DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js} +2 -2
  62. package/dist/assets/{DomesticWireDetailsPage-FGdEilUB-BmnJGHNS.js → DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-c57lEf_V-kUhL6sL-.js → DownloadOverlay-C7r6PAam-BvXPoC9j.js} +25 -25
  64. package/dist/assets/{DrawerPage-inbhWwND-bJgqbs-V.js → DrawerPage-BEV7nWrL-CqfdeYhP.js} +18 -18
  65. package/dist/assets/EditPeoplePage-BnQqStEx-Cbm0H-hi.js +55 -0
  66. package/dist/assets/EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js +865 -0
  67. package/dist/assets/{EntityDetailPage-DbTiF9Hs-jmJoevV_.js → EntityDetailPage-BaKoO9FG-BDiZrnyD.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-CHgrPo86-DVaVVDmD.js → EntitySummarySection-C361-4tS-UJPRLBoI.js} +13 -13
  69. package/dist/assets/{ExpenseAutomationOverviewPage-QZT_UFXf-7NybPU7s.js → ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js} +30 -30
  70. package/dist/assets/{ExpenseAutomationPage-Y7V_Z8rd-CriSifje.js → ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js} +58 -58
  71. package/dist/assets/{ExpressPayPage-CIp_R6ZQ-CFUjtYX5.js → ExpressPayPage-CDowSjHC-DolGHHJS.js} +14 -14
  72. package/dist/assets/{FeaturePreviewPage-qsUO3mUu-BVPfHQvE.js → FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js} +2 -2
  73. package/dist/assets/{FollowStepsSection-ebmR-eLP-uLIDYbWC.js → FollowStepsSection-h449vQkQ-BXixJ0VK.js} +8 -8
  74. package/dist/assets/{GlobalReviewListPage-9V-xoqvs-BPoJhVnZ.js → GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js} +18 -18
  75. package/dist/assets/{InformationCardStack-DnB7TmOk-Dqnfy0Yc.js → InformationCardStack-xhdujEcL-COTShhF9.js} +9 -9
  76. package/dist/assets/{InsightsCardStack-BBczCYEz-uznJ_FG1.js → InsightsCardStack-zRynyTFj-CqnhwImM.js} +9 -9
  77. package/dist/assets/InsightsSection-C4fMfxQ4-BGGNiljS.js +27 -0
  78. package/dist/assets/{IntegrationsSettingsPage-CByj2tO4-Baapsfzv.js → IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js} +5 -5
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-4-pl1ozv-3ON4N7iI.js → InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js} +22 -22
  80. package/dist/assets/InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js +65 -0
  81. package/dist/assets/{InviteFormPage-XsnZcAvb-81TFAlP4.js → InviteFormPage-C7fxnyMS-ChsV2A2J.js} +37 -37
  82. package/dist/assets/{InvitePageListView-HfsehyxK-DZrJL0tJ.js → InvitePageListView-ktOXziSw-ClMd1Rgx.js} +67 -67
  83. package/dist/assets/InvitePeoplePage-C_4adNch-DPbyAjsn.js +12 -0
  84. package/dist/assets/{InvoiceUploadSection-DPd4VmqZ-CcMZPhRD.js → InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js} +5 -5
  85. package/dist/assets/{IssueChargeCardPage-xbfFhV0O-CkFxOxQ8.js → IssueChargeCardPage-CdV757XH-B0b8pyku.js} +19 -19
  86. package/dist/assets/{LabeledAddressValue-CB_KH7v5-DkXWlhfj.js → LabeledAddressValue-Ce_wDml5-CoYtFscl.js} +2 -2
  87. package/dist/assets/{LabeledAddressValueField-Bt41wdNQ-Bq9dv--c.js → LabeledAddressValueField-BrYbXck--8qVwdGMU.js} +5 -5
  88. package/dist/assets/LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js +16 -0
  89. package/dist/assets/LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js +234 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-fycRE7PX-BF-q4n65.js → LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js} +4 -4
  91. package/dist/assets/LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-DGb_bDyp-DrEeJ43_.js → LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js} +8 -8
  93. package/dist/assets/LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js +220 -0
  94. package/dist/assets/{LabeledText-yhm8qxrA-Ckmd_Iex.js → LabeledText-D7eLbH80-Bs-kfAE-.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-BlovKIqH.js → LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js} +25 -25
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DGkU72cd-DsF511cn.js → LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js} +28 -28
  97. package/dist/assets/LinkJETransactionPage-DicS5kKg-DOb356xm.js +98 -0
  98. package/dist/assets/{LockCardPage-DaVzuRMw-b63S9lNy.js → LockCardPage-DRYg_fxU-CFGUEJ0X.js} +76 -76
  99. package/dist/assets/{LowBalancePopup-Dd9HLWlh-BitR3QKH.js → LowBalancePopup-BJfagMN7-DFWlKz1e.js} +4 -4
  100. package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-DbhdGmhh-DGdqpf5D.js → MagicLinkSuccessPage-BRWymdWH-suMYBps1.js} +5 -5
  104. package/dist/assets/{MagicLinkTitleSection-Bx92291D-DaAfWQeo.js → MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js} +4 -4
  105. package/dist/assets/{MailingDetailsSection-D-tnK244-olsajwbw.js → MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js} +1 -1
  106. package/dist/assets/{Menu-0YHUdU0n-IPIsvkjG.js → Menu-C9v-W9TY-DRVyGpH4.js} +3 -3
  107. package/dist/assets/{MyBankConnectionsSettingsPage-Dn9AT8p1-Du0OUgfx.js → MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DrQu6s7j-CQGGPBvE.js → MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-CBvjEd7r-DngfbSyH.js → MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js} +9 -9
  110. package/dist/assets/{NavBarWithPicker-aXn2QYh1-BacMgpdl.js → NavBarWithPicker-Cv7tOmjd-BXBZWsng.js} +5 -5
  111. package/dist/assets/{NavigationArrow-JLUXaIrz-DkSHUPyh.js → NavigationArrow-DAs7ECFZ-rFu_aZmo.js} +8 -8
  112. package/dist/assets/{NavigationDots-B0_dDbgu-64vTTXrM.js → NavigationDots-DISWi4Mq-BdTnuTup.js} +4 -4
  113. package/dist/assets/{NewGlobalMerchantPage-B_019EtP-P53QZFfP.js → NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js} +7 -7
  114. package/dist/assets/{NoDataChart-DLKHNXD4-CSUSkljl.js → NoDataChart-gfqauMvY-CAbYCdyQ.js} +1 -1
  115. package/dist/assets/NoDataTable-C1_gqVi7-D4ANXF0d.js +8 -0
  116. package/dist/assets/{NotFoundPage-BEya4LS2-DmPN4bXN.js → NotFoundPage-CdWhiWjz-DDjAX_Ng.js} +3 -3
  117. package/dist/assets/{NotificationSettingsPage-C9SjRKCu-HaxxQ5tD.js → NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js} +23 -23
  118. package/dist/assets/{NotificationsListConfig-OCeJNw1G-C5G9uADV.js → NotificationsListConfig-B-g9kb6x-CND-RON9.js} +1 -1
  119. package/dist/assets/{NotificationsPage-FJHx_WBG-aa7rt_Ex.js → NotificationsPage-jxpX3iRG-UGS5Y_9i.js} +29 -29
  120. package/dist/assets/{OpExByVendorPage-Dxk68R6U-dBwEW9Vr.js → OpExByVendorPage-B13tAq03-Dd8cq0hz.js} +24 -24
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-DzT4W646.js → OverlayContainerPage-Daz3A7cI-DlMlal7_.js} +1 -1
  122. package/dist/assets/PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js +107 -0
  123. package/dist/assets/PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js +107 -0
  124. package/dist/assets/{PeoplePage-DN5VtG7Q-Jsca0pZu.js → PeoplePage-Du_TRX4h-C2Rmmn5d.js} +18 -18
  125. package/dist/assets/Preview-CSeZ_uBx.js +1 -0
  126. package/dist/assets/{ProductsCarousel-6gthLCkf-CbvQwlx1.js → ProductsCarousel-y6q9BbqK-B9m9tH0o.js} +12 -12
  127. package/dist/assets/{PromoBaseCards-CzPzj69A-ckajKpLX.js → PromoBaseCards-CLQMN7aT-BxeQG0rP.js} +8 -8
  128. package/dist/assets/{QBOConnectionDialog-BFy0lMZd-DEWNZFAL.js → QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js} +6 -6
  129. package/dist/assets/{QBOSetupSection-DcLYyQ5m-DD_HLX8G.js → QBOSetupSection-D--nxfIh-Difre144.js} +16 -16
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js +32 -0
  131. package/dist/assets/ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js +243 -0
  132. package/dist/assets/ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js +314 -0
  133. package/dist/assets/{ReimbursementPromoPage-MweW-4DO-CH9DJqDJ.js → ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js} +6 -6
  134. package/dist/assets/{ReimbursementSetUpPage-BD2LWlbW-D7YhNMtE.js → ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js} +13 -13
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DV_PLm_g-BmWmh7cm.js → ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js} +1 -1
  136. package/dist/assets/{ReloadCard-9KpQCrce-Ci-Mht5Q.js → ReloadCard-BT0lSFUP-CF34SUO7.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-BPliEsuo-CuYEkMDQ.js → ReportTableViewSelector-rl6XGWA_-CSxPHelL.js} +5 -5
  138. package/dist/assets/{ReportsPage-h2DAaQfK-BNN_IZ1a.js → ReportsPage-DV0bbi_D-1o0LJL4r.js} +10 -10
  139. package/dist/assets/{RevenueChart-DY2s_upY-BRRP2J2O.js → RevenueChart-CxvHfkxr-BmSB0A7U.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-BiYxRnvA-BuoSRBvI.js → ReviewDetailsPage-CX2XB44j-BHiKofo4.js} +52 -52
  141. package/dist/assets/{ReviewOverlay-BvPN7IKD-BaLfoXpq.js → ReviewOverlay-DdOo3pcK-BVp3d9bK.js} +9 -9
  142. package/dist/assets/RoleWithToolTip-C08wfnGb-CFjb8VCB.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlXqz1QQ-CFd72Zp1.js → ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js} +13 -13
  144. package/dist/assets/{ScheduleDetailsPage-DebosLND-BruMK2cM.js → ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-Dd4Ep_c0-DWb3vxk3.js → ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js} +50 -50
  146. package/dist/assets/ScreenRoutes-BOb1-zin.js +201 -0
  147. package/dist/assets/{SetUpAccountSection-Dhb8A0Oe-CAlyCSdk.js → SetUpAccountSection-Clz60vjw-CDcwloM0.js} +15 -15
  148. package/dist/assets/SignIn-B79R5ayU-BtVW5pl0.js +491 -0
  149. package/dist/assets/SignInScreen-CsaRmLqD.js +1 -0
  150. package/dist/assets/SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js +134 -0
  151. package/dist/assets/SpendManagementPerTabPage-DmCZhFWY-Dsjzi1bn.js +785 -0
  152. package/dist/assets/SpendManagementSection-mtTZeiX8-DB_R_dFU.js +246 -0
  153. package/dist/assets/StatementItem-C9KsTdoM-CvW9SwJx.js +31 -0
  154. package/dist/assets/{StatementsPage-DVR5LhTi-DHOF_kGv.js → StatementsPage-DgoXqABR-NsGiWIFr.js} +3 -3
  155. package/dist/assets/{StatusSwitcher-Cy5ITFgi-DfClkauU.js → StatusSwitcher-DRDFuzoj-DFWyQSIu.js} +2 -2
  156. package/dist/assets/{SubTabSwitcher-DhsES2OW-nu5P_Gvc.js → SubTabSwitcher-Bj1N3zLn-DocBm2NX.js} +3 -3
  157. package/dist/assets/{SummaryCard-Byv4Hw8Q-Ds0_iR1i.js → SummaryCard-BNrPt21W-z-I2nOL_.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-CVXMOPf2-CgC2myS1.js → TaskManagementPage-svW7FNT3-CdR83JXD.js} +27 -27
  159. package/dist/assets/{TimeRangeSwitcher-jct2_5PE-DXTaPGIR.js → TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js} +4 -4
  160. package/dist/assets/{TimeframeSwitcher-BK-qliOX-pY0R_NBB.js → TimeframeSwitcher-234cbGUX-GrV_gRdd.js} +6 -6
  161. package/dist/assets/TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js +31 -0
  162. package/dist/assets/{TopExCard-o4Q3ze1b-DR6eJ8e9.js → TopExCard-DFm0V6Sa-CuS6D-g2.js} +7 -7
  163. package/dist/assets/{TopExDetailPage-BsCwwwDi-DJiMrANo.js → TopExDetailPage-B4UamIS--DvTevd6J.js} +11 -11
  164. package/dist/assets/{TransactionDetailPage-rpCG65yC-Bjgwstuq.js → TransactionDetailPage-BiGPVM2O-BIqR8D1A.js} +23 -23
  165. package/dist/assets/{TransactionList-YI4oZaim-B4PaclMN.js → TransactionList-BQ2dvALf-DExPb7_Y.js} +15 -15
  166. package/dist/assets/{TransactionListBig-D_Jw9Ip2-41HgavBx.js → TransactionListBig-Ca4yYTqY-DpBtFr0L.js} +10 -10
  167. package/dist/assets/{TransactionListPage-B2yWm7eA-CMV1jv_5.js → TransactionListPage-CaSfmS5A-B8TNgEwP.js} +6 -6
  168. package/dist/assets/{TransactionVendorDetailPage-Dr5C4-7q-Cm81yKDA.js → TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js} +4 -4
  169. package/dist/assets/{TransferDrawerPage-BnEVH7Mc-B2zX-7pq.js → TransferDrawerPage-5IgzdfVN-CuTPVgyu.js} +41 -41
  170. package/dist/assets/{TreasuryOverviewPage-C927Rdkg-BGj7SLbV.js → TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js} +43 -43
  171. package/dist/assets/{TreasuryPromoPage-C6D3bF2f-DL7QfoJv.js → TreasuryPromoPage-DQabp_BI-lYWtZagK.js} +15 -15
  172. package/dist/assets/TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js +58 -0
  173. package/dist/assets/{TreasuryTaxLetterPage-BaHut8Wc-BpeKtJJK.js → TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js} +3 -3
  174. package/dist/assets/{TrendChart-BI4Tz813-BVtkP_eQ.js → TrendChart-DLlQzxzM-PPRPEN_l.js} +4 -4
  175. package/dist/assets/{TrendWithTransactions-BicIDSlC-BhfZg3hL.js → TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-sbn4Sdr2-Dw-5yHbf.js → UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js} +9 -9
  177. package/dist/assets/{UnitIntegrationPage-CZUyjeh5-B7QDgK2H.js → UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js} +10 -10
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-4AWDV_HK-Ctdwf8Wx.js → UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js} +8 -8
  179. package/dist/assets/{Vendor2FAPopup-C_PmEAQ7-CadPcPxw.js → Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js +1 -0
  181. package/dist/assets/{VendorDetailPage-CLFKkF8I-B0PZpYBG.js → VendorDetailPage-DcpigP-V-CLpuuI3V.js} +86 -86
  182. package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-CrWrhHZl-D1GTAKgZ.js → VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js} +17 -17
  184. package/dist/assets/{VendorFirstReviewPage-C6MnbIan-_m0cRQ-9.js → VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js} +61 -61
  185. package/dist/assets/{VendorInternationalWireDetailsPage-CzPRK4E2-Ckh47g1P.js → VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js} +20 -20
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-CVh1n81R-C8jXxowx.js → VendorsAccountsSection-V7IwNhkN-D-eiPu30.js} +4 -4
  188. package/dist/assets/{VerifyDevice-BHocExfO-CQoMm8_B.js → VerifyDevice-Dc3oeJbw-D5d8Wn7A.js} +7 -7
  189. package/dist/assets/{VideoPlayer-9rYRtSLf-DorCYgVw.js → VideoPlayer-XU1YwohK-BaDXYiVP.js} +2 -2
  190. package/dist/assets/{VideoPopup-D1o92dj6-BFu9IU_w.js → VideoPopup-BKLcIVcV-C8tsI7gn.js} +4 -4
  191. package/dist/assets/{WarningsDrawerPage-CzufXgaN-8Rujw8_E.js → WarningsDrawerPage-DE6hNSem-DTjl6BDC.js} +3 -3
  192. package/dist/assets/{ZeniAccountDetailPage-ZZ3Ra-Jf-ja4-g4BS.js → ZeniAccountDetailPage-B3txxml4-BrnXOri_.js} +38 -38
  193. package/dist/assets/{ZeniAccountListViewPage-Cxid0mfh-BNP6ZrXZ.js → ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js} +17 -17
  194. package/dist/assets/ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js +14 -0
  195. package/dist/assets/{ZeniAccountPromoPage-YIYFkPIB-CovivIFX.js → ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js} +20 -20
  196. package/dist/assets/{ZeniAccountSetupPage-BJ9UJ0dP--LIFFq5Z.js → ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-CztmWsFm-CzCquhez.js → ZeniCopyright-DqbjGQWk-D3uyyuTN.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-g9qU5Lsq-DAA0oX-0.js → ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js} +7 -7
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-DvDDqNhd.js → add-to-wallet-DgdBD8_G-CF63trjm.js} +1 -1
  200. package/dist/assets/{analytics-C6WkxZh-.js → analytics-D0z7Cz17.js} +1 -1
  201. package/dist/assets/{analyticsHelper-D4lKCWjQ-b64x3LOr.js → analyticsHelper-C2PAija--B2XRbUD9.js} +1 -1
  202. package/dist/assets/{analyticsHelper-B5Md2Ia4.js → analyticsHelper-D1UvETVa.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-XMkCQvrE.js → arrow-south-east-round-PEovUgvH-Cun1Cxd1.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-BiYANkgv.js → auto-transfer-rule-mbafm5D3-DPk-N0wE.js} +1 -1
  205. package/dist/assets/{chartTypes-BPPSjkhb-DfkSlGWK.js → chartTypes-B9jQTJLQ-B-uICCus.js} +1 -1
  206. package/dist/assets/{commonDimensions-Ds75pRzR-qK02JKN8.js → commonDimensions-BgvFMAEM-jw0M4GDE.js} +1 -1
  207. package/dist/assets/commonTypes-PtDfk70--ByVvU-Tm.js +1 -0
  208. package/dist/assets/{constants-Dg6mQQY6.js → constants-DleDZ7Hr.js} +1 -1
  209. package/dist/assets/{core-DFStV9qP.js → core-9PMMelIA.js} +2 -2
  210. package/dist/assets/{dash.all.min-CLeZourL.js → dash.all.min-ClWxXI22.js} +1 -1
  211. package/dist/assets/{detailCommon-DdZdfmYT-DoufCRKP.js → detailCommon-BjRXEZFj-BMuJy_GS.js} +7 -7
  212. package/dist/assets/downloadPdf-ZSABdzxr-CSS_LmUU.js +1 -0
  213. package/dist/assets/empty-Bp9uyDV_.js +1 -0
  214. package/dist/assets/{empty-9jBwo3Eu.js → empty-D5Zf29Ub.js} +1 -1
  215. package/dist/assets/epic-Di7g1fbQ.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-Djk98QZj.js → gift-box-Cmt9OgIZ-m0hJlqL5.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CA5oC_0o.js → graphic-no-data-l-DU4J8fDt-cg6FAACa.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-kLBr7Ui4.js → graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-Cwp-V32J.js → handshake-BPg58FML-DFhtOw8z.js} +1 -1
  220. package/dist/assets/{index-DgdXFOf1.js → index-0WIxY_w_.js} +1 -1
  221. package/dist/assets/{index-P2rRhQWC.js → index-4hZvJwkO.js} +1 -1
  222. package/dist/assets/{index-C3P63Yp1.js → index-BLOmj_st.js} +1 -1
  223. package/dist/assets/{index-DdzfMgPc.js → index-Bs2B-MQ4.js} +4506 -4494
  224. package/dist/assets/{empty-CEQRbPFC.js → index-CbXRL6aP.js} +1 -1
  225. package/dist/assets/index-DNxMom6d.js +1 -0
  226. package/dist/assets/{index-CtuhYobB.js → index-DW6fMwk4.js} +1 -1
  227. package/dist/assets/{lexical-CQ0YMwSG.js → lexical-CaQwXIc3.js} +1 -1
  228. package/dist/assets/{liveblocks-BrQ1Hhfc.js → liveblocks-48Yy2aTy.js} +1 -1
  229. package/dist/assets/{lottie-yOsTwyri.js → lottie-ChwWMuYN.js} +2 -2
  230. package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-rrJBbsC8-CY-Jyp2B.js → mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js} +1 -1
  232. package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js +1 -0
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-DfQk4Tsr-BK6yxwiQ.js → mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js} +1 -1
  235. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-Cnh-OfFC.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js} +1 -1
  236. package/dist/assets/{mui-Devhk6Tb.js → mui-snKYaegN.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-CTiRqVQh.js → page-detail-CWX5S47F-D1nl1r9M.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-BGwvJOK8.js → radio-default-CiSgisfh-BY9nqKUM.js} +1 -1
  239. package/dist/assets/{react-UFtPnYI9.js → react-B2deW7HO.js} +1 -1
  240. package/dist/assets/{react-CAf7PCqE.js → react-BNn_K56n.js} +2 -2
  241. package/dist/assets/{react-CNZm8YNK.js → react-BddMC_36.js} +3 -3
  242. package/dist/assets/{react-7me0BeHj.js → react-BpEW9tPq.js} +2 -2
  243. package/dist/assets/{react-C2jhEcBa.js → react-C-MrqhIX.js} +2 -2
  244. package/dist/assets/{react-CNkOjGwN.js → react-CiQEdtzT.js} +2 -2
  245. package/dist/assets/{react-B8jCYQVB.js → react-DHTHtXgj.js} +1 -1
  246. package/dist/assets/{react-B4Cq_X0j.js → react-o70ZlKb0.js} +1 -1
  247. package/dist/assets/{recharts-D6gmV5h7.js → recharts-DGmpNqLb.js} +1 -1
  248. package/dist/assets/{sentry-BYtPx_05.js → sentry-gm2R3TtK.js} +2 -2
  249. package/dist/assets/{shield-DOlUxcFf-BUsdj7SJ.js → shield-DOlUxcFf-DNx-Nq5U.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js +1 -0
  251. package/dist/assets/toChartData-CVxc3i6E-Jb1kbIeZ.js +1 -0
  252. package/dist/assets/{uploadAttachment-B4ddYCCL-DUjElXv9.js → uploadAttachment-CBATb9_e-Bf8RMkbX.js} +22 -22
  253. package/dist/assets/{uploadReceipts-CPw64UYa-T5kQYzUC.js → uploadReceipts-CPw64UYa-DwtdWb2a.js} +1 -1
  254. package/dist/assets/{url-BcKUlxMH.js → url-B3spPAaB.js} +1 -1
  255. package/dist/assets/{url-Dy-JIJ5C.js → url-CsktLD4A.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-BZv7k2wH.js → useLongPress-GCK2COYQ-5GfLl0ml.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-DsAV2C4t.js → usp-line-BBd1wKwW-DO5-Shw0.js} +1 -1
  258. package/dist/assets/{utils-CiFud5zD.js → utils-C7Aiy3iw.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-BS68m2Ti.js → zeni-epic-state-D2RxwWrl.js} +32 -32
  260. package/dist/index.html +1 -1
  261. package/package.json +4 -4
  262. package/dist/assets/ACHDetailsPage-BRWOdhMx-fSodlmR4.js +0 -21
  263. package/dist/assets/AccountInfoPage-Ca_vKG58-DKAB6kye.js +0 -18
  264. package/dist/assets/AccountLockedInfoModal-CEk5d9hq-DQoTSuMO.js +0 -59
  265. package/dist/assets/AddAddressForCardDrawer-DfOyebHX-ZcBxLWpM.js +0 -6
  266. package/dist/assets/ApAgingDetailPage-Duu2uAEr-DCWI3rP1.js +0 -46
  267. package/dist/assets/ArAgingDetailPage-CaOr6vAU-T_qmvtc7.js +0 -46
  268. package/dist/assets/BillDetailPage-BG7FhHEq-DgdLQJXk.js +0 -266
  269. package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-DZt2zDSO.js +0 -27
  270. package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-Bpqkkm7a.js +0 -235
  271. package/dist/assets/BillPayPromoPage-aGKOv8Ur-snTalGsv.js +0 -84
  272. package/dist/assets/BillingSettingsPage-CdYb74V7-CGniLxwH.js +0 -44
  273. package/dist/assets/BusinessVerificationPage-CbqJIVpz-TRnbDlZp.js +0 -138
  274. package/dist/assets/CardNumberSubText-DBOH0_yP-nGSxEDDC.js +0 -21
  275. package/dist/assets/ChargeCardListPage-130ILwkr-DO0DCEVX.js +0 -412
  276. package/dist/assets/CompanyOfficerDetailsSection-BtUBatbQ-DjcUjadU.js +0 -260
  277. package/dist/assets/CompanyPassportPage-DzE7sm8S-DHWy2d-d.js +0 -574
  278. package/dist/assets/ConfettiBurst-1rYKpbAj-bfvy4BJ7.js +0 -1
  279. package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-BkMZmvTc.js +0 -224
  280. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-CgOg7i1W.js +0 -1
  281. package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-CV9KPIGe.js +0 -66
  282. package/dist/assets/CustomerOnboardingPage-CvN9Jrdy-DISfDtfc.js +0 -107
  283. package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-D9uw7Mrh.js +0 -202
  284. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-Bj8vx2zR.js +0 -12
  285. package/dist/assets/EditPeoplePage-DJthuIP4-amr9j6iP.js +0 -55
  286. package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-BbU-vxcX.js +0 -865
  287. package/dist/assets/InsightsSection-BTXj5WUe-CzCubRrB.js +0 -27
  288. package/dist/assets/InternationalWireVerificationPage-kIajgPZt-C8IlkAsB.js +0 -292
  289. package/dist/assets/InvitePeoplePage-DrBtwpMH-CJWepZyO.js +0 -12
  290. package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-DEyh_yS4.js +0 -16
  291. package/dist/assets/LabeledDocumentField-C73vQNgq-hhNLfVRz.js +0 -41
  292. package/dist/assets/LinkJETransactionPage-C0onrP5t-CYP8n31W.js +0 -98
  293. package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-BU8gtw8v.js +0 -1
  294. package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-O4D-8jQh.js +0 -1
  295. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-BR3YxXzI.js +0 -1
  296. package/dist/assets/NoDataTable-BMD2qygC-DZ5BMLqA.js +0 -8
  297. package/dist/assets/PandLWithForecastPage-Bu49FbWD-DWkP0oIc.js +0 -107
  298. package/dist/assets/PaymentAccountSetupBillingAddressSection-s9EEHxoG-Swyfjnb9.js +0 -107
  299. package/dist/assets/Preview-CGBhDGn-.js +0 -1
  300. package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-X2PdT28i.js +0 -26
  301. package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-D6zSjgss.js +0 -237
  302. package/dist/assets/ReimbursementDetailPage-DatcF8rt-DK6auGYU.js +0 -314
  303. package/dist/assets/RoleWithToolTip-aW95rpRe-4o8KGg0K.js +0 -22
  304. package/dist/assets/ScreenRoutes-CMa_inP7.js +0 -201
  305. package/dist/assets/SignIn-DQBJB5ad-5TppkfEI.js +0 -448
  306. package/dist/assets/SignInScreen-CB7iPhmk.js +0 -1
  307. package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-CwcSf65Z.js +0 -123
  308. package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-M6VBym3A.js +0 -754
  309. package/dist/assets/SpendManagementSection-Ci2yOCJ9-DvSGNHqF.js +0 -230
  310. package/dist/assets/StatementItem-hcBoe79o-MmMeHEym.js +0 -31
  311. package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-DqkCETLP.js +0 -31
  312. package/dist/assets/TreasuryStatementsPage-BE54gWl6-alij2cZC.js +0 -58
  313. package/dist/assets/VendorACHDetailsPage-DMMoCytX-B_qj6P0I.js +0 -1
  314. package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-wB8VEV-U.js +0 -1
  315. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-FJgStf2K.js +0 -1
  316. package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-OfECKHdR.js +0 -14
  317. package/dist/assets/downloadPdf-B8UMaJCC-CC380COH.js +0 -1
  318. package/dist/assets/epic-BqMCK6Zx.js +0 -2
  319. package/dist/assets/index-BGUgNcG-.js +0 -1
  320. package/dist/assets/index-CB17y4TJ.js +0 -1
  321. package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-CuppdKzn.js +0 -1
  322. package/dist/assets/mapSpacerToTreeNode-CWvamMX2-zHsuX5ey.js +0 -1
  323. package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-BrwzQ7vE.js +0 -1
  324. package/dist/assets/toCOABalancesWithID-CkjRB0sJ-B35DCO9-.js +0 -1
  325. package/dist/assets/toChartData-CMi2WgAy-CJfFuyki.js +0 -1
  326. package/dist/assets/transaction-placeholder-CpOwZAMG-BcdIvtER.js +0 -1
@@ -1,31 +1,31 @@
1
- import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-DdzfMgPc.js";import{a as Z}from"./sentry-BYtPx_05.js";import{n as a}from"./mui-Devhk6Tb.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-BS68m2Ti.js";import{t as rn,o as dn}from"./LowBalancePopup-Dd9HLWlh-BitR3QKH.js";import{S as W}from"./LabeledText-yhm8qxrA-Ckmd_Iex.js";import"./liveblocks-BrQ1Hhfc.js";import"./core-DFStV9qP.js";import"./recharts-D6gmV5h7.js";import"./lottie-yOsTwyri.js";import"./analytics-C6WkxZh-.js";import"./lexical-CQ0YMwSG.js";import"./utils-CiFud5zD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="90598be2-0c2e-4efa-9896-bdb91bc40e32",e._sentryDebugIdIdentifier="sentry-dbid-90598be2-0c2e-4efa-9896-bdb91bc40e32")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
1
+ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ag as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-Bs2B-MQ4.js";import{a as q}from"./sentry-gm2R3TtK.js";import{n as i}from"./mui-snKYaegN.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-D2RxwWrl.js";import{t as rn,o as dn}from"./LowBalancePopup-BJfagMN7-DFWlKz1e.js";import{S as _}from"./LabeledText-D7eLbH80-Bs-kfAE-.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="8e19c2ac-0b65-4fb4-bd14-f50891b5146f",e._sentryDebugIdIdentifier="sentry-dbid-8e19c2ac-0b65-4fb4-bd14-f50891b5146f")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,f]=q.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,V=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,V,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,Y]=q.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(We,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(We,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,qe=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
5
5
  &:hover {
6
6
  color: ${e=>e.theme.colors.primary};
7
7
  }
8
- `,Ve=a(tt)`
8
+ `,We=i(tt)`
9
9
  display: flex;
10
10
  justify-content: space-between;
11
11
  padding-bottom: ${n.sp1};
12
- `,re=a.div`
12
+ `,re=i.div`
13
13
  color: ${e=>e.theme.colors.brandColorPearl};
14
- `,de=a.div`
14
+ `,de=i.div`
15
15
  color: ${e=>e.theme.colors.hero};
16
- `,un=a(tt)`
16
+ `,un=i(tt)`
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  padding-top: ${n.sp1};
20
- `,yn=a.div``,hn=a.div`
20
+ `,yn=i.div``,hn=i.div`
21
21
  background-color: ${S.neutralGrey3Dark};
22
22
  height: 1px;
23
23
  width: 280px;
24
- `,fn=a.div``,gn=a.div`
24
+ `,fn=i.div``,gn=i.div`
25
25
  display: flex;
26
26
  width: 100%;
27
27
  box-sizing: border-box;
28
- `,xn=a.div`
28
+ `,xn=i.div`
29
29
  width: 100%;
30
30
  padding: ${n.sp3};
31
31
  display: flex;
@@ -36,30 +36,30 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
36
36
  border-radius: ${n.sp2};
37
37
  color: ${e=>e.theme.colors.hero};
38
38
  margin-bottom: ${n.sp2};
39
- `,bn=a(et)`
39
+ `,bn=i(et)`
40
40
  gap: ${n.sp1};
41
41
  display: flex;
42
42
  width: 100%;
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  align-items: center;
45
- `,wn=a(et)`
45
+ `,wn=i(et)`
46
46
  display: flex;
47
47
  width: calc(100% - 176px);
48
48
  justify-content: flex-end;
49
49
  color: ${e=>e.theme.colors.primary};
50
- `,$n=a.div`
50
+ `,$n=i.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  width: 100%;
54
54
  height: 100%;
55
- `,vn=a.div`
55
+ `,vn=i.div`
56
56
  display: flex;
57
57
  flex-grow: 1;
58
58
  flex-direction: column;
59
59
  margin-left: ${e=>m.reviewContainerMarginLeft.valuePx(e.windowSize)};
60
60
  margin-right: ${e=>m.reviewContainerMarginRight.valuePx(e.windowSize)};
61
61
  padding-top: ${n.sp3};
62
- `,jn=a.div`
62
+ `,jn=i.div`
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  background-color: ${e=>e.theme.colors.grey5};
@@ -68,21 +68,21 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
68
68
  border-radius: ${n.sp2};
69
69
  margin-bottom: ${n.sp3};
70
70
  margin-top: ${n.sp3};
71
- `,U=a.div`
71
+ `,K=i.div`
72
72
  display: flex;
73
73
  flex: 1;
74
74
  background-color: ${e=>e.theme.colors.grey3};
75
75
  min-height: 1px;
76
76
  max-height: 1px;
77
- `,Ye=a(Yt)`
77
+ `,Ge=i(Gt)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  ${e=>`${sn.sectionTitle.style(e.windowSize)}`};
80
80
  margin-left: ${e=>m.sectionTitleMarginLeft.valuePx(e.windowSize)};
81
- `,Sn=a.div`
81
+ `,Sn=i.div`
82
82
  display: flex;
83
83
  margin-bottom: ${n.sp3};
84
84
  margin-top: ${n.sp3};
85
- `,Tn=a.div`
85
+ `,Tn=i.div`
86
86
  display: flex;
87
87
  flex-direction: column;
88
88
  border-radius: ${n.sp2};
@@ -90,46 +90,46 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
90
90
  background-color: ${e=>e.theme.colors.grey5};
91
91
  border: 1px solid ${e=>e.theme.colors.grey3};
92
92
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
93
- `,Cn=a.div`
93
+ `,Cn=i.div`
94
94
  background-color: ${S.alertLight};
95
95
  border-radius: ${n.sp2};
96
96
  width: 100%;
97
97
  display: flex;
98
- `,Dn=a.div`
98
+ `,Dn=i.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  padding-left: ${n.sp2};
102
- `,In=a(se)`
102
+ `,In=i(se)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${S.brandColorGoldDark};
105
- `,Pn=a(Gt)`
105
+ `,Pn=i(Yt)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${S.brandColorGoldDark};
108
- `,qe=a.div`
108
+ `,Ve=i.div`
109
109
  display: flex;
110
110
  flex-direction: ${e=>nt.includes(e.windowSize)?"column":"row"};
111
111
  width: 100%;
112
- `,kn=a.div`
112
+ `,kn=i.div`
113
113
  display: flex;
114
114
  justify-content: space-between;
115
115
  align-items: center;
116
116
  column-gap: ${n.sp1};
117
- `,Mn=a.div`
117
+ `,An=i.div`
118
118
  display: flex;
119
119
  column-gap: ${n.sp2};
120
120
  align-items: center;
121
- `,An=a.div`
121
+ `,Mn=i.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,Ge=a(Qt)`
124
+ `,Ye=i(Jt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,He=a(Jt)`
128
+ `,He=i(Qt)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
132
- `,Ue=a(Zt)`
132
+ `,Ke=i(qt)`
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.hero};
135
135
  width: 20px;
@@ -137,9 +137,9 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
137
137
  &:hover {
138
138
  color: ${e=>e.theme.colors.primary};
139
139
  }
140
- `,Bn=a.div`
140
+ `,Bn=i.div`
141
141
  margin-bottom: ${n.sp3};
142
- `,Fn=a.div`
142
+ `,Fn=i.div`
143
143
  display: flex;
144
144
  align-items: center;
145
145
  margin-right: ${e=>e.showAutofill===!0?n.sp8:"unset"};
@@ -152,23 +152,23 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
152
152
  padding-left: ${n.sp0};
153
153
  z-index: 2;
154
154
  background-color: ${e=>e.theme.colors.grey4};
155
- `,Rn=a(Wt)`
155
+ `,Rn=i(_t)`
156
156
  height: ${n.sp3};
157
157
  width: ${n.sp3};
158
158
  color: ${e=>e.theme.colors.hero};
159
- `,Ln=a.span`
159
+ `,Ln=i.span`
160
160
  display: flex;
161
161
  align-items: center;
162
162
  margin-left: ${n.sp2};
163
163
  margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.size)};
164
164
  align-self: ${e=>e.size==="small"?"baseline":"center"};
165
- `,zn=a(ce)`
165
+ `,zn=i(ce)`
166
166
  color: ${e=>e.theme.colors.grey1};
167
167
  display: flex;
168
168
  flex-wrap: wrap;
169
169
  justify-content: center;
170
170
  align-items: center;
171
- `,Nn=a.a`
171
+ `,Nn=i.a`
172
172
  color: ${e=>e.theme.colors.grey1};
173
173
  text-decoration: underline;
174
174
  margin-right: ${n.sp1};
@@ -176,7 +176,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
176
176
  &:hover {
177
177
  color: ${e=>e.theme.colors.primary};
178
178
  }
179
- `,On=a.div`
179
+ `,On=i.div`
180
180
  cursor: ${e=>e.isDisabled?"default":"pointer"};
181
181
  display: flex;
182
182
  flex-direction: row;
@@ -189,49 +189,49 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
189
189
  color: ${e=>e.isDisabled?e.theme.colors.hero:e.theme.colors.primary};
190
190
  }
191
191
  }
192
- `,En=a.div`
192
+ `,En=i.div`
193
193
  width: ${n.sp4};
194
194
  height: ${n.sp4};
195
195
  display: flex;
196
- `,Ke=a.div`
196
+ `,Ue=i.div`
197
197
  cursor: default;
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,Qe=a(Kt)`
201
+ `,Je=i(Ut)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
205
205
  color: ${e=>e.theme.colors.hero};
206
- `,K=a(se)`
206
+ `,U=i(se)`
207
207
  display: flex;
208
208
  color: ${e=>e.theme.colors.hero};
209
209
  align-items: center;
210
210
  min-width: 142px;
211
211
  flex-grow: 1;
212
- `,Je=a(se)`
212
+ `,Qe=i(se)`
213
213
  display: flex;
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  align-items: center;
216
216
  margin-right: ${e=>m.infoMarginRight.valuePx(e.windowSize)};
217
217
  min-width: ${e=>m.infoMinWidth.valuePx(e.windowSize)};
218
218
  justify-content: flex-end;
219
- `,_n=a.div`
219
+ `,Zn=i.div`
220
220
  display: flex;
221
221
  cursor: pointer;
222
222
  column-gap: ${n.sp1};
223
223
  margin-left: ${n.sp5};
224
- `,Xe=a.div`
224
+ `,Xe=i.div`
225
225
  width: 120px;
226
226
  display: flex;
227
227
  justify-content: flex-end;
228
228
  align-items: center;
229
- `,Wn=a.div`
229
+ `,_n=i.div`
230
230
  display: flex;
231
231
  flex-grow: 1;
232
232
  cursor: pointer;
233
233
  width: 100%;
234
- `,Q=a(ce)`
234
+ `,J=i(ce)`
235
235
  display: flex;
236
236
  color: ${e=>e.borderColor};
237
237
  height: 20px;
@@ -247,31 +247,31 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
247
247
  padding: 1px 6px;
248
248
  border: ${e=>`1px solid ${e.borderColor}`};
249
249
  border-radius: ${n.sp1};
250
- `,Zn=a.div`
250
+ `,qn=i.div`
251
251
  display: flex;
252
252
  flex-direction: column;
253
- `,Vn=a.div`
253
+ `,Wn=i.div`
254
254
  display: flex;
255
255
  width: 100%;
256
256
  flex-flow: column;
257
257
  padding-top: ${n.sp2};
258
258
  padding-bottom: ${n.sp2};
259
259
  border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
260
- `,Yn=a(ce)`
260
+ `,Gn=i(ce)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${S.alert};
263
- `,qn=a(qt)`
263
+ `,Vn=i(Vt)`
264
264
  min-width: ${n.sp4};
265
265
  height: ${n.sp4};
266
266
  width: ${n.sp4};
267
267
  margin-top: ${n.sp3};
268
268
  margin-left: ${n.sp4};
269
269
  color: ${S.brandColorGoldDark};
270
- `,Gn=a.div`
270
+ `,Yn=i.div`
271
271
  display: flex;
272
272
  justify-content: flex-end;
273
273
  margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
274
- `,Hn=a(tn)`
274
+ `,Hn=i(tn)`
275
275
  cursor: pointer;
276
276
  color: ${e=>e.theme.colors.hero};
277
277
  width: ${n.sp4};
@@ -279,7 +279,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
279
279
  &:hover {
280
280
  color: ${e=>e.theme.colors.primary};
281
281
  }
282
- `,Un=a.div`
282
+ `,Kn=i.div`
283
283
  display: flex;
284
284
  cursor: pointer;
285
285
  color: ${e=>e.theme.colors.grey1};
@@ -287,4 +287,4 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
287
287
  &:hover {
288
288
  color: ${e=>e.theme.colors.primary};
289
289
  }
290
- `;export{sa as default};
290
+ `;export{si as default};
@@ -1,33 +1,33 @@
1
- import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-DdzfMgPc.js";import{n as t}from"./mui-Devhk6Tb.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]="f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53",e._sentryDebugIdIdentifier="sentry-dbid-f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:k},onCloseOverlay:E,onCloseReviewItem:M})=>{const a=B();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:E,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:a,children:[i.jsxs(J,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!k}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
1
+ import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,ai as b,bg as D,c as n,ef as G,u as _,iU as q,k4 as A}from"./index-Bs2B-MQ4.js";import{n as t}from"./mui-snKYaegN.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]="7c9aacd4-4710-436f-8018-53a351ae0622",e._sentryDebugIdIdentifier="sentry-dbid-7c9aacd4-4710-436f-8018-53a351ae0622")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=L();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(U,{windowSize:a,children:e})}),i.jsx(K,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(M,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
5
- `,H=t.div`
5
+ `,J=t.div`
6
6
  min-height: 100vh;
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  margin-top: ${e=>l.containerMarginTop.valuePx(e.windowSize)};
10
10
  margin-bottom: ${r.sp8};
11
- `,J=t.div`
11
+ `,N=t.div`
12
12
  position: sticky;
13
13
  top: ${r.sp0};
14
14
  background-color: ${e=>e.theme.colors.grey4};
15
15
  z-index: 1;
16
16
  padding-left: ${e=>l.containerMarginLeft.valuePx(e.windowSize)};
17
17
  padding-right: ${e=>l.containerMarginRight.valuePx(e.windowSize)};
18
- `,K=t.div`
18
+ `,O=t.div`
19
19
  display: flex;
20
20
  align-items: center;
21
- `,N=t(I)`
21
+ `,U=t(W)`
22
22
  ${e=>`${F.title.style(e.windowSize)}`};
23
23
  color: ${e=>e.theme.colors.primary};
24
24
  margin-top: ${r.sp2};
25
25
  margin-bottom: ${e=>l.titleMarginBotom.valuePx(e.windowSize)};
26
26
  margin-right: ${e=>l.titleMarginRight.valuePx(e.windowSize)};
27
- `,Q=t(j)`
27
+ `,K=t(j)`
28
28
  margin-bottom: ${e=>l.subTitleMarginBottom.valuePx(e.windowSize)};
29
29
  color: ${e=>e.isError?s.important:e.theme.colors.hero};
30
- `,U=t.div`
30
+ `,Q=t.div`
31
31
  display: flex;
32
32
  flex-direction: column;
33
33
  margin-top: ${r.sp3};
@@ -59,7 +59,7 @@ import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,a
59
59
  display: flex;
60
60
  flex: 1 1 0;
61
61
  justify-content: flex-end;
62
- `,ie=t(P)`
62
+ `,ie=t(B)`
63
63
  width: ${r.sp4};
64
64
  height: ${r.sp4};
65
65
  cursor: pointer;
@@ -120,7 +120,7 @@ import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,a
120
120
  `,de=t.div`
121
121
  margin-top: 2px;
122
122
  display: flex;
123
- `,ce=t(W)`
123
+ `,ce=t(C)`
124
124
  cursor: pointer;
125
125
  color: ${e=>e.theme.colors.hero};
126
126
  &:hover {
@@ -0,0 +1,22 @@
1
+ import{eM as h,eN as b,V as s,bR as f,o as d,aN as l,F as g,an as x,ai as c}from"./index-Bs2B-MQ4.js";import{n}from"./mui-snKYaegN.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]="61eb3be2-80a0-452c-8aed-e8bcb86512f6",e._sentryDebugIdIdentifier="sentry-dbid-61eb3be2-80a0-452c-8aed-e8bcb86512f6")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,y=n.div``,m=n.div`
2
+ display: flex;
3
+ min-width: 192px;
4
+ justify-content: space-between;
5
+ `,u=n(c)`
6
+ color: ${e=>e.theme.colors.hero};
7
+ `,j=n(c)`
8
+ color: ${e=>e.theme.colors.brandColorPearl};
9
+ `,a=n.div`
10
+ display: flex;
11
+ align-items: center;
12
+ `,w=n(x)`
13
+ border-radius: ${d.sp12};
14
+ border: 1px solid ${e=>e.theme.colors.grey1};
15
+ display: flex;
16
+ height: 18px;
17
+ width: 18px;
18
+ align-items: center;
19
+ justify-content: center;
20
+ color: 1px solid ${e=>e.theme.colors.grey1};
21
+ margin-left: ${d.sp1};
22
+ `,I=({roles:e})=>{let t=i,r=[];t=h(e),r=b(e);const p=()=>r.length>0?s.jsx(y,{children:r.map(o=>s.jsxs(m,{children:[s.jsx(u,{children:o[0]}),s.jsx(j,{children:o[1]})]},o.join(",")))}):s.jsx(s.Fragment,{children:i});return r.length>0?s.jsx(f,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:p(),placement:"top-end",style:{marginLeft:d.sp1,padding:"6px 12px"},maxWidth:"264px",children:s.jsxs(a,{"data-testid":l("roles-label-wrapper",t),children:[t,s.jsx(w,{className:"roles-count-wrapper","data-testid":l("roles-count-wrapper",t),children:r.length})]})}):s.jsx(a,{"data-testid":l("roles-label-wrapper",t),children:t})};export{I as T};
@@ -1,37 +1,37 @@
1
- import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as ge,a9 as he,il as me,im as Ue,cO as ze,q as $e,iB as Ge,gG as re,c as R,p as Se,y as De,cE as Ke,io as He,ip as Qe,iq as Ye,o as _}from"./index-DdzfMgPc.js";import{a as f}from"./sentry-BYtPx_05.js";import{n as U}from"./mui-Devhk6Tb.js";import{FT as Ze,FU as Xe}from"./zeni-epic-state-BS68m2Ti.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-Dd4Ep_c0-DWb3vxk3.js";import"./liveblocks-BrQ1Hhfc.js";import"./core-DFStV9qP.js";import"./recharts-D6gmV5h7.js";import"./lottie-yOsTwyri.js";import"./analytics-C6WkxZh-.js";import"./lexical-CQ0YMwSG.js";import"./utils-CiFud5zD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="af7faad5-06d3-43ed-9772-0f6c9c61c07c",e._sentryDebugIdIdentifier="sentry-dbid-af7faad5-06d3-43ed-9772-0f6c9c61c07c")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
1
+ import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as Ce,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-Bs2B-MQ4.js";import{a as f}from"./sentry-gm2R3TtK.js";import{n as z}from"./mui-snKYaegN.js";import{F_ as Ze,F$ as Xe}from"./zeni-epic-state-D2RxwWrl.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bb721430-83a7-4c7d-a85f-8417f71a016a",e._sentryDebugIdIdentifier="sentry-dbid-bb721430-83a7-4c7d-a85f-8417f71a016a")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
5
5
  background-color: ${e=>e.theme.colors.grey5};
6
6
  border: 1px solid ${e=>e.theme.colors.grey3};
7
7
 
8
- border-top-left-radius: ${_.sp2};
9
- border-top-right-radius: ${_.sp2};
10
- border-bottom-left-radius: ${_.sp0};
11
- border-bottom-right-radius: ${_.sp0};
12
- `,H=U.div`
8
+ border-top-left-radius: ${V.sp2};
9
+ border-top-right-radius: ${V.sp2};
10
+ border-bottom-left-radius: ${V.sp0};
11
+ border-bottom-right-radius: ${V.sp0};
12
+ `,H=z.div`
13
13
  display: flex;
14
14
  flex: 1;
15
15
  background-color: ${e=>e.theme.colors.grey3};
16
16
  min-height: 1px;
17
- `,ot=U.div`
17
+ `,ot=z.div`
18
18
  display: flex;
19
19
  flex-direction: column;
20
- margin: ${_.sp4} ${_.sp8} ${_.sp0} ${_.sp8};
21
- `,V=(e,n)=>`${e}.${n}`;function nt({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:g,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:I,selectedClass:F,selectedAccumulatedDepreciationCategory:P,assetId:w,selectedDate:L,selectedMonths:T,selectedPostingDay:E,lastDayOfMonth:O,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Y}){const{resetField:S}=ze(),se=V(e,"scheduleExpenseCategory"),oe=V(e,"scheduleClass"),ne=V(e,"accumulatedDepreciationCategory"),de=V(e,"assetId"),Z=V(e,"startDate"),D=V(e,"postingDate"),r=V(e,"months"),t=ge.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,b=o=>s.filter(N=>N.qboId===o)[0]?.qboId,x=o=>p.filter(N=>N.qboId===o)[0]?.qboId,ie=o=>u.filter(N=>N.classId===o)[0]?.accountingClassNumber,Q={valueContainer:o=>({...o,overflow:"unset"})},j=$e(),z=Ge({startDate:n.baseTransaction.date,endDate:n.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=E==null&&O==null?void 0:O===!0?"lastDayOfMonth":"day",B=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{n.jeScheduleId!=null&&ae(n.jeScheduleId)},y=n.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(ot,{children:[a.jsx(lt,{status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:m==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(he,{controller:J===!0,children:a.jsxs(st,{children:[a.jsx(re,{isDisabled:y.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:W.labelWidth.value(j)},groupedSingleSelectField:{customPlaceholderColor:y.includes("debit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:I,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:B,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:t.class,width:W.labelWidth.value(j)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:t.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:F,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:y.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(j)},groupedSingleSelectField:{customPlaceholderColor:y.includes("credit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:P,allOptions:g},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:B,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(Ke,{label:{label:t.assetId,width:W.labelWidth.value(j)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:w,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(He,{label:{label:t.startMonth,width:W.labelWidth.value(j)},monthSelectorField:{name:Z,placeholder:t.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:h,monthsAndYears:z},isDisabled:h}),a.jsx(H,{}),a.jsx(at,{label:{label:t.postingDate,width:W.labelWidth.value(j)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Qe,{label:{label:t.months,width:W.labelWidth.value(j)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:T!=null?v[T-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Ye,{text:t.scheduleMarkedAsCompleted})})]})}const dt=U.div`
20
+ margin: ${V.sp4} ${V.sp8} ${V.sp0} ${V.sp8};
21
+ `,_=(e,n)=>`${e}.${n}`;function nt({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:C,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:T,selectedClass:F,selectedAccumulatedDepreciationCategory:P,assetId:w,selectedDate:L,selectedMonths:I,selectedPostingDay:E,lastDayOfMonth:j,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Y}){const{resetField:S}=Ue(),se=_(e,"scheduleExpenseCategory"),oe=_(e,"scheduleClass"),ne=_(e,"accumulatedDepreciationCategory"),de=_(e,"assetId"),Z=_(e,"startDate"),D=_(e,"postingDate"),r=_(e,"months"),t=Ce.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,b=o=>s.filter(N=>N.qboId===o)[0]?.qboId,x=o=>p.filter(N=>N.qboId===o)[0]?.qboId,ie=o=>u.filter(N=>N.classId===o)[0]?.accountingClassNumber,Q={valueContainer:o=>({...o,overflow:"unset"})},O=$e(),U=Ge({startDate:n.baseTransaction.date,endDate:n.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=E==null&&j==null?void 0:j===!0?"lastDayOfMonth":"day",q=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{n.jeScheduleId!=null&&ae(n.jeScheduleId)},g=n.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(ot,{children:[a.jsx(lt,{status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:m==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(he,{controller:J===!0,children:a.jsxs(st,{children:[a.jsx(re,{isDisabled:g.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:W.labelWidth.value(O)},groupedSingleSelectField:{customPlaceholderColor:g.includes("debit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:T,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:q,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:t.class,width:W.labelWidth.value(O)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:t.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:F,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:g.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(O)},groupedSingleSelectField:{customPlaceholderColor:g.includes("credit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:P,allOptions:C},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:q,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(Ke,{label:{label:t.assetId,width:W.labelWidth.value(O)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:w,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(He,{label:{label:t.startMonth,width:W.labelWidth.value(O)},monthSelectorField:{name:Z,placeholder:t.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:h,monthsAndYears:U},isDisabled:h}),a.jsx(H,{}),a.jsx(at,{label:{label:t.postingDate,width:W.labelWidth.value(O)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Qe,{label:{label:t.months,width:W.labelWidth.value(O)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:I!=null?v[I-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Ye,{text:t.scheduleMarkedAsCompleted})})]})}const dt=z.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
25
25
  height: 100%;
26
26
  min-height: 100vh;
27
27
  background-color: ${e=>e.theme.colors.grey4};
28
- `,it=U.div`
28
+ `,it=z.div`
29
29
  display: flex;
30
30
  z-index: 2;
31
- `,ct=U.div`
31
+ `,ct=z.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
- `,rt=U.div`
34
+ `,rt=z.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,ye="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",ut=ge.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function It({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:g,onJELinkClick:v,onSave:k,onDelete:I,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:w,onMarkAsComplete:L,removeJeScheduleTransactionKey:T}){const[E,O]=f.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[ae,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,se=K(S.jeScheduleDetails.length),oe=K(S.selectedDate),ne=K(S.selectedDayOfMonth),[de,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,b=Ze(n.controllers),x=Xe(n.controllerUserIds),ie={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},Q=d=>{const C=t?.scheduledJournalEntry[d];r!=null&&C!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...Ue(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...me(C)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(d)},j=(d,C)=>{const A=t?.scheduledJournalEntry[C];r!=null&&A!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:me(A),controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(d)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&T(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,T,c,l.updateStatus,t,r,D,b,x]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const z=fe(l.accountListNestedAccountHierarchy),$=fe(l.allDepreciationAccountListNestedAccountHierarchy),G=we(l.classListNestedAccountHierarchy),B=Le("fixed_assets"),X=f.useRef(),y=Je({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,z,G,$,B,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,z,G,$,B,u.entityAutoCompleteView)}),o=y.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Me(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(d,C)=>{s.onAutoCompleteInputChange?.(d,"vendor"),X.current=C},be=y.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),xe=async(d,C)=>{const A=C[te].vendor;if(d.includes("vendor")){const ce=A?.defaultOptions.map(q=>q.value);if(A?.selectedOption!=null&&ce?.includes(A.selectedOption)!==!0){const q=u.entityAutoCompleteView.vendor.find(ke=>ke.id===A.selectedOption);q!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:q.name??"",value:q.id}])}}const je=d.includes("amount");if(F(C,je),d.includes("amount")){const ce=d.split(".")[1],q=parseInt(ce);Y(!0),g(q,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{const d=y.watch((C,{name:A})=>{A!=null&&C!=null&&Ve(()=>xe(A,C))});return()=>{d.unsubscribe()}}),f.useEffect(()=>{(se!==S.jeScheduleDetails.length||oe!==S.selectedDate||ne!==S.selectedDayOfMonth)&&ae===!0&&(y.resetField(le,{defaultValue:ue(l,z,G,$,B,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(_e(y.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,ve=()=>{pe===!0?O(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&w({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=f.useCallback(()=>{Z(!0)},[]),Ae=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),L()},[e,b,x,t,L,r,D]),Ie=f.useCallback(d=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),I(d)},[e,b,x,t,I,r,D]),Te=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(d=>d.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(dt,{children:[a.jsx(pt,{title:Te??M.strings.empty,onNavigateBack:ve,onTransactionClick:Ee}),a.jsx(it,{children:a.jsx(Fe,{...y,children:a.jsxs("form",{style:{width:"100%"},id:Ce(ye),onSubmit:be,children:[a.jsx(ft,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:z,allClassOptions:G,allMonthOptions:B,allDepAccountOptions:$,onEditAmount:g,onDelete:Ie,onJELinkClick:Q,onViewLinkedJE:j,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:Oe}),E===!0?a.jsx(Pe,{titleComponent:a.jsx(Ne,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Be,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(qe,{formId:Ce(ye),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({onNavigateBack:e,onTransactionClick:n,title:m}){return a.jsx(We,{title:m,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:e,onLaunchClick:n,style:{zIndex:3}})}function ft({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:g,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:I,onDelete:F,onJELinkClick:P,onViewLinkedJE:w,onMarkAsComplete:L}){const T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ct,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:n,vendorField:e,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:g,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:L,onCreateSchedule:k}),a.jsx(he,{controller:v===!0,children:a.jsx(tt,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:I,onJELinkClick:P,onViewLinkedJE:w,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const Ce=e=>`${e}_form`,ue=(e,n,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,g=c.selectedVendor,v=g!=null?u.vendor.find(i=>i.zeniId===g.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,I=c.selectedAccumulatedDepreciationCategory,F=I!=null?e.allDepreciationAccountList.find(i=>i.accountId===I):void 0,P=c.assetId,w=c.selectedClass,L=w!=null?e.allClassList.find(i=>i.classId===w):void 0,T=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:L?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:T,allOptions:s},vendor:{selectedOption:v?.id??g?.id,defaultOptions:Re(u,v??g)},postingDate:{type:J,dayOfMonth:O}},[le]:E}};export{It as default};
37
+ `,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",ut=Ce.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function Tt({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:C,onJELinkClick:v,onSave:k,onDelete:T,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:w,onMarkAsComplete:L,removeJeScheduleTransactionKey:I}){const[E,j]=f.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[ae,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,se=K(S.jeScheduleDetails.length),oe=K(S.selectedDate),ne=K(S.selectedDayOfMonth),[de,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,b=Ze(n.controllers),x=Xe(n.controllerUserIds),ie={onOkClick:()=>{j(!1),p()},onCancelClick:()=>{j(!1)}},Q=d=>{const y=t?.scheduledJournalEntry[d];r!=null&&y!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...ze(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...me(y)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(d)},O=(d,y)=>{const A=t?.scheduledJournalEntry[y];r!=null&&A!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:me(A),controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(d)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&I(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,I,c,l.updateStatus,t,r,D,b,x]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=fe(l.accountListNestedAccountHierarchy),$=fe(l.allDepreciationAccountListNestedAccountHierarchy),G=we(l.classListNestedAccountHierarchy),q=Le("fixed_assets"),X=f.useRef(),g=Je({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,U,G,$,q,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,U,G,$,q,u.entityAutoCompleteView)}),o=g.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Me(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(d,y)=>{s.onAutoCompleteInputChange?.(d,"vendor"),X.current=y},be=g.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),xe=async(d,y)=>{const A=y[te].vendor;if(d.includes("vendor")){const ce=A?.defaultOptions.map(B=>B.value);if(A?.selectedOption!=null&&ce?.includes(A.selectedOption)!==!0){const B=u.entityAutoCompleteView.vendor.find(ke=>ke.id===A.selectedOption);B!=null&&g.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:B.name??"",value:B.id}])}}const Oe=d.includes("amount");if(F(y,Oe),d.includes("amount")){const ce=d.split(".")[1],B=parseInt(ce);Y(!0),C(B,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{const d=g.watch((y,{name:A})=>{A!=null&&y!=null&&_e(()=>xe(A,y))});return()=>{d.unsubscribe()}}),f.useEffect(()=>{(se!==S.jeScheduleDetails.length||oe!==S.selectedDate||ne!==S.selectedDayOfMonth)&&ae===!0&&(g.resetField(le,{defaultValue:ue(l,U,G,$,q,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(Ve(g.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,ve=()=>{pe===!0?j(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&w({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},je=f.useCallback(()=>{Z(!0)},[]),Ae=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),L()},[e,b,x,t,L,r,D]),Te=f.useCallback(d=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),T(d)},[e,b,x,t,T,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(d=>d.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(dt,{children:[a.jsx(pt,{title:Ie??M.strings.empty,onNavigateBack:ve,onTransactionClick:Ee}),a.jsx(it,{children:a.jsx(Fe,{...g,children:a.jsxs("form",{style:{width:"100%"},id:ye(ge),onSubmit:be,children:[a.jsx(ft,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:G,allMonthOptions:q,allDepAccountOptions:$,onEditAmount:C,onDelete:Te,onJELinkClick:Q,onViewLinkedJE:O,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:je}),E===!0?a.jsx(Pe,{titleComponent:a.jsx(Ne,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(qe,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(Be,{formId:ye(ge),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{j(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({onNavigateBack:e,onTransactionClick:n,title:m}){return a.jsx(We,{title:m,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:e,onLaunchClick:n,style:{zIndex:3}})}function ft({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:C,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:T,onDelete:F,onJELinkClick:P,onViewLinkedJE:w,onMarkAsComplete:L}){const I=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ct,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:n,vendorField:e,vendorFieldName:_(te,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:I,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:C,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:L,onCreateSchedule:k}),a.jsx(he,{controller:v===!0,children:a.jsx(tt,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:T,onJELinkClick:P,onViewLinkedJE:w,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ye=e=>`${e}_form`,ue=(e,n,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,C=c.selectedVendor,v=C!=null?u.vendor.find(i=>i.zeniId===C.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,T=c.selectedAccumulatedDepreciationCategory,F=T!=null?e.allDepreciationAccountList.find(i=>i.accountId===T):void 0,P=c.assetId,w=c.selectedClass,L=w!=null?e.allClassList.find(i=>i.classId===w):void 0,I=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),j=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=j==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:L?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:I,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:Re(u,v??C)},postingDate:{type:J,dayOfMonth:j}},[le]:E}};export{Tt as default};