@zeniai/web-cockpit-ui 1.15.68-prod → 2.0.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 (279) hide show
  1. package/dist/assets/Preview-C3kztGrG.js +1 -0
  2. package/dist/assets/ScreenRoutes-5hC3wQD-.js +179 -0
  3. package/dist/assets/SignInScreen-Bw3kDJOY.js +1 -0
  4. package/dist/assets/{analytics-D0xbCiOA.js → analytics-Ci62SVC6.js} +15 -15
  5. package/dist/assets/analyticsHelper-DvZ4fRLz.js +1 -0
  6. package/dist/assets/{core-VVne9A9m.js → core-CrJ0HRkP.js} +2 -2
  7. package/dist/assets/{dash.all.min-CZdKQs3q.js → dash.all.min-BC3O3eK3.js} +1 -1
  8. package/dist/assets/{empty-BxIsRmiL.js → empty-DCdjTxMk.js} +1 -1
  9. package/dist/assets/{index-CW-pqTwR.js → empty-DewRN75u.js} +1 -1
  10. package/dist/assets/epic-ButtTfPO.js +2 -0
  11. package/dist/assets/{index-D0xGm0tM.js → index-BHVDlT_9.js} +1 -1
  12. package/dist/assets/{index-0sfOIAIW.js → index-BIzFhK6B.js} +1 -1
  13. package/dist/assets/index-BnSSVzJm.js +1 -0
  14. package/dist/assets/index-C1011MmK.js +2 -0
  15. package/dist/assets/index-CS2xkLsB.js +1 -0
  16. package/dist/assets/index-DrEiJ4Wx.js +1 -0
  17. package/dist/assets/index-Obh2uEoj.js +75311 -0
  18. package/dist/assets/{lexical-0vG0lfLn.js → lexical-Y1MbDrft.js} +1 -1
  19. package/dist/assets/{liveblocks-abv8TgYe.js → liveblocks-CH5Ytl_r.js} +1 -1
  20. package/dist/assets/{lottie-DehW2chz.js → lottie-jJKhsKLZ.js} +2 -2
  21. package/dist/assets/{mui-DOS4CfBc.js → mui-DzLLS9Rs.js} +2 -2
  22. package/dist/assets/{react-C3bwNlEv.js → react-9Kj1B1wt.js} +2 -2
  23. package/dist/assets/{react-0muarBdd.js → react-BLe964tg.js} +3 -3
  24. package/dist/assets/{react-DGIuy5RW.js → react-CNU9DWBw.js} +1 -1
  25. package/dist/assets/{react-DGupjeTm.js → react-C_qk_SxL.js} +2 -2
  26. package/dist/assets/{react-BX1V71Rc.js → react-CdND5srH.js} +2 -2
  27. package/dist/assets/{react-BKlbvdVi.js → react-D1VJKwtS.js} +2 -2
  28. package/dist/assets/{react-BQ6Phht1.js → react-D1lzTawy.js} +2 -2
  29. package/dist/assets/{react-Bf7WBvpI.js → react-DRO7qhGA.js} +4 -4
  30. package/dist/assets/{recharts-BBlqu8Rz.js → recharts-DE-kxplH.js} +25 -25
  31. package/dist/assets/{sentry-DBhcw6Be.js → sentry-SNkBC2Al.js} +2 -2
  32. package/dist/assets/{url-CSfgHOtI.js → url-C9VCVVAZ.js} +1 -1
  33. package/dist/assets/url-h1qG-NI4.js +1 -0
  34. package/dist/assets/{utils-DT6Wq-eT.js → utils-CpsqBQqv.js} +1 -1
  35. package/dist/assets/zeni-epic-state-B7yJI5lR.js +14 -0
  36. package/dist/index.html +1 -1
  37. package/package.json +4 -4
  38. package/dist/assets/ACHDetailsPage-B5qIuZya-DM7YY1FB.js +0 -21
  39. package/dist/assets/AIPerformancePage-BHB45mP--CWndWSdC.js +0 -539
  40. package/dist/assets/AccountInfoPage-Cd5xYT1g-BbefpV-7.js +0 -18
  41. package/dist/assets/AccountInfoPageContent-CJ7ycVIK-5M9LxJhG.js +0 -149
  42. package/dist/assets/AccountLockedInfoModal-Dox7IuAX-BMD0s6gP.js +0 -59
  43. package/dist/assets/AccountReconDetailsDrawerPage-Bqty08m0-B-ibKIL7.js +0 -239
  44. package/dist/assets/AccountRow-D1cjRJJD-brXv0bxV.js +0 -298
  45. package/dist/assets/AccountsPromoCardStack-Bs3naJHM-CnqFEGey.js +0 -207
  46. package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-C4r6mehv.js +0 -6
  47. package/dist/assets/AddToWalletPage-CyRfqVDB-BdTdHS85.js +0 -344
  48. package/dist/assets/AgingReportsPage-xBFff3BM-ky-EAGcf.js +0 -79
  49. package/dist/assets/AllUserItems-BJf6WPDo-Deh60Xs6.js +0 -192
  50. package/dist/assets/ApAgingDetailPage-CjBrPyi8-Drme0iaF.js +0 -46
  51. package/dist/assets/AppBasePage-CqDm-hnV-gy7t8mSc.js +0 -71
  52. package/dist/assets/AppDrawerContent-CVVWj66i-CgQm4R5E.js +0 -92
  53. package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-CdSeUeuR.js +0 -47
  54. package/dist/assets/ArAgingChart-CBsqOd-4-CM7YnEql.js +0 -24
  55. package/dist/assets/ArAgingDetailPage-i7JObt60-DiaDa_kU.js +0 -46
  56. package/dist/assets/AttachmentView-CzC4skJ3-DSp7S_ow.js +0 -101
  57. package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-B0jviFnz.js +0 -38
  58. package/dist/assets/BankAccountSection-Di4sF52j-CjUG2k4c.js +0 -79
  59. package/dist/assets/BankAccountWarningSection-Cled-2cR-DDIv4R5M.js +0 -51
  60. package/dist/assets/BankConnectionsSettingsPage-Ccnzq7st-BhXmaxPm.js +0 -425
  61. package/dist/assets/BillDetailPage-XXOwBfO1-DxWLoxsB.js +0 -266
  62. package/dist/assets/BillPayApprovalRuleDetailPage-DFZ0csaT-D62XtRWM.js +0 -27
  63. package/dist/assets/BillPayApprovalRulesPage-COCypDcS-CxH1-1ro.js +0 -241
  64. package/dist/assets/BillPayPromoPage-DOE2YIqC-BRNhZmcV.js +0 -84
  65. package/dist/assets/BillPaySetUpPage-BCJbZDsV-EdWAn7sO.js +0 -42
  66. package/dist/assets/BillingSettingsPage-iImtlEmO-oLToelCa.js +0 -44
  67. package/dist/assets/BillsBulkReviewDrawerPage-B11GWM_0-BmGfxE4w.js +0 -1
  68. package/dist/assets/BoxItem-Bxa1M4QU-CY-vorJI.js +0 -53
  69. package/dist/assets/BusinessVerificationPage-DSuJFoW1-Xi-gZLue.js +0 -138
  70. package/dist/assets/CardNumberSubText-_ZZbaz_k-BDqMr1hm.js +0 -21
  71. package/dist/assets/CashbackDetailPage-DAZXitLt-kEgVWuyi.js +0 -285
  72. package/dist/assets/ChargeCardDetailPage-B1VIpASk-BGlRije7.js +0 -1467
  73. package/dist/assets/ChargeCardListPage-BOBepN-x-DtybfgKA.js +0 -412
  74. package/dist/assets/ChargeCardListTable-YznzSsJo-DoULf2wO.js +0 -711
  75. package/dist/assets/ChargeCardPaymentHistoryPage--jOwsMla-Bzj0wTwy.js +0 -565
  76. package/dist/assets/ChargeCardPromoPage-DIfakIOK-BNvT1cxv.js +0 -222
  77. package/dist/assets/ChargeCardSetupPage-0bpVkeJs-Bkuwwfuy.js +0 -36
  78. package/dist/assets/ChargeCardStatementsPage-ChWyQlw6-CbdQ3AHt.js +0 -60
  79. package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-kNVwtOWy.js +0 -206
  80. package/dist/assets/CollapsableReportTable-DNfFkAts-cgYLh83Q.js +0 -2982
  81. package/dist/assets/CompanyOfficerDetailsSection-CrOIN4IW-B9X3JGYF.js +0 -331
  82. package/dist/assets/CompanyPassportCard-CkzYFTrp-BcZUZqNN.js +0 -42
  83. package/dist/assets/CompanyPassportPage-FE6yli6h-DWhiSjrR.js +0 -417
  84. package/dist/assets/CompleteProfile-Cb8i1XgZ-BP6okX49.js +0 -52
  85. package/dist/assets/ConfettiBurst-BZCXEGYA-ho8ERS31.js +0 -1
  86. package/dist/assets/ConstrainedInnerElement-CgdnMeoA-Cv85URYx.js +0 -5
  87. package/dist/assets/CreateOrEditVendorPage-CzpSgxbO-2ilw068v.js +0 -281
  88. package/dist/assets/CreditCardPaymentDrawerPage-c_q0MsSO-CoTzu5XT.js +0 -227
  89. package/dist/assets/CurrencySelectField-BAh7SHrG-CBSRpu74.js +0 -139
  90. package/dist/assets/CustomerOnboardingActivationPage-f3Aa6E5r-DcPBpEPv.js +0 -88
  91. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-DAhlgLSo.js +0 -1
  92. package/dist/assets/CustomerOnboardingDetailPageSkeleton-DYuiWn8s-DBRyrBpA.js +0 -162
  93. package/dist/assets/CustomerOnboardingNoStepsPage-Bh_F0-oC-ui07nfsA.js +0 -66
  94. package/dist/assets/CustomerOnboardingPage-B9hSO88_-BFSPGucc.js +0 -107
  95. package/dist/assets/CustomerOnboardingProductSuitePage-CG0HKCpQ-CTl3yjRz.js +0 -202
  96. package/dist/assets/Dashboard-BJ_oIHab-nrsDE6qS.js +0 -1611
  97. package/dist/assets/DashboardReportPage-BemzMw2e-D89HJr4G.js +0 -371
  98. package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-Dlhefpu7.js +0 -12
  99. package/dist/assets/DepositAccTransactionItem-CyFi1P_L-BDRqwizb.js +0 -76
  100. package/dist/assets/DepositAccTransactionListPage-DvBRRUdZ-DIdaGFeH.js +0 -66
  101. package/dist/assets/DomesticWireDetailsPage-DCDo3aHI-kEBCfOTM.js +0 -21
  102. package/dist/assets/DownloadOverlay-D_lL1sPW-xWfuT0Vo.js +0 -439
  103. package/dist/assets/DrawerPage-DesxXhZk-CRre4dYu.js +0 -118
  104. package/dist/assets/EditPeoplePage-QvPy_Six-DH4hfGb_.js +0 -55
  105. package/dist/assets/EditReimbursementDetailPage-C0ZDkboO-DXyrjaYc.js +0 -865
  106. package/dist/assets/EntityDetailPage-l7nXIsyF-5oCAhXWK.js +0 -18
  107. package/dist/assets/EntitySummarySection-BwX0a4JL-zcla-D8w.js +0 -151
  108. package/dist/assets/ExpenseAutomationOverviewPage-EdyHjbff-MnqvBISM.js +0 -281
  109. package/dist/assets/ExpenseAutomationPage-DA22Qofw-D083tvHO.js +0 -3001
  110. package/dist/assets/ExpressPayPage-EMP6inpX-3XG4gLSI.js +0 -168
  111. package/dist/assets/FeaturePreviewPage-SYJm-3aR-DqyedTbe.js +0 -11
  112. package/dist/assets/FollowStepsSection-BxESVqJD-Cg2jHWRs.js +0 -390
  113. package/dist/assets/GlobalReviewListPage-D5_ACa-q-D3OrFPtp.js +0 -291
  114. package/dist/assets/InformationCardStack-B_qQUEYD-DttLY3HS.js +0 -31
  115. package/dist/assets/InsightsCardStack-BsQzoVzj-Dk9dJ9p5.js +0 -79
  116. package/dist/assets/InsightsSection-B6CNlTNH-BdZRn5zX.js +0 -27
  117. package/dist/assets/IntegrationsSettingsPage-DP6fAccq-LBB3bZYV.js +0 -57
  118. package/dist/assets/InternationalWireSwiftDetailsPage-VdG7bDZi-CfZjD-fy.js +0 -171
  119. package/dist/assets/InternationalWireVerificationPage-COC6lZml-DC50drx7.js +0 -65
  120. package/dist/assets/InviteFormPage-DN02jRy5-Buy4T1zp.js +0 -312
  121. package/dist/assets/InvitePageListView-CP4K9tJi-CHkbuC7f.js +0 -739
  122. package/dist/assets/InvitePeoplePage-VTM6kM1u-CU4p_G8a.js +0 -12
  123. package/dist/assets/InvoiceUploadSection-it-ZYl1N-XsZhHn3v.js +0 -140
  124. package/dist/assets/IssueChargeCardPage-CVfuvGey-C6KQpSo7.js +0 -532
  125. package/dist/assets/LabeledAddressValue-DDrQcHIE-hP7vwQBZ.js +0 -49
  126. package/dist/assets/LabeledAddressValueField-BgWwd5Gw-DFe8vIUL.js +0 -45
  127. package/dist/assets/LabeledControlledCheckBoxField-CcPO1k23-CU-iLMSG.js +0 -16
  128. package/dist/assets/LabeledCountryMultiSelectField-BYYjzwUG-DXWiTuV-.js +0 -237
  129. package/dist/assets/LabeledCreatableSingleSelectField-CISYMojq-DqRsgtUm.js +0 -208
  130. package/dist/assets/LabeledDocumentField-C_bcFxdY-DJ7-SOXf.js +0 -41
  131. package/dist/assets/LabeledDropDownFormattedTextField-ScGGCap8-mVsgmCkO.js +0 -59
  132. package/dist/assets/LabeledText-C8Y7EOsX-DEEaYkeb.js +0 -42
  133. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-D4KRCLOC.js +0 -229
  134. package/dist/assets/LabeledZeniRolesDropDownField-BZtreVpj-D7w5kOCp.js +0 -297
  135. package/dist/assets/LinkJETransactionPage-CKq4oiX9-ltE4XV_6.js +0 -98
  136. package/dist/assets/LockCardPage-CZENNby7-BsVSJBxy.js +0 -623
  137. package/dist/assets/LowBalancePopup-1727S1ri-Ch0sQQf3.js +0 -34
  138. package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu--EXqRjnH.js +0 -1
  139. package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DyDKS580.js +0 -1
  140. package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BwOG2bc6.js +0 -1
  141. package/dist/assets/MagicLinkSuccessPage-QMkZgQLG-BLATYjDj.js +0 -31
  142. package/dist/assets/MagicLinkTitleSection-CARU1oLQ-B0cyw7Mk.js +0 -17
  143. package/dist/assets/MailingDetailsSection-ByOPaJ05-DHEttRbi.js +0 -21
  144. package/dist/assets/MyBankConnectionsSettingsPage-BdgIIhL1-Dxh6kCPM.js +0 -110
  145. package/dist/assets/MyPendingActivationChargeCardListPage-CX38bDdq-ClsHkhfI.js +0 -6
  146. package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-CkZmnWdK.js +0 -85
  147. package/dist/assets/NavBarWithPicker-CGGEvLwe-DZ7VBJBK.js +0 -30
  148. package/dist/assets/NavigationArrow-CTNkKUtV-DwVtEjKU.js +0 -47
  149. package/dist/assets/NavigationDots-Dvce3gHt-BhNbY-Jn.js +0 -15
  150. package/dist/assets/NewGlobalMerchantPage-D_f7z47T-CFtXtRiH.js +0 -160
  151. package/dist/assets/NoDataChart-CrKeqWSr-DnRwd0s-.js +0 -26
  152. package/dist/assets/NoDataTable-4vPXmPYF-0AXx0isj.js +0 -8
  153. package/dist/assets/NotFoundPage-BLWPU1wU-DmwpjiFz.js +0 -46
  154. package/dist/assets/NotificationSettingsPage-CDiDLX3A-9UeXvRF4.js +0 -163
  155. package/dist/assets/NotificationsListConfig-B5pDa4cJ-CViBSk1u.js +0 -1
  156. package/dist/assets/NotificationsPage-Ccl7Dny1-DO1DVf8y.js +0 -685
  157. package/dist/assets/OpExByVendorPage-spd-nKV4-BYZguWNQ.js +0 -100
  158. package/dist/assets/OverlayContainerPage-BG9y5C0t-XSUpPkb1.js +0 -11
  159. package/dist/assets/PandLWithForecastPage-TSoe4Z7F-DADbKlaU.js +0 -123
  160. package/dist/assets/PaymentAccountSetupBillingAddressSection-9ma8SpIa-DnLcaoHi.js +0 -107
  161. package/dist/assets/PeoplePage-b5_I0qOw-DREebsk9.js +0 -727
  162. package/dist/assets/Preview-DkS-Ppwi.js +0 -1
  163. package/dist/assets/ProductsCarousel-C3M0ocdF-CqKUYrUp.js +0 -142
  164. package/dist/assets/PromoBaseCards-BOGJI2ws-HYGeFCqU.js +0 -218
  165. package/dist/assets/QBOConnectionDialog-CmpnnuzP-5mKGNZm7.js +0 -51
  166. package/dist/assets/QBOSetupSection-DjnN9dgv-D9sOi7j3.js +0 -79
  167. package/dist/assets/ReimbursementApprovalRuleDetailPage-D5NXjrO9-CSFmXSBt.js +0 -32
  168. package/dist/assets/ReimbursementApprovalRulesPage-BsCTIqUJ-BciPnq07.js +0 -243
  169. package/dist/assets/ReimbursementDetailPage-BbyxE2uL-CCn1M_IM.js +0 -314
  170. package/dist/assets/ReimbursementPromoPage-CyEgwqcf-QZKK6RXF.js +0 -84
  171. package/dist/assets/ReimbursementSetUpPage-RETPkEQd-7RlERPSK.js +0 -140
  172. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DnmYl0FM-B6Bppczb.js +0 -1
  173. package/dist/assets/ReloadCard-Bdoo0XiI-BkT_TrPt.js +0 -26
  174. package/dist/assets/ReportTableViewSelector-Bc1K7mU_-BcXnhDrl.js +0 -151
  175. package/dist/assets/ReportsPage-BOTHMLWh-C7yXcceR.js +0 -269
  176. package/dist/assets/RevenueChart-DvyZ3aO7-ln4Xbq3A.js +0 -280
  177. package/dist/assets/ReviewDetailsPage-BIMg1n2e-DlA-53yQ.js +0 -290
  178. package/dist/assets/ReviewOverlay-CxwoiOLC-DmcvjVCl.js +0 -152
  179. package/dist/assets/RoleWithToolTip-Ct3_VuDM-BKP6CsTd.js +0 -22
  180. package/dist/assets/ScheduleDetailsFixedAssetsPage-DiL5Dozk-DCavU86U.js +0 -37
  181. package/dist/assets/ScheduleDetailsPage-5FWpLRtd-CO7mo75a.js +0 -37
  182. package/dist/assets/ScheduleSequenceTable-R3-PsXES-i-4DMkvc.js +0 -326
  183. package/dist/assets/ScreenRoutes-D-ddKpF8.js +0 -179
  184. package/dist/assets/SetUpAccountSection-CctbMmoK-ZyErAiPF.js +0 -378
  185. package/dist/assets/SignIn-CmgmnRm4-DBoFBrvr.js +0 -491
  186. package/dist/assets/SignInScreen-DCSGviBr.js +0 -1
  187. package/dist/assets/SpendManagementListViewPage-CFUxCqkU-dAFL_Ppz.js +0 -134
  188. package/dist/assets/SpendManagementPerTabPage-C-kqNTci-Udt5CTX9.js +0 -754
  189. package/dist/assets/SpendManagementSection-CIz4nE_w-0q2VpGOz.js +0 -246
  190. package/dist/assets/StatementItem-vVtoBN2w-CiKnbbLX.js +0 -31
  191. package/dist/assets/StatementsPage-As5WOnMR-D0_TDe23.js +0 -58
  192. package/dist/assets/StatusSwitcher-Bv-ozN6U-Uu-9K_ZT.js +0 -120
  193. package/dist/assets/SubTabSwitcher-D7QeM6nb-Cvhnug-S.js +0 -58
  194. package/dist/assets/SummaryCard-C2qoTsAY-AZ17zAeW.js +0 -1
  195. package/dist/assets/TaskManagementPage-BJwp32Ph-DTb1_fWh.js +0 -508
  196. package/dist/assets/TimeRangeSwitcher-D00bDDhP-DMLJ4CgT.js +0 -64
  197. package/dist/assets/TimeframeSwitcher-DA99HdHt-B7dPmR3A.js +0 -31
  198. package/dist/assets/TimeframeSwitcherWithToggle-DyggDIQj-BDMDYsLj.js +0 -53
  199. package/dist/assets/TopExCard-Z1WabZ8c-D9ahLOhN.js +0 -38
  200. package/dist/assets/TopExDetailPage-CzHG4f9E-DSsiHUw6.js +0 -132
  201. package/dist/assets/TransactionActivityLogPage-CGKnjNfU-DFi44yxk.js +0 -195
  202. package/dist/assets/TransactionDetailPage-1-mLOWSz-NZ0pEK8W.js +0 -903
  203. package/dist/assets/TransactionList-BB-xoIGm-CmL2sv-k.js +0 -153
  204. package/dist/assets/TransactionListBig-C5Sf5Xh--DUDOs_q9.js +0 -284
  205. package/dist/assets/TransactionListPage-Cj7h1Ros-BpKazEVH.js +0 -35
  206. package/dist/assets/TransactionVendorDetailPage-SsrSOk3O-BLmQC0O2.js +0 -80
  207. package/dist/assets/TransferDrawerPage-BvKZ7vHF-BDZmQek2.js +0 -362
  208. package/dist/assets/TreasuryOverviewPage-DwvjMR4_-BGYjEWMJ.js +0 -725
  209. package/dist/assets/TreasuryPromoPage-CtTFvSQW-B3Bvdh6x.js +0 -505
  210. package/dist/assets/TreasuryStatementsPage-Catz8shX-X_IYs6qa.js +0 -58
  211. package/dist/assets/TreasuryTaxLetterPage-D8hzCL5o-Da9lGvIi.js +0 -58
  212. package/dist/assets/TrendChart-Bnp4Pcdf-CJF7dKdP.js +0 -16
  213. package/dist/assets/TrendWithTransactions-3D1FvM8G-TXKeFcvZ.js +0 -116
  214. package/dist/assets/UncategorizedAccountsMappingPage-DbyY-dYB-D1dmyVJ4.js +0 -244
  215. package/dist/assets/UnitIntegrationPage-CTzme1te-CbgSnbxZ.js +0 -67
  216. package/dist/assets/UploadAdditionalDocumentOverlay-Wl4Spdpn-PlCykjL7.js +0 -38
  217. package/dist/assets/Vendor2FAPopup-D0zYKkIv-aIJ1NUXW.js +0 -1
  218. package/dist/assets/VendorACHDetailsPage-YYX9aQdw-D-OOHJou.js +0 -1
  219. package/dist/assets/VendorDetailPage-Br9wIOnI-De2XcUb6.js +0 -257
  220. package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-BdL3didN.js +0 -1
  221. package/dist/assets/VendorFiling1099EditablePage-himC7iD3-C2XAIK9H.js +0 -175
  222. package/dist/assets/VendorFirstReviewPage-BbknTCBD-DDAQwDZy.js +0 -730
  223. package/dist/assets/VendorInternationalWireDetailsPage-CS595Xgc-C3mHhbHk.js +0 -152
  224. package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-C2v0qs8u.js +0 -1
  225. package/dist/assets/VendorsAccountsSection-CgSJu8wq-Ctj2nPMI.js +0 -68
  226. package/dist/assets/VerifyDevice-Dvf0JsNN-PRfKusRx.js +0 -112
  227. package/dist/assets/VideoPlayer-VAzOGCDL-6U91k2_g.js +0 -78
  228. package/dist/assets/VideoPopup-BqvZ-XIh-nZFpm96A.js +0 -31
  229. package/dist/assets/WarningsDrawerPage-DeNonoNp-Cer8JJKy.js +0 -92
  230. package/dist/assets/ZeniAccountDetailPage-GcwTJdB8-BghGtTMM.js +0 -300
  231. package/dist/assets/ZeniAccountListViewPage-CdwO0Duy-D-GLBesW.js +0 -443
  232. package/dist/assets/ZeniAccountNavBarPieces-BrSIfL36-2vSHgl5n.js +0 -33
  233. package/dist/assets/ZeniAccountPromoPage-JrcedQYB-DxQZiNCa.js +0 -184
  234. package/dist/assets/ZeniAccountSetupPage-TKBfbgzJ-CCXkWEma.js +0 -36
  235. package/dist/assets/ZeniCopyright-DglqrTpl-B_6mXo3q.js +0 -1
  236. package/dist/assets/ZeniTransferAmountSlider-BcaZZuAw-Dri2Vqf1.js +0 -63
  237. package/dist/assets/add-to-wallet-DgdBD8_G-2lJ5O5xD.js +0 -1
  238. package/dist/assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js +0 -1
  239. package/dist/assets/analyticsHelper-B3H0U8CW.js +0 -1
  240. package/dist/assets/analyticsHelper-CAYdbjhS-Bgy1SJeR.js +0 -1
  241. package/dist/assets/arrow-south-east-round-PEovUgvH-CH2rCMd8.js +0 -1
  242. package/dist/assets/auto-transfer-rule-mbafm5D3-Bwf-jWRn.js +0 -1
  243. package/dist/assets/chartTypes-CD3vrBsI-CxjFANZl.js +0 -1
  244. package/dist/assets/commonDimensions-Oz1tdAcx-C8J13a8y.js +0 -1
  245. package/dist/assets/commonTypes-5tEXwrX4-DThfJWJu.js +0 -1
  246. package/dist/assets/constants-B4Nwm03n.js +0 -1
  247. package/dist/assets/downloadPdf-Dsuxeias-IRIi2izs.js +0 -1
  248. package/dist/assets/empty-B6p9RErG.js +0 -1
  249. package/dist/assets/epic-CPlQ2CFE.js +0 -2
  250. package/dist/assets/getReferrerType-DjPOy76W-DRP5VHem.js +0 -1
  251. package/dist/assets/gift-box-Cmt9OgIZ-CmAMj3r2.js +0 -1
  252. package/dist/assets/graphic-no-data-l-DU4J8fDt-Db5RbWJE.js +0 -1
  253. package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-BEpZ9Tqr.js +0 -1
  254. package/dist/assets/handshake-BPg58FML-6UbFX0a-.js +0 -1
  255. package/dist/assets/helper-Ckm10Uko-DCD3fpXN.js +0 -223
  256. package/dist/assets/index-BYqTlB4Y.js +0 -39
  257. package/dist/assets/index-BZNcKYJW.js +0 -1
  258. package/dist/assets/index-C8o-xzAN.js +0 -29875
  259. package/dist/assets/index-D-Jb9hdv.js +0 -1
  260. package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-Cl8KOFjG.js +0 -1
  261. package/dist/assets/mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CDBFUVvY.js +0 -1
  262. package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-B7yPJt54.js +0 -1
  263. package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-C3mdnabF.js +0 -1
  264. package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-DJ5f-tsr.js +0 -1
  265. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-Ca3eEPkJ.js +0 -1
  266. package/dist/assets/page-detail-CWX5S47F-Db9HhKdl.js +0 -1
  267. package/dist/assets/panelSelectedMixin-Cddsb26L-BEaTutPV.js +0 -3
  268. package/dist/assets/radio-default-CiSgisfh-bKgsz1mh.js +0 -1
  269. package/dist/assets/shield-DOlUxcFf-CuhCM_gA.js +0 -1
  270. package/dist/assets/toCOABalancesWithID-aLNB35t7-BtYnBfqr.js +0 -1
  271. package/dist/assets/toChartData-DUL6vnzJ-Bu4Ds4yf.js +0 -1
  272. package/dist/assets/types-DyvtCprH-NFPm5TaG.js +0 -1
  273. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-_YW_CWHL.js +0 -1
  274. package/dist/assets/uploadAttachment-Ck4wivBR-Cl_dwAB6.js +0 -286
  275. package/dist/assets/uploadReceipts-CIgkuVpu-DNtrxUdf.js +0 -1
  276. package/dist/assets/url-CRv0BSFG.js +0 -1
  277. package/dist/assets/useLongPress-GCK2COYQ-Bd_7uKXZ.js +0 -1
  278. package/dist/assets/usp-line-BBd1wKwW-rq31vkuF.js +0 -1
  279. package/dist/assets/zeni-epic-state-DMWYYyyR.js +0 -14
@@ -1,266 +0,0 @@
1
- import{ay as Ft,V as t,gv as Un,e as Kn,g as Hn,bQ as qn,bR as Xn,gw as Gn,gx as Yn,cl as Jn,aS as Qn,x as y,fo as pt,fp as ea,o as a,fq as ta,fr as na,fs as aa,aQ as Ce,ft as ia,ac as x,bE as mt,bq as ut,dE as yt,cy as ht,cz as bt,cA as gt,gy as la,gz as oa,gA as ra,gB as sa,dN as j,gC as $,fz as A,dT as k,fx as da,w as xt,d as re,fy as _t,fF as ca,fA as pa,fB as ma,gD as ua,gE as ya,aT as ha,aq as ft,c1 as De,bU as ba,gF as L,O as ga,u as s,ai as xa,cc as fa,bV as wa,b as Ta,gG as va,fG as wt,N as Da,de as Ia,cq as ja,gH as Tt,b9 as $a,bb as Aa,n as ka,c3 as Wt,df as Sa,gI as Ca,ak as Zt,ax as Pa,b7 as Ba,bv as Ra,gJ as za,an as Ma}from"./index-C8o-xzAN.js";import{a as p}from"./sentry-DBhcw6Be.js";import{n as i}from"./mui-DOS4CfBc.js";import{bY as Na,bL as La,bZ as Ea,GD as Oa,bX as Fa,bH as _a,bh as Wa}from"./zeni-epic-state-DMWYYyyR.js";import{o as Za,t as Va}from"./LowBalancePopup-1727S1ri-Ch0sQQf3.js";import"./liveblocks-abv8TgYe.js";import"./core-VVne9A9m.js";import"./recharts-BBlqu8Rz.js";import"./lottie-DehW2chz.js";import"./analytics-D0xbCiOA.js";import"./lexical-0vG0lfLn.js";import"./utils-DT6Wq-eT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="b2308c82-616a-4742-ae06-1dbd85df0d02",e._sentryDebugIdIdentifier="sentry-dbid-b2308c82-616a-4742-ae06-1dbd85df0d02")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Da("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ha,common:{noText:C,strings:{empty:c},currency:vt,via:qa,more:Xa,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Vt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Ya}}}}=ga.getLocalizedStrings(),je=Ha.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:F,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Ht,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:qt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:Yt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Jt,onAttachmentClick:Ee,saveBillDetails:Qt,discardOutsideZeniPaymentData:en,onBackClick:Oe,updateEditRealTimeApproverClicked:tn,onSaveRealTimeApprovals:nn,onRetryPaymentClick:an,onRefundPaymentClick:ln,initialOpenThreadRequest:K})=>{const l=Kn(),o=Ft(),Fe=Hn(),[on,H]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[We,me]=p.useState(!1),[rn,ue]=p.useState(!1),[Ze,Q]=p.useState(!1),g=e.transactionDetails?.id,sn=qt?qn:Xn,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(sn);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&ee(K)},[K,ee]);const[dn,q]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:g,isGlobalComment:!1},f=Re&&g!=null,{threads:X,isLoading:P}=Gn(),Ve=p.useMemo(()=>g==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Yn)),[X,g]).length,D=`dashboard_${o.currentTenant?.companyId}`,cn=p.useCallback((r,u)=>{te(u),q(!1)},[te,q]);p.useEffect(()=>{ye?.threadId!=null&&X.length>0&&!P&&(te(ye.threadId),ee(null))},[ye,X,P,te,ee]);const Ue=p.useRef(!1),[pn,mn]=p.useState(!1),un=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,mn(!0))});Jn({componentName:"bill.details",enabled:pn});const[N,ne]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,He]=p.useState("approved"),[yn,qe]=p.useState(!1),[hn,Xe]=p.useState(!1),[Ge,Ye]=p.useState(!1),Je=()=>qe(!1),bn=()=>qe(!0),Qe=Qn(e.zeniAssist?.refundStatus.fetchState),ae=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ae())},[Qe,e.zeniAssist?.refundStatus,ae]);const w=e.transactionDetails?.billPayInfo.stage,ie=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,gn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ie?.code=="approved"&&G?.code?G:ie,S=Ja(v,e.transactionDetails),E=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?gn:G?.code!=null&&(ie?.code=="approved"||G.code==="mark_as_paid")?G:ie,be=e.transactionDetails?.vendor?.name,B=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},xn=()=>{ne({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),H(!0)},fn=()=>{ne({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},wn=()=>{ne({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},Tn=()=>{M.trackRefundClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ne({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),pe(!0)},vn={onOkClick:()=>{H(!1),N.primaryButtonText===n.delete?Yt?.(e.isRecurring):N.title===n.cancelBillTitle?Ne?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ln())},onCancelClick:()=>{H(!1),pe(!1)}},Dn={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},In=()=>{const[r]=Pa("ZeniAssist");return r!=null?t.jsx(Ba,{"data-testid":x("bill-details-zeni-assist-icon",g),onClick:()=>{me(!We),M.trackZeniAssistClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},ge=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],jn=e.transactionDetails?.recipientTotalAmount.amount??0,xe=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),$n=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,An=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",kn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${An}`,Sn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx($i,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Cn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Sa(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
- ${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`},oe=e.transactionDetails?.billPayInfo!=null?Na(e.transactionDetails?.billPayInfo):void 0,Pn=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?La(Ea(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,nt=e.transactionDetails?.billPayInfo.expectedDepositDate??Pn,at=pt(d?.paymentType?.method??"").replace("Same Day",""),Bn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(ea,{paymentTypeLabel:at,onClick:bn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Rn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Ca,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,it=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&it),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&it),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,zn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Mn=Ht&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&zn===!1,ve=we||Te,Nn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,W=v?.code,Ln=!Nn&&(!tt||v?.code==="processing"&&!B),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),Y=Oa(e.transactionDetails?.bulkProcessingDetail?.type),O=Fa(e.paymentMethodType?.method),En=!Y&&(W!=="processing"&&lt||W==="processing"&&!B||W==="processing"&&ot||h&&O&&Be),On=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Qt(!0,Ge,r)},st=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Fn=()=>{Ye(!0),st()},_n=()=>{en(),Xe(!1),Ge&&Ye(!1)},Wn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:g??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,g]),Z=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?ta(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{He("approved"),Ze===!0&&Q(!1),Z!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},Zn=()=>{He("rejected"),Z!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},ct=p.useRef(null);return t.jsxs(mi,{windowSize:l,ref:ct,children:[t.jsx(na,{anchor:"right",open:yn,onClose:Je,transitionDuration:250,"data-testid":x("vendor-email-preview-drawer"),children:t.jsx(aa,{companyName:ia(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:at,amount:Ce("0,0.[00]",xe),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(bi,{ref:un.current,windowSize:l,children:[t.jsx(Si,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":x("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Et,{isDisabled:P,"data-testid":x("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Ot,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":x("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":x("bill-detail-nav-bar-small-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":x("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Et,{isDisabled:P,"data-testid":x("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Ot,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":x("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":x("bill-detail-nav-bar-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(gi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,hn?t.jsx(Va,{onCancel:_n,onProceedForMarkAsPaid:On,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,on||ce?t.jsx(ht,{titleComponent:t.jsx(gt,{children:N.title}),descriptionComponent:t.jsx(bt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:vn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Qa(l,e):null}):null,rn?t.jsx(ht,{titleComponent:t.jsx(gt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Dn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(wi,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:a.sp5,width:a.sp5}):null]}):null,F&&S!=null&&S.code==="deleted"?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Pe.tabsById.overdue?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,E!=null&&E.code?l==="small"?t.jsx(la,{progressSectionObj:E,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(oa,{progressSectionObj:E,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ni(Y,e,Z),t.jsx(ra,{sectionId:sa,currentVendorOption:{defaultOptions:[]},billId:g,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Ee,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:le.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:le.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:le.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:le.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(xi,{windowSize:l,children:t.jsx(ke,{children:n.lineItemsTitle})}),ge.length>0?ge.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Vn=>Vn.id===r.lineId)?.recipientAmount;return t.jsxs(ui,{children:[ge.length>1?t.jsx(yi,{windowSize:l,children:t.jsx(hi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:R!=null?Ce("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(Ti,{windowSize:l,children:[t.jsx(vi,{children:n.total}),t.jsx(Di,{children:xe!=null?t.jsx(da,{amount:xe,integerStyles:xt.h6Medium.cssObject,decimalStyles:xt.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?_t(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:Z!=null&&w?.code==="pending_approval"?Vt.addMoney:Z})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(_a)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ii,{children:ca(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?ti(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?kn:d.paymentToPI!=null?d.paymentToPI.displayText:Sn,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:Cn(),additionalInfoLabel:t.jsx(ai,{children:Bn})}),Rn()]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ma(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:pa(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ua,{onAttachmentClick:Ee,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ya,{amount:jn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Jt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:se,signedInUserId:_?.userId,showRealTimeApproval:Ut,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:tn,onSaveRealTimeApprovals:nn},historicActivities:e.billHistory.activities}),t.jsx(Ii,{})]}),e.transactionDetails?.vendor!=null&&!he&&!e.transactionDetails.isDeleted?t.jsx(ha,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:ei(U,rt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{Z!=null?Q(!0):dt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(li,{children:t.jsxs(pi,{windowSize:l,children:[!Y&&_e?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":x("bill-actions-container"),children:[W!=="processing"&&lt?t.jsx(V,{onClick:xn,"data-testid":x("delete-bill-action-item"),children:n.buttons.deleteBill}):null,W==="processing"&&!B?t.jsx(V,{onClick:fn,"data-testid":x("cancel-bill-action-item"),children:n.buttons.cancel}):null,W==="processing"&&ot?t.jsx(V,{onClick:wn,"data-testid":x("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(V,{onClick:Fn,"data-testid":x("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,We?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":x("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(V,{onClick:()=>{M.trackRetryClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),an()},"data-testid":x("retry-bill-action-item"),children:n.buttons.retry}):null,Te?t.jsx(V,{onClick:Tn,"data-testid":x("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(ci,{windowSize:l,children:[Mn===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:ve?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":x("other-actions-icon-container"),children:ve?t.jsx(In,{}):t.jsx(ri,{})})}):null,!Y&&fe===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(di,{onClick:et,"data-testid":x("edit-bill-icon-container"),children:t.jsx(si,{})})}):null,!Y&&Ln===!0&&En?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":x("more-details-icon-container"),children:t.jsx(oi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(ba,{isDrawerOpen:dn,allowComposer:!0,drawerTitle:Ya,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Wn,onThreadClick:cn,onCloseAllThreadsDrawer:()=>q(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Wi=e=>{const b=Ft(),h=e.billDetails.transactionDetails?.id,F=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!(F&&_!=null&&h!=null))return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Un,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Ja=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Wa(),"date")===!0?{value:Pe.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[h].color,bgColor:L[h].bgColor,borderColor:L[h].borderColor}},Qa=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(ki,{windowSize:e,children:[t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.accountNumber}),t.jsx(Lt,{children:b.withdrawFrom!=null?_t(b.withdrawFrom,e):c})]}),t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.amount}),t.jsx(Lt,{children:h!=null?Ce("0,0[.]00",h):C})]})]})},ei=(e,b)=>e?n.paymentOutsideZeni.markAsPaid:b?n.buttons.approve:n.buttons.approveBill,ti=e=>{const b=e.paymentMode,h=n.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const F=n.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${qa} ${F}`},ni=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const F=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Vt.lowBalanceIn.replace("__account__",F)}`,description:h.replace("Low balance! ","")})}else return null},ai=i.div``,ii=i.div``,li=i.div`
3
- display: flex;
4
- justify-content: flex-end;
5
- `,oi=i(za)`
6
- cursor: pointer;
7
- color: ${e=>e.theme.colors.hero};
8
- width: ${a.sp4};
9
- height: ${a.sp4};
10
- &:hover {
11
- color: ${e=>e.theme.colors.primary};
12
- }
13
- `,At=i.div`
14
- display: flex;
15
- margin-left: ${e=>e.windowSize==="small"?e.showEditIcon===!0?a.sp3:a.sp4:m.otherActionsIconContainerMarginLeft.valuePx(e.windowSize)};
16
- cursor: ${e=>e.isIconClickable===!0?"pointer":"default"};
17
- color: ${e=>e.theme.colors.grey1};
18
- &:hover {
19
- color: ${e=>e.theme.colors.primary};
20
- }
21
- `,ri=i(Ua)`
22
- color: ${e=>e.theme.colors.hero};
23
- width: ${a.sp5};
24
- height: ${a.sp5};
25
- margin-bottom: ${a.sp2};
26
- &:hover {
27
- color: ${e=>e.theme.colors.primary};
28
- }
29
- `,si=i(Ra)`
30
- cursor: pointer;
31
- color: ${e=>e.theme.colors.hero};
32
- width: ${a.sp4};
33
- height: ${a.sp4};
34
- &:hover {
35
- color: ${e=>e.theme.colors.primary};
36
- }
37
- `,di=i.div`
38
- display: flex;
39
- cursor: pointer;
40
- color: ${e=>e.theme.colors.grey1};
41
- margin-left: ${a.sp4};
42
- &:hover {
43
- color: ${e=>e.theme.colors.primary};
44
- }
45
- `,ci=i.div`
46
- display: flex;
47
- justify-content: center;
48
- align-items: center;
49
- `,kt=i.div`
50
- display: flex;
51
- width: max-content;
52
- align-items: center;
53
- justify-content: center;
54
- flex-direction: column;
55
- background-color: ${e=>e.theme.colors.grey5};
56
- color: ${e=>e.theme.colors.hero};
57
- cursor: pointer;
58
- padding-top: ${a.sp1};
59
- padding-bottom: ${a.sp1};
60
- position: absolute;
61
- bottom: ${e=>m.otherActionsContainerBottom.valuePx(e.windowSize)};
62
- z-index: 3;
63
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
64
- border-radius: ${a.sp1};
65
- right: ${e=>m.right.valuePx(e.windowSize)};
66
- box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.grey1}3D`};
67
- `,pi=i.div`
68
- width: auto;
69
- justify-content: flex-end;
70
- position: ${e=>e.windowSize==="small"?"static":"relative"};
71
- right: ${e=>m.actionsContainerRight.valuePx(e.windowSize)};
72
- height: 100%;
73
- display: flex;
74
- `,V=i(Zt)`
75
- display: flex;
76
- align-items: center;
77
- width: 100%;
78
- padding-left: ${a.sp3};
79
- padding-right: ${a.sp3};
80
- height: ${a.sp6};
81
- box-sizing: border-box;
82
- &:hover {
83
- background-color: ${e=>e.theme.colors.background};
84
- }
85
- `,St=i(fa)`
86
- cursor: pointer;
87
- color: ${e=>e.theme.colors.hero};
88
- width: 20px;
89
- height: 20px;
90
- &:hover {
91
- color: ${e=>e.theme.colors.primary};
92
- }
93
- `,Ct=i.div`
94
- margin-top: ${e=>m.marginTop.valuePx(e.windowSize)};
95
- display: flex;
96
- align-items: center;
97
- `,Pt=i(Ta)`
98
- cursor: pointer;
99
- width: ${a.sp4};
100
- height: ${a.sp4};
101
- color: ${e=>e.theme.colors.hero};
102
- &:hover {
103
- color: ${e=>e.theme.colors.primary};
104
- }
105
- `,Bt=i.div`
106
- display: flex;
107
- flex-direction: row;
108
- align-items: center;
109
- gap: ${e=>m.rightIconsGap.valuePx(e.windowSize)};
110
- margin-top: ${e=>m.closeContainerMarginTop.valuePx(e.windowSize)};
111
- `,Rt=i.div`
112
- float: right;
113
- width: ${a.sp4};
114
- height: ${a.sp4};
115
- display: flex;
116
- `,mi=i.div`
117
- height: 100%;
118
- overflow: scroll;
119
- `,$e=i.div`
120
- display: flex;
121
- flex-direction: column;
122
- background-color: ${e=>e.theme.colors.grey5};
123
- border: 1px solid ${e=>e.theme.colors.grey3};
124
- box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
125
- border-radius: ${a.sp2};
126
- margin: ${a.sp3} 0;
127
- `,Ae=i.div`
128
- display: flex;
129
- flex-direction: column;
130
- padding-top: ${a.sp3};
131
- `,ui=i.div``,ke=i($a)`
132
- color: ${e=>e.theme.colors.primary};
133
- `,z=i.div`
134
- display: flex;
135
- flex: 1;
136
- background-color: ${e=>e.theme.colors.grey3};
137
- min-height: 1px;
138
- max-height: 1px;
139
- `,yi=i(Aa)`
140
- display: flex;
141
- align-items: center;
142
- justify-content: space-between;
143
- color: ${e=>e.theme.colors.champion};
144
- margin-top: ${a.sp2};
145
- height: 31px;
146
- `,hi=i(ka)`
147
- color: ${e=>e.theme.colors.champion};
148
- `,bi=i.div`
149
- display: flex;
150
- flex-direction: column;
151
- `,gi=i.div`
152
- display: flex;
153
- flex-direction: column;
154
- background-color: ${e=>e.theme.colors.grey4};
155
- padding-left: ${e=>m.containerPaddingLeft.valuePx(e.windowSize)};
156
- padding-right: ${e=>m.containerPaddingRight.valuePx(e.windowSize)};
157
- overflow-x: hidden;
158
- margin-top: ${e=>m.navBarHeight.valuePx(e.windowSize)};
159
- `,xi=i.div`
160
- display: flex;
161
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
162
- align-items: ${e=>e.windowSize==="small"?"unset":"center"};
163
- width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
164
- `,fi=i.div`
165
- display: flex;
166
- margin-bottom: ${a.sp3};
167
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
168
- align-items: ${e=>e.windowSize==="small"?"unset":"center"};
169
- width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
170
- `,wi=i(Ia)`
171
- display: flex;
172
- align-items: center;
173
- flex-grow: 1;
174
- ${e=>`${Ka.formTitle.style(e.windowSize)}`};
175
- color: ${e=>e.theme.colors.primary};
176
- margin-bottom: ${e=>m.formTitleMarginTopBottom.valuePx(e.windowSize)};
177
- margin-bottom: ${e=>m.formTitleMarginTopBottom.valuePx(e.windowSize)};
178
- word-break: break-all;
179
- padding: ${e=>`${a.sp0} ${m.formTitlePaddingLeftRight.valuePx(e.windowSize)}`};
180
- `,Ti=i.div`
181
- padding: ${a.sp3};
182
- display: flex;
183
- align-items: center;
184
- justify-content: center;
185
- background-color: ${e=>e.theme.colors.grey3};
186
- border: 1px solid ${e=>e.theme.colors.grey3};
187
- border-radius: ${a.sp2};
188
- color: ${e=>e.theme.colors.hero};
189
- margin-bottom: ${e=>m.marginBottom.valuePx(e.windowSize)};
190
- `,vi=i(Wt)`
191
- display: flex;
192
- width: 176px;
193
- color: ${e=>e.theme.colors.primary};
194
- `,Di=i(Wt)`
195
- display: flex;
196
- width: calc(100% - 176px);
197
- justify-content: flex-end;
198
- color: ${e=>e.theme.colors.primary};
199
- `,zt=i(ja)`
200
- display: flex;
201
- color: ${e=>e.borderColor};
202
- align-items: center;
203
- justify-content: flex-end;
204
- padding: 1px 6px 1px 6px;
205
- border: ${e=>`1px solid ${e.borderColor}`};
206
- border-radius: ${a.sp1};
207
- min-width: fit-content;
208
- `,Ii=i.div`
209
- display: flex;
210
- flex-direction: column;
211
- height: ${a.sp11};
212
- `,ji=i(xa)`
213
- height: ${a.sp3};
214
- width: ${a.sp3};
215
- color: ${e=>e.theme.colors.hero};
216
- `,$i=i.div`
217
- display: flex;
218
- align-items: center;
219
- margin-left: ${a.sp2};
220
- margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.windowSize)};
221
- align-self: center;
222
- `,Se=i(va)`
223
- margin-left: ${a.sp2};
224
- color: ${e=>e.theme.colors.hero};
225
- `,Ai=i.div``,ki=i.div`
226
- display: flex;
227
- flex-direction: column;
228
- gap: ${a.sp2};
229
- margin: ${e=>e.windowSize==="small"?`0 ${a.sp3} ${a.sp6} ${a.sp3}`:`0 ${a.sp8} ${a.sp5} ${a.sp8}`};
230
- `,Mt=i.div`
231
- display: flex;
232
- justify-content: space-between;
233
- width: ${e=>m.refundPopupWidth.valuePx(e.windowSize)};
234
- `,Nt=i(Zt)`
235
- text-align: left;
236
- color: ${e=>e.theme.colors.grey1};
237
- `,Lt=i(Ma)`
238
- justify-content: end;
239
- display: flex;
240
- flex: 1;
241
- `,Et=i.div`
242
- display: flex;
243
- align-items: center;
244
- justify-content: center;
245
- position: relative;
246
- cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
247
- color: ${e=>e.theme.colors.hero};
248
- opacity: ${e=>e.isDisabled?.5:1};
249
- &:hover {
250
- color: ${e=>e.theme.colors.primary};
251
- }
252
- `,Ot=i(wa)`
253
- display: flex;
254
- width: ${a.sp4};
255
- height: ${a.sp4};
256
- align-items: center;
257
- justify-content: center;
258
- `,Si=i.div`
259
- display: flex;
260
- justify-content: space-evenly;
261
- margin-top: 0px;
262
- position: fixed;
263
- top: 0px;
264
- width: ${e=>m.navBarContainerWidth.valuePercentage(e.windowSize)};
265
- z-index: 3;
266
- `;export{Wi as default};
@@ -1,27 +0,0 @@
1
- import{x as F,u as L,e as M,O as T,aa as W,aS as G,aM as H,cQ as Q,V as r,bE as X,ae as J,aT as K,o as u,gl as Y}from"./index-C8o-xzAN.js";import{a as U}from"./sentry-DBhcw6Be.js";import{n as h}from"./mui-DOS4CfBc.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-BxESVqJD-Cg2jHWRs.js";import"./liveblocks-abv8TgYe.js";import"./core-VVne9A9m.js";import"./recharts-BBlqu8Rz.js";import"./zeni-epic-state-DMWYYyyR.js";import"./lottie-DehW2chz.js";import"./analytics-D0xbCiOA.js";import"./lexical-0vG0lfLn.js";import"./utils-DT6Wq-eT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="b97046b6-44fa-498f-80b7-80a8a31cbc84",e._sentryDebugIdIdentifier="sentry-dbid-b97046b6-44fa-498f-80b7-80a8a31cbc84")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new F(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=M(),t=T.getLocalizedStrings().commonSetUp.approval,P=T.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:V,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const O=x.handleSubmit(()=>{N()}),q=async(i,d)=>{s(d)};return U.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const z=H(d);Q(()=>q($,z))}});return()=>{i.unsubscribe()}}),U.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(J,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:O,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(K,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
2
- display: flex;
3
- height: 100%;
4
- flex-direction: column;
5
- width: 100%;
6
- background-color: ${e=>e.theme.colors.grey4};
7
- box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
8
- `,ie=h.div`
9
- display: flex;
10
- flex-direction: column;
11
- border: 1px solid ${e=>e.theme.colors.grey3};
12
- box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
13
- border-radius: ${u.sp2};
14
- `,ne=h.div`
15
- display: flex;
16
- justify-content: flex-start;
17
- height: 100%;
18
- overflow-y: auto;
19
- flex-direction: column;
20
- align-items: center;
21
- `,pe=h.div`
22
- display: flex;
23
- flex: 1;
24
- background-color: ${e=>e.theme.colors.grey3};
25
- min-height: 1px;
26
- max-height: 1px;
27
- `;export{le as D,Ae as default,k as uniqueFormName,Ie as uniqueName};
@@ -1,241 +0,0 @@
1
- import{e as W,O as S,V as t,bE as G,L as V,ac as b,x as r,an as N,o as i,aQ as z,c1 as P,cy as q,cz as F,cA as O,da as J,u as l,bb as K,N as k,ba as Q,d as j,d9 as X,bv as Y,w as Z}from"./index-C8o-xzAN.js";import{n as o}from"./mui-DOS4CfBc.js";import{a as ee}from"./sentry-DBhcw6Be.js";import"./liveblocks-abv8TgYe.js";import"./core-VVne9A9m.js";import"./recharts-BBlqu8Rz.js";import"./zeni-epic-state-DMWYYyyR.js";import"./lottie-DehW2chz.js";import"./analytics-D0xbCiOA.js";import"./lexical-0vG0lfLn.js";import"./utils-DT6Wq-eT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="598f0075-8dbb-4899-9e22-c8bd471156bf",e._sentryDebugIdIdentifier="sentry-dbid-598f0075-8dbb-4899-9e22-c8bd471156bf")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,M=()=>{h(!0)},U={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(T,{}),t.jsx(le,{}),t.jsx(T,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:M,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{y(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(q,{titleComponent:t.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(F,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=o.div`
2
- display: flex;
3
- flex-direction: column;
4
- gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
5
- margin-bottom: ${e=>e.isLastSection?s.lastWrapperMarginBottom.valuePx(e.windowSize):s.wrapperMarginBottom.valuePx(e.windowSize)};
6
- .icons {
7
- display: none;
8
- }
9
- &:hover {
10
- .icons {
11
- display: flex;
12
- }
13
- > div:last-of-type {
14
- border-color: ${e=>e.isUpdatingApprovalRules===!0?e.theme.colors.grey3:e.theme.colors.primary};
15
- }
16
- }
17
- `,ie=o(K)`
18
- display: flex;
19
- position: relative;
20
- align-items: center;
21
- justify-content: space-between;
22
- text-align: center;
23
- width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
24
- gap: ${i.sp2};
25
- `,re=o.div`
26
- align-items: center;
27
- display: flex;
28
- justify-content: center;
29
- `,le=o.div`
30
- width: ${i.sp8};
31
- height: 2px;
32
- background-color: ${e=>e.theme.colors.primary};
33
- `,T=o.div`
34
- width: 6px;
35
- height: 6px;
36
- border-radius: 3px;
37
- background-color: ${e=>e.theme.colors.primary};
38
- `,se=o.div`
39
- display: flex;
40
- flex-direction: column;
41
- align-items: flex-start;
42
- padding: ${e=>s.ruleWrapperPadding.valuePx(e.windowSize)};
43
- gap: 10px;
44
-
45
- width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
46
- background-color: ${e=>e.theme.colors.grey5};
47
-
48
- border: 1px solid ${e=>e.theme.colors.grey3};
49
-
50
- box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
51
- border-radius: ${i.sp2};
52
-
53
- flex: none;
54
- order: 1;
55
- flex-grow: 0;
56
- justify-content: center;
57
- box-sizing: border-box;
58
- position: relative;
59
- `,ae=o.ul`
60
- ${e=>`${E.stepper.style(e.windowSize)}`};
61
- position: relative;
62
- padding-left: ${i.sp6};
63
- list-style: none;
64
- box-sizing: initial;
65
- margin: 0;
66
- &::before {
67
- display: inline-block;
68
- content: "";
69
- position: absolute;
70
- top: ${e=>s.stepperTop.valuePx(e.windowSize)};
71
- left: ${e=>s.stepperLeft.valuePx(e.windowSize)};
72
- width: 10px;
73
- height: ${e=>e.isSingleStep?"0%":"100%"};
74
- border-left: 2px solid ${e=>e.theme.colors.grey1};
75
- }
76
- `,ne=o.li`
77
- position: relative;
78
- counter-increment: list;
79
- min-height: ${e=>s.stepperItemMinHeight.valuePx(e.windowSize)};
80
- display: flex;
81
- justify-content: flex-start;
82
- align-items: center;
83
- padding-left: ${e=>s.stepperItemPaddingLeft.valuePx(e.windowSize)};
84
- gap: ${i.sp1};
85
-
86
- > div:last-of-type > span.operator:last-of-type {
87
- visibility: hidden;
88
- }
89
-
90
- &:not(:last-child) {
91
- padding-bottom: 20px;
92
- }
93
-
94
- &::before {
95
- display: inline-block;
96
- content: "";
97
- position: absolute;
98
- top: ${e=>s.stepperItemTop.valuePx(e.windowSize)};
99
- left: ${e=>s.stepperItemLeft.valuePx(e.windowSize)};
100
- height: ${e=>e.isSingleStep?"0%":"100%"};
101
- width: 10px;
102
- }
103
-
104
- &.stepperItem {
105
- flex-wrap: wrap;
106
- &::before {
107
- border-left: 2px solid ${e=>e.theme.colors.grey1};
108
- }
109
- &:last-child::before {
110
- border-left: 2px solid ${e=>e.theme.colors.grey5};
111
- }
112
-
113
- &::after {
114
- content: counter(list);
115
- position: absolute;
116
- width: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
117
- height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
118
- top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
119
- left: -${i.sp6};
120
- ${Z.standardMedium.css};
121
- text-align: center;
122
- color: ${e=>e.theme.colors.grey1};
123
- border: 2px solid ${e=>e.theme.colors.grey1};
124
- background-color: ${e=>e.theme.colors.grey5};
125
- display: flex;
126
- justify-content: center;
127
- align-items: center;
128
- border-radius: 50%;
129
- }
130
- }
131
- `,pe=o.span`
132
- color: ${j.alertDark};
133
- `,de=o.span`
134
- color: ${j.successDark};
135
- `,R=o.span`
136
- color: ${e=>e.theme.colors.primary};
137
- `,ce=o.div`
138
- display: flex;
139
- align-items: center;
140
- gap: ${i.sp2};
141
- `,ue=o.div`
142
- display: flex;
143
- gap: ${i.sp5};
144
- `,I=o(X)`
145
- width: ${i.sp3};
146
- height: ${i.sp3};
147
- cursor: ${e=>e.$isDisabled===!0?"not-allowed":"pointer"};
148
- color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:e.theme.colors.hero};
149
- pointer-events: ${e=>e.$isDisabled===!0?"none":"auto"};
150
- &:hover {
151
- color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:j.important};
152
- }
153
- `,D=o.span`
154
- display: inline-flex;
155
- cursor: not-allowed;
156
- `,C=o(Y)`
157
- width: ${i.sp3};
158
- height: ${i.sp3};
159
- cursor: ${e=>e.$isDisabled===!0?"not-allowed":"pointer"};
160
- color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:e.theme.colors.hero};
161
- pointer-events: ${e=>e.$isDisabled===!0?"none":"auto"};
162
- &:hover {
163
- color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:e.theme.colors.primary};
164
- }
165
- `,he=o(Q)`
166
- width: ${i.sp4};
167
- height: ${i.sp4};
168
- color: ${e=>e.theme.colors.hero};
169
- `,B=o.span`
170
- color: ${e=>e.theme.colors.hero};
171
- `,A=o.div`
172
- display: inherit;
173
- gap: inherit;
174
- `,L=o.span`
175
- ${e=>`${E.amount.style(e.windowSize)}`};
176
- color: ${e=>e.theme.colors.primary};
177
- word-break: break-word;
178
- `,f={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Ce=({approvalView:e,onBackClick:d,onEditRuleClick:w,onDeleteRuleClick:c})=>{const y=W(),{fetchState:g,deleteStatus:v}=e,h=S.getLocalizedStrings().commonSetUp.approval,n=S.getLocalizedStrings().spendManagement.billPay.billPayApproval,m=v.fetchState,$=e.listeningToPusherEvent;return t.jsxs(me,{children:[t.jsx(G,{title:h.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{d()},source:"BillPayApprovalRulesPage"}),t.jsxs(xe,{children:[t.jsx(ge,{windowSize:y,children:n.approvalPageSubTitle}),g==="In-Progress"||g==="Not-Started"||m==="In-Progress"?t.jsx(we,{children:t.jsx(V,{size:"ExtraLarge",start:!0})}):g==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((x,a)=>t.jsx(te,{showDeleteBtn:a!==0,disableButtons:$===!0&&x.approvalRuleId===e.newApprovalRuleId,approvalRule:x,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:w,onDeleteRuleClick:c},x.approvalRuleId)),t.jsxs($e,{windowSize:y,onClick:()=>{w()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(be,{}),t.jsx(fe,{children:h.addApprovalText})]})]}):null]})]})},me=o.div`
179
- display: flex;
180
- min-height: 100%;
181
- flex-direction: column;
182
- width: 100%;
183
- background-color: ${e=>e.theme.colors.grey4};
184
- `,xe=o.div`
185
- display: flex;
186
- justify-content: flex-start;
187
- height: 100%;
188
- overflow-y: auto;
189
- flex-direction: column;
190
- align-items: center;
191
- `,we=o.div`
192
- display: flex;
193
- width: 100%;
194
- min-height: calc(100vh - 150px);
195
- flex-direction: column;
196
- justify-content: center;
197
- align-items: center;
198
- gap: ${i.sp3};
199
- background-color: ${e=>e.theme.colors.grey4};
200
- `,ge=o(N)`
201
- color: ${e=>e.theme.colors.hero};
202
- display: flex;
203
- justify-content: center;
204
- width: ${e=>f.titleWidth.valuePx(e.windowSize)};
205
- padding-top: ${e=>f.subTitlePaddingTop.valuePx(e.windowSize)};
206
- padding-bottom: ${e=>f.subTitlePaddingBottom.valuePx(e.windowSize)};
207
- `,$e=o(N)`
208
- cursor: pointer;
209
- display: flex;
210
- flex-direction: row;
211
- justify-content: center;
212
- align-items: center;
213
- padding: ${i.sp3} ${i.sp4};
214
- gap: ${e=>f.addApprovalGap.valuePx(e.windowSize)};
215
-
216
- width: ${e=>f.width.valuePx(e.windowSize)};
217
- height: ${i.sp8};
218
-
219
- background: ${e=>e.theme.colors.grey5};
220
-
221
- border: 1px solid ${e=>e.theme.colors.grey3};
222
-
223
- box-shadow: ${e=>`${i.sp0} 2px ${i.sp1}
224
- ${e.theme.colors.dropShadowNormal}`};
225
- border-radius: ${i.sp2};
226
- box-sizing: border-box;
227
- color: ${e=>e.theme.colors.hero};
228
- &:hover {
229
- color: ${e=>e.theme.colors.primary};
230
- div {
231
- color: ${e=>e.theme.colors.primary};
232
- }
233
- border-color: ${e=>e.theme.colors.primary};
234
- }
235
- margin-bottom: ${i.sp6};
236
- `,be=o(J)`
237
- width: ${i.sp3};
238
- height: ${i.sp3};
239
- `,fe=o.div`
240
- color: ${e=>e.theme.colors.hero};
241
- `;export{Ce as default};