@zeniai/web-cockpit-ui 1.14.88-prod → 1.14.89-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 (232) hide show
  1. package/dist/assets/{ACHDetailsPage-BBq7KpbY-DF9mhOLo.js → ACHDetailsPage-BBq7KpbY-DmD51smT.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Djq6mgKa-D2-ZMcc5.js → AIPerformancePage-Djq6mgKa-C2iGvIUP.js} +11 -11
  3. package/dist/assets/{AccountInfoPage-CxWBk_t_-B6N9dho0.js → AccountInfoPage-CxWBk_t_-BI9wbnyE.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DO6aVqBW-D2G7pMZi.js → AccountInfoPageContent-DO6aVqBW-6U18ww_h.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DVvzKHJQ-BusmcQJv.js → AccountLockedInfoModal-DVvzKHJQ-BlItIAEt.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-BYDoTrOZ.js → AccountReconDetailsDrawerPage-DEKzSPCP-DohPnhDC.js} +14 -14
  7. package/dist/assets/{AccountRow-Ck53DDbT-pVq02fp8.js → AccountRow-Ck53DDbT-BeebPIea.js} +21 -21
  8. package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-Hx7dozh-.js → AccountsPromoCardStack-BYjuB-4I-DMxflS-k.js} +8 -8
  9. package/dist/assets/{AddAddressForCardDrawer-e8qbO2Y5-nX0udyvd.js → AddAddressForCardDrawer-e8qbO2Y5-CvQDLLw2.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DA6AmuaY-qriIpnYe.js → AddToWalletPage-DA6AmuaY-e01eq7ol.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-B_Hhl_Is-g-SRao1T.js → AgingReportsPage-B_Hhl_Is-4sV-u-EE.js} +5 -5
  12. package/dist/assets/{AllUserItems-BV22Ibpn-CEp8prrW.js → AllUserItems-BV22Ibpn-WegHhloq.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-DqV1vOVH-CNER43iu.js → ApAgingDetailPage-DqV1vOVH-DDYGtIes.js} +1 -1
  14. package/dist/assets/{AppBasePage-LrgCcvIv-pzRDvRIV.js → AppBasePage-LrgCcvIv-CPbTcwwM.js} +4 -4
  15. package/dist/assets/{AppDrawerContent-aZG5Qc_X-HF__9zgn.js → AppDrawerContent-aZG5Qc_X-0oLi5_ah.js} +1 -1
  16. package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-BEsS6TL7.js +47 -0
  17. package/dist/assets/{ArAgingChart-Am7LTkqG-E4lvgjGa.js → ArAgingChart-Am7LTkqG-CEoxIo8X.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-BEKsyA9Q-CPaZNWaY.js → ArAgingDetailPage-BEKsyA9Q-DyjljPZX.js} +1 -1
  19. package/dist/assets/{AttachmentView-Bujbmx1d-BpqKAITM.js → AttachmentView-Bujbmx1d-B9I0wNAl.js} +1 -1
  20. package/dist/assets/{BankAccountSection-C5rYUW3V-BCOrI2zz.js → BankAccountSection-C5rYUW3V-B24i3wVy.js} +3 -3
  21. package/dist/assets/{BankAccountWarningSection-DakysSbk-BrOBdVlr.js → BankAccountWarningSection-DakysSbk-CfJ3ZIAx.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-BqTLt_Xy.js → BankConnectionsSettingsPage-BjZDNgZG-CWXR52fl.js} +7 -7
  23. package/dist/assets/{BillDetailPage-DYc_nZRU-9SJltYSx.js → BillDetailPage-DYc_nZRU-BRz45yqn.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-ppU1Epmy-DvxlAPhL.js → BillPayApprovalRuleDetailPage-ppU1Epmy-CKu9yeh6.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-UblNi2mR-DWfMi9Ia.js → BillPayApprovalRulesPage-UblNi2mR-DDdlB9l6.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BK2J56U5-CXL9s4dw.js → BillPayPromoPage-BK2J56U5-BV_HtQh9.js} +5 -5
  27. package/dist/assets/{BillPaySetUpPage-Jic5E25q-CMtH3BoF.js → BillPaySetUpPage-Jic5E25q-B-iLCf2O.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CKZVChEm-CQVpThSa.js → BillingSettingsPage-CKZVChEm-D4ayDBSH.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-CQ4D75c-.js → BillsBulkReviewDrawerPage-C4Ra5e82-Ci4V1_TC.js} +1 -1
  30. package/dist/assets/{BoxItem-8PfNfaHq-6bFTfHVl.js → BoxItem-8PfNfaHq-CqIGaIYz.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-JGge-Iiw-IDjENT0s.js → BusinessVerificationPage-JGge-Iiw-DkN8E6Gl.js} +5 -5
  32. package/dist/assets/{CardNumberSubText-W81SQ4GF-Bt4a5S33.js → CardNumberSubText-W81SQ4GF-D5AG2b-c.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DnOcmx2i-CN8nuDt2.js → CashbackDetailPage-DnOcmx2i-DuXs2k0a.js} +7 -7
  34. package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-CvKk_X-x.js → ChargeCardDetailPage-DNVMsxzE-W83HRYcY.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Dgj-WWWI-CWkcKwWI.js → ChargeCardListPage-Dgj-WWWI-C1jII8Vl.js} +14 -14
  36. package/dist/assets/{ChargeCardListTable-uJZKWoh7-C3lLpElH.js → ChargeCardListTable-uJZKWoh7-DGMj8Kk8.js} +16 -16
  37. package/dist/assets/{ChargeCardPromoPage-uqT96W3_-XA2uFoR4.js → ChargeCardPromoPage-uqT96W3_-DGpf3zxD.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-BIb3iQQG.js → ChargeCardSetupPage-BDbJU-vm-DZJfRa0I.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-3qgtBy5g.js → ChargeCardStatementsPage-DImRqpH1-BlCyBAS3.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-Bq-u7DD4.js → CheckDepositDrawerPage-BVtOOPoa-CKWcHjV6.js} +6 -6
  41. package/dist/assets/{CollapsableReportTable-Crihcv_z-JDVTRjtF.js → CollapsableReportTable-Crihcv_z-B6sIoSI3.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-CFmiXK6n.js → CompanyOfficerDetailsSection-CNxtAkKM-D2joEvpM.js} +8 -8
  43. package/dist/assets/{CompanyPassportCard-DMRQkRPb-CQZMGO1o.js → CompanyPassportCard-DMRQkRPb-BLaDLsxp.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-D3XvbSF_-gJDrPWNT.js → CompanyPassportPage-D3XvbSF_-BPFOIUV0.js} +16 -16
  45. package/dist/assets/{CompleteProfile-BqjXO5ze-724nDXDc.js → CompleteProfile-BqjXO5ze-fJjklbCs.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DtwLo4WZ-BQ9rTQt1.js → ConfettiBurst-DtwLo4WZ-DhNKCJ7F.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-B6tzs6XZ.js → CreateOrEditVendorPage-FrGRJxMy-lyDeY9QD.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-BvifQpD3-DUnP1Hl9.js → CreditCardPaymentDrawerPage-BvifQpD3-CJD0XzyN.js} +6 -6
  49. package/dist/assets/{CurrencySelectField-ClOg6nnS-CXTbcHfQ.js → CurrencySelectField-ClOg6nnS-wUZ5kAZB.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-Cmigo4pK.js → CustomerOnboardingActivationPage-Du-zzeL2-DGgRqDAq.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-ly2XWpHL.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CH2FPWha.js → CustomerOnboardingDetailPageSkeleton-BgY95XeU-Dah0hLGQ.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-BSSSviGT.js → CustomerOnboardingNoStepsPage-BsKoqUta-D3bS1mcO.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-DUMQKVfM-BQ_3ahBW.js → CustomerOnboardingPage-DUMQKVfM-C7dz_0GY.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-CXq_43y8.js → CustomerOnboardingProductSuitePage-DGVV8Tkk-CiyIz1Ai.js} +5 -5
  56. package/dist/assets/{Dashboard-CdYlvep--BOQlMB6O.js → Dashboard-CdYlvep--B2Vkh5DQ.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-c6q027Qp-CEv30LzY.js → DashboardReportPage-c6q027Qp-B9wSLZAf.js} +16 -16
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-CIZN44Ie.js → DashboardSidebarBackgroundAnimation-BdDVYK19-COjDYEak.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-D8kL8enp-DsKpkg7T.js → DepositAccTransactionItem-D8kL8enp-J-22cTZM.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-BS-OReem-B9dYkMDH.js → DepositAccTransactionListPage-BS-OReem-Daf8x2X1.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-CE0TmGGK.js → DomesticWireDetailsPage-CjM1DXnn-ByLr_bfJ.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-Dr4uLNpZ-IlzYnrMA.js → DownloadOverlay-Dr4uLNpZ-PWDmhVak.js} +38 -38
  63. package/dist/assets/{DrawerPage-CbKBsc7w-C-goZ7Of.js → DrawerPage-CbKBsc7w-BANqCEyN.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-BgsR09q8-DKcwe5Om.js → EditPeoplePage-BgsR09q8-DQro3ypx.js} +3 -3
  65. package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-CPvDWqQm.js → EditReimbursementDetailPage-BTrwOX_s-Bpc20RR2.js} +25 -25
  66. package/dist/assets/{EntityDetailPage-Cvd4MG0F-nlXXz9VB.js → EntityDetailPage-Cvd4MG0F-Uu1ExrMV.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BIV9aAq2-0J_nJAr8.js → EntitySummarySection-BIV9aAq2-CUHksODf.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-Vj6NPROh.js → ExpenseAutomationOverviewPage-B5MtjO2p-B5sSDEu8.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-DW6Pxoah-CB3Tfm3S.js → ExpenseAutomationPage-DW6Pxoah-DpT-FAIA.js} +62 -62
  70. package/dist/assets/{ExpressPayPage-DnpQuDmt-BosPEUCq.js → ExpressPayPage-DnpQuDmt-CY033VTz.js} +5 -5
  71. package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-DSVKcIYC.js → FeaturePreviewPage-BmwBZ7ZP-kerQig1g.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-B2I9SddL-J1soan6Z.js → FollowStepsSection-B2I9SddL-BxrnE678.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-CGt9cYLb.js → GlobalReviewListPage-D3GCP5Xd-Bht9J0K_.js} +6 -6
  74. package/dist/assets/{InformationCardStack-mEhasBqu-BANEJOaT.js → InformationCardStack-mEhasBqu-BZ_Gox0K.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-Mj7QcQnH-ZGIADW1_.js → InsightsCardStack-Mj7QcQnH-CT4vpE1x.js} +1 -1
  76. package/dist/assets/{InsightsSection-B3xD0SZ9-8NqkLzS9.js → InsightsSection-B3xD0SZ9-CKtY4Hiz.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-DpD5mnNa.js → IntegrationsSettingsPage-CsI_agJB-CclnkA74.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-Dfu9jHvI.js → InternationalWireSwiftDetailsPage-Dszmi69h-BjjhlMpG.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-DWaY5PDJ.js → InternationalWireVerificationPage-DG9Enrpo-DEQAkYYx.js} +11 -11
  80. package/dist/assets/{InviteFormPage-DK6X9Zwi-BQ256tgK.js → InviteFormPage-DK6X9Zwi-DR66hPVd.js} +1 -1
  81. package/dist/assets/{InvitePageListView-CwKbcKlM-I7Ohbwjv.js → InvitePageListView-CwKbcKlM-BOO2EOMw.js} +32 -32
  82. package/dist/assets/{InvitePeoplePage-BqzJOjVI-BLUo4Jmn.js → InvitePeoplePage-BqzJOjVI-hAq8wZOI.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-CokNNkKu-Dv9862-R.js → InvoiceUploadSection-CokNNkKu-CL4OwcxH.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-CRtJDmrZ-BNG_ehsF.js → IssueChargeCardPage-CRtJDmrZ-CFmNSL2f.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-BhwrrtZX-NBqZDzVl.js → LabeledAddressValue-BhwrrtZX-BVe1F8jA.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DzmwP7hP-BsQFVdWX.js → LabeledAddressValueField-DzmwP7hP-7gvUeBGH.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-k3wZsE8I.js → LabeledControlledCheckBoxField-B6ndrF2e-LWUc8yBI.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-D0dzeF5z.js → LabeledCreatableSingleSelectField-CfzLlkho-CxZaZJZN.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-p3pI5qLu-BapUynJg.js → LabeledDocumentField-p3pI5qLu-I9C3lX6x.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-Dqqs8MYf.js → LabeledDropDownFormattedTextField-oQX33Fim-Bbplhays.js} +1 -1
  91. package/dist/assets/{LabeledText-Db46hFZY-J41ZQ_mQ.js → LabeledText-Db46hFZY-CvrCjgF_.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-BymSRQN9.js → LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-f0PElM5i.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-BRH41KM8.js → LabeledZeniRolesDropDownField-Docjgj8Y-C6xxx7IQ.js} +11 -11
  94. package/dist/assets/{LinkJETransactionPage-BZSRaZqY-BIj3-LRc.js → LinkJETransactionPage-BZSRaZqY-9NIG46T3.js} +6 -6
  95. package/dist/assets/{LockCardPage-KTyESoXL-CynH1u5U.js → LockCardPage-KTyESoXL-C_hGUeR9.js} +12 -12
  96. package/dist/assets/{LowBalancePopup-B0BDCEui-lDZBZxzO.js → LowBalancePopup-B0BDCEui-BMVW4mzF.js} +4 -4
  97. package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-C2ShsQ5E.js +1 -0
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CDB2igue-C6hTpHgJ.js → MagicLinkDomesticWireDetailsPage-CDB2igue-CMZ17cvq.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-CjSbvmVH.js → MagicLinkInternationalWireDetailsPage-C2kxncrD-DZt4WyHf.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-jvVb0tmX.js → MagicLinkSuccessPage-DNVe2qMu-BMSr-yiU.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-CWw516D8-CfrqLlUk.js → MagicLinkTitleSection-CWw516D8-CjWjg4GW.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-CugAM90r-CXu3j2VQ.js → MailingDetailsSection-CugAM90r-CMuXq6mA.js} +1 -1
  103. package/dist/assets/{Menu-CGN2qO6T-B9QNiLm_.js → Menu-CGN2qO6T-CKP1jX2H.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-D8KvFo_x.js → MyBankConnectionsSettingsPage-CQUfVa0r-9xTXMtPS.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-DjE457A_.js → MyPendingActivationChargeCardListPage-TOQWRGjp-DCcWmjzI.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-Cjm9P5Re.js → MyProfileSettingsPage-lCG03Uoh-DnrGHNt2.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-DLLvivn4-WaKxMQjP.js → NavBarWithPicker-DLLvivn4-6K-3U9T7.js} +1 -1
  108. package/dist/assets/{NavigationArrow-B4j2t8Qu-D6OO4KlW.js → NavigationArrow-B4j2t8Qu-C8IxiTof.js} +1 -1
  109. package/dist/assets/{NavigationDots-DyMqwpgy-DNLVSzMW.js → NavigationDots-DyMqwpgy-DXf5bt3G.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-IP0KNY_t.js → NewGlobalMerchantPage-Bx7iBsCP-DGrKqfpE.js} +1 -1
  111. package/dist/assets/{NoDataChart-Ce1_TZ5w-5hIzERi0.js → NoDataChart-Ce1_TZ5w-BfNH_4T8.js} +1 -1
  112. package/dist/assets/{NoDataTable-l2T5Hw3t-B0z8hv-n.js → NoDataTable-l2T5Hw3t-Bh_N31mD.js} +1 -1
  113. package/dist/assets/{NotFoundPage-msdN-Eu6-DQAQsO37.js → NotFoundPage-msdN-Eu6-BKPOdh9t.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-_ovcjr8E-DrJTkLSs.js → NotificationSettingsPage-_ovcjr8E-Bj-DE2Dk.js} +15 -15
  115. package/dist/assets/{NotificationsListConfig-BJm7A9Mz-BeqhPVEF.js → NotificationsListConfig-BJm7A9Mz-Dg3_VsE9.js} +1 -1
  116. package/dist/assets/{NotificationsPage-Ddxb5kE0-CwY6pmpP.js → NotificationsPage-Ddxb5kE0-DzIBWdK5.js} +13 -13
  117. package/dist/assets/{OpExByVendorPage-BLAHey0l-xcBa1Yeo.js → OpExByVendorPage-BLAHey0l-neBDRa7k.js} +4 -4
  118. package/dist/assets/{OverlayContainerPage-CrZuT2Jj-D_iBtRRr.js → OverlayContainerPage-CrZuT2Jj-DMNYxA7f.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-B7Z73Sq--BhUvjEFj.js → PandLWithForecastPage-B7Z73Sq--BDluLKs7.js} +5 -5
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-DYJ63jM7.js → PaymentAccountSetupBillingAddressSection-pL7omrJk-Cgju1Qqc.js} +1 -1
  121. package/dist/assets/{PeoplePage-BHRFiM0D-CFVJOOEe.js → PeoplePage-BHRFiM0D-FOmgjcav.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-D2bf_6Gb-BAq59KMZ.js → ProductsCarousel-D2bf_6Gb-NT7Dhd8p.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-CI7UOpeY-Ux3ixF8F.js → PromoBaseCards-CI7UOpeY-DI52WXKx.js} +3 -3
  124. package/dist/assets/{QBOConnectionDialog-D7MeKn1t-DvScIKzD.js → QBOConnectionDialog-D7MeKn1t-DelTIGIf.js} +4 -4
  125. package/dist/assets/{QBOSetupSection-DWhfA4Xv-DJQNsbuL.js → QBOSetupSection-DWhfA4Xv-kSdJytyB.js} +7 -7
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-C_dTOk5P-BzneGv9j.js → ReimbursementApprovalRuleDetailPage-C_dTOk5P-Dc_LvsYr.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-B5lca4qx-opdeKE45.js → ReimbursementApprovalRulesPage-B5lca4qx-DAjvVIOI.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-COIRwy7i-BUmCrQMr.js → ReimbursementDetailPage-COIRwy7i-W0eUs7nE.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-Bjm0UHcm-rsVpHrAZ.js → ReimbursementPromoPage-Bjm0UHcm-Crjakfj5.js} +8 -8
  130. package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-Bc_PR4Gk.js → ReimbursementSetUpPage-CMYR8CcH-B6Pjnu_N.js} +4 -4
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-Dz0KzTvk.js → ReimbursementsBulkReviewDrawerPage-BDdhVfaz-Qu76KNt7.js} +1 -1
  132. package/dist/assets/{ReloadCard-B2sJR97f-BIaVdWBP.js → ReloadCard-B2sJR97f-4aiyry-A.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-_IO343vS-Bd9be2IV.js → ReportTableViewSelector-_IO343vS-DFegVWwX.js} +1 -1
  134. package/dist/assets/{ReportsPage-C-aQ1bdd-BbBsZ9pq.js → ReportsPage-C-aQ1bdd-DQkYUdHM.js} +5 -5
  135. package/dist/assets/{RevenueChart-Bgq6My4J-BiDvlJvs.js → RevenueChart-Bgq6My4J-Bd7qmjtO.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-COx9R71r-BZZC_0cP.js → ReviewDetailsPage-COx9R71r-BNEXmQ6j.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-CPU7RPiJ-Bs2eF6px.js → ReviewOverlay-CPU7RPiJ-LkDgAnlD.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-DSSGBzvw-w9nfatYk.js → RoleWithToolTip-DSSGBzvw-1jeqwzcs.js} +2 -2
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-Cgt85on9.js → ScheduleDetailsFixedAssetsPage-DKGBfhAM-DIiqwEOV.js} +3 -3
  140. package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-Cn0um4-b.js → ScheduleDetailsPage-B-fKJ7Ct-DSkiCN2O.js} +3 -3
  141. package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-DNxHXj-E.js → ScheduleSequenceTable-Dh_aT47H-BHM_c04w.js} +15 -15
  142. package/dist/assets/{ScreenRoutes-v_76HEQb.js → ScreenRoutes-DuXEW70Q.js} +48 -48
  143. package/dist/assets/{SetUpAccountSection-DrMCC1IY-DUMtEDGs.js → SetUpAccountSection-DrMCC1IY-D33epaX0.js} +4 -4
  144. package/dist/assets/{SignIn-Ij6tlYI5-Df2WXZVd.js → SignIn-Ij6tlYI5-DeE6t8Fq.js} +7 -7
  145. package/dist/assets/{SignInScreen-C4ZK30De.js → SignInScreen-LCpnq8M3.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-AI676Urw-EYS2bzVL.js → SpendManagementListViewPage-AI676Urw-DJru7ByR.js} +13 -13
  147. package/dist/assets/{SpendManagementPerTabPage-D79c3Xqh-B-bFDlPr.js → SpendManagementPerTabPage-D79c3Xqh-D8DfakVn.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-BqWbsmBW-DKtanA-9.js → SpendManagementSection-BqWbsmBW-BhpclPa8.js} +7 -7
  149. package/dist/assets/{StatementItem-Aal79YaO-BQZc18ts.js → StatementItem-Aal79YaO-3cBWg-5i.js} +1 -1
  150. package/dist/assets/{StatementsPage-BG_pNQzc-CzvxwtLg.js → StatementsPage-BG_pNQzc-C7UMTTVJ.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-DYRXaLvx-AQ5F23zs.js → StatusSwitcher-DYRXaLvx-GT20DbHu.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-C75XU1EG-C5X1b7VC.js → SubTabSwitcher-C75XU1EG-BZOngUzL.js} +1 -1
  153. package/dist/assets/{SummaryCard-DEnzgi31-DU7b1H9O.js → SummaryCard-DEnzgi31-BhOErS-o.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-BacWm0wS-CxwBoTNG.js → TaskManagementPage-BacWm0wS-tQV5bDZ1.js} +12 -12
  155. package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-EGXiDQ0Z.js → TimeRangeSwitcher-BOzR-0O6-8myc4JmX.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-BVgI_VZw-BXU7EPFq.js → TimeframeSwitcher-BVgI_VZw-Re-kZX07.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CHmXrP90.js → TimeframeSwitcherWithToggle-CPVSAvFa-Bg7OmG92.js} +1 -1
  158. package/dist/assets/{TopExCard-ImUx-vXr-CCfEzo-r.js → TopExCard-ImUx-vXr--haKJkNG.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-Dg_8DQk8-ByzYxzfA.js → TopExDetailPage-Dg_8DQk8-4TF178rD.js} +2 -2
  160. package/dist/assets/{TransactionDetailPage-BzaDB50S-CcgKIVvo.js → TransactionDetailPage-BzaDB50S-CJmLmWoQ.js} +31 -31
  161. package/dist/assets/{TransactionList-DMd3dgoK-jIPFWuzK.js → TransactionList-DMd3dgoK-DFvlE42h.js} +5 -5
  162. package/dist/assets/{TransactionListBig-BxHqh8u6-Cd7KnFj9.js → TransactionListBig-BxHqh8u6-eMcF_DZh.js} +1 -1
  163. package/dist/assets/{TransactionListPage-CN9fZznd-k0wJ66Rn.js → TransactionListPage-CN9fZznd-DZJjs91-.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-CykcquSh-X7txd8Uw.js → TransactionVendorDetailPage-CykcquSh-UwSp0CrJ.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-oV7ickRP-DK8yvBjK.js → TransferDrawerPage-oV7ickRP-yOers3_6.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-CECDKjNn-B51H5BQA.js → TreasuryOverviewPage-CECDKjNn-HTBJsJ5M.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-BvHndp-i.js → TreasuryPromoPage-Bgt7uGAE-oIwaWu5X.js} +6 -6
  168. package/dist/assets/{TreasuryStatementsPage-QyWxshsI-vvKelSCQ.js → TreasuryStatementsPage-QyWxshsI-BxKUXQKE.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-BLmfU0VD-Bk_hdnHl.js → TreasuryTaxLetterPage-BLmfU0VD-CZkFVEWV.js} +1 -1
  170. package/dist/assets/{TrendChart-C_6ob-SX-m0EmlBC5.js → TrendChart-C_6ob-SX-BWR7UfmP.js} +2 -2
  171. package/dist/assets/{TrendWithTransactions-lMD2sZ-C-XUwPuFCO.js → TrendWithTransactions-lMD2sZ-C-B_BL8w82.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-C8HrLzdo.js → UncategorizedAccountsMappingPage-DEgz17_R-CooBTMrf.js} +7 -7
  173. package/dist/assets/{UnitIntegrationPage-D9Pzxqju-C2A5K_Pc.js → UnitIntegrationPage-D9Pzxqju-CvrKT10L.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-CJYvOjh0-D58Kj8VW.js → UploadAdditionalDocumentOverlay-CJYvOjh0-D-S1zfGQ.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-D-r0NVE--CH70A67b.js → Vendor2FAPopup-D-r0NVE--CwiNcgO0.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-EAp4jOT9.js → VendorACHDetailsPage-Dv6bTD6Y-13eGKSpU.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-BhfawsBd-X9ppQyZg.js → VendorDetailPage-BhfawsBd-Caqe1lVz.js} +11 -11
  178. package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-B1OQJ-PX.js → VendorDomesticWireDetailsPage-BjmlrfTQ-t6Qb8_Zl.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-Db8a7MT5.js → VendorFiling1099EditablePage-glvi0GTU-Ctoy4jdk.js} +7 -7
  180. package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-D91xrJnc.js → VendorFirstReviewPage-DUuUM8ZT-CU9frkxN.js} +23 -23
  181. package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-YoEXSyjJ.js → VendorInternationalWireDetailsPage--Lb-TviQ-DUgeyPBL.js} +13 -13
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-BZwXuirg.js → VendorInternationalWireSwiftDetailsPage-C6KviV2Z-CuCByIJB.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-Co8ekhdh.js → VendorsAccountsSection-EmHO3wQ0-CSPWzKcg.js} +2 -2
  184. package/dist/assets/{VerifyDevice-DE3UbLEe-CyUiyNY7.js → VerifyDevice-DE3UbLEe-DJm7Kfur.js} +1 -1
  185. package/dist/assets/{VideoPlayer-Gw_PLr8F-B2qovwmK.js → VideoPlayer-Gw_PLr8F-BcD3Qyt1.js} +2 -2
  186. package/dist/assets/{VideoPopup-DPZYhLgy-B-KPrxJA.js → VideoPopup-DPZYhLgy-CJt98Dbq.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CZvToguS-XDiwFZJB.js → WarningsDrawerPage-CZvToguS-Ba7pscqf.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-CENmz8Ua.js → ZeniAccountDetailPage-CQhqngBz-CmRc3epW.js} +6 -6
  189. package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-CK8_GdHY.js → ZeniAccountListViewPage-CpX8vqYa-CrcimjI_.js} +5 -5
  190. package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-Di--PMn-.js → ZeniAccountNavBarPieces-DsUwG15z-DiPlFFTl.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-DA611IgH-iuu7zQBs.js → ZeniAccountPromoPage-DA611IgH-CipxvQgU.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-5fsPz9xO.js → ZeniAccountSetupPage-CJv2Fk1i-BEZSbbPm.js} +3 -3
  193. package/dist/assets/{ZeniCopyright-FFqiWypL-Cm4f2TI5.js → ZeniCopyright-FFqiWypL-DiiU36pR.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-BloT7n7Q.js → ZeniTransferAmountSlider-DSrBZUbA-BFqVxMPD.js} +1 -1
  195. package/dist/assets/{analytics-CThNEnNw.js → analytics-XaDXTZcq.js} +1 -1
  196. package/dist/assets/{analyticsHelper-lLrERKZn.js → analyticsHelper-CPNXs_BN.js} +1 -1
  197. package/dist/assets/{analyticsHelper-CczQLvkM-Bib0YVO4.js → analyticsHelper-CczQLvkM-BG3MqU2b.js} +1 -1
  198. package/dist/assets/{chartTypes-CwQl8aoN-BQd1i_cE.js → chartTypes-CwQl8aoN-DVag5uGx.js} +1 -1
  199. package/dist/assets/{commonDimensions-B1u_MhON-NVIOlvy5.js → commonDimensions-B1u_MhON-D3_HfKhE.js} +1 -1
  200. package/dist/assets/{dash.all.min-BUPngCw6.js → dash.all.min-DBAY9LgI.js} +1 -1
  201. package/dist/assets/{detailCommon-nYxvvV_i-DTtGx6HY.js → detailCommon-nYxvvV_i-CatRpXM4.js} +1 -1
  202. package/dist/assets/{downloadPdf-yGlKpV2--BfE42mHv.js → downloadPdf-yGlKpV2--PjZSq5HD.js} +1 -1
  203. package/dist/assets/{epic-Bko4IStj.js → epic-BLwHhkRJ.js} +2 -2
  204. package/dist/assets/{index-KtBRorGi.js → index-CEtuJXY3.js} +1 -1
  205. package/dist/assets/{index-BxXAQ-Kq.js → index-CdTBIE6I.js} +1 -1
  206. package/dist/assets/{index-BP8jc2MZ.js → index-Ci63exms.js} +6 -6
  207. package/dist/assets/{index-BV-YAw0P.js → index-DYDdrdFx.js} +1 -1
  208. package/dist/assets/{index-CwsnnJzI.js → index-DrmeEdvK.js} +1 -1
  209. package/dist/assets/{liveblocks-B3KbWbMM.js → liveblocks-CNYVvsag.js} +1 -1
  210. package/dist/assets/{lottie-CaGAfnTY.js → lottie-22bRan8M.js} +1 -1
  211. package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-C-4Ag6Dq.js → mapLoadingInProgressToTreeNode-DIAuL28N-uQ9ZpPGq.js} +1 -1
  212. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-CSRhLO-g.js → mapSectionWithAcOnlyToTreeNode-DRSmQ56_-BfuaGrUM.js} +1 -1
  213. package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-FsL3Wvr0.js → mapSpacerToTreeNode-DOEVwUIo-DiQ0KiMB.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-DM4HsE8s.js → mapTimeframeBalancesToTreeNode-DbnAvW1M-DvZ_ljbo.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-CGsx1h8W.js → mapTimeframeBalancesToTreeNode-DkrEWOxt-u1VbFdjk.js} +1 -1
  216. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-CSuR34Jn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-DJb78S-u.js} +1 -1
  217. package/dist/assets/{react-C2wGlvWj.js → react-BUQtf2po.js} +2 -2
  218. package/dist/assets/{recharts-CXSQ4XPK.js → recharts-h5iNQbFd.js} +1 -1
  219. package/dist/assets/{sentry-DxvQlcJu.js → sentry-cYFeB6Pw.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-rZFEkHuM-CHyvHGmW.js → toCOABalancesWithID-rZFEkHuM-BjqaEj9u.js} +1 -1
  221. package/dist/assets/{toChartData-C-dHC-Oz-C2z1PJfR.js → toChartData-C-dHC-Oz-CLJWjMkx.js} +1 -1
  222. package/dist/assets/{uploadAttachment-D3clfqPu-vNbeEBN-.js → uploadAttachment-D3clfqPu-NbmOED_L.js} +15 -15
  223. package/dist/assets/{uploadReceipts-Bkf_PaOH-DRTWmNKJ.js → uploadReceipts-Bkf_PaOH-DuaAGaHX.js} +1 -1
  224. package/dist/assets/{url-DuX7Wo4B.js → url-B-8T_WZb.js} +1 -1
  225. package/dist/assets/{url-y5lCWhwX.js → url-DPKHmOp_.js} +1 -1
  226. package/dist/assets/{utils-C70QTjQC.js → utils-fBOyu0sO.js} +1 -1
  227. package/dist/assets/{zeni-epic-state-xFtF3OLs.js → zeni-epic-state-BwKvATgd.js} +5 -5
  228. package/dist/index.html +1 -1
  229. package/package.json +3 -3
  230. package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-p4f66PTl.js +0 -47
  231. package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-BzRvblFe.js +0 -1
  232. package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-DX8NF4Kz.js +0 -1
@@ -1,4 +1,4 @@
1
- import{F as Z,V as o,o as t,aV as z,p as j,ap as ne,b as ae,bs as ie,bt as se,bu as ce,bv as le,bw as E,c as de,aM as J,aI as pe,d as R,av as me,aK as U,aU as he,aJ as ue,aP as ge,ag as V,aW as xe,b3 as fe,ak as ye,b8 as Ce}from"./index-BP8jc2MZ.js";import{a as O,w as S}from"./core-3dlyNYRL.js";import{c as $e}from"./SummaryCard-DEnzgi31-DU7b1H9O.js";import{n as r,k as _,b as K}from"./mui-bYXq4XMS.js";import{eJ as ve}from"./zeni-epic-state-xFtF3OLs.js";import{N as W}from"./NavigationArrow-B4j2t8Qu-D6OO4KlW.js";import{k as je}from"./NavigationDots-DyMqwpgy-DNLVSzMW.js";const be="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-1.png",Ae="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-2.png",ke="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-3.png",B=(e,n)=>{const i=e==="right"?`-${n}%`:`${n}%`;return _`
1
+ import{F as Z,V as o,o as t,aV as z,p as j,ap as ne,b as ae,bs as ie,bt as se,bu as ce,bv as le,bw as Y,c as de,aM as W,aI as pe,d as R,av as me,aK as U,aU as he,aJ as ue,aP as ge,ag as V,aW as xe,b3 as fe,ak as ye,b8 as Ce}from"./index-Ci63exms.js";import{a as O,w as S}from"./core-3dlyNYRL.js";import{c as $e}from"./SummaryCard-DEnzgi31-BhOErS-o.js";import{n as r,k as _,b as K}from"./mui-bYXq4XMS.js";import{Es as ve}from"./zeni-epic-state-BwKvATgd.js";import{N as q}from"./NavigationArrow-B4j2t8Qu-C8IxiTof.js";import{k as je}from"./NavigationDots-DyMqwpgy-DXf5bt3G.js";const be="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-1.png",Ae="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-2.png",ke="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-3.png",B=(e,n)=>{const i=e==="right"?`-${n}%`:`${n}%`;return _`
2
2
  0% {
3
3
  opacity: 0;
4
4
  transform: translateX(${i});
@@ -107,7 +107,7 @@ import{F as Z,V as o,o as t,aV as z,p as j,ap as ne,b as ae,bs as ie,bt as se,bu
107
107
  color: ${e=>e.theme.colors.brandColorOnyx};
108
108
  margin-left: ${t.sp3};
109
109
  margin-right: ${t.sp1};
110
- `,q=r(E)`
110
+ `,E=r(Y)`
111
111
  color: ${e=>e.isZeniProgressBar?e.theme.colors.brandColorOnyx:e.theme.colors.primary};
112
112
  `,_e=r.div`
113
113
  width: 2px;
@@ -132,7 +132,7 @@ import{F as Z,V as o,o as t,aV as z,p as j,ap as ne,b as ae,bs as ie,bt as se,bu
132
132
  ${e=>Pe(e.direction,e.stepCount)};
133
133
  animation-fill-mode: forwards;
134
134
  ${e=>De(e.direction,e.stepCount)}
135
- `,Je=r.div`
135
+ `,We=r.div`
136
136
  display: flex;
137
137
  `,I=r.div`
138
138
  margin-right: -${t.sp3};
@@ -142,14 +142,14 @@ import{F as Z,V as o,o as t,aV as z,p as j,ap as ne,b as ae,bs as ie,bt as se,bu
142
142
  forwards;
143
143
  `,L=r.img`
144
144
  ${Q}
145
- `,We=r(I)`
145
+ `,qe=r(I)`
146
146
  display: flex;
147
147
  justify-content: center;
148
148
  align-items: center;
149
149
  margin-right: ${t.sp3};
150
150
  ${Q}
151
151
  background-color:${j.brandColorGold};
152
- `,qe=r(ne)`
152
+ `,Ee=r(ne)`
153
153
  color: ${e=>e.theme.colors.brandColorOnyx};
154
154
  `,Ge=r(se)`
155
155
  width: ${t.sp4};
@@ -158,7 +158,7 @@ import{F as Z,V as o,o as t,aV as z,p as j,ap as ne,b as ae,bs as ie,bt as se,bu
158
158
  path {
159
159
  stroke-width: 2px;
160
160
  }
161
- `,Ye=(e,n)=>{const{common:i}=Z.getLocalizedStrings();switch(e){case"keepInterest":case"noHiddenFees":return o.jsx(o.Fragment,{children:n.map((a,s)=>o.jsx(Xe,{className:"card-highlight-text-stack",direction:a.direction,stepCount:a.stepCount,children:a.values.map((p,u)=>o.jsx(w,{className:"card-highlight-text",children:p},`${p}_${u}`))},`${a.direction}_${s}`))});case"protectCash":return o.jsxs(o.Fragment,{children:[o.jsxs(He,{children:[o.jsx(Me,{}),o.jsx(Te,{})]}),o.jsx(Ue,{}),o.jsxs(Le,{children:[o.jsxs(Ne,{children:[o.jsx(Fe,{}),o.jsxs(q,{isZeniProgressBar:!1,children:[n[0].values[0]," ",i.texts.insured]})]}),o.jsxs(Oe,{children:[o.jsx(Ze,{children:n[0].values[1]}),o.jsx(q,{isZeniProgressBar:!0,style:{marginTop:"6px"},children:i.texts.insured})]})]})]});case"freeWire":return o.jsxs(ee,{style:{gap:t.sp2},children:[o.jsxs(w,{style:{position:"relative"},children:[n[0].values[0],o.jsx(_e,{})]}),o.jsx(w,{children:o.jsx(G,{children:o.jsx(Ge,{})})}),o.jsx(w,{children:o.jsx(G,{style:{animationDelay:"1.5s"},children:n[0].values[1]})})]});case"expertSupport":return o.jsxs(Je,{children:[o.jsx(I,{style:{animationDelay:"0.2s"},children:o.jsx(L,{src:be})}),o.jsx(I,{style:{animationDelay:"0.4s",zIndex:1},children:o.jsx(L,{src:Ae})}),o.jsx(I,{style:{animationDelay:"0.6s",zIndex:2},children:o.jsx(L,{src:ke})}),o.jsx(We,{style:{animationDelay:"0.8s",zIndex:3},children:o.jsxs(qe,{children:[" ",n[0].values[0]]})})]})}};let Y;function Ee({zeniAccountsPromoCardContent:e,showConfetti:n}){const[i]=xe("Confetti"),a=R(),[s,p]=O.useState(!1);O.useEffect(()=>(n&&(Y=setTimeout(()=>{p(!0)},2e3)),()=>{clearTimeout(Y),p(!1)}),[n]);const{prefix:u,header:d,headerAnimationData:m,showAnimation:f,key:g}=e;return o.jsxs(ze,{children:[n&&s&&i!=null?o.jsx(fe,{loop:!1,play:!0,onComplete:()=>{p(!1)},segments:[100,299],animationData:i,style:{position:"absolute",top:`-${t.sp8}`,left:t.sp0},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,o.jsxs(Ie,{children:[d!=null?o.jsx(Be,{children:d}):null,o.jsx(ee,{children:f?Ye(g,m):null})]}),o.jsx(Se,{themeContext:a,children:u})]})}const Re=r(ue)`
161
+ `,Je=(e,n)=>{const{common:i}=Z.getLocalizedStrings();switch(e){case"keepInterest":case"noHiddenFees":return o.jsx(o.Fragment,{children:n.map((a,s)=>o.jsx(Xe,{className:"card-highlight-text-stack",direction:a.direction,stepCount:a.stepCount,children:a.values.map((p,u)=>o.jsx(w,{className:"card-highlight-text",children:p},`${p}_${u}`))},`${a.direction}_${s}`))});case"protectCash":return o.jsxs(o.Fragment,{children:[o.jsxs(He,{children:[o.jsx(Me,{}),o.jsx(Te,{})]}),o.jsx(Ue,{}),o.jsxs(Le,{children:[o.jsxs(Ne,{children:[o.jsx(Fe,{}),o.jsxs(E,{isZeniProgressBar:!1,children:[n[0].values[0]," ",i.texts.insured]})]}),o.jsxs(Oe,{children:[o.jsx(Ze,{children:n[0].values[1]}),o.jsx(E,{isZeniProgressBar:!0,style:{marginTop:"6px"},children:i.texts.insured})]})]})]});case"freeWire":return o.jsxs(ee,{style:{gap:t.sp2},children:[o.jsxs(w,{style:{position:"relative"},children:[n[0].values[0],o.jsx(_e,{})]}),o.jsx(w,{children:o.jsx(G,{children:o.jsx(Ge,{})})}),o.jsx(w,{children:o.jsx(G,{style:{animationDelay:"1.5s"},children:n[0].values[1]})})]});case"expertSupport":return o.jsxs(We,{children:[o.jsx(I,{style:{animationDelay:"0.2s"},children:o.jsx(L,{src:be})}),o.jsx(I,{style:{animationDelay:"0.4s",zIndex:1},children:o.jsx(L,{src:Ae})}),o.jsx(I,{style:{animationDelay:"0.6s",zIndex:2},children:o.jsx(L,{src:ke})}),o.jsx(qe,{style:{animationDelay:"0.8s",zIndex:3},children:o.jsxs(Ee,{children:[" ",n[0].values[0]]})})]})}};let J;function Ye({zeniAccountsPromoCardContent:e,showConfetti:n}){const[i]=xe("Confetti"),a=R(),[s,p]=O.useState(!1);O.useEffect(()=>(n&&(J=setTimeout(()=>{p(!0)},2e3)),()=>{clearTimeout(J),p(!1)}),[n]);const{prefix:u,header:d,headerAnimationData:m,showAnimation:f,key:g}=e;return o.jsxs(ze,{children:[n&&s&&i!=null?o.jsx(fe,{loop:!1,play:!0,onComplete:()=>{p(!1)},segments:[100,299],animationData:i,style:{position:"absolute",top:`-${t.sp8}`,left:t.sp0},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,o.jsxs(Ie,{children:[d!=null?o.jsx(Be,{children:d}):null,o.jsx(ee,{children:f?Je(g,m):null})]}),o.jsx(Se,{themeContext:a,children:u})]})}const Re=r(ue)`
162
162
  flex-wrap: wrap;
163
163
  overflow: hidden;
164
164
  & .styledNav {
@@ -202,6 +202,6 @@ import{F as Z,V as o,o as t,aV as z,p as j,ap as ne,b as ae,bs as ie,bt as se,bu
202
202
  width: 100%;
203
203
  position: absolute;
204
204
  bottom: 6px;
205
- `,ro=r(E)`
205
+ `,ro=r(Y)`
206
206
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonColor};
207
- `,P=Z.getLocalizedStrings().zeniAccountsPromoCard;function no({analytics:e,cardPosition:n,card:i,data:a,activeCardIndex:s,isZeniAccountsSetUp:p,handleLearnMoreClick:u,handleCardNavigation:d}){const m=R(),f=me(),[g,x]=S.useState(0),[y,C]=S.useState(0),[T,b]=S.useState("left"),A=(l,$)=>{l.stopPropagation(),b($);const re=$=="left"?s+1:s-1;e.trackZeniAccountsPromoCardClick(n,$==="left"?"Next":"Back"),d(k(re),$)},M=l=>{d(k(l),"left")};function h(l){x(l.targetTouches[0].clientX)}function oe(l){C(l.targetTouches[0].clientX)}function k(l){return l<0?a.length+l:l%a.length}function te(){g-y>50&&y!==0?(d(k(s+1),"left"),b("left"),x(0),C(0)):g-y<-50&&y!==0&&(d(k(s-1),"right"),b("right"),x(0),C(0))}const H=a.length>1,X=ve(f.loggedInUserRoleMap);return o.jsx(Re,{"data-testid":U("dashboard",i.cardType),style:{cursor:"default"},dimension:i.dimension,onTouchStart:l=>H?h(l):null,onTouchMove:l=>H?oe(l):null,onTouchEnd:()=>H?te():null,children:o.jsxs(Ve,{children:[o.jsx(N,{children:o.jsx(W,{"data-testid":U("dashboard-navigation-arrow-left",i.cardType),isSpendManagementPromoCard:!0,navType:"left",handleClick:A,promoColor:m.colors.zeniAccountsPromoButtonColor,promoBorderColor:m.colors.zeniAccountsPromoButtonColor})}),o.jsxs(N,{style:{height:"100%",position:"relative",alignItems:"center"},children:[o.jsx(eo,{children:o.jsx(oo,{children:P.title})}),a.map((l,$)=>o.jsx(he,{activeCardIndex:s,currentIndex:$,which:T,children:o.jsx(Ee,{zeniAccountsPromoCardContent:l,showConfetti:s===2})},l.key)),o.jsx(Ke,{onClick:()=>u(X?p?"Move Money":"Sign Up for Free":"Learn More"),children:o.jsx(Qe,{children:X?p?P.button:P.signUp:P.learnMore})}),o.jsx(je,{spendManagementPromoCardActive:!0,numberOfDots:a.length,activeIndex:s,handleClick:M,promoColor:m.colors.zeniAccountsPromoButtonColor,promoColorHover:m.colors.zeniAccountsPromoNavigationDotHoverColor,style:{cursor:"default",position:"absolute",bottom:t.sp5}}),s===0?o.jsx(to,{children:o.jsx(ro,{children:a[0].footer})}):null]}),o.jsx(N,{children:o.jsx(W,{"data-testid":U("dashboard-navigation-arrow-right",i.cardType),isSpendManagementPromoCard:!0,navType:"right",handleClick:A,promoColor:m.colors.zeniAccountsPromoButtonColor,promoBorderColor:m.colors.zeniAccountsPromoButtonColor})})]})})}const{zeniAccountsPromoCard:c,common:v}=Z.getLocalizedStrings(),D={key:"keepInterest",title:c.title,prefix:c.keepInterest.prefixDashboard,header:c.keepInterest.header,headerAnimationData:[],footer:c.keepInterest.footer,showAnimation:!0},F={key:"protectCash",title:c.title,prefix:c.protectCash.prefix,headerAnimationData:[],showAnimation:!0},ao=[{key:"noHiddenFees",title:c.title,prefix:c.noHiddenFees.prefix,headerAnimationData:[{direction:"down",stepCount:6,values:c.noHiddenFees.headerAnimationData}],showAnimation:!0},{key:"freeWire",title:c.title,prefix:c.freeWire.prefix,headerAnimationData:[{direction:"right",stepCount:1,values:c.freeWire.headerAnimationData}],showAnimation:!0},{key:"expertSupport",title:c.title,prefix:c.expertSupport.prefix,header:c.expertSupport.header,headerAnimationData:[{direction:"left",stepCount:1,values:c.expertSupport.headerAnimationData}],showAnimation:!0}];function io({card:e,data:n,analytics:i,actions:a,isZeniAccountsEnabled:s,columnKey:p,index:u,dndProps:d}){const[m,f]=O.useState(0),g=h=>{f(h)},x=(p+1)*(u+1),y=h=>{i.trackZeniAccountsPromoCardClick(x,h),n.depositAccountId!=null?a.onCardBtnClick?.("zeni_accounts_promo_card",n.depositAccountId):a.onCardBtnClick?.("zeni_accounts_promo_card")},{maxInsuredAmount:C,maxPossibleInterest:T,maxAnnualPercentageYield:b,maxCashBalanceAvailable:A=0}=n;D.headerAnimationData=so(T??25e4),D.prefix=c.keepInterest.prefixDashboard.replace(/<amount>/,z("0,0",A,v.currency.currencySymbol).toUpperCase()),D.footer=c.keepInterest.footer.replace(/<interest>/,b.toString()),F.headerAnimationData=[{direction:"right",stepCount:1,values:[...c.protectCash.headerAnimationData,z(J(C),C,v.currency.currencySymbol).toUpperCase()]}],F.prefix=c.protectCash.prefix.replace(/<amount>/,z(J(C),C,v.currency.currencySymbol).toUpperCase());const M=[D,F,...ao];return o.jsx(pe,{isDragging:d?.draggedCardType!=null,isDragOver:d?.dragOverCard===e.cardType,draggable:!0,onDragStart:h=>d?.onDragStart(e.cardType,h),onDragOver:h=>d?.onDragOver(h,e.cardType),onDragLeave:h=>d?.onDragLeave(h),onDrop:h=>d?.onDrop(h,e.cardType),dimension:e.dimension,children:o.jsx($e,{card:e,actions:{onCardClick:()=>{},onReloadData:()=>{}},children:o.jsx(no,{card:e,data:M,handleCardNavigation:g,activeCardIndex:m,handleLearnMoreClick:y,isZeniAccountsSetUp:s&&n.depositAccountId!=null,analytics:i,cardPosition:x})})},e.cardIndex)}S.memo(io);function so(e){const n=[],i=z("0,0",Math.floor(e),v.currency.currencySymbol);for(let a=0;a<i.length;a++){const s=i[a],p={direction:"up",stepCount:0,values:[s]};if(s===v.currency.currencySymbol||s===v.strings.comma)n.push(p);else{const u=parseInt(i[a]),d=a===1&&u<=1?1:Math.floor(u/2),m=a%2===0?"down":"up",f=u-d,g=[];for(let x=0;x<=f;x++){const y=d+x;g.push(y.toString())}m==="down"&&g.reverse(),n.push({direction:m,stepCount:f,values:g})}}return n}export{Ye as G,io as a,so as c};
207
+ `,P=Z.getLocalizedStrings().zeniAccountsPromoCard;function no({analytics:e,cardPosition:n,card:i,data:a,activeCardIndex:s,isZeniAccountsSetUp:p,handleLearnMoreClick:u,handleCardNavigation:d}){const m=R(),f=me(),[g,x]=S.useState(0),[y,C]=S.useState(0),[T,b]=S.useState("left"),A=(l,$)=>{l.stopPropagation(),b($);const re=$=="left"?s+1:s-1;e.trackZeniAccountsPromoCardClick(n,$==="left"?"Next":"Back"),d(k(re),$)},M=l=>{d(k(l),"left")};function h(l){x(l.targetTouches[0].clientX)}function oe(l){C(l.targetTouches[0].clientX)}function k(l){return l<0?a.length+l:l%a.length}function te(){g-y>50&&y!==0?(d(k(s+1),"left"),b("left"),x(0),C(0)):g-y<-50&&y!==0&&(d(k(s-1),"right"),b("right"),x(0),C(0))}const H=a.length>1,X=ve(f.loggedInUserRoleMap);return o.jsx(Re,{"data-testid":U("dashboard",i.cardType),style:{cursor:"default"},dimension:i.dimension,onTouchStart:l=>H?h(l):null,onTouchMove:l=>H?oe(l):null,onTouchEnd:()=>H?te():null,children:o.jsxs(Ve,{children:[o.jsx(N,{children:o.jsx(q,{"data-testid":U("dashboard-navigation-arrow-left",i.cardType),isSpendManagementPromoCard:!0,navType:"left",handleClick:A,promoColor:m.colors.zeniAccountsPromoButtonColor,promoBorderColor:m.colors.zeniAccountsPromoButtonColor})}),o.jsxs(N,{style:{height:"100%",position:"relative",alignItems:"center"},children:[o.jsx(eo,{children:o.jsx(oo,{children:P.title})}),a.map((l,$)=>o.jsx(he,{activeCardIndex:s,currentIndex:$,which:T,children:o.jsx(Ye,{zeniAccountsPromoCardContent:l,showConfetti:s===2})},l.key)),o.jsx(Ke,{onClick:()=>u(X?p?"Move Money":"Sign Up for Free":"Learn More"),children:o.jsx(Qe,{children:X?p?P.button:P.signUp:P.learnMore})}),o.jsx(je,{spendManagementPromoCardActive:!0,numberOfDots:a.length,activeIndex:s,handleClick:M,promoColor:m.colors.zeniAccountsPromoButtonColor,promoColorHover:m.colors.zeniAccountsPromoNavigationDotHoverColor,style:{cursor:"default",position:"absolute",bottom:t.sp5}}),s===0?o.jsx(to,{children:o.jsx(ro,{children:a[0].footer})}):null]}),o.jsx(N,{children:o.jsx(q,{"data-testid":U("dashboard-navigation-arrow-right",i.cardType),isSpendManagementPromoCard:!0,navType:"right",handleClick:A,promoColor:m.colors.zeniAccountsPromoButtonColor,promoBorderColor:m.colors.zeniAccountsPromoButtonColor})})]})})}const{zeniAccountsPromoCard:c,common:v}=Z.getLocalizedStrings(),D={key:"keepInterest",title:c.title,prefix:c.keepInterest.prefixDashboard,header:c.keepInterest.header,headerAnimationData:[],footer:c.keepInterest.footer,showAnimation:!0},F={key:"protectCash",title:c.title,prefix:c.protectCash.prefix,headerAnimationData:[],showAnimation:!0},ao=[{key:"noHiddenFees",title:c.title,prefix:c.noHiddenFees.prefix,headerAnimationData:[{direction:"down",stepCount:6,values:c.noHiddenFees.headerAnimationData}],showAnimation:!0},{key:"freeWire",title:c.title,prefix:c.freeWire.prefix,headerAnimationData:[{direction:"right",stepCount:1,values:c.freeWire.headerAnimationData}],showAnimation:!0},{key:"expertSupport",title:c.title,prefix:c.expertSupport.prefix,header:c.expertSupport.header,headerAnimationData:[{direction:"left",stepCount:1,values:c.expertSupport.headerAnimationData}],showAnimation:!0}];function io({card:e,data:n,analytics:i,actions:a,isZeniAccountsEnabled:s,columnKey:p,index:u,dndProps:d}){const[m,f]=O.useState(0),g=h=>{f(h)},x=(p+1)*(u+1),y=h=>{i.trackZeniAccountsPromoCardClick(x,h),n.depositAccountId!=null?a.onCardBtnClick?.("zeni_accounts_promo_card",n.depositAccountId):a.onCardBtnClick?.("zeni_accounts_promo_card")},{maxInsuredAmount:C,maxPossibleInterest:T,maxAnnualPercentageYield:b,maxCashBalanceAvailable:A=0}=n;D.headerAnimationData=so(T??25e4),D.prefix=c.keepInterest.prefixDashboard.replace(/<amount>/,z("0,0",A,v.currency.currencySymbol).toUpperCase()),D.footer=c.keepInterest.footer.replace(/<interest>/,b.toString()),F.headerAnimationData=[{direction:"right",stepCount:1,values:[...c.protectCash.headerAnimationData,z(W(C),C,v.currency.currencySymbol).toUpperCase()]}],F.prefix=c.protectCash.prefix.replace(/<amount>/,z(W(C),C,v.currency.currencySymbol).toUpperCase());const M=[D,F,...ao];return o.jsx(pe,{isDragging:d?.draggedCardType!=null,isDragOver:d?.dragOverCard===e.cardType,draggable:!0,onDragStart:h=>d?.onDragStart(e.cardType,h),onDragOver:h=>d?.onDragOver(h,e.cardType),onDragLeave:h=>d?.onDragLeave(h),onDrop:h=>d?.onDrop(h,e.cardType),dimension:e.dimension,children:o.jsx($e,{card:e,actions:{onCardClick:()=>{},onReloadData:()=>{}},children:o.jsx(no,{card:e,data:M,handleCardNavigation:g,activeCardIndex:m,handleLearnMoreClick:y,isZeniAccountsSetUp:s&&n.depositAccountId!=null,analytics:i,cardPosition:x})})},e.cardIndex)}S.memo(io);function so(e){const n=[],i=z("0,0",Math.floor(e),v.currency.currencySymbol);for(let a=0;a<i.length;a++){const s=i[a],p={direction:"up",stepCount:0,values:[s]};if(s===v.currency.currencySymbol||s===v.strings.comma)n.push(p);else{const u=parseInt(i[a]),d=a===1&&u<=1?1:Math.floor(u/2),m=a%2===0?"down":"up",f=u-d,g=[];for(let x=0;x<=f;x++){const y=d+x;g.push(y.toString())}m==="down"&&g.reverse(),n.push({direction:m,stepCount:f,values:g})}}return n}export{Je as G,io as a,so as c};
@@ -1,4 +1,4 @@
1
- import{d as f,Q as y,aN as T,b as a,V as n,aK as B,jl as x,o as t,F as C,y as m,u as d}from"./index-BP8jc2MZ.js";import{a as j}from"./core-3dlyNYRL.js";import{n as w}from"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const l={marginTop:new m(d[0],18),marginBottom:new m(d[0],d[3])},{spendManagement:{chargeCard:{chargeCardsPromo:p}},common:P}=C.getLocalizedStrings(),L=({googleAPIKey:s,customAddress:c,customAddressStatus:e,onDismissClick:r,onSubmitHandler:g})=>{const u=f(),o=y(),i=T(e.fetchState);j.useEffect(()=>{i==="In-Progress"&&e.fetchState==="Completed"&&r()},[e.fetchState,r,i]);const h=o==="small"?a.extraSmallRegular.cssObject:a.standardRegular.cssObject,S=o==="small"?a.standardMedium.cssObject:a.h5Regular.cssObject;return n.jsx(A,{"data-testid":B("add-address-for-card-drawer"),children:n.jsx(x,{googleAPIKey:s,loadingState:e.fetchState,addressToEdit:c,onSubmitHandler:b=>g(b),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:p.addAddress,subTitleMessage:p.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:l.marginTop.valuePx(o),marginBottom:l.marginBottom.valuePx(o),...S},subTitleStyles:{marginTop:t.sp0,marginBottom:t.sp0,...h,color:u.colors.hero},navBarContainerStyles:{alignItems:"center",justifyContent:"space-between",paddingTop:t.sp2,paddingRight:t.sp3},sectionStyles:{paddingTop:t.sp4,paddingBottom:t.sp4},footerButtons:{primaryButtonLabel:P.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},A=w.div`
1
+ import{d as f,Q as y,aN as T,b as a,V as n,aK as B,jl as x,o as t,F as C,y as m,u as d}from"./index-Ci63exms.js";import{a as j}from"./core-3dlyNYRL.js";import{n as w}from"./mui-bYXq4XMS.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const l={marginTop:new m(d[0],18),marginBottom:new m(d[0],d[3])},{spendManagement:{chargeCard:{chargeCardsPromo:p}},common:P}=C.getLocalizedStrings(),L=({googleAPIKey:s,customAddress:c,customAddressStatus:e,onDismissClick:r,onSubmitHandler:g})=>{const u=f(),o=y(),i=T(e.fetchState);j.useEffect(()=>{i==="In-Progress"&&e.fetchState==="Completed"&&r()},[e.fetchState,r,i]);const h=o==="small"?a.extraSmallRegular.cssObject:a.standardRegular.cssObject,S=o==="small"?a.standardMedium.cssObject:a.h5Regular.cssObject;return n.jsx(A,{"data-testid":B("add-address-for-card-drawer"),children:n.jsx(x,{googleAPIKey:s,loadingState:e.fetchState,addressToEdit:c,onSubmitHandler:b=>g(b),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:p.addAddress,subTitleMessage:p.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:l.marginTop.valuePx(o),marginBottom:l.marginBottom.valuePx(o),...S},subTitleStyles:{marginTop:t.sp0,marginBottom:t.sp0,...h,color:u.colors.hero},navBarContainerStyles:{alignItems:"center",justifyContent:"space-between",paddingTop:t.sp2,paddingRight:t.sp3},sectionStyles:{paddingTop:t.sp4,paddingBottom:t.sp4},footerButtons:{primaryButtonLabel:P.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},A=w.div`
2
2
  display: flex;
3
3
  background-color: ${s=>s.theme.colors.grey4};
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{Q as E,a7 as le,av as ne,F as N,V as t,bz as de,u as p,j0 as pe,ji as ce,o as i,n as W,aK as A,y as m,B as u,M as b,jj as he,j1 as ge,cf as xe,p as r,jk as me,bv as we,cS as $e,ak as ue,b as be,j5 as ye}from"./index-BP8jc2MZ.js";import{a as h}from"./core-3dlyNYRL.js";import{n as o,b as B}from"./mui-bYXq4XMS.js";import{eI as fe}from"./zeni-epic-state-xFtF3OLs.js";import{t as je,n as ve,i as Se,a as Ce,l as ke,r as Te,A as ze}from"./add-to-wallet-DgdBD8_G-CmJT13gp.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const Ie=({options:e,selected:a,onToggle:g,containerStyle:l={},optionStyle:f={},thumbStyle:k={}})=>{const w=e.findIndex(n=>n.id===a),$=100/e.length,j=()=>w===0?{left:"1%"}:w===e.length-1?{left:`${(e.length-1)*$}%`}:{left:`${w*$}%`};return t.jsxs(We,{style:l,children:[t.jsx(Ae,{style:{width:`${$-1}%`,...j(),...k}}),e.map(n=>t.jsx(Be,{style:f,active:n.id===a,"data-testid":n.dataTestId,onClick:v=>{v.preventDefault(),g(n.id)},children:n.label},n.id))]})},We=o.div`
1
+ import{Q as L,a7 as le,av as ne,F as N,V as t,bz as de,u as p,j0 as pe,ji as ce,o as i,n as W,aK as A,y as m,B as u,M as b,jj as he,j1 as ge,cf as xe,p as r,jk as me,bv as we,cS as $e,ak as ue,b as be,j5 as ye}from"./index-Ci63exms.js";import{a as h}from"./core-3dlyNYRL.js";import{n as o,b as B}from"./mui-bYXq4XMS.js";import{Er as fe}from"./zeni-epic-state-BwKvATgd.js";import{t as je,n as ve,i as Se,a as Ce,l as ke,r as Te,A as ze}from"./add-to-wallet-DgdBD8_G-CmJT13gp.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const Ie=({options:e,selected:a,onToggle:g,containerStyle:l={},optionStyle:f={},thumbStyle:k={}})=>{const w=e.findIndex(n=>n.id===a),$=100/e.length,j=()=>w===0?{left:"1%"}:w===e.length-1?{left:`${(e.length-1)*$}%`}:{left:`${w*$}%`};return t.jsxs(We,{style:l,children:[t.jsx(Ae,{style:{width:`${$-1}%`,...j(),...k}}),e.map(n=>t.jsx(Be,{style:f,active:n.id===a,"data-testid":n.dataTestId,onClick:v=>{v.preventDefault(),g(n.id)},children:n.label},n.id))]})},We=o.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  background: ${e=>e.theme.colors.grey3};
@@ -37,7 +37,7 @@ import{Q as E,a7 as le,av as ne,F as N,V as t,bz as de,u as p,j0 as pe,ji as ce,
37
37
  transition: color 0.3s ease;
38
38
  padding-top: ${i.sp1};
39
39
  padding-bottom: ${i.sp1};
40
- `,{spendManagement:{chargeCard:{chargeCardsPromo:D,cardDetails:d}}}=N.getLocalizedStrings(),c={chargeCardWidth:new m(200,384),chargeCardHeight:new m(128,240),openWalletIconWidthHeight:new m(20,p[4]),headingMarginTop:new m(p[4],p[7]),headingMarginBottom:new m(p[6],p[9])},y={headingFont:new u("h6Medium","h4Regular"),subheadingFont:new u("standardRegular","h6Regular"),walletTitleFont:new u("standardSemiBold","largeSemiBold"),walletSubTitleFont:new u("extraSmallRegular","standardRegular")},De=(e,a,g)=>t.jsxs(ot,{translatePhone:e,showIphone:g,children:[t.jsxs(at,{children:[t.jsx(gt,{children:D.timeText}),t.jsxs(rt,{children:[t.jsx(lt,{children:[...Array(4).keys()].map(l=>t.jsx(nt,{towerIndex:l},l))}),t.jsx(dt,{children:t.jsx(C,{className:"wave",children:t.jsx(C,{className:"wave",children:t.jsx(C,{className:"wave"})})})}),t.jsx(pt,{children:t.jsx(ct,{})}),t.jsx(ht,{})]})]}),t.jsxs(it,{children:[t.jsxs(Ye,{children:[t.jsx(_e,{showTick:a}),t.jsx(Ze,{showTick:a}),t.jsx(et,{showTick:a}),t.jsx(tt,{showTick:a}),t.jsxs(wt,{translateCardSkelton:e,children:[t.jsx(ut,{}),[...Array(4).keys()].map(l=>t.jsx($t,{lineIndex:l},l))]}),a?null:t.jsx(bt,{children:t.jsx(he,{scannerTheme:"light"})})]}),t.jsx(xt,{showTick:a}),t.jsx(mt,{showTick:a,children:D.addToWallet})]}),t.jsx(st,{})]}),F=({tabType:e})=>{const a=E();return t.jsxs(Le,{children:[t.jsxs(R,{children:[t.jsx(Ne,{children:t.jsx(Ge,{windowSize:a})}),t.jsx(H,{windowSize:a,children:d.openWalletAppOnPhone})]}),t.jsxs(L,{windowSize:a,children:[e==="apple"?d.openWalletDescriptionApple:d.openWalletDescriptionGoogle,t.jsx(P,{})]}),t.jsxs(R,{children:[t.jsx(Ee,{children:t.jsx(Ve,{windowSize:a})}),t.jsx(H,{windowSize:a,children:d.verifyCard})]}),t.jsxs(L,{windowSize:a,children:[e==="apple"?d.VerifyCardDescriptionApple:d.VerifyCardDescriptionGoogle,t.jsx(P,{})]})]})},Ht=({onGotItClick:e,isDebitCard:a,controllerEmails:g,classListFetchState:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:k,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:$,productInformation:j,creditAccountInformation:n,debitAccountInformation:v,chargeCardDetailView:G,creditAccount:V,creditAccountRepayment:J,cardIssuedByRoles:Q,cardIssuedByDepartmentName:X,cardHolderRoles:q,cardHolderDepartmentName:K})=>{const s=E(),O=le().analytics,[T,U]=h.useState(!1),[z,Y]=h.useState(!1),[_,Z]=h.useState(!1),[ee,te]=h.useState(!1),[S,ie]=h.useState("apple"),oe=ne(),ae=fe(oe.loggedInUserRoleMap),re=I=>{ge({chargeCardDetailView:G,classListFetchState:l,analytics:O,isDebitCard:a,isChargeCardAdmin:ae,cardIssuedByRoles:Q,cardIssuedByDepartmentName:X,cardHolderRoles:q,cardHolderDepartmentName:K,controllerEmails:g,pageName:"Card Activation",addToWalletType:I==="apple"?"Apple Wallet":"Google Wallet",productInformation:j,creditAccountInformation:n,debitAccountInformation:v,isChargeCardFeatureEnabled:f,creditAccount:V,creditAccountRepayment:J}),ie(I)};h.useEffect(()=>{setTimeout(()=>{U(!0)},a?9500:4500),setTimeout(()=>{Y(!0)},a?9e3:4e3),setTimeout(()=>{Z(!0)},a?10500:5500),setTimeout(()=>{te(!0)},a?15e3:1e4)},[a]);const se=T&&z,x=N.getLocalizedStrings().spendManagement.chargeCard;return t.jsx(vt,{windowSize:s,children:t.jsxs(Xe,{children:[t.jsx(de,{navBarContainerStyles:{paddingTop:p[2],alignItems:"center",paddingBottom:p[2]},title:x.addToWallet.title,ignoreScrollAction:!0,showBackButton:!1,showMenuIcon:!1,transparentBackground:!0,source:"AddToWalletPage",style:{zIndex:3},titleStyle:{marginTop:p[0]}}),t.jsxs(qe,{windowSize:s,children:[t.jsx(yt,{windowSize:s,children:x.addToWallet.heading}),t.jsx(ft,{windowSize:s,children:x.addToWallet.subheading})]}),t.jsxs(Ke,{windowSize:s,children:[s!=="small"?t.jsx(Ct,{children:t.jsxs(Oe,{windowSize:s,children:[t.jsxs(Ue,{windowSize:s,flipCard:T,scaleCard:z,children:[t.jsx(pe,{isDebitCard:a}),t.jsx(ce,{showCrossIcon:!1,isDebitCard:a})]}),De(_,ee,se)]})}):null,t.jsxs(Re,{windowSize:s,children:[t.jsx(He,{children:t.jsx(Ie,{options:[{id:"apple",dataTestId:"add-to-apple-wallet",label:t.jsxs(t.Fragment,{children:[t.jsx(Qe,{}),t.jsx(M,{children:d.appleWallet})]})},{id:"google",dataTestId:"add-to-google-wallet",label:t.jsxs(t.Fragment,{children:[t.jsx(Je,{}),t.jsx(M,{children:d.googleWallet})]})}],optionStyle:{padding:"12px"},thumbStyle:{paddingTop:i.sp4,paddingBottom:i.sp4},containerStyle:{border:i.sp0},selected:S,onToggle:re})}),t.jsxs(Fe,{children:[t.jsx(Pe,{isActive:S==="apple",children:t.jsx(F,{tabType:"apple"})}),t.jsx(Me,{isActive:S==="google",children:t.jsx(F,{tabType:"google"})})]}),s!=="small"?t.jsx(jt,{children:t.jsx(W,{variant:"primary",label:x.addToWallet.gotIt,onClick:e,style:{width:"fit-content"},"data-testid":A("got-it-button-web")})}):null]})]}),s==="small"?t.jsx(St,{children:t.jsx(W,{variant:"primary",label:x.addToWallet.gotIt,onClick:e,style:{width:"fit-content"},"data-testid":A("got-it-button-mobile")})}):null]})})},Fe=o.div`
40
+ `,{spendManagement:{chargeCard:{chargeCardsPromo:D,cardDetails:d}}}=N.getLocalizedStrings(),c={chargeCardWidth:new m(200,384),chargeCardHeight:new m(128,240),openWalletIconWidthHeight:new m(20,p[4]),headingMarginTop:new m(p[4],p[7]),headingMarginBottom:new m(p[6],p[9])},y={headingFont:new u("h6Medium","h4Regular"),subheadingFont:new u("standardRegular","h6Regular"),walletTitleFont:new u("standardSemiBold","largeSemiBold"),walletSubTitleFont:new u("extraSmallRegular","standardRegular")},De=(e,a,g)=>t.jsxs(ot,{translatePhone:e,showIphone:g,children:[t.jsxs(at,{children:[t.jsx(gt,{children:D.timeText}),t.jsxs(rt,{children:[t.jsx(lt,{children:[...Array(4).keys()].map(l=>t.jsx(nt,{towerIndex:l},l))}),t.jsx(dt,{children:t.jsx(C,{className:"wave",children:t.jsx(C,{className:"wave",children:t.jsx(C,{className:"wave"})})})}),t.jsx(pt,{children:t.jsx(ct,{})}),t.jsx(ht,{})]})]}),t.jsxs(it,{children:[t.jsxs(Ye,{children:[t.jsx(_e,{showTick:a}),t.jsx(Ze,{showTick:a}),t.jsx(et,{showTick:a}),t.jsx(tt,{showTick:a}),t.jsxs(wt,{translateCardSkelton:e,children:[t.jsx(ut,{}),[...Array(4).keys()].map(l=>t.jsx($t,{lineIndex:l},l))]}),a?null:t.jsx(bt,{children:t.jsx(he,{scannerTheme:"light"})})]}),t.jsx(xt,{showTick:a}),t.jsx(mt,{showTick:a,children:D.addToWallet})]}),t.jsx(st,{})]}),F=({tabType:e})=>{const a=L();return t.jsxs(Ee,{children:[t.jsxs(R,{children:[t.jsx(Ne,{children:t.jsx(Ge,{windowSize:a})}),t.jsx(H,{windowSize:a,children:d.openWalletAppOnPhone})]}),t.jsxs(E,{windowSize:a,children:[e==="apple"?d.openWalletDescriptionApple:d.openWalletDescriptionGoogle,t.jsx(P,{})]}),t.jsxs(R,{children:[t.jsx(Le,{children:t.jsx(Ve,{windowSize:a})}),t.jsx(H,{windowSize:a,children:d.verifyCard})]}),t.jsxs(E,{windowSize:a,children:[e==="apple"?d.VerifyCardDescriptionApple:d.VerifyCardDescriptionGoogle,t.jsx(P,{})]})]})},Ht=({onGotItClick:e,isDebitCard:a,controllerEmails:g,classListFetchState:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:k,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:$,productInformation:j,creditAccountInformation:n,debitAccountInformation:v,chargeCardDetailView:G,creditAccount:V,creditAccountRepayment:J,cardIssuedByRoles:Q,cardIssuedByDepartmentName:X,cardHolderRoles:q,cardHolderDepartmentName:K})=>{const s=L(),O=le().analytics,[T,U]=h.useState(!1),[z,Y]=h.useState(!1),[_,Z]=h.useState(!1),[ee,te]=h.useState(!1),[S,ie]=h.useState("apple"),oe=ne(),ae=fe(oe.loggedInUserRoleMap),re=I=>{ge({chargeCardDetailView:G,classListFetchState:l,analytics:O,isDebitCard:a,isChargeCardAdmin:ae,cardIssuedByRoles:Q,cardIssuedByDepartmentName:X,cardHolderRoles:q,cardHolderDepartmentName:K,controllerEmails:g,pageName:"Card Activation",addToWalletType:I==="apple"?"Apple Wallet":"Google Wallet",productInformation:j,creditAccountInformation:n,debitAccountInformation:v,isChargeCardFeatureEnabled:f,creditAccount:V,creditAccountRepayment:J}),ie(I)};h.useEffect(()=>{setTimeout(()=>{U(!0)},a?9500:4500),setTimeout(()=>{Y(!0)},a?9e3:4e3),setTimeout(()=>{Z(!0)},a?10500:5500),setTimeout(()=>{te(!0)},a?15e3:1e4)},[a]);const se=T&&z,x=N.getLocalizedStrings().spendManagement.chargeCard;return t.jsx(vt,{windowSize:s,children:t.jsxs(Xe,{children:[t.jsx(de,{navBarContainerStyles:{paddingTop:p[2],alignItems:"center",paddingBottom:p[2]},title:x.addToWallet.title,ignoreScrollAction:!0,showBackButton:!1,showMenuIcon:!1,transparentBackground:!0,source:"AddToWalletPage",style:{zIndex:3},titleStyle:{marginTop:p[0]}}),t.jsxs(qe,{windowSize:s,children:[t.jsx(yt,{windowSize:s,children:x.addToWallet.heading}),t.jsx(ft,{windowSize:s,children:x.addToWallet.subheading})]}),t.jsxs(Ke,{windowSize:s,children:[s!=="small"?t.jsx(Ct,{children:t.jsxs(Oe,{windowSize:s,children:[t.jsxs(Ue,{windowSize:s,flipCard:T,scaleCard:z,children:[t.jsx(pe,{isDebitCard:a}),t.jsx(ce,{showCrossIcon:!1,isDebitCard:a})]}),De(_,ee,se)]})}):null,t.jsxs(Re,{windowSize:s,children:[t.jsx(He,{children:t.jsx(Ie,{options:[{id:"apple",dataTestId:"add-to-apple-wallet",label:t.jsxs(t.Fragment,{children:[t.jsx(Qe,{}),t.jsx(M,{children:d.appleWallet})]})},{id:"google",dataTestId:"add-to-google-wallet",label:t.jsxs(t.Fragment,{children:[t.jsx(Je,{}),t.jsx(M,{children:d.googleWallet})]})}],optionStyle:{padding:"12px"},thumbStyle:{paddingTop:i.sp4,paddingBottom:i.sp4},containerStyle:{border:i.sp0},selected:S,onToggle:re})}),t.jsxs(Fe,{children:[t.jsx(Pe,{isActive:S==="apple",children:t.jsx(F,{tabType:"apple"})}),t.jsx(Me,{isActive:S==="google",children:t.jsx(F,{tabType:"google"})})]}),s!=="small"?t.jsx(jt,{children:t.jsx(W,{variant:"primary",label:x.addToWallet.gotIt,onClick:e,style:{width:"fit-content"},"data-testid":A("got-it-button-web")})}):null]})]}),s==="small"?t.jsx(St,{children:t.jsx(W,{variant:"primary",label:x.addToWallet.gotIt,onClick:e,style:{width:"fit-content"},"data-testid":A("got-it-button-mobile")})}):null]})})},Fe=o.div`
41
41
  display: flex;
42
42
  position: relative;
43
43
  width: 100%;
@@ -78,11 +78,11 @@ import{Q as E,a7 as le,av as ne,F as N,V as t,bz as de,u as p,j0 as pe,ji as ce,
78
78
  text-transform: none;
79
79
  margin-left: ${i.sp2};
80
80
  cursor: pointer;
81
- `,Le=o.div`
81
+ `,Ee=o.div`
82
82
  display: flex;
83
83
  flex-direction: column;
84
84
  margin-top: ${i.sp6};
85
- `,Ee=o.div`
85
+ `,Le=o.div`
86
86
  padding: 12px;
87
87
  border-radius: ${i.sp4};
88
88
  background: ${r.successLight};
@@ -99,7 +99,7 @@ import{Q as E,a7 as le,av as ne,F as N,V as t,bz as de,u as p,j0 as pe,ji as ce,
99
99
  `,H=o(b)`
100
100
  ${({windowSize:e})=>y.walletTitleFont.style(e)}
101
101
  color: ${e=>e.theme.colors.primary};
102
- `,L=o(b)`
102
+ `,E=o(b)`
103
103
  ${({windowSize:e})=>y.walletSubTitleFont.style(e)}
104
104
  color: ${e=>e.theme.colors.hero};
105
105
  margin-left: ${i.sp9};
@@ -1,12 +1,12 @@
1
- import{d as H,Q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,bz as ve,y as D,a9 as R,g1 as ke,o as N,aQ as Pe,u as m,aL as X,cc as Be,cd as $e,ce as Ae,ak as Me,cf as Ie,b1 as ne,aA as oe,aS as re}from"./index-BP8jc2MZ.js";import{a as f}from"./core-3dlyNYRL.js";import{n as y}from"./mui-bYXq4XMS.js";import{bj as F,fW as Ye}from"./zeni-epic-state-xFtF3OLs.js";import{n as M}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{L as ze,k as Le}from"./ArAgingChart-Am7LTkqG-E4lvgjGa.js";import{C as ie}from"./NoDataChart-Ce1_TZ5w-5hIzERi0.js";import{I as se,R as $}from"./CollapsableReportTable-Crihcv_z-JDVTRjtF.js";import{d as le}from"./NoDataTable-l2T5Hw3t-B0z8hv-n.js";import{l as ce}from"./mapSpacerToTreeNode-DOEVwUIo-FsL3Wvr0.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./chartTypes-CwQl8aoN-BQd1i_cE.js";import"./AccountRow-Ck53DDbT-pVq02fp8.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const Re={chartHeight:new D(288,360)},de=y.div`
1
+ import{d as H,Q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,bz as ve,y as D,a9 as F,g1 as ke,o as N,aQ as Pe,u as m,aL as X,cc as Be,cd as $e,ce as Ae,ak as Me,cf as Ie,b1 as ne,aA as oe,aS as re}from"./index-Ci63exms.js";import{a as f}from"./core-3dlyNYRL.js";import{n as y}from"./mui-bYXq4XMS.js";import{bj as R,FB as Ye}from"./zeni-epic-state-BwKvATgd.js";import{n as M}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{L as ze,k as Le}from"./ArAgingChart-Am7LTkqG-CEoxIo8X.js";import{C as ie}from"./NoDataChart-Ce1_TZ5w-BfNH_4T8.js";import{I as se,R as $}from"./CollapsableReportTable-Crihcv_z-B6sIoSI3.js";import{d as le}from"./NoDataTable-l2T5Hw3t-Bh_N31mD.js";import{l as ce}from"./mapSpacerToTreeNode-DOEVwUIo-DiQ0KiMB.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./chartTypes-CwQl8aoN-DVag5uGx.js";import"./AccountRow-Ck53DDbT-BeebPIea.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const Fe={chartHeight:new D(288,360)},de=y.div`
2
2
  display: flex;
3
3
  `,ge=y.div`
4
4
  display: flex;
5
5
  flex: 1 1 auto;
6
6
  flex-direction: column;
7
- height: ${e=>Re.chartHeight.valuePx(e.windowSize)};
7
+ height: ${e=>Fe.chartHeight.valuePx(e.windowSize)};
8
8
  padding-bottom: ${N.sp6};
9
- `;function Fe({report:e}){return e.reportId==="accounts_payable_aging"?t.jsx(Te,{report:e}):t.jsx(Ke,{report:e})}function Te({report:e}){const a=j();return e.agingBalances.length===0?t.jsx(de,{children:t.jsx(ie,{title:x.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(ge,{windowSize:a,children:t.jsx(ne,{children:({height:o,width:i})=>t.jsx(ze,{isDetailPage:!0,report:e,width:i,height:o})})})}function Ke({report:e}){const a=j();return e.agingBalances.length===0?t.jsx(de,{children:t.jsx(ie,{title:x.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(ge,{windowSize:a,children:t.jsx(ne,{children:({height:o,width:i})=>t.jsx(Le,{isDetailPage:!0,report:e,width:i,height:o})})})}function He({nestedCustomer:e,numOfBalances:a,title:o,config:i,parentNodeIDs:s,ancestorMetadata:n}){return{children:[],id:$("ac_subentity_total",s),isLastNode:!1,reportElementData:{element:{kind:"ac_subentity_total",title:o,data:e,numOfBalances:a,metadata:n},config:i}}}function pe({agingBalances:e,numOfBalances:a,title:o,isLastNode:i,config:s,parentNodeIDs:n,ancestorMetadata:c}){const l=$("aging_report_row",[],o),r={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"aging_report_row",title:o,data:e,numOfBalances:a,metadata:c},config:s}},u=e.children.map((p,d)=>pe({agingBalances:p,numOfBalances:a,title:p.customer.name,config:s,isLastNode:d===e.children.length-1,parentNodeIDs:[...n,l],ancestorMetadata:{vendorOrCustomerAncestorMetadata:[...c.vendorOrCustomerAncestorMetadata,{depth:p.id.length-1,hasSibling:e.children.length>1,hasChildren:p.children.length>0,isLastNode:d===e.children.length-1,name:p.customer.name}]}}));return r.children.push(...u),e.children.length>0&&r.children.push(He({config:s,nestedCustomer:e,numOfBalances:a,title:e.customer.name,parentNodeIDs:n,ancestorMetadata:c})),r}function We({agingBalances:e,numOfBalances:a,title:o,isLastNode:i,config:s}){const n=$("aging_report_row",[],o);return{children:[],id:n,isLastNode:i,reportElementData:{element:{kind:"aging_report_row",title:o,data:e,numOfBalances:a},config:s}}}function W({agingPeriods:e,config:a,nodeId:o}){return{children:[],id:o??$("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:a}}}function me({title:e,balances:a,config:o,numOfBalances:i,nodeId:s}){return{children:[],id:s??$("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,numOfBalances:i,data:a},config:o}}}const qe=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=W({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>We({agingBalances:d,title:d.vendor.name,numOfBalances:c,isLastNode:g===n.length-1,config:a}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}},Ue=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=W({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>pe({agingBalances:d,title:d.customer.name,numOfBalances:c,isLastNode:g===n.length-1,config:a,parentNodeIDs:[],ancestorMetadata:{vendorOrCustomerAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:d.children.length>0,isLastNode:g===n.length-1}]}}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}};function ue(e,a,o,i=!0){Object.assign(e.config,a);const{agingPeriods:s}=o,n=W({agingPeriods:s,config:a});return{config:a,headerNodes:i?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const O={contentPaddingLeft:new D(m[0],m[0],m[0]),contentPaddingRight:new D(m[3],m[3],m[8]),wrapperPadding:new D(m[3],m[3],m[8])},I=y.div`
9
+ `;function Re({report:e}){return e.reportId==="accounts_payable_aging"?t.jsx(Te,{report:e}):t.jsx(Ke,{report:e})}function Te({report:e}){const a=j();return e.agingBalances.length===0?t.jsx(de,{children:t.jsx(ie,{title:x.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(ge,{windowSize:a,children:t.jsx(ne,{children:({height:o,width:i})=>t.jsx(ze,{isDetailPage:!0,report:e,width:i,height:o})})})}function Ke({report:e}){const a=j();return e.agingBalances.length===0?t.jsx(de,{children:t.jsx(ie,{title:x.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(ge,{windowSize:a,children:t.jsx(ne,{children:({height:o,width:i})=>t.jsx(Le,{isDetailPage:!0,report:e,width:i,height:o})})})}function He({nestedCustomer:e,numOfBalances:a,title:o,config:i,parentNodeIDs:s,ancestorMetadata:n}){return{children:[],id:$("ac_subentity_total",s),isLastNode:!1,reportElementData:{element:{kind:"ac_subentity_total",title:o,data:e,numOfBalances:a,metadata:n},config:i}}}function pe({agingBalances:e,numOfBalances:a,title:o,isLastNode:i,config:s,parentNodeIDs:n,ancestorMetadata:c}){const l=$("aging_report_row",[],o),r={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"aging_report_row",title:o,data:e,numOfBalances:a,metadata:c},config:s}},u=e.children.map((p,d)=>pe({agingBalances:p,numOfBalances:a,title:p.customer.name,config:s,isLastNode:d===e.children.length-1,parentNodeIDs:[...n,l],ancestorMetadata:{vendorOrCustomerAncestorMetadata:[...c.vendorOrCustomerAncestorMetadata,{depth:p.id.length-1,hasSibling:e.children.length>1,hasChildren:p.children.length>0,isLastNode:d===e.children.length-1,name:p.customer.name}]}}));return r.children.push(...u),e.children.length>0&&r.children.push(He({config:s,nestedCustomer:e,numOfBalances:a,title:e.customer.name,parentNodeIDs:n,ancestorMetadata:c})),r}function qe({agingBalances:e,numOfBalances:a,title:o,isLastNode:i,config:s}){const n=$("aging_report_row",[],o);return{children:[],id:n,isLastNode:i,reportElementData:{element:{kind:"aging_report_row",title:o,data:e,numOfBalances:a},config:s}}}function q({agingPeriods:e,config:a,nodeId:o}){return{children:[],id:o??$("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:a}}}function me({title:e,balances:a,config:o,numOfBalances:i,nodeId:s}){return{children:[],id:s??$("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,numOfBalances:i,data:a},config:o}}}const Ue=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=q({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>qe({agingBalances:d,title:d.vendor.name,numOfBalances:c,isLastNode:g===n.length-1,config:a}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}},We=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=q({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>pe({agingBalances:d,title:d.customer.name,numOfBalances:c,isLastNode:g===n.length-1,config:a,parentNodeIDs:[],ancestorMetadata:{vendorOrCustomerAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:d.children.length>0,isLastNode:g===n.length-1}]}}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}};function ue(e,a,o,i=!0){Object.assign(e.config,a);const{agingPeriods:s}=o,n=q({agingPeriods:s,config:a});return{config:a,headerNodes:i?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const O={contentPaddingLeft:new D(m[0],m[0],m[0]),contentPaddingRight:new D(m[3],m[3],m[8]),wrapperPadding:new D(m[3],m[3],m[8])},I=y.div`
10
10
  display: flex;
11
11
  position: sticky;
12
12
  justify-content: center;
@@ -16,7 +16,7 @@ import{d as H,Q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,
16
16
  `,he=y.div`
17
17
  width: 100%;
18
18
  height: calc(100vh - ${N.sp11});
19
- `;function Ge({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ve,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=j(),r=H(),u=!(l==="small"||l==="medium-compact"),p=f.useCallback((d,g)=>{a(d,g)},[a]);return f.useEffect(()=>{const d={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.apAgingUIState.sortKey,sortOrder:e.apAgingUIState.sortOrder,onSortOrderChanged:p,onEntityNameClick:o}};if(n==null||!oe(i,e)){const g=qe(e,d,u);s(e),c(g)}else{const g=ue(n,d,e,u);c(g)}},[e,p]),e.agingBalances.length===0?t.jsx(I,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(I,{windowSize:l,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(r.colors.grey4),rootNodes:n,type:"name+balances_actual",isSticky:{isStickyHeader:u,isStickyName:u},treeNodePadding:{left:O.contentPaddingLeft.value(l),right:O.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ve({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=j(),u=H(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,C)=>{a(g,C)},[a]);return f.useEffect(()=>{const g={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.arAgingUIState.sortKey,sortOrder:e.arAgingUIState.sortOrder,onSortOrderChanged:d,onEntityNameClick:o}};if(c==null||!oe(s,e)){const C=Ue(e,g,p);n(e),l(C)}else{const C=ue(c,g,e,p);l(C)}},[e,d]),e.agingBalances.length===0?t.jsx(I,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(I,{windowSize:r,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(u.colors.grey4),rootNodes:c,type:"name+balances_actual",isSticky:{isStickyHeader:p,isStickyName:p},treeNodePadding:{left:O.contentPaddingLeft.value(r),right:O.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Qe={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Xe=y.div`
19
+ `;function Ge({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ve,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=j(),r=H(),u=!(l==="small"||l==="medium-compact"),p=f.useCallback((d,g)=>{a(d,g)},[a]);return f.useEffect(()=>{const d={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.apAgingUIState.sortKey,sortOrder:e.apAgingUIState.sortOrder,onSortOrderChanged:p,onEntityNameClick:o}};if(n==null||!oe(i,e)){const g=Ue(e,d,u);s(e),c(g)}else{const g=ue(n,d,e,u);c(g)}},[e,p]),e.agingBalances.length===0?t.jsx(I,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(I,{windowSize:l,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(r.colors.grey4),rootNodes:n,type:"name+balances_actual",isSticky:{isStickyHeader:u,isStickyName:u},treeNodePadding:{left:O.contentPaddingLeft.value(l),right:O.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ve({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=j(),u=H(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,C)=>{a(g,C)},[a]);return f.useEffect(()=>{const g={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.arAgingUIState.sortKey,sortOrder:e.arAgingUIState.sortOrder,onSortOrderChanged:d,onEntityNameClick:o}};if(c==null||!oe(s,e)){const C=We(e,g,p);n(e),l(C)}else{const C=ue(c,g,e,p);l(C)}},[e,d]),e.agingBalances.length===0?t.jsx(I,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(I,{windowSize:r,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(u.colors.grey4),rootNodes:c,type:"name+balances_actual",isSticky:{isStickyHeader:p,isStickyName:p},treeNodePadding:{left:O.contentPaddingLeft.value(r),right:O.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Qe={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Xe=y.div`
20
20
  display: flex;
21
21
  width: 100%;
22
22
  justify-content: space-between;
@@ -34,7 +34,7 @@ import{d as H,Q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,
34
34
  width: fit-content;
35
35
  `,te=y(Ie)`
36
36
  color: ${e=>e.theme.colors.primary};
37
- `;function Ze({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Ee(e),[e]),i=j();return t.jsxs(Xe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(Z,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:X("0,0",s?.balance)})]},n)}),t.jsxs(Z,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:X("0,0",o?.balance)})]})]})}const K={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:b,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=H(),[o,i]=f.useState(!1),s=j(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:C,onEntityNameClick:fe,updateDownloadStateHandler:Y,onNodeCollapseToggled:ye}=e,{fetchState:v,reportTitle:we,reportId:w}=n,{searchString:k,downloadState:A,sortKey:z,sortOrder:L,selectedDate:S,agingDateSelectionType:q}=c,{authParams:U,downloadEndPoint:G,timezone:J}=l,V=f.useCallback((h,_)=>{const P=ae(_);u(h,P),r.trackAgingReportDateChange(M(w),S!=null?S.format(b.analytics.YYYYDashMMDashDDFormat):F().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),Q=f.useCallback(h=>{const _=be({options:B.preComputedDurationOptions.map(({label:E,value:_e})=>({label:E,value:Ye(_e)})).filter(({value:E})=>E!=null),selectedDate:h}),P=ae(_);u(h,P),r.trackAgingReportDateChange(M(w),S!=null?S.format(b.analytics.YYYYDashMMDashDDFormat):F().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),xe=f.useCallback((h,_)=>{C(h,_),r.trackAgingReportSortChange(M(w),_,h)},[r,C,w]),Se=f.useCallback(()=>t.jsx(De,{maxDate:F(),selectedDate:{date:S},precomputedOptionsProperties:{preComputedOptionSelected:ct(q),preComputedOptionDateFormat:b.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:V},onSelectedDateChanged:Q}),[S,V,Q,q]);if(f.useEffect(()=>{async function h(){const _={companyName:l.companyName,searchString:k,sortKey:z,sortOrder:L,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:S};await tt(G,U,_),Y("Completed"),r.trackAgingReportDownloadClick(M(w),z,L)}o&&A!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[U,G,l.companyName,A,o,w,k,z,L,Y,S,r,J]),v==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const Ce=t.jsxs(t.Fragment,{children:[t.jsx(Oe,{isSearchOpen:(k?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:k??"",onSearchTextChanged:h=>{d(h)},downloadPresent:!0}),t.jsx(je,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:A==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(A==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(ve,{title:we,subTitle:Se(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Ce,downloadPresent:!0,style:{marginBottom:K.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(R,{controller:v==="In-Progress"||v==="Not-Started",children:t.jsx(ke,{fetchState:v})}),t.jsxs(R,{controller:v==="Completed",children:[t.jsx(R,{controller:k.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Ze,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Fe,{report:n})]})}),t.jsx(Ge,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,T.defaultFileName),l=await n.arrayBuffer();Ae(l,c)}else console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
37
+ `;function Ze({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Ee(e),[e]),i=j();return t.jsxs(Xe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(Z,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:X("0,0",s?.balance)})]},n)}),t.jsxs(Z,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:X("0,0",o?.balance)})]})]})}const K={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:b,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=H(),[o,i]=f.useState(!1),s=j(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:C,onEntityNameClick:fe,updateDownloadStateHandler:Y,onNodeCollapseToggled:ye}=e,{fetchState:v,reportTitle:we,reportId:w}=n,{searchString:k,downloadState:A,sortKey:z,sortOrder:L,selectedDate:S,agingDateSelectionType:U}=c,{authParams:W,downloadEndPoint:G,timezone:J}=l,V=f.useCallback((h,_)=>{const P=ae(_);u(h,P),r.trackAgingReportDateChange(M(w),S!=null?S.format(b.analytics.YYYYDashMMDashDDFormat):R().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),Q=f.useCallback(h=>{const _=be({options:B.preComputedDurationOptions.map(({label:E,value:_e})=>({label:E,value:Ye(_e)})).filter(({value:E})=>E!=null),selectedDate:h}),P=ae(_);u(h,P),r.trackAgingReportDateChange(M(w),S!=null?S.format(b.analytics.YYYYDashMMDashDDFormat):R().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),xe=f.useCallback((h,_)=>{C(h,_),r.trackAgingReportSortChange(M(w),_,h)},[r,C,w]),Se=f.useCallback(()=>t.jsx(De,{maxDate:R(),selectedDate:{date:S},precomputedOptionsProperties:{preComputedOptionSelected:ct(U),preComputedOptionDateFormat:b.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:V},onSelectedDateChanged:Q}),[S,V,Q,U]);if(f.useEffect(()=>{async function h(){const _={companyName:l.companyName,searchString:k,sortKey:z,sortOrder:L,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:S};await tt(G,W,_),Y("Completed"),r.trackAgingReportDownloadClick(M(w),z,L)}o&&A!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[W,G,l.companyName,A,o,w,k,z,L,Y,S,r,J]),v==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const Ce=t.jsxs(t.Fragment,{children:[t.jsx(Oe,{isSearchOpen:(k?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:k??"",onSearchTextChanged:h=>{d(h)},downloadPresent:!0}),t.jsx(je,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:A==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(A==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(ve,{title:we,subTitle:Se(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Ce,downloadPresent:!0,style:{marginBottom:K.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(F,{controller:v==="In-Progress"||v==="Not-Started",children:t.jsx(ke,{fetchState:v})}),t.jsxs(F,{controller:v==="Completed",children:[t.jsx(F,{controller:k.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Ze,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Re,{report:n})]})}),t.jsx(Ge,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,T.defaultFileName),l=await n.arrayBuffer();Ae(l,c)}else console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
38
38
  display: flex;
39
39
  width: 100%;
40
40
  height: calc(100% - 60px);
@@ -1,4 +1,4 @@
1
- import{cO as G,em as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as ie,ak as ne,cY as Pe,cf as Ce,fR as Y,fS as K,cx as J,u as L,bQ as Se,aH as te,gJ as de,fU as R,fT as ce,fV as pe,aZ as me,gK as Oe,p as ue,cV as ge,al as he,cW as Te,ac as Re}from"./index-BP8jc2MZ.js";import{n as p}from"./mui-bYXq4XMS.js";import{fC as ze,bh as X}from"./zeni-epic-state-xFtF3OLs.js";import{a as E}from"./core-3dlyNYRL.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-BymSRQN9.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-Docjgj8Y-BRH41KM8.js";const B=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new T(120,120,160),toolTipWidth:new T(215,237)},g=Z.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:$,isBankingOnlyTenant:m,isCardsOnlyTenant:f,isEdit:U,person:x,analytics:v})=>{const w=M(),C=se.largeLabelWidth.value(w),{setValue:S}=G(),D=te(h),y=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),_=E.useMemo(()=>te(J.roles),[]),u=X(e.role);return E.useEffect(()=>{(u||m||f)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,f]),l.jsxs(Le,{windowSize:w,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:B(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(Q,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:B(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(m,f)},productsByUserRole:Y(e.role,$)},registerOptions:{required:!0}}}),l.jsx(Q,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:B(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(Q,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:B(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||f?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||f)},isDisabled:u||m||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||f?"disabled":void 0,opacity:u||m||f?.32:1}),U?null:l.jsxs(Ue,{windowSize:w,children:[g.invitePage.controllerText,y[0]?l.jsxs(Ne,{href:`mailto:${y[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${y[0].firstName} ${y[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(fe,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:B(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:_},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
1
+ import{cO as G,eh as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as ie,ak as ne,cY as Pe,cf as Ce,fR as Y,fS as K,cx as J,u as L,bQ as Se,aH as te,gJ as de,fU as R,fT as ce,fV as pe,aZ as me,gK as Oe,p as ue,cV as ge,al as he,cW as Te,ac as Re}from"./index-Ci63exms.js";import{n as p}from"./mui-bYXq4XMS.js";import{Fh as ze,bh as X}from"./zeni-epic-state-BwKvATgd.js";import{a as E}from"./core-3dlyNYRL.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-f0PElM5i.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-Docjgj8Y-C6xxx7IQ.js";const B=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new T(120,120,160),toolTipWidth:new T(215,237)},g=Z.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:$,isBankingOnlyTenant:m,isCardsOnlyTenant:f,isEdit:U,person:x,analytics:v})=>{const w=M(),C=se.largeLabelWidth.value(w),{setValue:S}=G(),D=te(h),y=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),_=E.useMemo(()=>te(J.roles),[]),u=X(e.role);return E.useEffect(()=>{(u||m||f)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,f]),l.jsxs(Le,{windowSize:w,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:B(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(Q,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:B(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(m,f)},productsByUserRole:Y(e.role,$)},registerOptions:{required:!0}}}),l.jsx(Q,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:B(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(Q,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:B(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||f?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||f)},isDisabled:u||m||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||f?"disabled":void 0,opacity:u||m||f?.32:1}),U?null:l.jsxs(Ue,{windowSize:w,children:[g.invitePage.controllerText,y[0]?l.jsxs(Ne,{href:`mailto:${y[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${y[0].firstName} ${y[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(fe,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:B(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:_},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{d as R,Q as B,F as c,V as o,bL as H,g1 as K,bz as V,cj as J,o as L,aQ as Q,bA as U,y as M,cc as W,cd as q,ce as G,u}from"./index-BP8jc2MZ.js";import{a as v}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{W as X,L as Z}from"./EntitySummarySection-BIV9aAq2-0J_nJAr8.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const C={wrapperContainerMarginTop:new M(u[4],u[0]),wrapperContaineHorizontalrMargin:new M(u[0],u[8])},ee=i.div`
1
+ import{d as R,Q as B,F as c,V as o,bL as H,g1 as K,bz as V,cj as J,o as L,aQ as Q,bA as U,y as M,cc as W,cd as q,ce as G,u}from"./index-Ci63exms.js";import{a as v}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{W as X,L as Z}from"./EntitySummarySection-BIV9aAq2-CUHksODf.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const C={wrapperContainerMarginTop:new M(u[4],u[0]),wrapperContaineHorizontalrMargin:new M(u[0],u[8])},ee=i.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{V as t,Q as m,_ as x,o as e,y as l,p as s,aQ as $,F as g,bn as u,cT as w,dP as f,cS as b}from"./index-BP8jc2MZ.js";import{n as o,k as j}from"./mui-bYXq4XMS.js";import{a as k}from"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const d={maxWidth:new l(280,322),contentMaxWidth:new l(200,250)},y=j`
1
+ import{V as t,Q as m,_ as x,o as e,y as l,p as s,aQ as $,F as g,bn as u,cT as w,dK as f,cS as b}from"./index-Ci63exms.js";import{n as o,k as j}from"./mui-bYXq4XMS.js";import{a as k}from"./core-3dlyNYRL.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const d={maxWidth:new l(280,322),contentMaxWidth:new l(200,250)},y=j`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -53,7 +53,7 @@ import{V as t,Q as m,_ as x,o as e,y as l,p as s,aQ as $,F as g,bn as u,cT as w,
53
53
  white-space: pre-line;
54
54
  `,E=o.div`
55
55
  max-width: ${r=>d.contentMaxWidth.valuePx(r.windowSize)};
56
- `,P=o.div`
56
+ `,C=o.div`
57
57
  margin-top: 3px;
58
58
  margin-left: 12px;
59
59
  width: ${e.sp3};
@@ -66,6 +66,6 @@ import{V as t,Q as m,_ as x,o as e,y as l,p as s,aQ as $,F as g,bn as u,cT as w,
66
66
  &:hover {
67
67
  color: ${s.primaryDark};
68
68
  }
69
- `,C=(r,n,i)=>{let a=g.getLocalizedStrings().common.snackBar[r][n];return i?.forEach(c=>{a=a.replace(c.variableName,c.variableValue)}),a},M=({type:r})=>{switch(r){case"success":return t.jsx(S,{});case"info":return t.jsx(z,{});case"error":case"warning":return t.jsx(D,{});case"notification":return t.jsx(T,{});default:return null}};function O(r){const n=m(),{message:i,messageType:a,showStatusIcon:c,onRemoveSnackbar:p}=r;return k.useEffect(()=>{const h=setTimeout(()=>{p()},5e3);return()=>clearTimeout(h)},[i.section]),t.jsxs(v,{windowSize:n,children:[c===!0?t.jsx(M,{type:a}):null,t.jsx(E,{windowSize:n,children:t.jsx(V,{children:t.jsx(W,{children:C(i.section,i.text,i.variables)})})}),t.jsx(P,{onClick:p,children:t.jsx(x,{})})]})}const A=r=>t.jsx(_,{isOnDashboard:r.isOnDashboard,children:r.showSnackbar===!0?t.jsx(O,{...r.snackbar}):null}),_=o.div`
69
+ `,M=(r,n,i)=>{let a=g.getLocalizedStrings().common.snackBar[r][n];return i?.forEach(c=>{a=a.replace(c.variableName,c.variableValue)}),a},O=({type:r})=>{switch(r){case"success":return t.jsx(S,{});case"info":return t.jsx(z,{});case"error":case"warning":return t.jsx(D,{});case"notification":return t.jsx(T,{});default:return null}};function P(r){const n=m(),{message:i,messageType:a,showStatusIcon:c,onRemoveSnackbar:p}=r;return k.useEffect(()=>{const h=setTimeout(()=>{p()},5e3);return()=>clearTimeout(h)},[i.section]),t.jsxs(v,{windowSize:n,children:[c===!0?t.jsx(O,{type:a}):null,t.jsx(E,{windowSize:n,children:t.jsx(V,{children:t.jsx(W,{children:M(i.section,i.text,i.variables)})})}),t.jsx(C,{onClick:p,children:t.jsx(x,{})})]})}const q=r=>t.jsx(_,{isOnDashboard:r.isOnDashboard,children:r.showSnackbar===!0?t.jsx(P,{...r.snackbar}):null}),_=o.div`
70
70
  background-color: ${r=>r.isOnDashboard?r.theme.colors.background:"transparent"};
71
- `;export{A as default};
71
+ `;export{q as default};
@@ -1,4 +1,4 @@
1
- import{av as te,k as ae,l as k,bh as se,V as e,bi as oe,bj as le,bk as re,bl as de,a9 as ce,bm as ue,o as t,bn as pe,aW as m,b3 as b}from"./index-BP8jc2MZ.js";import{a as o,w as me}from"./core-3dlyNYRL.js";import{n as l}from"./mui-bYXq4XMS.js";import{bl as be}from"./zeni-epic-state-xFtF3OLs.js";import{v as he}from"./DashboardSidebarBackgroundAnimation-BdDVYK19-CIZN44Ie.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const fe=o.memo(function({animationEnabled:n=!1}){const[i,s]=m("DashboardSidebarBottomNewYear",n),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),n&&a!=null?e.jsx(ge,{children:e.jsx(b,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ge=l.div`
1
+ import{av as te,k as ae,l as k,bh as se,V as e,bi as oe,bj as le,bk as re,bl as de,a9 as ce,bm as ue,o as t,bn as pe,aW as m,b3 as b}from"./index-Ci63exms.js";import{a as o,w as me}from"./core-3dlyNYRL.js";import{n as l}from"./mui-bYXq4XMS.js";import{bl as be}from"./zeni-epic-state-BwKvATgd.js";import{v as he}from"./DashboardSidebarBackgroundAnimation-BdDVYK19-COjDYEak.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const fe=o.memo(function({animationEnabled:n=!1}){const[i,s]=m("DashboardSidebarBottomNewYear",n),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),n&&a!=null?e.jsx(ge,{children:e.jsx(b,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ge=l.div`
2
2
  position: absolute;
3
3
  z-index: 0;
4
4
  bottom: -${t.sp3};
@@ -0,0 +1,47 @@
1
+ import{d as V,Q,av as D,F as c,aS as S,V as e,bz as E,A as G,fp as f,dC as y,y as s,o as j,al as J,b,u as o}from"./index-Ci63exms.js";import{n as l}from"./mui-bYXq4XMS.js";import{Fe as N,Ff as K}from"./zeni-epic-state-BwKvATgd.js";import"./core-3dlyNYRL.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const a={sectionRowGap:new s(o[4],o[8],o[8]),lastSectionPaddingBottom:new s(o[7],o[10],o[10]),iconWidthHeight:new s(20,o[4]),subtitleSectionWidth:new s(343,580,1200)},ue=({billpayApprovalView:t,remiApproverView:k,currentTenant:d,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:z,onSetupApprovalRulesRemiSectionClick:A})=>{const n=V(),i=Q(),p=D(),{fetchState:u,allApprovalRules:m,approvalRulesStatus:C}=t,{fetchState:h,allApprovalRules:g,approvalRulesStatus:T}=k,{commonSetUp:$,spendManagement:B}=c.getLocalizedStrings(),x=c.getLocalizedStrings().common.settings,v=c.getLocalizedStrings().common.headers,{billPay:I,reimbursement:L}=B,{billPaySetup:M}=I,{reimbursementSetup:W}=L,{setUp:r}=$,H=u==="In-Progress"||h==="In-Progress"||u==="Not-Started"||h==="Not-Started",w=n.mode==="light"?new S(n.colors.brandColorJadeLight):new S(n.colors.brandColorJadeDark),F=N(d,p.loggedInUserRoleMap),U=K(d,p.loggedInUserRoleMap);return e.jsxs(X,{children:[e.jsx(E,{source:"ApprovalRulesSettingsPage",title:x.title.approvalRules,backgroundColor:n.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:P}),e.jsx(Y,{windowSize:i,children:H?e.jsx(Z,{children:e.jsx(G,{size:"ExtraLarge",start:!0})}):e.jsxs(O,{children:[e.jsx(q,{windowSize:i,children:e.jsx(ee,{windowSize:i,children:x.infoText.approvalRules})}),e.jsxs(_,{windowSize:i,children:[F===!0&&e.jsx(f,{title:m.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:M.approvalSubTitle,header:v.bills,icon:{element:e.jsx(y,{width:a.iconWidthHeight.valuePx(i),height:a.iconWidthHeight.valuePx(i)}),color:w},onClick:z,status:m.length>0?C:void 0}),U===!0&&e.jsx(f,{title:g.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:W.approvalSubTitle,header:v.reimbursements,icon:{element:e.jsx(y,{height:a.iconWidthHeight.valuePx(i)}),color:w},style:{paddingBottom:a.lastSectionPaddingBottom.valuePx(i)},onClick:A,status:g.length>0?T:void 0})]})]})})]})},O=l.div`
2
+ width: 100%;
3
+ margin: auto;
4
+ display: flex;
5
+ justify-content: flex-start;
6
+ height: 100%;
7
+ overflow-y: auto;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ `,X=l.div`
11
+ display: flex;
12
+ min-height: 100%;
13
+ flex-direction: column;
14
+ row-gap: ${j.sp3};
15
+ width: 100%;
16
+ background-color: ${t=>t.theme.colors.grey4};
17
+ `,Y=l.div`
18
+ display: flex;
19
+ height: 100%;
20
+ overflow-y: auto;
21
+ justify-content: center;
22
+ `,Z=l.div`
23
+ display: flex;
24
+ width: 100%;
25
+ height: calc(100vh - 110px);
26
+ flex-direction: row;
27
+ justify-content: center;
28
+ align-items: center;
29
+ background-color: ${t=>t.theme.colors.grey4};
30
+ `,_=l.div`
31
+ display: flex;
32
+ flex-direction: column;
33
+ row-gap: ${t=>a.sectionRowGap.valuePx(t.windowSize)};
34
+ `,q=l(J)`
35
+ display: flex;
36
+ justify-content: center;
37
+ align-items: center;
38
+ width: ${t=>a.subtitleSectionWidth.valuePx(t.windowSize)};
39
+ margin-bottom: ${j.sp5};
40
+ `,ee=l.div`
41
+ display: flex;
42
+ align-items: center;
43
+
44
+ color: ${t=>t.theme.colors.hero};
45
+ font-family: ${b.largeMedium.fontFamily};
46
+ ${b.standardRegular.css};
47
+ `;export{ue as default};
@@ -1,4 +1,4 @@
1
- import{V as i,F as f,db as k,d as z,b1 as P,u as S,b as w,aV as T,dc as N,dd as K,p as h,o as x,ak as H}from"./index-BP8jc2MZ.js";import{a as C,w as _}from"./core-3dlyNYRL.js";import{n as j}from"./mui-bYXq4XMS.js";import{l as v,_ as V,h as R,m as J,u as L}from"./chartTypes-CwQl8aoN-BQd1i_cE.js";import{bn as B,fg as D}from"./zeni-epic-state-xFtF3OLs.js";import{d as A,C as W,X as G,Y as I,T as M,b as F}from"./recharts-CXSQ4XPK.js";const Q=j.div`
1
+ import{V as i,F as f,d6 as k,d as z,b1 as P,u as S,b as w,aV as T,d7 as N,d8 as K,p as h,o as x,ak as q}from"./index-Ci63exms.js";import{a as C,w as H}from"./core-3dlyNYRL.js";import{n as j}from"./mui-bYXq4XMS.js";import{l as v,_ as V,h as R,m as J,u as L}from"./chartTypes-CwQl8aoN-DVag5uGx.js";import{bn as B,E_ as E}from"./zeni-epic-state-BwKvATgd.js";import{d as A,C as W,X as G,Y as I,T as M,b as F}from"./recharts-h5iNQbFd.js";const Q=j.div`
2
2
  display: flex;
3
3
  `,U=j.div`
4
4
  flex: display;
@@ -7,7 +7,7 @@ import{V as i,F as f,db as k,d as z,b1 as P,u as S,b as w,aV as T,dc as N,dd as
7
7
  flex-direction: column;
8
8
  padding: ${x.sp3};
9
9
  background-color: ${r=>r.theme.colors.black};
10
- `,E=j(H)`
10
+ `,D=j(q)`
11
11
  color: ${r=>r.color??h.neutralGrey2Light};
12
12
  text-align: left;
13
13
  `,Z=j.div`
@@ -15,10 +15,10 @@ import{V as i,F as f,db as k,d as z,b1 as P,u as S,b as w,aV as T,dc as N,dd as
15
15
  width: 100%;
16
16
  height: 1px;
17
17
  background-color: ${h.neutralGrey3Dark};
18
- `,rr=({active:r,payload:o,barName:e})=>{const t=[];if(o!=null&&r===!0){const n=o.filter(m=>m.name==e)[0],c=n.payload,u=n.color,s=e!=null&&c.record[e]!=null?c.record[e].amount:void 0,d={amount:0,currencyCode:"",currencySymbol:""};let l;for(l in c.record){const m=c.record[l].amount;d.amount+=c.record[l].amount?.amount??0,d.currencyCode=m!=null?m.currencyCode:d.currencyCode,d.currencySymbol=m!=null?m.currencySymbol:d.currencySymbol}const a=J(e);t.push({barName:a,actual:s,color:u}),t.push({barName:f.getLocalizedStrings().chartCard.total,actual:d,color:h.brandColorPearl})}return t},er=({barLabelsWithValues:r})=>i.jsx(Q,{children:i.jsxs(U,{children:[i.jsx(E,{color:r[0].color,children:`${r[0].barName}: ${L(r[0].actual)}`}),i.jsx(Z,{}),i.jsx(E,{children:`${f.getLocalizedStrings().chartCard.total}: ${L(r[1].actual)}`})]})}),tr=r=>{const o=rr({...r});return o.length===0?null:i.jsx(er,{barLabelsWithValues:o})},Y=_.memo(tr),X=5;function or(r){const o=N(r,(e,t)=>[e.amount?.amount??0,t]);return o.sort((e,t)=>t[0]-e[0]),o.slice(0,X-1).reduce((e,t)=>({...e,[t[1]]:!0}),{})}function O(r){const o=[];for(const e in r)o.push(e);return o.sort((e,t)=>(r[t].amount?.amount??0)-(r[e].amount?.amount??0)),o}const ar=r=>{const o=r.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),e=[];return{recordByDurations:r.agingPeriods.map(t=>{const n={};r.agingBalances.forEach(s=>{const d=v(s.vendor?.name??"",t);n[d]={amount:s.apAgingBalances.find(l=>l.period===t)?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>X){const s=or(n),d=k(n,(b,p)=>s[p]===!0),l=k(n,(b,p)=>s[p]!==!0),a=Object.keys(l).reduce((b,p)=>b+(l[p].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??B.currencyCode,currencySymbol:l[m].amount?.currencySymbol??B.currencySymbol}};const y=O(d);return e.push(...y),{label:c,record:d}}const u=O(n);return e.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(e)}},nr=j.div`
18
+ `,rr=({active:r,payload:o,barName:e})=>{const t=[];if(o!=null&&r===!0){const n=o.filter(m=>m.name==e)[0],c=n.payload,u=n.color,s=e!=null&&c.record[e]!=null?c.record[e].amount:void 0,d={amount:0,currencyCode:"",currencySymbol:""};let l;for(l in c.record){const m=c.record[l].amount;d.amount+=c.record[l].amount?.amount??0,d.currencyCode=m!=null?m.currencyCode:d.currencyCode,d.currencySymbol=m!=null?m.currencySymbol:d.currencySymbol}const a=J(e);t.push({barName:a,actual:s,color:u}),t.push({barName:f.getLocalizedStrings().chartCard.total,actual:d,color:h.brandColorPearl})}return t},er=({barLabelsWithValues:r})=>i.jsx(Q,{children:i.jsxs(U,{children:[i.jsx(D,{color:r[0].color,children:`${r[0].barName}: ${L(r[0].actual)}`}),i.jsx(Z,{}),i.jsx(D,{children:`${f.getLocalizedStrings().chartCard.total}: ${L(r[1].actual)}`})]})}),tr=r=>{const o=rr({...r});return o.length===0?null:i.jsx(er,{barLabelsWithValues:o})},Y=H.memo(tr),X=5;function or(r){const o=N(r,(e,t)=>[e.amount?.amount??0,t]);return o.sort((e,t)=>t[0]-e[0]),o.slice(0,X-1).reduce((e,t)=>({...e,[t[1]]:!0}),{})}function O(r){const o=[];for(const e in r)o.push(e);return o.sort((e,t)=>(r[t].amount?.amount??0)-(r[e].amount?.amount??0)),o}const ar=r=>{const o=r.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),e=[];return{recordByDurations:r.agingPeriods.map(t=>{const n={};r.agingBalances.forEach(s=>{const d=v(s.vendor?.name??"",t);n[d]={amount:s.apAgingBalances.find(l=>l.period===t)?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>X){const s=or(n),d=k(n,(b,p)=>s[p]===!0),l=k(n,(b,p)=>s[p]!==!0),a=Object.keys(l).reduce((b,p)=>b+(l[p].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??B.currencyCode,currencySymbol:l[m].amount?.currencySymbol??B.currencySymbol}};const y=O(d);return e.push(...y),{label:c,record:d}}const u=O(n);return e.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(e)}},nr=j.div`
19
19
  width: ${r=>r.width}px;
20
20
  height: ${r=>r.height}px;
21
- `,sr=({active:r,payload:o,mouseOverBarName:e})=>o?.find(t=>t.name===e)!=null&&e!=null&&r===!0?i.jsx(Y,{active:r,payload:o,barName:e}):null;function jr({report:r,width:o,height:e,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ar(r),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const y=g.record;return(y[a]?.amount!=null?y[a].amount:void 0)?.amount??0},stackId:"a",fill:lr(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(cr,{chartData:s,barElements:d(),width:o,height:e,isDetailPage:t===!0,customToolTipContent:i.jsx(sr,{mouseOverBarName:c})})}const cr=({chartData:r,barElements:o,customToolTipContent:e,width:t,height:n,isDetailPage:c})=>{const u=z(),s=V(r);return i.jsx(nr,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(A,{width:l,height:d,stackOffset:"sign",data:r.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject}}),i.jsx(I,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(M,{wrapperStyle:{zIndex:2},cursor:!1,content:e,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function lr(r,o){const e=R(r),t=f.getLocalizedStrings().reports.aging.duration[e],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[r]!=null){const c=n[r].amount?.amount??0;let u=1;switch(K(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}const q=5;function ir(r){const o=N(r,(e,t)=>[e.amount?.amount??0,t]);return o.sort((e,t)=>t[0]-e[0]),o.slice(0,q-1).reduce((e,t)=>({...e,[t[1]]:!0}),{})}function $(r){const o=[];for(const e in r)o.push(e);return o.sort((e,t)=>(r[t].amount?.amount??0)-(r[e].amount?.amount??0)),o}const ur=r=>{const o=r.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),e=[];return{recordByDurations:r.agingPeriods.map(t=>{const n={};r.agingBalances.forEach(s=>{const d=v(s.customer?.name??"",t),l=s.arAgingBalances.find(a=>a.period===t);n[d]={amount:s.children.length>0?l?.totalBalance:l?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>q){const s=ir(n),d=k(n,(b,p)=>s[p]===!0),l=k(n,(b,p)=>s[p]!==!0),a=Object.keys(l).reduce((b,p)=>b+(l[p].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??D.currencyCode,currencySymbol:l[m].amount?.currencySymbol??D.currencySymbol}};const y=$(d);return e.push(...y),{label:c,record:d}}const u=$(n);return e.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(e)}},dr=j.div`
21
+ `,sr=({active:r,payload:o,mouseOverBarName:e})=>o?.find(t=>t.name===e)!=null&&e!=null&&r===!0?i.jsx(Y,{active:r,payload:o,barName:e}):null;function jr({report:r,width:o,height:e,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ar(r),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const y=g.record;return(y[a]?.amount!=null?y[a].amount:void 0)?.amount??0},stackId:"a",fill:lr(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(cr,{chartData:s,barElements:d(),width:o,height:e,isDetailPage:t===!0,customToolTipContent:i.jsx(sr,{mouseOverBarName:c})})}const cr=({chartData:r,barElements:o,customToolTipContent:e,width:t,height:n,isDetailPage:c})=>{const u=z(),s=V(r);return i.jsx(nr,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(A,{width:l,height:d,stackOffset:"sign",data:r.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject}}),i.jsx(I,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(M,{wrapperStyle:{zIndex:2},cursor:!1,content:e,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function lr(r,o){const e=R(r),t=f.getLocalizedStrings().reports.aging.duration[e],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[r]!=null){const c=n[r].amount?.amount??0;let u=1;switch(K(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}const _=5;function ir(r){const o=N(r,(e,t)=>[e.amount?.amount??0,t]);return o.sort((e,t)=>t[0]-e[0]),o.slice(0,_-1).reduce((e,t)=>({...e,[t[1]]:!0}),{})}function $(r){const o=[];for(const e in r)o.push(e);return o.sort((e,t)=>(r[t].amount?.amount??0)-(r[e].amount?.amount??0)),o}const ur=r=>{const o=r.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),e=[];return{recordByDurations:r.agingPeriods.map(t=>{const n={};r.agingBalances.forEach(s=>{const d=v(s.customer?.name??"",t),l=s.arAgingBalances.find(a=>a.period===t);n[d]={amount:s.children.length>0?l?.totalBalance:l?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>_){const s=ir(n),d=k(n,(b,p)=>s[p]===!0),l=k(n,(b,p)=>s[p]!==!0),a=Object.keys(l).reduce((b,p)=>b+(l[p].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??E.currencyCode,currencySymbol:l[m].amount?.currencySymbol??E.currencySymbol}};const y=$(d);return e.push(...y),{label:c,record:d}}const u=$(n);return e.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(e)}},dr=j.div`
22
22
  width: ${r=>r.width}px;
23
23
  height: ${r=>r.height}px;
24
24
  `,mr=({active:r,payload:o,mouseOverBarName:e})=>o?.find(t=>t.name===e)!=null&&e!=null&&r===!0?i.jsx(Y,{active:r,payload:o,barName:e}):null;function kr({report:r,width:o,height:e,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ur(r),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const y=g.record;return(y[a]?.amount!=null?y[a].amount:void 0)?.amount??0},stackId:"a",fill:gr(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(hr,{chartData:s,barElements:d(),width:o,height:e,isDetailPage:t===!0,customToolTipContent:i.jsx(mr,{mouseOverBarName:c})})}const hr=({chartData:r,barElements:o,customToolTipContent:e,width:t,height:n,isDetailPage:c})=>{const u=z(),s=V(r);return i.jsx(dr,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(A,{width:l,height:d,stackOffset:"sign",data:r.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject}}),i.jsx(I,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(M,{wrapperStyle:{zIndex:2},cursor:!1,content:e,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function gr(r,o){const e=R(r),t=f.getLocalizedStrings().reports.aging.duration[e],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[r]!=null){const c=n[r].amount?.amount??0;let u=1;switch(K(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}export{jr as L,kr as k};
@@ -1,4 +1,4 @@
1
- import{d as Y,Q as F,F as C,V as o,bL as O,g1 as R,bz as B,cj as H,o as M,aQ as K,bA as V,y as I,cc as J,cd as Q,ce as U,u as y}from"./index-BP8jc2MZ.js";import{a as S}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{W,L as q}from"./EntitySummarySection-BIV9aAq2-0J_nJAr8.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const _={wrapperContainerMarginTop:new I(y[4],y[0]),wrapperContaineHorizontalrMargin:new I(y[0],y[8])},{common:Z,reports:{common:G,aging:{agingDetail:X}},dateFormat:A}=C.getLocalizedStrings();function _e(e){const h=Y(),d=F(),{arAgingDetail:r,downloadParams:l,reportDate:t,analytics:a,onReload:n,onBackClick:w,onColumnSortConfigChanged:m,updateDownloadStateHandler:f,onTransactionClick:N}=e,{authParams:k,downloadEndPoint:v,timezone:$}=l,{fetchState:g,invoices:j,arAgingDetailUIState:z,customer:i,totalBalances:T}=r,{sortKey:x,sortOrder:D,downloadState:p}=z,[P,b]=S.useState(!1),E=S.useCallback((c,u)=>{r.customer!=null&&a.trackArAgingDetailReportSortChange(c,u,t.format(A.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name),m(c,u)},[r.customer,m,a,t]);if(S.useEffect(()=>{async function c(){const u={companyName:l.companyName,sortKey:x,sortOrder:D,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:i?.id??"",timezone:$,reportDate:t};await ee(v,k,u),f("Completed"),r.customer!=null&&a.trackApAgingDetailReportDownload(x,D,t.format(A.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name)}P&&p!=="In-Progress"&&(b(!1),f("In-Progress"),c())},[k,v,l.companyName,p,P,t,x,D,$,f,i?.id,r.customer,a]),g==="Error")return o.jsxs(te,{children:[o.jsx(ae,{onClick:n,children:o.jsx(O,{})}),o.jsx(ne,{children:G.failed})]});if(g==="In-Progress"||g==="Not-Started")return o.jsx(R,{fetchState:g});const L=o.jsx(V,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:p==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(p==="In-Progress"){console.log("Download is already in progress!");return}else b(!0)}}}});return o.jsxs(ie,{children:[o.jsx(B,{title:Z.strings.empty,backgroundColor:h.colors.grey5,onBackClick:w,rightSideComponent:L,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(W,{totalBalances:T,entityName:i?.name??"",entityLogo:i?.logo,reportId:"accounts_receivable_aging",reportDate:t}),o.jsx(se,{windowSize:d,children:o.jsx(le,{windowSize:d,children:j.length===0||i==null?o.jsx(H,{message:X.noDataText}):o.jsx(re,{windowSize:d,children:o.jsx(q,{uiState:z,invoices:j,entityName:i.name,entityLogo:i.logo,onColumnSortConfigChanged:E,onTransactionClick:N})})})})]})}async function ee(e,h,d){const r=`${e}?query=${encodeURIComponent(JSON.stringify(oe(d)))}`,l=C.getLocalizedStrings(),t=l.reports.aging.arAging.arAging,a=l.download;try{const n=await J({urlEndPoint:r,authParams:h,fileType:"excel"});if(n.ok){const w=Q(n.headers,a.defaultFileName),m=await n.arrayBuffer();U(m,w)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${n.statusText}`)}catch(n){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${JSON.stringify(n)}`)}}function oe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:C.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const re=s.div`
1
+ import{d as Y,Q as F,F as C,V as o,bL as O,g1 as R,bz as B,cj as H,o as M,aQ as K,bA as V,y as I,cc as J,cd as Q,ce as U,u as y}from"./index-Ci63exms.js";import{a as S}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{W,L as q}from"./EntitySummarySection-BIV9aAq2-CUHksODf.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const _={wrapperContainerMarginTop:new I(y[4],y[0]),wrapperContaineHorizontalrMargin:new I(y[0],y[8])},{common:Z,reports:{common:G,aging:{agingDetail:X}},dateFormat:A}=C.getLocalizedStrings();function _e(e){const h=Y(),d=F(),{arAgingDetail:r,downloadParams:l,reportDate:t,analytics:a,onReload:n,onBackClick:w,onColumnSortConfigChanged:m,updateDownloadStateHandler:f,onTransactionClick:N}=e,{authParams:k,downloadEndPoint:v,timezone:$}=l,{fetchState:g,invoices:j,arAgingDetailUIState:z,customer:i,totalBalances:T}=r,{sortKey:x,sortOrder:D,downloadState:p}=z,[P,b]=S.useState(!1),E=S.useCallback((c,u)=>{r.customer!=null&&a.trackArAgingDetailReportSortChange(c,u,t.format(A.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name),m(c,u)},[r.customer,m,a,t]);if(S.useEffect(()=>{async function c(){const u={companyName:l.companyName,sortKey:x,sortOrder:D,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:i?.id??"",timezone:$,reportDate:t};await ee(v,k,u),f("Completed"),r.customer!=null&&a.trackApAgingDetailReportDownload(x,D,t.format(A.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name)}P&&p!=="In-Progress"&&(b(!1),f("In-Progress"),c())},[k,v,l.companyName,p,P,t,x,D,$,f,i?.id,r.customer,a]),g==="Error")return o.jsxs(te,{children:[o.jsx(ae,{onClick:n,children:o.jsx(O,{})}),o.jsx(ne,{children:G.failed})]});if(g==="In-Progress"||g==="Not-Started")return o.jsx(R,{fetchState:g});const L=o.jsx(V,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:p==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(p==="In-Progress"){console.log("Download is already in progress!");return}else b(!0)}}}});return o.jsxs(ie,{children:[o.jsx(B,{title:Z.strings.empty,backgroundColor:h.colors.grey5,onBackClick:w,rightSideComponent:L,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(W,{totalBalances:T,entityName:i?.name??"",entityLogo:i?.logo,reportId:"accounts_receivable_aging",reportDate:t}),o.jsx(se,{windowSize:d,children:o.jsx(le,{windowSize:d,children:j.length===0||i==null?o.jsx(H,{message:X.noDataText}):o.jsx(re,{windowSize:d,children:o.jsx(q,{uiState:z,invoices:j,entityName:i.name,entityLogo:i.logo,onColumnSortConfigChanged:E,onTransactionClick:N})})})})]})}async function ee(e,h,d){const r=`${e}?query=${encodeURIComponent(JSON.stringify(oe(d)))}`,l=C.getLocalizedStrings(),t=l.reports.aging.arAging.arAging,a=l.download;try{const n=await J({urlEndPoint:r,authParams:h,fileType:"excel"});if(n.ok){const w=Q(n.headers,a.defaultFileName),m=await n.arrayBuffer();U(m,w)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${n.statusText}`)}catch(n){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${JSON.stringify(n)}`)}}function oe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:C.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const re=s.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;