@zeniai/web-cockpit-ui 1.14.44-qa → 1.14.45-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 (226) hide show
  1. package/dist/assets/{ACHDetailsPage-CmrHphBc-BSc57asr.js → ACHDetailsPage-Dt6biYUe-x9rtHiTM.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DVLZQQLx-TJL1UOFJ.js → AIPerformancePage-CM9AM70q-CVnEii0f.js} +10 -10
  3. package/dist/assets/{AccountInfoPage-imteGSK1-C7FNjZiy.js → AccountInfoPage-CPF9bJN8-D7BCOq_s.js} +4 -4
  4. package/dist/assets/{AccountInfoPageContent-DIjQnfrv-Bx8ZGbnv.js → AccountInfoPageContent-BpnR6Xwt-DVOag3Ni.js} +19 -19
  5. package/dist/assets/{AccountLockedInfoModal-LYiLlZrv-W5eyNZln.js → AccountLockedInfoModal-ZoEeOTMM-CFpvfMaR.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CSzw7Xdo-BUbqervM.js → AccountReconDetailsDrawerPage-CfQ2mY97-Dg9-ZXo-.js} +1 -1
  7. package/dist/assets/{AccountRow-DnMX1pTV-Dch-yrS1.js → AccountRow-B8_6Pf4a-BXi7G1sU.js} +13 -13
  8. package/dist/assets/{AccountsPromoCardStack-BY9-YdTi-DAKDIFdR.js → AccountsPromoCardStack-BiCUsUG_-CKpOKtGv.js} +11 -11
  9. package/dist/assets/{AddAddressForCardDrawer-BY8rla0d-DwYWRebM.js → AddAddressForCardDrawer-Dqd20TwG-CLEU-fTU.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BND3tkMk-B2Q1vX5B.js → AddToWalletPage-Dztl0YPb-CTUWx1Uw.js} +10 -10
  11. package/dist/assets/{AgingReportsPage-C1HG4wzc-BP7ywoVs.js → AgingReportsPage-B4XxsXj8-qCOhN7V-.js} +14 -14
  12. package/dist/assets/{AllUserItems-rYc34keO-eneNLhbV.js → AllUserItems-B0rWTi3M-q17-8wHB.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CNG6prpn-zUDMXulF.js → ApAgingDetailPage-Y9K0Ueeu-fEOm7-dZ.js} +2 -2
  14. package/dist/assets/{AppBasePage-Dk4672v_-BU3yLG7X.js → AppBasePage-Co9r45oA-_5jrWDUp.js} +3 -3
  15. package/dist/assets/{AppDrawerContent-Y99P1DCR-BotvEcVh.js → AppDrawerContent-BBI2DM1O-BZ9TCfuC.js} +13 -13
  16. package/dist/assets/{ApprovalRulesSettingsPage-CO8-E7dA-D4Ayb7gE.js → ApprovalRulesSettingsPage-DP26gqoH-S91hGwuF.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CsuanjH1-C1MocSZP.js → ArAgingChart-D07CrcX6-Bb-ubg6P.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-D6CHRGxo-CwwmVZk4.js → ArAgingDetailPage-GZw1b2sA-z9jAw9p9.js} +1 -1
  19. package/dist/assets/{AttachmentView-B3p8mkIi-BrJeaiQh.js → AttachmentView-xH7J89rG-DOMjMRfr.js} +6 -6
  20. package/dist/assets/{BankAccountSection--gqsJj6B-Cl0xvfi6.js → BankAccountSection-C74XNBn5-CY0uI2wa.js} +6 -6
  21. package/dist/assets/{BankAccountWarningSection-BM-Bu8CI-NIomJVMY.js → BankAccountWarningSection-DISZecgw-BXaqSDbn.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-B_RVLsvX-Bh3jK4p-.js → BankConnectionsSettingsPage-DVfrZI5k-y_eb2M3D.js} +7 -7
  23. package/dist/assets/{BillDetailPage-Bu20m9VL-x6bX1pWj.js → BillDetailPage-BB2dqRCc-DDaLt-vn.js} +5 -5
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CR168utn-D04RgUHd.js → BillPayApprovalRuleDetailPage-DULz7z7T-DY6u14Tx.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DQbLEENj-BXlH5X6q.js → BillPayApprovalRulesPage-BRy0P1G6-VP3zI7Gw.js} +5 -5
  26. package/dist/assets/{BillPayPromoPage-DqUNPVeq-BY__dpe7.js → BillPayPromoPage-CbJdDHD0-DZ-M6IZC.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-BO8V-KVh-BVLQO0ZS.js → BillPaySetUpPage-DqnFvCOb-BeutT-e1.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-clzpJwrI-aUUpavsg.js → BillingSettingsPage-BC-uZXJ5-lq1RYTMm.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CFldRiX8-CF_81QlR.js → BillsBulkReviewDrawerPage-GdAORV0l-CHEn6W3_.js} +1 -1
  30. package/dist/assets/{BoxItem-CnpQOIVn-QBDxILBm.js → BoxItem-BVzRQmWm-DnawUpOb.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DKmaCoDK-BokUPZc8.js → BusinessVerificationPage-Vmjh5B5Q-DyyMw-EQ.js} +6 -6
  32. package/dist/assets/{CardNumberSubText-uaXIushe-mziisRlF.js → CardNumberSubText-Rjo6M8UU-CcXRlHUY.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DrW60zjw-CAOfeHjk.js → CashbackDetailPage-CiSuiJsI-CCZeXshW.js} +16 -16
  34. package/dist/assets/{ChargeCardDetailPage-X1HoUp96-Dq0xewvB.js → ChargeCardDetailPage-RTQvA6Uw-C4pe-icE.js} +41 -41
  35. package/dist/assets/{ChargeCardListPage-_0lUmAxM-FS4GdQcB.js → ChargeCardListPage-ByQZiwkP-DXG0mm5T.js} +15 -15
  36. package/dist/assets/{ChargeCardListTable-mfIUvL0A-BZYAUn-T.js → ChargeCardListTable-BIiwOFhF-DyaZW1I2.js} +13 -13
  37. package/dist/assets/{ChargeCardPromoPage-Bo2JJ5g4-Cbfgp8i_.js → ChargeCardPromoPage-DDs4hLZ8-yzbnAU_m.js} +10 -10
  38. package/dist/assets/{ChargeCardSetupPage-D9IikPGO-DQ37eBAM.js → ChargeCardSetupPage-C5Ay4ZmX-SxGdOPuA.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-Ck3qug5N-PNsbLhik.js → ChargeCardStatementsPage-5htSDEnC-Nw5bKfZm.js} +4 -4
  40. package/dist/assets/{ChargeCardUtils-BEBqV4Ri-CPRRvpNp.js → ChargeCardUtils-D8nxmniw-0B3L7zeg.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-CauClKmi-CmKTvW2Q.js → ChaseOverlay-BsUhQ0Hl-DFaxFI1c.js} +10 -10
  42. package/dist/assets/CheckDepositDrawerPage-CpQke8aO-CtJ3A36H.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-CHthdzdj-DiXbx-o4.js → CollapsableReportTable-s_gsuEBP-C1aC-SHP.js} +85 -85
  44. package/dist/assets/{CompanyOfficerDetailsSection-BEb3_zYO-Dqtv0jSU.js → CompanyOfficerDetailsSection-BgVQxl1Y-CwOozNod.js} +15 -15
  45. package/dist/assets/{CompanyPassportCard-FhjZyorS-BrEmcU5l.js → CompanyPassportCard-BA3ilbJb-BLkylNR4.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-BlhNB8Ah-CKfKsscn.js → CompanyPassportPage-CAsHDLIg-DHWATnhm.js} +21 -21
  47. package/dist/assets/{CompleteProfile-Bk9Oyn1_-DoR6qaZF.js → CompleteProfile-CYCDpreV-BIRl_rEJ.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-DZLI1m4w-Dpj1p9Kd.js → ConfettiBurst-C6h5WEkY-CkKDQczO.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-C3CFRcUl-aaHtvw8x.js → CreateOrEditVendorPage-PQOg943K-BIJqg_Xb.js} +4 -4
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Drl9yZi5-CKvSiGF-.js → CreditCardPaymentDrawerPage-DKW50EM6-DVNOyIoX.js} +10 -10
  51. package/dist/assets/{CreditCardPaymentPlgSection-D-Ptzdeo-BK_hLYo8.js → CreditCardPaymentPlgSection-C5Qn4uPW--juf3I9b.js} +8 -8
  52. package/dist/assets/{CurrencySelectField-CTAalWEI-iuON3W6y.js → CurrencySelectField-CQuKsZt--4BzRH7ns.js} +2 -2
  53. package/dist/assets/{CustomerOnboardingActivationPage-BkPgpEPw-Cxokqqc5.js → CustomerOnboardingActivationPage-DltZPaG9-CuOVbV8z.js} +6 -6
  54. package/dist/assets/CustomerOnboardingContainerPage-BLfK3HuK-D58EIOXR.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DzG4nVbk-DUDJYwqd.js → CustomerOnboardingDetailPageSkeleton-BX1ALiCI-pRGEY_jl.js} +8 -8
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Czttv30c-CPtfEMDH.js → CustomerOnboardingNoStepsPage-D-_NhEaR-DoNrEgc_.js} +7 -7
  57. package/dist/assets/{CustomerOnboardingPage-CNXBzMG5-DzdSjywh.js → CustomerOnboardingPage-Cxw6ju1Q-iVE3rRJz.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BArjfUBb-DiIVJ-QZ.js → CustomerOnboardingProductSuitePage-B7D59sC_-ClANKKoE.js} +5 -5
  59. package/dist/assets/{Dashboard-DyA5sBz3-CRkt-_C_.js → Dashboard-BNvsGTf3-DfRYC8MF.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DvUvM8lA-TbzG3eRo.js → DashboardReportPage-CUDj-apD-ts1UyW1y.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-CAa8yETt-DQCrZOMm.js → DashboardSidebarBackgroundAnimation-CqoYqd3k-CpbMxsi5.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-VZZvr2Gl-DJKdJrGG.js → DepositAccTransactionItem-By315-ia-B67a47Nt.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-xt11Y65Z-XwfRqCiv.js → DepositAccTransactionListPage-BmdduHVH-CuW0haDa.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-DmE3TVQk-C-QBeWMe.js → DomesticWireDetailsPage-BycRPXWv-BEmLm9iF.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DBhAvmRv-Cj3ahlAG.js → DownloadOverlay-CD44fdp2-CcGw9J34.js} +12 -12
  66. package/dist/assets/{DrawerPage-BSy9zQ8e-VOTcl_Us.js → DrawerPage-DttoShZY-B4SEX4Vc.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-DyaHesFS-Bus9x57q.js → EditPeoplePage-Cwz1PxMH-D0oC_7he.js} +3 -3
  68. package/dist/assets/{EditReimbursementDetailPage-EEKR__zQ-BoWF0JFB.js → EditReimbursementDetailPage-B8EIR_aw-BLg2ffib.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-BECoxBfR-BiJ_8Jzz.js → EntityDetailPage-BSRVaRvy-DmyuhLfY.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-wzMCZjZE-2-RWnlxw.js → EntitySummarySection-D3_1EeVb-4HGU6F7u.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-MlPZZ_Mz-C8FIABO0.js → ExpenseAutomationOverviewPage-BumVHdQ7-Dr0SJny6.js} +13 -13
  72. package/dist/assets/{ExpenseAutomationPage-mdYWsafr-BLvFXWYb.js → ExpenseAutomationPage-DL86YKcI-D7VmjVTK.js} +55 -55
  73. package/dist/assets/{ExpressPayPage-Dg03hVzu-Bd-Xf2bN.js → ExpressPayPage-B2ZL_U_8-Ct1T6Hqd.js} +7 -7
  74. package/dist/assets/{FeaturePreviewPage-BePsYONK-DM7rJpB4.js → FeaturePreviewPage-abZRtNJ_-DtOlQ1ve.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-BqqrsOIP-DLXO6q5D.js → FollowStepsSection-UY5sAJeD-D9y-FlM_.js} +9 -9
  76. package/dist/assets/{GlobalReviewListPage-BVpHhHli-BA06L24b.js → GlobalReviewListPage-ao32krvU-CyxgvmBU.js} +10 -10
  77. package/dist/assets/{HelpButton-DXDj1Qju-6dCR8Tek.js → HelpButton-Dz3Ra_Sl-C1T3rERY.js} +4 -4
  78. package/dist/assets/{InformationCardStack-CauWOEJQ-DKSteiOb.js → InformationCardStack-CeLIUYk5-Cx3xXrtg.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-C-52awo8-BWPPl14z.js → InsightsCardStack-CabSexOm-CpBekjTt.js} +8 -8
  80. package/dist/assets/{InsightsSection-Bq2ZlQ8--AuQEFpFd.js → InsightsSection-CaYMAnck-vZ6q8Jpt.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-CQCxjOHh-B1T5nZLs.js → IntegrationsSettingsPage-BI7RHtQ2-DWoQgO4y.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-Bi3ERJ96-C62elPax.js → InternationalWireSwiftDetailsPage-iR-F32ot-BUfcTb0n.js} +6 -6
  83. package/dist/assets/{InternationalWireVerificationPage-DhX_OpJ6-DhDVwdIK.js → InternationalWireVerificationPage--IRCwUc5-BK__pdsC.js} +5 -5
  84. package/dist/assets/{InviteFormPage-BJkMxjIE-DGYtt6Bs.js → InviteFormPage-D-YEfvJT-B46eQD-N.js} +8 -8
  85. package/dist/assets/{InvitePageListView-0zD-YAJA-DGIFJ6Lx.js → InvitePageListView-CNvU2ppT-BsPD9T0R.js} +20 -20
  86. package/dist/assets/{InvitePeoplePage-CvQNFpjb-MEqiKB1j.js → InvitePeoplePage-CteRDO3k-CzXdrj66.js} +3 -3
  87. package/dist/assets/{InvoiceUploadSection-BrnUjxIH-BMdRzxGt.js → InvoiceUploadSection-BQXqcLvW-YGmVjGWZ.js} +3 -3
  88. package/dist/assets/{IssueChargeCardPage-agEqgGPg-BMz7PYBf.js → IssueChargeCardPage-BIgcCnpo-PcUOQWwy.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-DphNZz4y-D0KCXzO6.js → LabeledAddressValue-CiDQX1xa-x9cH1NH3.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-DBlBlkO_-DoPRS3as.js → LabeledAddressValueField-C5jrFFUs-CwCL74Dg.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-CBRqbUDe-UzdHSUCG.js → LabeledControlledCheckBoxField-jqiHQZso-Y1bdaQMv.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-DOjtbusw-TXDXUD5J.js → LabeledCreatableSingleSelectField-DGZvzuxH-BpSZ7zl7.js} +7 -7
  93. package/dist/assets/{LabeledDocumentField-Bxggz66t-Cn_PeJ5g.js → LabeledDocumentField-hUiqS32j-vbaQx3SD.js} +4 -4
  94. package/dist/assets/{LabeledDropDownFormattedTextField-1dqcE0E4-t0ucdhBH.js → LabeledDropDownFormattedTextField-CZdzpmL1-pUn4RDCV.js} +5 -5
  95. package/dist/assets/{LabeledText-BJFW2h6S-G87zH92R.js → LabeledText-DopMzeZ3-CYS48zTu.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CLzwYw4O-Cs6PJnR2.js → LabeledUserSingleSelectWithSubtitlesField-CkRg249v-BoH-kRZ0.js} +5 -5
  97. package/dist/assets/{LabeledZeniRolesDropDownField-DGsJbILm-CWOq9g0f.js → LabeledZeniRolesDropDownField-CwkMUU9L-CBkGnuEd.js} +11 -11
  98. package/dist/assets/{LinkJETransactionPage-CvdbDO5J-Dcaiimar.js → LinkJETransactionPage-CcnQYwcu-Cpho8XzH.js} +3 -3
  99. package/dist/assets/{LowBalancePopup-BhLxnyK0-C1-HIC13.js → LowBalancePopup-_1OrPez7-DZkbi_Py.js} +2 -2
  100. package/dist/assets/{MagicLinkACHDetailsPage-CcD-_iOV-Cmloa6Sl.js → MagicLinkACHDetailsPage-DXP0qFGK-DoB9MNyO.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-C-YfhiNr-DU52Xxm4.js → MagicLinkDomesticWireDetailsPage-BycJq6br-DGH4aq0c.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DXZBFcUc-DORqbysw.js → MagicLinkInternationalWireDetailsPage-NjVjY4fp-D6XTRyzt.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-OikwemO4-2MjmaIoT.js → MagicLinkSuccessPage-y19ecMSL-Bjh9JkfG.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-CcsVjT5g-m8-ZbWiA.js → MagicLinkTitleSection-CdijIZYn-kUHi3mP3.js} +4 -4
  105. package/dist/assets/{MailingDetailsSection-ClULuPML-c4uvK-xV.js → MailingDetailsSection-Cw-CO-oE-9IZJYTUD.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-DJHrBVXi-YYH5fhwe.js → MeetingCalenderPopup-CQ2sUCtg-BBwyYnnQ.js} +1 -1
  107. package/dist/assets/{Menu-C3EXvt9P-HAcVl0uR.js → Menu-Cz6zGt86-BijWmw2b.js} +3 -3
  108. package/dist/assets/{MyBankConnectionsSettingsPage-Cn-dlR5V-D5W9TQDI.js → MyBankConnectionsSettingsPage-DRmOdZ9_-D1GaIeKu.js} +7 -7
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-B3xeafnf-LCbTSPzT.js → MyPendingActivationChargeCardListPage-CtFUm3NW-ChKpZI-w.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-CcyS0ijJ-CTU0B5fO.js → MyProfileSettingsPage-ejULQTzV-CUdJEZnq.js} +7 -7
  111. package/dist/assets/{NavBarWithPicker-C3MsVwsg-BuAxA6W9.js → NavBarWithPicker-C-QfNv7i-BGeKGKav.js} +3 -3
  112. package/dist/assets/{NavigationArrow-DSMn_azz-Bn7cke7g.js → NavigationArrow-kQmX-M7U-Qn8Td-4a.js} +1 -1
  113. package/dist/assets/{NavigationDots-BiiEFlFj-xZJ5-o7_.js → NavigationDots-nUALE4y--DPaRfQ3k.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-DJ0zT8Xy-Cj0gRV8r.js → NewGlobalMerchantPage-D1NQ_h-e-CCmfop3O.js} +5 -5
  115. package/dist/assets/{NoDataChart-O6Mg_gf4-BzMtzTAz.js → NoDataChart-BmcrokSp-mktpp4Ge.js} +4 -4
  116. package/dist/assets/{NoDataTable-BgKg_U0s-CmmkF752.js → NoDataTable-BKAiKOOM-BMD8AGW2.js} +1 -1
  117. package/dist/assets/{NotFoundPage-DA6cvlNW-DlMJJWcU.js → NotFoundPage-B-wGvM-5-CoGsI8QE.js} +3 -3
  118. package/dist/assets/{NotificationSettingsPage-BwqCG-6J-DWqf_cVg.js → NotificationSettingsPage-BKQcK-_r-CZ2o6aQV.js} +4 -4
  119. package/dist/assets/{NotificationsListConfig-DqM-Z8oE-CAKzU3R_.js → NotificationsListConfig-C5pyiij--CMy_5rqB.js} +1 -1
  120. package/dist/assets/{NotificationsPage-iYF222-C-DUKthO_-.js → NotificationsPage-kpBbd-do-DQ3PZPcz.js} +13 -13
  121. package/dist/assets/{OpExByVendorPage-BwekpbHo-BjGBd6JN.js → OpExByVendorPage-CWi3CBRt-C5BCEXdz.js} +4 -4
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-BQsfSCAm.js → OverlayContainerPage-Bmu909Fo-A-nPKfyl.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-B7IxSSMo-BTaoWXQH.js → PandLWithForecastPage-DyWdR8ii-sU4Bj-a8.js} +5 -5
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CJk4EUwr-ABl4cOzL.js → PaymentAccountSetupBillingAddressSection-Cq7pdtPH-CzJADBF9.js} +8 -8
  125. package/dist/assets/{PeoplePage-97Qe6dqr-DdMIC7eB.js → PeoplePage-CPaoZBpL-Dgke3QJy.js} +25 -25
  126. package/dist/assets/{PortfolioAllocationFormPage-Df2lZK30-l0pxfNTg.js → PortfolioAllocationFormPage-DX6o84wl-DSlUdRlT.js} +3 -3
  127. package/dist/assets/{PortfolioDetails-CGVqC5q--CSueTA8J.js → PortfolioDetails-C1iLJHLZ-CesK17A1.js} +1 -1
  128. package/dist/assets/{ProductsCarousel-DqvLLayZ-CS-GjIhF.js → ProductsCarousel-DjFdVKD1-hE-u6a08.js} +1 -1
  129. package/dist/assets/{PromoBaseCards-Bq-mwvkh-p9T1FVNn.js → PromoBaseCards-CizR6Pvp-CqSOUop-.js} +2 -2
  130. package/dist/assets/{QBOConnectionDialog-DWZd5o0q-K6Wt7Neh.js → QBOConnectionDialog-2HqFAb-Q-sQRSSCIF.js} +4 -4
  131. package/dist/assets/{QBOSetupSection-B_V2Y6DW-BLaB9-z0.js → QBOSetupSection-9O9ML9R8-BXn0JWS0.js} +4 -4
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-hWUoXT59-Y3oG-ekm.js → ReimbursementApprovalRuleDetailPage-CQOS4wJ2-zxPk7wqx.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRulesPage-C20mPnJH-DBrdoBR7.js → ReimbursementApprovalRulesPage-VuQN7m71-BZUH-GLu.js} +4 -4
  134. package/dist/assets/{ReimbursementDetailPage-DAVdVUp0-DebCxtKg.js → ReimbursementDetailPage-D2pO4hgr-vjcNMRqh.js} +6 -6
  135. package/dist/assets/{ReimbursementPromoPage-TKdLARUD-DsJNpIcv.js → ReimbursementPromoPage-D3p8iwHa-z2IAojJU.js} +9 -9
  136. package/dist/assets/{ReimbursementSetUpPage-CW10ZPs7-CIw76iEF.js → ReimbursementSetUpPage-OR8ECt9X-Bx512tje.js} +4 -4
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-_rgixsBG-BMXQONLy.js → ReimbursementsBulkReviewDrawerPage-DhjfNcO4-DvhEuIE0.js} +1 -1
  138. package/dist/assets/{ReloadCard-Bzt6gIzi-D5O4Gcf_.js → ReloadCard-NvfxlEQu-BnXQfMVk.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-CPc3yRAI-BKmgR9zr.js → ReportTableViewSelector-B599qAeN-BwwOFFi3.js} +1 -1
  140. package/dist/assets/{ReportsPage-DIHjl3Xd-DULYM4bB.js → ReportsPage-Bc-rf7lL-BubUWknL.js} +1 -1
  141. package/dist/assets/{RevenueChart-MkoD0EoE-D92CgGXq.js → RevenueChart-BtTx8haN-Ci6KFTHz.js} +12 -12
  142. package/dist/assets/{ReviewDetailsPage-B96vIWt9-BUkzSnt4.js → ReviewDetailsPage-Bm9qlI1L-DnX2Wm0A.js} +5 -5
  143. package/dist/assets/{ReviewOverlay-CKOAcLzJ-BPHtj3ml.js → ReviewOverlay-C90OnldQ-BJwck8Vp.js} +9 -9
  144. package/dist/assets/{RoleWithToolTip-BiydziFE-VYITxPfh.js → RoleWithToolTip-Cav6Dtwi-DQjRjWwX.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ce2BDLCX-CXENWEZF.js → ScheduleDetailsFixedAssetsPage-BIbtbzlS-Dq-JIBXg.js} +3 -3
  146. package/dist/assets/{ScheduleDetailsPage-ClK-ymjD-DRsYGv0y.js → ScheduleDetailsPage-BSVBoMe5-DfcysezY.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-BOFaTbv5-CCscivOS.js → ScheduleSequenceTable-C9IcAd6X-B0s-FwXu.js} +5 -5
  148. package/dist/assets/{ScreenRoutes-CUUBxQES.js → ScreenRoutes-C_yyAtD4.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-DPEjJt-s-BxHjDLDI.js → SetUpAccountSection-Daj9lEze-CHRC6PUj.js} +4 -4
  150. package/dist/assets/{SetUpDefaultSection-Br-a1ECs-BuLgUcqJ.js → SetUpDefaultSection-CKg9xvyM-V31Vr9Jm.js} +2 -2
  151. package/dist/assets/{SignIn-B7p2vrI4-CBu4DRgp.js → SignIn-BFm1M4_6-R5KiOJ_3.js} +18 -18
  152. package/dist/assets/{SignInScreen-Dum3srgp.js → SignInScreen-CPbq6PuC.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-Ds1WRCNc-B03dml86.js → SpendManagementListViewPage-D6fZPLMz-Z_0NC1QS.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-uBi60ESx-Dq7iQQx4.js → SpendManagementPerTabPage-jQjzrKl2-CR9tWVBr.js} +18 -18
  155. package/dist/assets/{SpendManagementSection-CESND8ho-DCrlaUqA.js → SpendManagementSection-BaiWgwp--Dp3HO5CH.js} +5 -5
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CiPoUdg_-CelUMY-y.js → SpendMgmtSetupAccountSection-BUSFBsmA-Wg-n8Wde.js} +7 -7
  157. package/dist/assets/{StatementItem-BSfAH9fl-diu3-gbg.js → StatementItem-BeGyTVOf-Ccqz_NBL.js} +4 -4
  158. package/dist/assets/{StatementsPage-BQ-wkg9f-DMW87IGZ.js → StatementsPage-2uPMvTEy-De7Uac1v.js} +1 -1
  159. package/dist/assets/{StatusSwitcher-CoX1TvcC-B2wGlPZJ.js → StatusSwitcher-CwLbXjIU-CJO3kP8v.js} +1 -1
  160. package/dist/assets/{SubTabSwitcher-C4Kvmep7-DJj8T55V.js → SubTabSwitcher-D3bFqk8P-DL4oUfiQ.js} +1 -1
  161. package/dist/assets/{SummaryCard-Cdh_w38m-yg2TCiEc.js → SummaryCard-BNrQ7g3--CGMMw0Tk.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-CCiARHPO-CeRR-xF8.js → TaskManagementPage-Y58wtgRN-CUHNN86c.js} +15 -15
  163. package/dist/assets/{TimeRangeSwitcher-CMNnx0hW-DfOU0-FY.js → TimeRangeSwitcher-CQd079aU-C6Twt9kC.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcher-BAkn3cys-dF_t-50z.js → TimeframeSwitcher-Du60ffZv-BeSFHMlL.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-Bp8FBsnD-NXYHSu6I.js → TimeframeSwitcherWithToggle-DPManiX8-CS5OwAMc.js} +1 -1
  166. package/dist/assets/{TopExCard-CH7QX8Xe-Dq7lj8sK.js → TopExCard-sH5ZVrBJ-i2TO4vcJ.js} +2 -2
  167. package/dist/assets/{TopExDetailPage-CJuOpApW-D7FKWD-V.js → TopExDetailPage-DiOHO_q9-BJm1edqQ.js} +11 -11
  168. package/dist/assets/{TransactionDetailPage-280hbOwA-B8cgDD3N.js → TransactionDetailPage-NaMbYUr8-Da3GPc9Y.js} +13 -13
  169. package/dist/assets/{TransactionList-BV18tWaE-BQKRF29H.js → TransactionList-Bsma20IC-CJ7iiCLF.js} +4 -4
  170. package/dist/assets/{TransactionListBig-DmVgWxvf-DHGIWOoC.js → TransactionListBig-BwMUiFzK-_BeDx_E5.js} +10 -10
  171. package/dist/assets/{TransactionListPage-CE61eqZh-vtVmAgv2.js → TransactionListPage-BRKVdJ4P-D3ULhVil.js} +4 -4
  172. package/dist/assets/{TransactionVendorDetailPage-CKRUJzG5-D3thb3cP.js → TransactionVendorDetailPage-DuJ1piCd-Z4okEL-Q.js} +3 -3
  173. package/dist/assets/{TransferDrawerPage-DdIXX8dR-DrExDhl3.js → TransferDrawerPage-PmiYXfAU-BQhQZtnl.js} +15 -15
  174. package/dist/assets/{TreasuryOverviewPage-D9NcFBhg-iy_GLL-M.js → TreasuryOverviewPage-M6fv3b34-CcznAXU3.js} +101 -104
  175. package/dist/assets/{TreasuryPromoPage-BKXMayjO-B4uiGon7.js → TreasuryPromoPage-D48c4Ulh-B2QYQTc4.js} +12 -12
  176. package/dist/assets/{TreasurySetupPage-Bo24F7wL-DuPfGbF_.js → TreasurySetupPage-BPsw-DhK-BqfOjb-x.js} +4 -4
  177. package/dist/assets/{TreasuryStatementsPage-DUKtmwwf-D1_Zhdj-.js → TreasuryStatementsPage-BEun-dwQ-D-vCxxYM.js} +1 -1
  178. package/dist/assets/{TreasuryTaxLetterPage-vqThZpY5-DG75nAAt.js → TreasuryTaxLetterPage-CsQ5biUP-CG-uin7p.js} +1 -1
  179. package/dist/assets/{TreasuryTransferOrReviewPage-1Kqod57a-DA3XAHpW.js → TreasuryTransferOrReviewPage-CxhE8fh7-Cf05TRJh.js} +39 -39
  180. package/dist/assets/{TrendChart-uCE73Vf8-XEufcUTW.js → TrendChart-CkUKN6L9-CYj8AG4h.js} +3 -3
  181. package/dist/assets/{TrendWithTransactions-lNYrtUkf-CsE_Q_OW.js → TrendWithTransactions-4pDf20tw-Bfat4sT9.js} +4 -4
  182. package/dist/assets/{UncategorizedAccountsMappingPage-CbLMkBab-DyTfUg06.js → UncategorizedAccountsMappingPage-DZBy-Goh-5f67nsQo.js} +7 -7
  183. package/dist/assets/{UnitIntegrationPage-DzfchgLS-CZgF7SP-.js → UnitIntegrationPage-DG-KGQDb-BLUtVLjp.js} +2 -2
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-CJwjYpvy-DECImHlx.js → UploadAdditionalDocumentOverlay-DrZAnHqz-c6P-4NDi.js} +1 -1
  185. package/dist/assets/{Vendor2FAPopup-BDatjVhv-DiVAW67d.js → Vendor2FAPopup-CaiUvPMo-By8aU9uB.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-BTo9s38E-DN6GrIjX.js → VendorACHDetailsPage-CHoh0E0P-EqmntQKd.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-DOdRZKwE-DrZ4pQ2p.js → VendorDetailPage-CroHdVMA-C-Wc1kYJ.js} +9 -9
  188. package/dist/assets/{VendorDomesticWireDetailsPage-Ch_HedkY-DDDapGI9.js → VendorDomesticWireDetailsPage-DC17Qom9-C3oEikuC.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-ChgTi2cq-osgHnUPX.js → VendorFiling1099EditablePage-Bom6X8Sg-DHjxnakQ.js} +14 -14
  190. package/dist/assets/{VendorFirstReviewPage-C_HBOo29-Cun14S2s.js → VendorFirstReviewPage-6eptnez2-B7div4WL.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireDetailsPage-Ct42LbtQ-DOq8ZA0S.js → VendorInternationalWireDetailsPage-C_CH7xDF-fHUjobrM.js} +9 -9
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CalHOqYH-DlK1SL0S.js → VendorInternationalWireSwiftDetailsPage-BEzPWQbD-DdQpKH5i.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-Briqd_pt-BkWk4En6.js → VendorsAccountsSection-Z-ebKmVQ-DbcI_-8-.js} +2 -2
  194. package/dist/assets/{VerifyDevice-DxP4a4YR-hED-bTkI.js → VerifyDevice-76nFunfs-3WPg6QL8.js} +1 -1
  195. package/dist/assets/{VideoPlayer-DqRss8fV-B4rpzoFE.js → VideoPlayer-CV7o-_bq-BWNDFwag.js} +1 -1
  196. package/dist/assets/{VideoPopup-CwEiOVHQ-SE5re7pU.js → VideoPopup-CbaFtkFn-BG3oU3yl.js} +1 -1
  197. package/dist/assets/{WarningsDrawerPage-Cdd0mag5-Bja6dfag.js → WarningsDrawerPage-Bg7iDQqy-BITRncLa.js} +1 -1
  198. package/dist/assets/{ZeniAccountDetailPage-5sn9Wphj-CqKMTn67.js → ZeniAccountDetailPage-DYidbJtT-qtM4JbUS.js} +14 -14
  199. package/dist/assets/{ZeniAccountListViewPage-BLCYWphf-DSieyxJQ.js → ZeniAccountListViewPage-CVkzRUil-DQ8A3VZl.js} +7 -7
  200. package/dist/assets/{ZeniAccountNavBarPieces-Cwo5QtoT-0DDIjO4b.js → ZeniAccountNavBarPieces-DaHGosco-D-yA-Drc.js} +1 -1
  201. package/dist/assets/{ZeniAccountPromoPage-CKQOu6Ab-B0_2BOIj.js → ZeniAccountPromoPage-CXr_ud4S-C9YOWT8M.js} +10 -10
  202. package/dist/assets/{ZeniAccountSetupPage-BW1l7qJf-KyzYMO16.js → ZeniAccountSetupPage-Bqng7laZ-DKzqXw5c.js} +4 -4
  203. package/dist/assets/{ZeniCopyright-B6fSw5kZ-BEYdzvFL.js → ZeniCopyright-1d-n5uOX-ChnFnWfn.js} +1 -1
  204. package/dist/assets/{ZeniTransferAmountSlider-DgkjDK9D-C-vYTTkf.js → ZeniTransferAmountSlider-C63JbsJx-BbpyFTKu.js} +4 -4
  205. package/dist/assets/{analyticsHelper-sMuDd6mq.js → analyticsHelper-Cjbr9XB0.js} +1 -1
  206. package/dist/assets/{analyticsHelper-BIYs-BU5-DiR7zn-J.js → analyticsHelper-I0lsXzXl-DMfD2BoN.js} +1 -1
  207. package/dist/assets/{chartTypes-BFc-FQm9-DH8jC-PX.js → chartTypes-D1Bn4xHa-xYwPwpPb.js} +1 -1
  208. package/dist/assets/{commonDimensions-B_ShoU61-DERccKE1.js → commonDimensions-0W6wokPG-Cd83l0QX.js} +1 -1
  209. package/dist/assets/{detailCommon-CoFrLjgw-DYR8VDfk.js → detailCommon-CtOYz9rQ-C2GqRiaA.js} +6 -6
  210. package/dist/assets/{downloadPdf-yID9qiGz-DQvfiOaT.js → downloadPdf-BZd85Ssn-CFK_x6gO.js} +1 -1
  211. package/dist/assets/{index-BKug3-eP.js → index-0QGih61V.js} +1871 -1871
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-xaG_j34l-BbRC2p3V.js → mapLoadingInProgressToTreeNode-CMYVZuQF-Dz_C0WS4.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Cf1Q8iLQ-Dl9HYo3q.js → mapSectionWithAcOnlyToTreeNode-DTb8IvgM-B1dWpiWC.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-CiLMcagY-B9z3eGZE.js → mapSpacerToTreeNode-B_jfScE8-BZjIqfg0.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-VuMYRsaA-Bkr18cUs.js → mapTimeframeBalancesToTreeNode-BEOhNOy1-DAEXm4ZG.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-BpcCExFt-aaQ9hedR.js → mapTimeframeBalancesToTreeNode-Gxa-yiq_-Dyh-lexC.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Cfz6o8XS-DipjgrJy.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BD4cN4l4-6Aq9xydh.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-CL2W-2Ks-BJ5hpOjH.js → toCOABalancesWithID-BVyQC9pt-C2mN3lRp.js} +1 -1
  219. package/dist/assets/{toChartData-CD4rOlNx-CQ_TJxU1.js → toChartData-BRdwPc1X-CHkEigWV.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-DHqBe6al-lMeWD10s.js → treasuryColorHelper-DrayAnYl-DEH_6Uhe.js} +1 -1
  221. package/dist/assets/{uploadAttachment-Bqf6VI3L-BGJCHQ2n.js → uploadAttachment-Cx3js1c7-BXnz9UFJ.js} +16 -16
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-DS2NFPcM.js → uploadReceipts-dxsKhm9I-DUj1wGX2.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/CheckDepositDrawerPage-DmszT7bh-1ikOwRZW.js +0 -206
  226. package/dist/assets/CustomerOnboardingContainerPage-BAZbPHa2-AeHBObO9.js +0 -1
@@ -1,4 +1,4 @@
1
- import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS as ce,aT as le,aU as J,T as de,a1 as X,V as pe,u as Q,Y as me,l as ue,W as Z,aa as he,Z as ge,a5 as xe,w as q,ac as fe,ak as ye,y as Ce,ap as $e}from"./index-BKug3-eP.js";import{n as r,k as R,j as K,b as F,f as S}from"./vendor-rkTZJa59.js";import{c as ve}from"./SummaryCard-Cdh_w38m-yg2TCiEc.js";import{x as Y}from"./NavigationArrow-DSMn_azz-Bn7cke7g.js";import{k as je}from"./NavigationDots-BiiEFlFj-xZJ5-o7_.js";const Ae="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-1.png",be="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",I=(e,n)=>{const s=e==="right"?`-${n}%`:`${n}%`;return R`
1
+ import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS as ce,aT as le,aU as J,T as de,a1 as X,V as pe,u as q,Y as me,l as he,W as L,aa as ue,Z as ge,a5 as xe,w as Q,ac as fe,ak as ye,x as Ce,ap as $e}from"./index-0QGih61V.js";import{n as r,k as R,j as K,b as F,f as S}from"./vendor-rkTZJa59.js";import{c as ve}from"./SummaryCard-BNrQ7g3--CGMMw0Tk.js";import{x as Y}from"./NavigationArrow-kQmX-M7U-Qn8Td-4a.js";import{k as je}from"./NavigationDots-nUALE4y--DPaRfQ3k.js";const Ae="https://storage.googleapis.com/zeni-apis.appspot.com/images/face-1.png",be="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",I=(e,n)=>{const s=e==="right"?`-${n}%`:`${n}%`;return R`
2
2
  0% {
3
3
  opacity: 0;
4
4
  transform: translateX(${s});
@@ -70,12 +70,12 @@ import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS
70
70
  justify-content: center;
71
71
  gap: 20px;
72
72
  margin-right: ${t.sp2};
73
- `,Ze=r.div`
73
+ `,Le=r.div`
74
74
  height: 100%;
75
75
  width: 1px;
76
76
  background-color: ${e=>e.theme.colors.zeniAccountsPromoButtonColor};
77
77
  margin-right: 2px;
78
- `,Le=r.div`
78
+ `,Ze=r.div`
79
79
  display: flex;
80
80
  flex-direction: column;
81
81
  justify-content: center;
@@ -120,7 +120,7 @@ import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS
120
120
  transform-origin: top;
121
121
  animation: ${we} normal 0.6s 1 forwards;
122
122
  animation-delay: 0.6s;
123
- `,W=r.div`
123
+ `,G=r.div`
124
124
  opacity: 0;
125
125
  transform: translateX(-50%);
126
126
  animation: ${I("right",50)} normal 0.6s 1
@@ -140,7 +140,7 @@ import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS
140
140
  transform: translateX(50%);
141
141
  animation: ${I("left",75)} ease-out 0.3s 1
142
142
  forwards;
143
- `,L=r.img`
143
+ `,Z=r.img`
144
144
  ${V}
145
145
  `,Ye=r(T)`
146
146
  display: flex;
@@ -151,14 +151,14 @@ import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS
151
151
  background-color:${j.brandColorGold};
152
152
  `,Ee=r(ne)`
153
153
  color: ${e=>e.theme.colors.brandColorOnyx};
154
- `,We=r(ie)`
154
+ `,Ge=r(ie)`
155
155
  width: ${t.sp4};
156
156
  height: ${t.sp4};
157
157
  color: ${e=>e.theme.colors.zeniAccountsPromoCardHighlightText};
158
158
  path {
159
159
  stroke-width: 2px;
160
160
  }
161
- `,Ge=(e,n)=>{const{common:s}=O.getLocalizedStrings();switch(e){case"keepInterest":case"noHiddenFees":return o.jsx(o.Fragment,{children:n.map((a,i)=>o.jsx(_e,{className:"card-highlight-text-stack",direction:a.direction,stepCount:a.stepCount,children:a.values.map((p,h)=>o.jsx(w,{className:"card-highlight-text",children:p},`${p}_${h}`))},`${a.direction}_${i}`))});case"protectCash":return o.jsxs(o.Fragment,{children:[o.jsxs(He,{children:[o.jsx(Me,{}),o.jsx(Be,{})]}),o.jsx(Ze,{}),o.jsxs(Le,{children:[o.jsxs(Ue,{children:[o.jsx(Ne,{}),o.jsxs(E,{isZeniProgressBar:!1,children:[n[0].values[0]," ",s.texts.insured]})]}),o.jsxs(Fe,{children:[o.jsx(Oe,{children:n[0].values[1]}),o.jsx(E,{isZeniProgressBar:!0,style:{marginTop:"6px"},children:s.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(Re,{})]}),o.jsx(w,{children:o.jsx(W,{children:o.jsx(We,{})})}),o.jsx(w,{children:o.jsx(W,{style:{animationDelay:"1.5s"},children:n[0].values[1]})})]});case"expertSupport":return o.jsxs(Xe,{children:[o.jsx(T,{style:{animationDelay:"0.2s"},children:o.jsx(L,{src:Ae})}),o.jsx(T,{style:{animationDelay:"0.4s",zIndex:1},children:o.jsx(L,{src:be})}),o.jsx(T,{style:{animationDelay:"0.6s",zIndex:2},children:o.jsx(L,{src:ke})}),o.jsx(Ye,{style:{animationDelay:"0.8s",zIndex:3},children:o.jsxs(Ee,{children:[" ",n[0].values[0]]})})]})}};let G;function Je({zeniAccountsPromoCardContent:e,showConfetti:n}){const[s]=fe("Confetti"),a=Q(),[i,p]=F.useState(!1);F.useEffect(()=>(n&&(G=setTimeout(()=>{p(!0)},2e3)),()=>{clearTimeout(G),p(!1)}),[n]);const{prefix:h,header:d,headerAnimationData:m,showAnimation:f,key:g}=e;return o.jsxs(De,{children:[n&&i&&s!=null?o.jsx(ye,{loop:!1,play:!0,onComplete:()=>{p(!1)},segments:[100,299],animationData:s,style:{position:"absolute",top:`-${t.sp8}`,left:t.sp0},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,o.jsxs(Te,{children:[d!=null?o.jsx(Ie,{children:d}):null,o.jsx(ee,{children:f?Ge(g,m):null})]}),o.jsx(Se,{themeContext:a,children:h})]})}const Qe=r(ge)`
161
+ `,We=(e,n)=>{const{common:s}=O.getLocalizedStrings();switch(e){case"keepInterest":case"noHiddenFees":return o.jsx(o.Fragment,{children:n.map((a,i)=>o.jsx(_e,{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}_${i}`))});case"protectCash":return o.jsxs(o.Fragment,{children:[o.jsxs(He,{children:[o.jsx(Me,{}),o.jsx(Be,{})]}),o.jsx(Le,{}),o.jsxs(Ze,{children:[o.jsxs(Ue,{children:[o.jsx(Ne,{}),o.jsxs(E,{isZeniProgressBar:!1,children:[n[0].values[0]," ",s.texts.insured]})]}),o.jsxs(Fe,{children:[o.jsx(Oe,{children:n[0].values[1]}),o.jsx(E,{isZeniProgressBar:!0,style:{marginTop:"6px"},children:s.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(Re,{})]}),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(Xe,{children:[o.jsx(T,{style:{animationDelay:"0.2s"},children:o.jsx(Z,{src:Ae})}),o.jsx(T,{style:{animationDelay:"0.4s",zIndex:1},children:o.jsx(Z,{src:be})}),o.jsx(T,{style:{animationDelay:"0.6s",zIndex:2},children:o.jsx(Z,{src:ke})}),o.jsx(Ye,{style:{animationDelay:"0.8s",zIndex:3},children:o.jsxs(Ee,{children:[" ",n[0].values[0]]})})]})}};let W;function Je({zeniAccountsPromoCardContent:e,showConfetti:n}){const[s]=fe("Confetti"),a=q(),[i,p]=F.useState(!1);F.useEffect(()=>(n&&(W=setTimeout(()=>{p(!0)},2e3)),()=>{clearTimeout(W),p(!1)}),[n]);const{prefix:u,header:d,headerAnimationData:m,showAnimation:f,key:g}=e;return o.jsxs(De,{children:[n&&i&&s!=null?o.jsx(ye,{loop:!1,play:!0,onComplete:()=>{p(!1)},segments:[100,299],animationData:s,style:{position:"absolute",top:`-${t.sp8}`,left:t.sp0},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,o.jsxs(Te,{children:[d!=null?o.jsx(Ie,{children:d}):null,o.jsx(ee,{children:f?We(g,m):null})]}),o.jsx(Se,{themeContext:a,children:u})]})}const qe=r(ge)`
162
162
  flex-wrap: wrap;
163
163
  overflow: hidden;
164
164
  & .styledNav {
@@ -166,7 +166,7 @@ import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS
166
166
  margin-right: -${t.sp1};
167
167
  background-color: ${e=>e.theme.colors.zeniAccountsPromoNavigationArrowColor};
168
168
  }
169
- `,qe=r(xe)`
169
+ `,Qe=r(xe)`
170
170
  flex-direction: row;
171
171
  justify-content: space-between;
172
172
  margin: 2px;
@@ -190,12 +190,12 @@ import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS
190
190
  border: 1px solid
191
191
  ${e=>e.theme.colors.zeniAccountsPromoButtonHoverColor};
192
192
  }
193
- `,Ve=r(q)`
193
+ `,Ve=r(Q)`
194
194
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonTextColor};
195
195
  `,eo=r.div`
196
196
  margin-top: ${t.sp4};
197
197
  margin-bottom: ${t.sp3};
198
- `,oo=r(q)`
198
+ `,oo=r(Q)`
199
199
  color: ${e=>e.theme.colors.zeniAccountsPromoCardTitle};
200
200
  text-align: center;
201
201
  `,to=r.div`
@@ -204,4 +204,4 @@ import{R as O,j as o,o as t,ab as D,f as j,r as ne,v as ae,aQ as se,aR as ie,aS
204
204
  bottom: 6px;
205
205
  `,ro=r(J)`
206
206
  color: ${e=>e.theme.colors.zeniAccountsPromoButtonColor};
207
- `,P=O.getLocalizedStrings().zeniAccountsPromoCard;function no({analytics:e,cardPosition:n,card:s,data:a,activeCardIndex:i,isZeniAccountsSetUp:p,handleLearnMoreClick:h,handleCardNavigation:d}){const m=Q(),f=me(),[g,x]=S.useState(0),[y,C]=S.useState(0),[B,A]=S.useState("left"),b=(l,$)=>{l.stopPropagation(),A($);const re=$=="left"?i+1:i-1;e.trackZeniAccountsPromoCardClick(n,$==="left"?"Next":"Back"),d(k(re),$)},M=l=>{d(k(l),"left")};function u(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(i+1),"left"),A("left"),x(0),C(0)):g-y<-50&&y!==0&&(d(k(i-1),"right"),A("right"),x(0),C(0))}const H=a.length>1,_=ue.hasZeniAccountsAdminLevelAccess(f.loggedInUserRoleMap);return o.jsx(Qe,{"data-testid":Z("dashboard",s.cardType),style:{cursor:"default"},dimension:s.dimension,onTouchStart:l=>H?u(l):null,onTouchMove:l=>H?oe(l):null,onTouchEnd:()=>H?te():null,children:o.jsxs(qe,{children:[o.jsx(U,{children:o.jsx(Y,{"data-testid":Z("dashboard-navigation-arrow-left",s.cardType),isSpendManagementPromoCard:!0,navType:"left",handleClick:b,promoColor:m.colors.zeniAccountsPromoButtonColor,promoBorderColor:m.colors.zeniAccountsPromoButtonColor})}),o.jsxs(U,{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:i,currentIndex:$,which:B,children:o.jsx(Je,{zeniAccountsPromoCardContent:l,showConfetti:i===2})},l.key)),o.jsx(Ke,{onClick:()=>h(_?p?"Move Money":"Sign Up for Free":"Learn More"),children:o.jsx(Ve,{children:_?p?P.button:P.signUp:P.learnMore})}),o.jsx(je,{spendManagementPromoCardActive:!0,numberOfDots:a.length,activeIndex:i,handleClick:M,promoColor:m.colors.zeniAccountsPromoButtonColor,promoColorHover:m.colors.zeniAccountsPromoNavigationDotHoverColor,style:{cursor:"default",position:"absolute",bottom:t.sp5}}),i===0?o.jsx(to,{children:o.jsx(ro,{children:a[0].footer})}):null]}),o.jsx(U,{children:o.jsx(Y,{"data-testid":Z("dashboard-navigation-arrow-right",s.cardType),isSpendManagementPromoCard:!0,navType:"right",handleClick:b,promoColor:m.colors.zeniAccountsPromoButtonColor,promoBorderColor:m.colors.zeniAccountsPromoButtonColor})})]})})}const{zeniAccountsPromoCard:c,common:v}=O.getLocalizedStrings(),z={key:"keepInterest",title:c.title,prefix:c.keepInterest.prefixDashboard,header:c.keepInterest.header,headerAnimationData:[],footer:c.keepInterest.footer,showAnimation:!0},N={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 so({card:e,data:n,analytics:s,actions:a,isZeniAccountsEnabled:i,columnKey:p,index:h,dndProps:d}){const[m,f]=F.useState(0),g=u=>{f(u)},x=(p+1)*(h+1),y=u=>{s.trackZeniAccountsPromoCardClick(x,u),n.depositAccountId!=null?a.onCardBtnClick?.("zeni_accounts_promo_card",n.depositAccountId):a.onCardBtnClick?.("zeni_accounts_promo_card")},{maxInsuredAmount:C,maxPossibleInterest:B,maxAnnualPercentageYield:A,maxCashBalanceAvailable:b=0}=n;z.headerAnimationData=io(B??25e4),z.prefix=c.keepInterest.prefixDashboard.replace(/<amount>/,D("0,0",b,v.currency.currencySymbol).toUpperCase()),z.footer=c.keepInterest.footer.replace(/<interest>/,A.toString()),N.headerAnimationData=[{direction:"right",stepCount:1,values:[...c.protectCash.headerAnimationData,D(X(C),C,v.currency.currencySymbol).toUpperCase()]}],N.prefix=c.protectCash.prefix.replace(/<amount>/,D(X(C),C,v.currency.currencySymbol).toUpperCase());const M=[z,N,...ao];return o.jsx(pe,{isDragging:d?.draggedCardType!=null,isDragOver:d?.dragOverCard===e.cardType,draggable:!0,onDragStart:u=>d?.onDragStart(e.cardType,u),onDragOver:u=>d?.onDragOver(u,e.cardType),onDragLeave:u=>d?.onDragLeave(u),onDrop:u=>d?.onDrop(u,e.cardType),dimension:e.dimension,children:o.jsx(ve,{card:e,actions:{onCardClick:()=>{},onReloadData:()=>{}},children:o.jsx(no,{card:e,data:M,handleCardNavigation:g,activeCardIndex:m,handleLearnMoreClick:y,isZeniAccountsSetUp:i&&n.depositAccountId!=null,analytics:s,cardPosition:x})})},e.cardIndex)}S.memo(so);function io(e){const n=[],s=D("0,0",Math.floor(e),v.currency.currencySymbol);for(let a=0;a<s.length;a++){const i=s[a],p={direction:"up",stepCount:0,values:[i]};if(i===v.currency.currencySymbol||i===v.strings.comma)n.push(p);else{const h=parseInt(s[a]),d=a===1&&h<=1?1:Math.floor(h/2),m=a%2===0?"down":"up",f=h-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{Ge as G,so as a,io as c};
207
+ `,P=O.getLocalizedStrings().zeniAccountsPromoCard;function no({analytics:e,cardPosition:n,card:s,data:a,activeCardIndex:i,isZeniAccountsSetUp:p,handleLearnMoreClick:u,handleCardNavigation:d}){const m=q(),f=me(),[g,x]=S.useState(0),[y,C]=S.useState(0),[B,A]=S.useState("left"),b=(l,$)=>{l.stopPropagation(),A($);const re=$=="left"?i+1:i-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(i+1),"left"),A("left"),x(0),C(0)):g-y<-50&&y!==0&&(d(k(i-1),"right"),A("right"),x(0),C(0))}const H=a.length>1,_=he.hasZeniAccountsAdminLevelAccess(f.loggedInUserRoleMap);return o.jsx(qe,{"data-testid":L("dashboard",s.cardType),style:{cursor:"default"},dimension:s.dimension,onTouchStart:l=>H?h(l):null,onTouchMove:l=>H?oe(l):null,onTouchEnd:()=>H?te():null,children:o.jsxs(Qe,{children:[o.jsx(U,{children:o.jsx(Y,{"data-testid":L("dashboard-navigation-arrow-left",s.cardType),isSpendManagementPromoCard:!0,navType:"left",handleClick:b,promoColor:m.colors.zeniAccountsPromoButtonColor,promoBorderColor:m.colors.zeniAccountsPromoButtonColor})}),o.jsxs(U,{style:{height:"100%",position:"relative",alignItems:"center"},children:[o.jsx(eo,{children:o.jsx(oo,{children:P.title})}),a.map((l,$)=>o.jsx(ue,{activeCardIndex:i,currentIndex:$,which:B,children:o.jsx(Je,{zeniAccountsPromoCardContent:l,showConfetti:i===2})},l.key)),o.jsx(Ke,{onClick:()=>u(_?p?"Move Money":"Sign Up for Free":"Learn More"),children:o.jsx(Ve,{children:_?p?P.button:P.signUp:P.learnMore})}),o.jsx(je,{spendManagementPromoCardActive:!0,numberOfDots:a.length,activeIndex:i,handleClick:M,promoColor:m.colors.zeniAccountsPromoButtonColor,promoColorHover:m.colors.zeniAccountsPromoNavigationDotHoverColor,style:{cursor:"default",position:"absolute",bottom:t.sp5}}),i===0?o.jsx(to,{children:o.jsx(ro,{children:a[0].footer})}):null]}),o.jsx(U,{children:o.jsx(Y,{"data-testid":L("dashboard-navigation-arrow-right",s.cardType),isSpendManagementPromoCard:!0,navType:"right",handleClick:b,promoColor:m.colors.zeniAccountsPromoButtonColor,promoBorderColor:m.colors.zeniAccountsPromoButtonColor})})]})})}const{zeniAccountsPromoCard:c,common:v}=O.getLocalizedStrings(),z={key:"keepInterest",title:c.title,prefix:c.keepInterest.prefixDashboard,header:c.keepInterest.header,headerAnimationData:[],footer:c.keepInterest.footer,showAnimation:!0},N={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 so({card:e,data:n,analytics:s,actions:a,isZeniAccountsEnabled:i,columnKey:p,index:u,dndProps:d}){const[m,f]=F.useState(0),g=h=>{f(h)},x=(p+1)*(u+1),y=h=>{s.trackZeniAccountsPromoCardClick(x,h),n.depositAccountId!=null?a.onCardBtnClick?.("zeni_accounts_promo_card",n.depositAccountId):a.onCardBtnClick?.("zeni_accounts_promo_card")},{maxInsuredAmount:C,maxPossibleInterest:B,maxAnnualPercentageYield:A,maxCashBalanceAvailable:b=0}=n;z.headerAnimationData=io(B??25e4),z.prefix=c.keepInterest.prefixDashboard.replace(/<amount>/,D("0,0",b,v.currency.currencySymbol).toUpperCase()),z.footer=c.keepInterest.footer.replace(/<interest>/,A.toString()),N.headerAnimationData=[{direction:"right",stepCount:1,values:[...c.protectCash.headerAnimationData,D(X(C),C,v.currency.currencySymbol).toUpperCase()]}],N.prefix=c.protectCash.prefix.replace(/<amount>/,D(X(C),C,v.currency.currencySymbol).toUpperCase());const M=[z,N,...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(ve,{card:e,actions:{onCardClick:()=>{},onReloadData:()=>{}},children:o.jsx(no,{card:e,data:M,handleCardNavigation:g,activeCardIndex:m,handleLearnMoreClick:y,isZeniAccountsSetUp:i&&n.depositAccountId!=null,analytics:s,cardPosition:x})})},e.cardIndex)}S.memo(so);function io(e){const n=[],s=D("0,0",Math.floor(e),v.currency.currencySymbol);for(let a=0;a<s.length;a++){const i=s[a],p={direction:"up",stepCount:0,values:[i]};if(i===v.currency.currencySymbol||i===v.strings.comma)n.push(p);else{const u=parseInt(s[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{We as G,so as a,io as c};
@@ -1,4 +1,4 @@
1
- import{u as f,e as T,a2 as x,v as a,j as n,W as y,iF as B,o as t,R as C,C as m,q as d}from"./index-BKug3-eP.js";import{b as j,n as v}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const p={marginTop:new m(d[0],18),marginBottom:new m(d[0],d[3])},{spendManagement:{chargeCard:{chargeCardsPromo:l}},common:w}=C.getLocalizedStrings(),K=({googleAPIKey:o,customAddress:c,customAddressStatus:e,onDismissClick:r,onSubmitHandler:g})=>{const u=f(),s=T(),i=x(e.fetchState);j.useEffect(()=>{i==="In-Progress"&&e.fetchState==="Completed"&&r()},[e.fetchState,r,i]);const h=s==="small"?a.extraSmallRegular.cssObject:a.standardRegular.cssObject,S=s==="small"?a.standardMedium.cssObject:a.h5Regular.cssObject;return n.jsx(P,{"data-testid":y("add-address-for-card-drawer"),children:n.jsx(B,{googleAPIKey:o,loadingState:e.fetchState,addressToEdit:c,onSubmitHandler:b=>g(b),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:l.addAddress,subTitleMessage:l.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:p.marginTop.valuePx(s),marginBottom:p.marginBottom.valuePx(s),...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:w.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},P=v.div`
1
+ import{u as f,e as T,a2 as x,v as a,j as n,W as y,iF as B,o as t,R as C,C as m,q as d}from"./index-0QGih61V.js";import{b as j,n as v}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const p={marginTop:new m(d[0],18),marginBottom:new m(d[0],d[3])},{spendManagement:{chargeCard:{chargeCardsPromo:l}},common:w}=C.getLocalizedStrings(),K=({googleAPIKey:o,customAddress:c,customAddressStatus:e,onDismissClick:r,onSubmitHandler:g})=>{const u=f(),s=T(),i=x(e.fetchState);j.useEffect(()=>{i==="In-Progress"&&e.fetchState==="Completed"&&r()},[e.fetchState,r,i]);const h=s==="small"?a.extraSmallRegular.cssObject:a.standardRegular.cssObject,S=s==="small"?a.standardMedium.cssObject:a.h5Regular.cssObject;return n.jsx(P,{"data-testid":y("add-address-for-card-drawer"),children:n.jsx(B,{googleAPIKey:o,loadingState:e.fetchState,addressToEdit:c,onSubmitHandler:b=>g(b),onCancel:r,showNavbarWithClose:!0,isSubPage:!0,addTitleMessage:l.addAddress,subTitleMessage:l.addAddressSubText,hideAddressBackButton:!0,showAddressCloseButton:!0,dontShowSaveConfirmationPopup:!0,customNavStyles:{paddingTop:"19px",paddingBottom:"19px"},customTitleStyles:{marginTop:p.marginTop.valuePx(s),marginBottom:p.marginBottom.valuePx(s),...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:w.add,buttonWidth:82,separatorStyle:{marginRight:t.sp4}}})})},P=v.div`
2
2
  display: flex;
3
3
  background-color: ${o=>o.theme.colors.grey4};
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{e as M,b as le,Y as ne,l as de,R as N,j as i,aX as pe,q as p,ik as ce,iC as he,o as t,Q as W,W as A,C as m,X as u,g as b,iD as ge,bO as xe,f as s,iE as me,aT as we,cr as $e,y as ue,v as be,io as ye}from"./index-BKug3-eP.js";import{b as h,n as o,j as D}from"./vendor-rkTZJa59.js";import{H as fe}from"./ChargeCardUtils-BEBqV4Ri-CPRRvpNp.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-y8nGTHEa.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.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 i.jsxs(We,{style:l,children:[i.jsx(Ae,{style:{width:`${$-1}%`,...j(),...k}}),e.map(n=>i.jsx(De,{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{e as M,b as le,Y as ne,l as de,R as N,j as i,aX as pe,q as p,ik as ce,iC as he,o as t,Q as W,W as A,C as m,X as $,g as b,iD as ge,bO as xe,f as s,iE as me,aT as we,cr as ue,x as $e,v as be,io as ye}from"./index-0QGih61V.js";import{b as h,n as o,j as D}from"./vendor-rkTZJa59.js";import{H as fe}from"./ChargeCardUtils-D8nxmniw-0B3L7zeg.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-y8nGTHEa.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const Ie=({options:e,selected:a,onToggle:g,containerStyle:l={},optionStyle:f={},thumbStyle:k={}})=>{const w=e.findIndex(n=>n.id===a),u=100/e.length,j=()=>w===0?{left:"1%"}:w===e.length-1?{left:`${(e.length-1)*u}%`}:{left:`${w*u}%`};return i.jsxs(We,{style:l,children:[i.jsx(Ae,{style:{width:`${u-1}%`,...j(),...k}}),e.map(n=>i.jsx(De,{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{e as M,b as le,Y as ne,l as de,R as N,j as i,aX as pe,q as p,ik as ce,iC
37
37
  transition: color 0.3s ease;
38
38
  padding-top: ${t.sp1};
39
39
  padding-bottom: ${t.sp1};
40
- `,{spendManagement:{chargeCard:{chargeCardsPromo:B,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")},Be=(e,a,g)=>i.jsxs(oi,{translatePhone:e,showIphone:g,children:[i.jsxs(ai,{children:[i.jsx(gi,{children:B.timeText}),i.jsxs(si,{children:[i.jsx(li,{children:[...Array(4).keys()].map(l=>i.jsx(ni,{towerIndex:l},l))}),i.jsx(di,{children:i.jsx(C,{className:"wave",children:i.jsx(C,{className:"wave",children:i.jsx(C,{className:"wave"})})})}),i.jsx(pi,{children:i.jsx(ci,{})}),i.jsx(hi,{})]})]}),i.jsxs(ti,{children:[i.jsxs(Ke,{children:[i.jsx(_e,{showTick:a}),i.jsx(Ze,{showTick:a}),i.jsx(ei,{showTick:a}),i.jsx(ii,{showTick:a}),i.jsxs(wi,{translateCardSkelton:e,children:[i.jsx(ui,{}),[...Array(4).keys()].map(l=>i.jsx($i,{lineIndex:l},l))]}),a?null:i.jsx(bi,{children:i.jsx(ge,{scannerTheme:"light"})})]}),i.jsx(xi,{showTick:a}),i.jsx(mi,{showTick:a,children:B.addToWallet})]}),i.jsx(ri,{})]}),F=({tabType:e})=>{const a=M();return i.jsxs(Le,{children:[i.jsxs(H,{children:[i.jsx(Ne,{children:i.jsx(Ge,{windowSize:a})}),i.jsx(E,{windowSize:a,children:d.openWalletAppOnPhone})]}),i.jsxs(L,{windowSize:a,children:[e==="apple"?d.openWalletDescriptionApple:d.openWalletDescriptionGoogle,i.jsx(P,{})]}),i.jsxs(H,{children:[i.jsx(Me,{children:i.jsx(Xe,{windowSize:a})}),i.jsx(E,{windowSize:a,children:d.verifyCard})]}),i.jsxs(L,{windowSize:a,children:[e==="apple"?d.VerifyCardDescriptionApple:d.VerifyCardDescriptionGoogle,i.jsx(P,{})]})]})},Hi=({onGotItClick:e,isDebitCard:a,controllerEmails:g,classListFetchState:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:k,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:$,productInformation:j,creditAccountInformation:n,debitAccountInformation:v,chargeCardDetailView:G,creditAccount:X,creditAccountRepayment:J,cardIssuedByRoles:Q,cardIssuedByDepartmentName:V,cardHolderRoles:Y,cardHolderDepartmentName:O})=>{const r=M(),q=le().analytics,[T,U]=h.useState(!1),[z,K]=h.useState(!1),[_,Z]=h.useState(!1),[ee,ie]=h.useState(!1),[S,te]=h.useState("apple"),oe=ne(),ae=de.hasChargeCardAdminLevelAccess(oe.loggedInUserRoleMap),se=I=>{fe({chargeCardDetailView:G,classListFetchState:l,analytics:q,isDebitCard:a,isChargeCardAdmin:ae,cardIssuedByRoles:Q,cardIssuedByDepartmentName:V,cardHolderRoles:Y,cardHolderDepartmentName:O,controllerEmails:g,pageName:"Card Activation",addToWalletType:I==="apple"?"Apple Wallet":"Google Wallet",productInformation:j,creditAccountInformation:n,debitAccountInformation:v,isChargeCardFeatureEnabled:f,creditAccount:X,creditAccountRepayment:J}),te(I)};h.useEffect(()=>{setTimeout(()=>{U(!0)},a?9500:4500),setTimeout(()=>{K(!0)},a?9e3:4e3),setTimeout(()=>{Z(!0)},a?10500:5500),setTimeout(()=>{ie(!0)},a?15e3:1e4)},[a]);const re=T&&z,x=N.getLocalizedStrings().spendManagement.chargeCard;return i.jsx(vi,{windowSize:r,children:i.jsxs(Ve,{children:[i.jsx(pe,{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]}}),i.jsxs(Ye,{windowSize:r,children:[i.jsx(yi,{windowSize:r,children:x.addToWallet.heading}),i.jsx(fi,{windowSize:r,children:x.addToWallet.subheading})]}),i.jsxs(Oe,{windowSize:r,children:[r!=="small"?i.jsx(Ci,{children:i.jsxs(qe,{windowSize:r,children:[i.jsxs(Ue,{windowSize:r,flipCard:T,scaleCard:z,children:[i.jsx(ce,{isDebitCard:a}),i.jsx(he,{showCrossIcon:!1,isDebitCard:a})]}),Be(_,ee,re)]})}):null,i.jsxs(He,{windowSize:r,children:[i.jsx(Ee,{children:i.jsx(Ie,{options:[{id:"apple",dataTestId:"add-to-apple-wallet",label:i.jsxs(i.Fragment,{children:[i.jsx(Qe,{}),i.jsx(R,{children:d.appleWallet})]})},{id:"google",dataTestId:"add-to-google-wallet",label:i.jsxs(i.Fragment,{children:[i.jsx(Je,{}),i.jsx(R,{children:d.googleWallet})]})}],optionStyle:{padding:"12px"},thumbStyle:{paddingTop:t.sp4,paddingBottom:t.sp4},containerStyle:{border:t.sp0},selected:S,onToggle:se})}),i.jsxs(Fe,{children:[i.jsx(Pe,{isActive:S==="apple",children:i.jsx(F,{tabType:"apple"})}),i.jsx(Re,{isActive:S==="google",children:i.jsx(F,{tabType:"google"})})]}),r!=="small"?i.jsx(ji,{children:i.jsx(W,{variant:"primary",label:x.addToWallet.gotIt,onClick:e,style:{width:"fit-content"},"data-testid":A("got-it-button-web")})}):null]})]}),r==="small"?i.jsx(Si,{children:i.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:B,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 $("h6Medium","h4Regular"),subheadingFont:new $("standardRegular","h6Regular"),walletTitleFont:new $("standardSemiBold","largeSemiBold"),walletSubTitleFont:new $("extraSmallRegular","standardRegular")},Be=(e,a,g)=>i.jsxs(oi,{translatePhone:e,showIphone:g,children:[i.jsxs(ai,{children:[i.jsx(gi,{children:B.timeText}),i.jsxs(si,{children:[i.jsx(li,{children:[...Array(4).keys()].map(l=>i.jsx(ni,{towerIndex:l},l))}),i.jsx(di,{children:i.jsx(C,{className:"wave",children:i.jsx(C,{className:"wave",children:i.jsx(C,{className:"wave"})})})}),i.jsx(pi,{children:i.jsx(ci,{})}),i.jsx(hi,{})]})]}),i.jsxs(ti,{children:[i.jsxs(Ke,{children:[i.jsx(_e,{showTick:a}),i.jsx(Ze,{showTick:a}),i.jsx(ei,{showTick:a}),i.jsx(ii,{showTick:a}),i.jsxs(wi,{translateCardSkelton:e,children:[i.jsx($i,{}),[...Array(4).keys()].map(l=>i.jsx(ui,{lineIndex:l},l))]}),a?null:i.jsx(bi,{children:i.jsx(ge,{scannerTheme:"light"})})]}),i.jsx(xi,{showTick:a}),i.jsx(mi,{showTick:a,children:B.addToWallet})]}),i.jsx(ri,{})]}),F=({tabType:e})=>{const a=M();return i.jsxs(Le,{children:[i.jsxs(H,{children:[i.jsx(Ne,{children:i.jsx(Ge,{windowSize:a})}),i.jsx(E,{windowSize:a,children:d.openWalletAppOnPhone})]}),i.jsxs(L,{windowSize:a,children:[e==="apple"?d.openWalletDescriptionApple:d.openWalletDescriptionGoogle,i.jsx(P,{})]}),i.jsxs(H,{children:[i.jsx(Me,{children:i.jsx(Xe,{windowSize:a})}),i.jsx(E,{windowSize:a,children:d.verifyCard})]}),i.jsxs(L,{windowSize:a,children:[e==="apple"?d.VerifyCardDescriptionApple:d.VerifyCardDescriptionGoogle,i.jsx(P,{})]})]})},Hi=({onGotItClick:e,isDebitCard:a,controllerEmails:g,classListFetchState:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:k,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:u,productInformation:j,creditAccountInformation:n,debitAccountInformation:v,chargeCardDetailView:G,creditAccount:X,creditAccountRepayment:J,cardIssuedByRoles:V,cardIssuedByDepartmentName:Y,cardHolderRoles:O,cardHolderDepartmentName:Q})=>{const r=M(),q=le().analytics,[T,U]=h.useState(!1),[z,K]=h.useState(!1),[_,Z]=h.useState(!1),[ee,ie]=h.useState(!1),[S,te]=h.useState("apple"),oe=ne(),ae=de.hasChargeCardAdminLevelAccess(oe.loggedInUserRoleMap),se=I=>{fe({chargeCardDetailView:G,classListFetchState:l,analytics:q,isDebitCard:a,isChargeCardAdmin:ae,cardIssuedByRoles:V,cardIssuedByDepartmentName:Y,cardHolderRoles:O,cardHolderDepartmentName:Q,controllerEmails:g,pageName:"Card Activation",addToWalletType:I==="apple"?"Apple Wallet":"Google Wallet",productInformation:j,creditAccountInformation:n,debitAccountInformation:v,isChargeCardFeatureEnabled:f,creditAccount:X,creditAccountRepayment:J}),te(I)};h.useEffect(()=>{setTimeout(()=>{U(!0)},a?9500:4500),setTimeout(()=>{K(!0)},a?9e3:4e3),setTimeout(()=>{Z(!0)},a?10500:5500),setTimeout(()=>{ie(!0)},a?15e3:1e4)},[a]);const re=T&&z,x=N.getLocalizedStrings().spendManagement.chargeCard;return i.jsx(vi,{windowSize:r,children:i.jsxs(Ye,{children:[i.jsx(pe,{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]}}),i.jsxs(Oe,{windowSize:r,children:[i.jsx(yi,{windowSize:r,children:x.addToWallet.heading}),i.jsx(fi,{windowSize:r,children:x.addToWallet.subheading})]}),i.jsxs(Qe,{windowSize:r,children:[r!=="small"?i.jsx(Ci,{children:i.jsxs(qe,{windowSize:r,children:[i.jsxs(Ue,{windowSize:r,flipCard:T,scaleCard:z,children:[i.jsx(ce,{isDebitCard:a}),i.jsx(he,{showCrossIcon:!1,isDebitCard:a})]}),Be(_,ee,re)]})}):null,i.jsxs(He,{windowSize:r,children:[i.jsx(Ee,{children:i.jsx(Ie,{options:[{id:"apple",dataTestId:"add-to-apple-wallet",label:i.jsxs(i.Fragment,{children:[i.jsx(Ve,{}),i.jsx(R,{children:d.appleWallet})]})},{id:"google",dataTestId:"add-to-google-wallet",label:i.jsxs(i.Fragment,{children:[i.jsx(Je,{}),i.jsx(R,{children:d.googleWallet})]})}],optionStyle:{padding:"12px"},thumbStyle:{paddingTop:t.sp4,paddingBottom:t.sp4},containerStyle:{border:t.sp0},selected:S,onToggle:se})}),i.jsxs(Fe,{children:[i.jsx(Pe,{isActive:S==="apple",children:i.jsx(F,{tabType:"apple"})}),i.jsx(Re,{isActive:S==="google",children:i.jsx(F,{tabType:"google"})})]}),r!=="small"?i.jsx(ji,{children:i.jsx(W,{variant:"primary",label:x.addToWallet.gotIt,onClick:e,style:{width:"fit-content"},"data-testid":A("got-it-button-web")})}):null]})]}),r==="small"?i.jsx(Si,{children:i.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%;
@@ -113,21 +113,21 @@ import{e as M,b as le,Y as ne,l as de,R as N,j as i,aX as pe,q as p,ik as ce,iC
113
113
  `,Je=o(ve)`
114
114
  height: ${t.sp4};
115
115
  width: ${t.sp4};
116
- `,Qe=o(je)`
116
+ `,Ve=o(je)`
117
117
  height: ${t.sp4};
118
118
  width: ${t.sp4};
119
- `,Ve=o.div`
119
+ `,Ye=o.div`
120
120
  height: 100%;
121
121
  width: 100%;
122
122
  display: flex;
123
123
  flex-direction: column;
124
- `,Ye=o.div`
124
+ `,Oe=o.div`
125
125
  width: 100%;
126
126
  display: flex;
127
127
  flex-direction: column;
128
128
  margin-top: ${({windowSize:e})=>c.headingMarginTop.valuePx(e)};
129
129
  margin-bottom: ${({windowSize:e})=>c.headingMarginBottom.valuePx(e)};
130
- `,Oe=o.div`
130
+ `,Qe=o.div`
131
131
  ${e=>e.windowSize==="small"?"height: 100%;":null};
132
132
  display: flex;
133
133
  justify-content: center;
@@ -260,14 +260,14 @@ import{e as M,b as le,Y as ne,l as de,R as N,j as i,aX as pe,q as p,ik as ce,iC
260
260
  margin-left: 0.5px;
261
261
  border-top-right-radius: 1px;
262
262
  border-bottom-right-radius: 1px;
263
- `,gi=o(me)``,C=o.div``,xi=o($e)`
263
+ `,gi=o(me)``,C=o.div``,xi=o(ue)`
264
264
  width: ${t.sp7};
265
265
  height: ${t.sp7};
266
266
  color: ${s.success};
267
267
  margin-top: ${t.sp4};
268
268
  opacity: ${e=>e.showTick?1:0};
269
269
  transition: opacity 0.5s linear;
270
- `,mi=o(ue)`
270
+ `,mi=o($e)`
271
271
  color: ${s.primaryLight};
272
272
  opacity: ${e=>e.showTick?1:0};
273
273
  transition: opacity 0.5s linear;
@@ -283,14 +283,14 @@ import{e as M,b as le,Y as ne,l as de,R as N,j as i,aX as pe,q as p,ik as ce,iC
283
283
  hsla(0, 0%, 100%, 0.8),
284
284
  hsla(0, 0%, 100%, 0.8)
285
285
  );
286
- `,$i=o.div`
286
+ `,ui=o.div`
287
287
  width: ${e=>e.lineIndex===0?"66px":e.lineIndex===1?"112px":"55px"};
288
288
  border: 2px solid ${s.brandColorGold};
289
289
  margin-bottom: ${e=>e.lineIndex===1?"22px":"12px"};
290
290
  border-radius: ${t.sp2};
291
291
  margin-left: ${t.sp3};
292
292
  margin-top: ${e=>e.lineIndex===0?t.sp4:t.sp0};
293
- `,ui=o(we)`
293
+ `,$i=o(we)`
294
294
  color: ${e=>e.theme.colors.brandColorJade};
295
295
  width: ${t.sp3};
296
296
  height: ${t.sp3};
@@ -1,47 +1,47 @@
1
- import{u as K,e as O,l as A,R as x,hq as be,j as t,hr as De,bg as Ne,hs as je,aZ as Oe,aX as ve,C as D,_ as F,fF as ke,o as N,a6 as Pe,q as m,a0 as Q,bL as Be,bM as $e,bN as Me,y as Ae,bO as Ie,aj as ne,J as oe,a8 as re}from"./index-BKug3-eP.js";import{b as f,n as y}from"./vendor-rkTZJa59.js";import{n as I}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{L as Ye,k as ze}from"./ArAgingChart-CsuanjH1-C1MocSZP.js";import{C as ie}from"./NoDataChart-O6Mg_gf4-BzMtzTAz.js";import{R as se,W as $}from"./CollapsableReportTable-CHthdzdj-DiXbx-o4.js";import{d as le}from"./NoDataTable-BgKg_U0s-CmmkF752.js";import{l as ce}from"./mapSpacerToTreeNode-CiLMcagY-B9z3eGZE.js";import{l as Le}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./chartTypes-BFc-FQm9-DH8jC-PX.js";import"./AccountRow-DnMX1pTV-Dch-yrS1.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const Ee={chartHeight:new D(288,360)},de=y.div`
1
+ import{u as K,e as O,l as A,R as w,hq as be,j as t,hr as De,bg as Ne,hs as je,aZ as Oe,aX as ve,C as D,_ as F,fF as ke,o as N,a6 as Pe,q as m,a0 as Q,bL as Be,bM as $e,bN as Me,x as Ae,bO as Ie,aj as ne,J as oe,a8 as re}from"./index-0QGih61V.js";import{b as f,n as x}from"./vendor-rkTZJa59.js";import{n as I}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{L as Ye,k as ze}from"./ArAgingChart-D07CrcX6-Bb-ubg6P.js";import{C as ie}from"./NoDataChart-BmcrokSp-mktpp4Ge.js";import{R as se,W as $}from"./CollapsableReportTable-s_gsuEBP-C1aC-SHP.js";import{d as le}from"./NoDataTable-BKAiKOOM-BMD8AGW2.js";import{l as ce}from"./mapSpacerToTreeNode-B_jfScE8-BZjIqfg0.js";import{l as Le}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./chartTypes-D1Bn4xHa-xYwPwpPb.js";import"./AccountRow-B8_6Pf4a-BXi7G1sU.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const Ee={chartHeight:new D(288,360)},de=x.div`
2
2
  display: flex;
3
- `,ge=y.div`
3
+ `,ge=x.div`
4
4
  display: flex;
5
5
  flex: 1 1 auto;
6
6
  flex-direction: column;
7
7
  height: ${e=>Ee.chartHeight.valuePx(e.windowSize)};
8
8
  padding-bottom: ${N.sp6};
9
- `;function Re({report:e}){return e.reportId==="accounts_payable_aging"?t.jsx(Fe,{report:e}):t.jsx(Te,{report:e})}function Fe({report:e}){const a=O();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(Ye,{isDetailPage:!0,report:e,width:i,height:o})})})}function Te({report:e}){const a=O();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 qe({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(qe({config:s,nestedCustomer:e,numOfBalances:a,title:e.customer.name,parentNodeIDs:n,ancestorMetadata:c})),r}function Ke({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 We=(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)=>Ke({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}},He=(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 j={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])},Y=y.div`
9
+ `;function Re({report:e}){return e.reportId==="accounts_payable_aging"?t.jsx(Fe,{report:e}):t.jsx(Te,{report:e})}function Fe({report:e}){const a=O();return e.agingBalances.length===0?t.jsx(de,{children:t.jsx(ie,{title:w.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(ge,{windowSize:a,children:t.jsx(ne,{children:({height:o,width:i})=>t.jsx(Ye,{isDetailPage:!0,report:e,width:i,height:o})})})}function Te({report:e}){const a=O();return e.agingBalances.length===0?t.jsx(de,{children:t.jsx(ie,{title:w.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 qe({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(qe({config:s,nestedCustomer:e,numOfBalances:a,title:e.customer.name,parentNodeIDs:n,ancestorMetadata:c})),r}function Ke({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 We=(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)=>Ke({agingBalances:d,title:d.vendor.name,numOfBalances:c,isLastNode:g===n.length-1,config:a}));r.push(...u);const p=me({title:w.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${w.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}},He=(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:w.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${w.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 j={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])},Y=x.div`
10
10
  display: flex;
11
11
  position: sticky;
12
12
  justify-content: center;
13
13
  padding-top: ${e=>j.wrapperPadding.valuePx(e.windowSize)};
14
14
  padding-left: ${e=>j.wrapperPadding.valuePx(e.windowSize)};
15
15
  background-color: ${e=>e.theme.colors.grey4};
16
- `,he=y.div`
16
+ `,he=x.div`
17
17
  width: 100%;
18
18
  height: calc(100vh - ${N.sp11});
19
- `;function Ue({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Ge,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Ge({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=O(),r=K(),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=We(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(Y,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(Y,{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:j.contentPaddingLeft.value(l),right:j.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=K(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,S)=>{a(g,S)},[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 S=He(e,g,p);n(e),l(S)}else{const S=ue(c,g,e,p);l(S)}},[e,d]),e.agingBalances.length===0?t.jsx(Y,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(Y,{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:j.contentPaddingLeft.value(r),right:j.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Xe={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Ze=y.div`
19
+ `;function Ue({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Ge,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Ge({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=O(),r=K(),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=We(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(Y,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(Y,{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:j.contentPaddingLeft.value(l),right:j.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=K(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,S)=>{a(g,S)},[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 S=He(e,g,p);n(e),l(S)}else{const S=ue(c,g,e,p);l(S)}},[e,d]),e.agingBalances.length===0?t.jsx(Y,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(Y,{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:j.contentPaddingLeft.value(r),right:j.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Xe={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Ze=x.div`
20
20
  display: flex;
21
21
  width: 100%;
22
22
  justify-content: space-between;
23
23
  align-items: center;
24
24
  overflow: auto;
25
25
  column-gap: ${e=>Xe.summaryColumnGap.valuePx(e.windowSize)};
26
- `,V=y.div`
26
+ `,V=x.div`
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  align-items: center;
30
30
  justify-content: center;
31
- `,ee=y(Ae)`
31
+ `,ee=x(Ae)`
32
32
  color: ${e=>e.theme.colors.grey1};
33
33
  text-wrap: nowrap;
34
34
  width: fit-content;
35
- `,te=y(Ie)`
35
+ `,te=x(Ie)`
36
36
  color: ${e=>e.theme.colors.primary};
37
- `;function Qe({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Le(e),[e]),i=O();return t.jsxs(Ze,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(V,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:Q("0,0",s?.balance)})]},n)}),t.jsxs(V,{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:Q("0,0",o?.balance)})]})]})}const q={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:b,reports:{common:Ve,aging:B}}=x.getLocalizedStrings();function vt(e){const a=K(),[o,i]=f.useState(!1),s=O(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:S,onEntityNameClick:fe,updateDownloadStateHandler:z,onNodeCollapseToggled:ye}=e,{fetchState:v,reportTitle:we,reportId:w}=n,{searchString:k,downloadState:M,sortKey:L,sortOrder:E,selectedDate:C,agingDateSelectionType:H}=c,{authParams:U,downloadEndPoint:G,timezone:J}=l,X=f.useCallback((h,_)=>{const P=ae(_);u(h,P),r.trackAgingReportDateChange(I(w),C!=null?C.format(b.analytics.YYYYDashMMDashDDFormat):A.dateNow().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,C]),Z=f.useCallback(h=>{const _=be({options:B.preComputedDurationOptions.map(({label:R,value:_e})=>({label:R,value:A.toCOABalanceTimeframe(_e)})).filter(({value:R})=>R!=null),selectedDate:h}),P=ae(_);u(h,P),r.trackAgingReportDateChange(I(w),C!=null?C.format(b.analytics.YYYYDashMMDashDDFormat):A.dateNow().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,C]),xe=f.useCallback((h,_)=>{S(h,_),r.trackAgingReportSortChange(I(w),_,h)},[r,S,w]),Ce=f.useCallback(()=>t.jsx(De,{maxDate:A.dateNow(),selectedDate:{date:C},precomputedOptionsProperties:{preComputedOptionSelected:lt(H),preComputedOptionDateFormat:b.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:X},onSelectedDateChanged:Z}),[C,X,Z,H]);if(f.useEffect(()=>{async function h(){const _={companyName:l.companyName,searchString:k,sortKey:L,sortOrder:E,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:C};await et(G,U,_),z("Completed"),r.trackAgingReportDownloadClick(I(w),L,E)}o&&M!=="In-Progress"&&(i(!1),z("In-Progress"),h())},[U,G,l.companyName,M,o,w,k,L,E,z,C,r,J]),v==="Error")return t.jsxs(at,{children:[t.jsx(nt,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(ot,{children:Ve.failed})]});const Se=t.jsxs(t.Fragment,{children:[t.jsx(je,{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(Oe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:M==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(M==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(rt,{children:[t.jsx(ve,{title:we,subTitle:Ce(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Se,downloadPresent:!0,style:{marginBottom:q.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(st,{windowSize:s,children:[t.jsx(it,{children:t.jsx(Qe,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Re,{report:n})]})}),t.jsx(Ue,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function et(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(tt(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();Me(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 tt(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 at=y.div`
37
+ `;function Qe({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Le(e),[e]),i=O();return t.jsxs(Ze,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(V,{children:[t.jsx(ee,{children:w.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:Q("0,0",s?.balance)})]},n)}),t.jsxs(V,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?w.getLocalizedStrings().reports.aging.apAging.totalPayable:w.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:Q("0,0",o?.balance)})]})]})}const q={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:b,reports:{common:Ve,aging:B}}=w.getLocalizedStrings();function vt(e){const a=K(),[o,i]=f.useState(!1),s=O(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:S,onEntityNameClick:fe,updateDownloadStateHandler:z,onNodeCollapseToggled:xe}=e,{fetchState:v,reportTitle:ye,reportId:y}=n,{searchString:k,downloadState:M,sortKey:L,sortOrder:E,selectedDate:C,agingDateSelectionType:H}=c,{authParams:U,downloadEndPoint:G,timezone:J}=l,X=f.useCallback((h,_)=>{const P=ae(_);u(h,P),r.trackAgingReportDateChange(I(y),C!=null?C.format(b.analytics.YYYYDashMMDashDDFormat):A.dateNow().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,y,C]),Z=f.useCallback(h=>{const _=be({options:B.preComputedDurationOptions.map(({label:R,value:_e})=>({label:R,value:A.toCOABalanceTimeframe(_e)})).filter(({value:R})=>R!=null),selectedDate:h}),P=ae(_);u(h,P),r.trackAgingReportDateChange(I(y),C!=null?C.format(b.analytics.YYYYDashMMDashDDFormat):A.dateNow().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,y,C]),we=f.useCallback((h,_)=>{S(h,_),r.trackAgingReportSortChange(I(y),_,h)},[r,S,y]),Ce=f.useCallback(()=>t.jsx(De,{maxDate:A.dateNow(),selectedDate:{date:C},precomputedOptionsProperties:{preComputedOptionSelected:lt(H),preComputedOptionDateFormat:b.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:X},onSelectedDateChanged:Z}),[C,X,Z,H]);if(f.useEffect(()=>{async function h(){const _={companyName:l.companyName,searchString:k,sortKey:L,sortOrder:E,statementFileType:"excel",timezone:J,reportId:y==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:C};await et(G,U,_),z("Completed"),r.trackAgingReportDownloadClick(I(y),L,E)}o&&M!=="In-Progress"&&(i(!1),z("In-Progress"),h())},[U,G,l.companyName,M,o,y,k,L,E,z,C,r,J]),v==="Error")return t.jsxs(at,{children:[t.jsx(nt,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(ot,{children:Ve.failed})]});const Se=t.jsxs(t.Fragment,{children:[t.jsx(je,{isSearchOpen:(k?.length??0)>0,searchPlaceHolder:y==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:k??"",onSearchTextChanged:h=>{d(h)},downloadPresent:!0}),t.jsx(Oe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:M==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(M==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(rt,{children:[t.jsx(ve,{title:ye,subTitle:Ce(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Se,downloadPresent:!0,style:{marginBottom:q.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(st,{windowSize:s,children:[t.jsx(it,{children:t.jsx(Qe,{reportId:y==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Re,{report:n})]})}),t.jsx(Ue,{report:n,onSortOrderChange:we,onEntityNameClick:fe,onNodeCollapseToggled:xe})]})]})}async function et(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(tt(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();Me(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 tt(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:w.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const at=x.div`
38
38
  display: flex;
39
39
  width: 100%;
40
40
  height: calc(100% - 60px);
41
41
  flex-direction: column;
42
42
  justify-content: center;
43
43
  align-items: center;
44
- `,nt=y.div`
44
+ `,nt=x.div`
45
45
  height: 96px;
46
46
  width: 96px;
47
47
  background: ${e=>e.theme.colors.background};
@@ -56,10 +56,10 @@ import{u as K,e as O,l as A,R as x,hq as be,j as t,hr as De,bg as Ne,hs as je,aZ
56
56
  color: ${e=>e.theme.colors.primary};
57
57
  }
58
58
  }
59
- `,ot=y(Pe)`
59
+ `,ot=x(Pe)`
60
60
  margin-top: ${N.sp3};
61
61
  color: ${e=>e.theme.colors.hero};
62
- `,rt=y.div`
62
+ `,rt=x.div`
63
63
  display: flex;
64
64
  flex: 1 1 auto;
65
65
  height: 100vh;
@@ -68,9 +68,9 @@ import{u as K,e as O,l as A,R as x,hq as be,j as t,hr as De,bg as Ne,hs as je,aZ
68
68
  background-color: ${e=>e.theme.colors.grey5};
69
69
  padding: ${N.sp0};
70
70
  gap: 2px;
71
- `,it=y.div`
71
+ `,it=x.div`
72
72
  margin-bottom: ${N.sp6};
73
- `,st=y.div`
73
+ `,st=x.div`
74
74
  position: relative;
75
75
  box-shadow: ${e=>`2px 2px ${N.sp1} ${e.theme.colors.dropShadowNormal}`};
76
76
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{cn as X,ek as Ie,e as M,j as l,W as P,l as q,R as E,C as R,o as i,ao as re,Q as ie,y as ne,cx as Pe,bO as Ce,ft as J,fu as Y,c5 as K,q as L,bp as Se,U as te,gj as de,fw as T,fv as ce,fx as pe,af as me,gk as Oe,f as ue,cu as ge,n as he,cv as Re,c as Te}from"./index-BKug3-eP.js";import{n as p,b as A}from"./vendor-rkTZJa59.js";import{X as xe}from"./LabeledUserSingleSelectWithSubtitlesField-CLzwYw4O-Cs6PJnR2.js";import{j as ve,C as be}from"./LabeledZeniRolesDropDownField-DGsJbILm-CWOq9g0f.js";const B=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new R(120,120,160),toolTipWidth:new R(215,237)},g=E.getLocalizedStrings().peoplePage,ze=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:$,isBankingOnlyTenant:m,isCardsOnlyTenant:b,isEdit:U,person:x,analytics:f})=>{const w=M(),C=se.largeLabelWidth.value(w),{setValue:S}=X(),k=te(h),y=k.splice(0,1),N=k.reduce((r,n)=>r.concat(`${n.email},`),""),_=A.useMemo(()=>te(K.roles),[]),u=q.hasInvestorBankerLevelAccess(e.role);return A.useEffect(()=>{(u||m||b)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,b]),l.jsxs(De,{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:T(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(G,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(ve,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:B(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:Y(m,b)},productsByUserRole:J(e.role,$)},registerOptions:{required:!0}}}),l.jsx(G,{}),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(D=>D.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:T(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(G,{}),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||b?g.notApplicable:T(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||b)},isDisabled:u||m||b?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||b?"disabled":void 0,opacity:u||m||b?.32:1}),U?null:l.jsxs(Le,{windowSize:w,children:[g.invitePage.controllerText,y[0]?l.jsxs(Ue,{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(be,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:B(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:_},registerOptions:{required:!0},placeholderLabel:T(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&f?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>E.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,De=p.div`
1
+ import{cn as J,ek as Ie,e as M,j as l,W as P,l as q,R as E,C as R,o as i,ao as re,Q as ie,x as ne,cx as Pe,bO as Ce,ft as X,fu as Y,c5 as K,q as L,bp as Se,U as te,gj as de,fw as T,fv as ce,fx as pe,af as me,gk as Oe,f as ue,cu as ge,n as he,cv as Re,c as Te}from"./index-0QGih61V.js";import{n as p,b as A}from"./vendor-rkTZJa59.js";import{X as xe}from"./LabeledUserSingleSelectWithSubtitlesField-CkRg249v-BoH-kRZ0.js";import{j as ve,C as be}from"./LabeledZeniRolesDropDownField-CwkMUU9L-CBkGnuEd.js";const B=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new R(120,120,160),toolTipWidth:new R(215,237)},g=E.getLocalizedStrings().peoplePage,ze=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:$,isBankingOnlyTenant:m,isCardsOnlyTenant:b,isEdit:U,person:x,analytics:f})=>{const w=M(),C=se.largeLabelWidth.value(w),{setValue:S}=J(),k=te(h),y=k.splice(0,1),N=k.reduce((r,n)=>r.concat(`${n.email},`),""),_=A.useMemo(()=>te(K.roles),[]),u=q.hasInvestorBankerLevelAccess(e.role);return A.useEffect(()=>{(u||m||b)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,b]),l.jsxs(De,{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:T(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(G,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(ve,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:B(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:Y(m,b)},productsByUserRole:X(e.role,$)},registerOptions:{required:!0}}}),l.jsx(G,{}),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(D=>D.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:T(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(G,{}),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||b?g.notApplicable:T(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||b)},isDisabled:u||m||b?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||b?"disabled":void 0,opacity:u||m||b?.32:1}),U?null:l.jsxs(Le,{windowSize:w,children:[g.invitePage.controllerText,y[0]?l.jsxs(Ue,{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(be,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:B(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:_},registerOptions:{required:!0},placeholderLabel:T(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&f?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>E.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,De=p.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -43,7 +43,7 @@ import{cn as X,ek as Ie,e as M,j as l,W as P,l as q,R as E,C as R,o as i,ao as r
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new R(125,140,160),toolTipWidth:new R(246,250)},c=E.getLocalizedStrings().peoplePage,Ne=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:$,index:m,customerRoleOptions:b,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:f})=>{const w=M(),{getValues:C,formState:{errors:S},setValue:k}=X(),y=oe.largeLabelWidth.value(w),[N,..._]=$,u=_.map(d=>d.email).join(","),r=A.useMemo(()=>K.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=q.hasInvestorBankerLevelAccess(e.role);return A.useEffect(()=>{(n||x||f)&&k(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&k(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,f]),l.jsxs(Me,{windowSize:w,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:F(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:d=>!We(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(j=>!j.match(Oe)).reduce((j,I)=>j&&I)}},placeholder:T(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ee(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(Z,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(ve,{label:{label:c.invitePage.role,width:y},style:{width:"auto"},rolesDropDownField:{name:F(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:Y(x,f)},productsByUserRole:J(e.role,b)},registerOptions:{required:!0}}}),l.jsx(Z,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:y},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(Fe,{}),userSingleSelectWithSubTitlesField:{name:F(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const j=s.findIndex(I=>I.userId===d);if(j!==-1){const I=s[j],D=h.find(O=>O.classId===I.userRole.accountingClassIDs[0]),v=[];return D!=null&&v.push(D.className),v}else return[]},placeholderLabel:n?c.notApplicable:T(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!n},isDisabled:n?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?i.sp8:"74px",boxSizing:"border-box"},isDisabled:n?"disabled":void 0,opacity:n?.32:1}),l.jsx(Z,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:y},singleSelectWithoutClearableField:{name:F(t,"department"),defaultValue:{allOptions:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})),selectedOption:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})).find(d=>d.value===e.departmentId)},placeholder:n||x||f?c.notApplicable:T(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||f)},isDisabled:n||x||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||f?"disabled":void 0,opacity:n||x||f?.32:1}),l.jsx(Z,{}),U?null:l.jsxs(_e,{windowSize:w,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(Ze,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(be,{label:{label:c.invitePage.role,width:y},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:F(t,"role"),placeholderLabel:T(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},Fe=()=>E.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,We=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Me=p.div`
46
+ `,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new R(125,140,160),toolTipWidth:new R(246,250)},c=E.getLocalizedStrings().peoplePage,Ne=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:$,index:m,customerRoleOptions:b,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:f})=>{const w=M(),{getValues:C,formState:{errors:S},setValue:k}=J(),y=oe.largeLabelWidth.value(w),[N,..._]=$,u=_.map(d=>d.email).join(","),r=A.useMemo(()=>K.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=q.hasInvestorBankerLevelAccess(e.role);return A.useEffect(()=>{(n||x||f)&&k(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&k(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,f]),l.jsxs(Me,{windowSize:w,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:F(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:d=>!We(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(j=>!j.match(Oe)).reduce((j,I)=>j&&I)}},placeholder:T(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ee(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(Z,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(ve,{label:{label:c.invitePage.role,width:y},style:{width:"auto"},rolesDropDownField:{name:F(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:Y(x,f)},productsByUserRole:X(e.role,b)},registerOptions:{required:!0}}}),l.jsx(Z,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:y},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(Fe,{}),userSingleSelectWithSubTitlesField:{name:F(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const j=s.findIndex(I=>I.userId===d);if(j!==-1){const I=s[j],D=h.find(O=>O.classId===I.userRole.accountingClassIDs[0]),v=[];return D!=null&&v.push(D.className),v}else return[]},placeholderLabel:n?c.notApplicable:T(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!n},isDisabled:n?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?i.sp8:"74px",boxSizing:"border-box"},isDisabled:n?"disabled":void 0,opacity:n?.32:1}),l.jsx(Z,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:y},singleSelectWithoutClearableField:{name:F(t,"department"),defaultValue:{allOptions:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})),selectedOption:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})).find(d=>d.value===e.departmentId)},placeholder:n||x||f?c.notApplicable:T(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||f)},isDisabled:n||x||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||f?"disabled":void 0,opacity:n||x||f?.32:1}),l.jsx(Z,{}),U?null:l.jsxs(_e,{windowSize:w,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(Ze,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(be,{label:{label:c.invitePage.role,width:y},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:F(t,"role"),placeholderLabel:T(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},Fe=()=>E.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,We=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Me=p.div`
47
47
  display: flex;
48
48
  flex-direction: column;
49
49
  background-color: ${e=>e.theme.colors.grey5};
@@ -92,11 +92,11 @@ import{cn as X,ek as Ie,e as M,j as l,W as P,l as q,R as E,C as R,o as i,ao as r
92
92
  `,Ee=(e,t,o,a,s)=>{if(Re(s,t)&&s?.userItems&&s?.userItems[o]?.email)switch(s?.userItems[o]?.email.type){case"required":return c.invitePage.defaultHelpText;case"pattern":return e[o].email.forEach(h=>{if(!Te.test(h))return c.invitePage.defaultHelpText}),a==="zeni_only"?c.invitePage.otherThanZeniMailIDForZeniModeText:c.invitePage.zeniMailIDForNormalModeText;case"duplicate":return c.invitePage.emailAlreadyExist;case"notZeniMail":return c.invitePage.zeniMailIDForNormalModeText;case"validate":return c.invitePage.defaultHelpText;default:return}},Ze=({isInvestorBanker:e,firstController:t,restControllerEmailsStr:o})=>{let a="";const s=t[0];return s?.firstName&&s?.lastName?a=`${s?.firstName} ${s?.lastName}`:s?.firstName?a=s?.firstName:s?.lastName?a=s?.lastName:a=s?.email??"",l.jsxs(Be,{isDisabled:e,href:e?void 0:`mailto:${t[0]?.email}?cc=${o}&subject=${encodeURIComponent(c.invitePage.emailSubject)}`,children:[l.jsx("span",{children:a}),l.jsx(me,{className:"arrowIcon"})]})},qe=e=>l.jsx(Ae,{style:e.style,"data-testid":P("user-item-section"),children:e.isEdit?l.jsx(ze,{...e}):l.jsx(Ne,{...e})}),Ae=p.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
- `,W={buttonWidth:new R(70,70),marginBottom:new R(12,L[3]),deleteContentMarginLeft:new R(L[0],L[3]),containerPaddingTop:new R(L[0],L[3]),addUserWrapperGap:new R(L[1],L[2])},Ve=(e,t,o,a,s,h,$)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:K.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:Y(h,$)},productsByUserRole:J([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=E.getLocalizedStrings().peoplePage,pl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:$,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:f,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S=!1,person:k,analytics:y})=>{const{getValues:N}=X(),{append:_,remove:u}=Ie({name:h,control:t}),r=M(),n=N().userItems,d=()=>{const v=n.length-1,O=Ve(v+1,b,U,$,f,w,C);setTimeout(()=>_(O,{shouldFocus:!0}))},j=v=>{a(v)},I=()=>{a(-1)},D=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Xe,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((v,O)=>{const je=n.length;let V={};if($==="zeni_only")V={email:v.email,role:Ge(v.role.selectedOptions,S)??void 0};else{const ee=v.nonZeniRole?.userRole.selectedRole,Q=ee!=null?(v.nonZeniRole?.productsByUserRole[ee]??[]).map(H=>q.toUserRoleTypeStrict(H.selectedOption?.value)).filter(H=>H!=null):[],le=Q.length>0?q.hasInvestorBankerLevelAccess(Q):!1;V={email:v.email,role:Q,managerId:le?void 0:v.manager?.selectedUser,departmentId:le?void 0:v.department?.selectedOption?.value}}return l.jsxs(Je,{"data-testid":P("user-item",v.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(Qe,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:D})}):l.jsx(ae,{windowSize:r,children:l.jsx(we,{children:l.jsx(ye,{children:l.jsx($e,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(qe,{isDisabled:e,sectionId:`${h}.${O}`,control:t,user:V,mode:$,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:f,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S,person:k,analytics:y,index:O}),o===O&&r==="small"?l.jsx(el,{children:l.jsx(fe,{onCancelClick:I,onRemoveUserItem:D})}):null]},O)}):null,S?null:l.jsxs(sl,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(ol,{}),l.jsx(al,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const $=M();return l.jsxs(we,{children:[l.jsx(ye,{children:l.jsx($e,{windowSize:$,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(He,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},He=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=M();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(tl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(Ke,{children:l.jsx(fe,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Ye,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(il,{})})})})})},fe=({onCancelClick:e,onRemoveUserItem:t})=>{const o=M();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(ll,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:W.buttonWidth.value(o),marginRight:i.sp3},size:"small",variant:"secondary"}),l.jsx(ie,{"data-testid":P("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:W.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ge=(e,t)=>t?e:e!=null?[e]:[],Xe=p.div`
95
+ `,W={buttonWidth:new R(70,70),marginBottom:new R(12,L[3]),deleteContentMarginLeft:new R(L[0],L[3]),containerPaddingTop:new R(L[0],L[3]),addUserWrapperGap:new R(L[1],L[2])},Ve=(e,t,o,a,s,h,$)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:K.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:Y(h,$)},productsByUserRole:X([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=E.getLocalizedStrings().peoplePage,pl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:$,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:f,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S=!1,person:k,analytics:y})=>{const{getValues:N}=J(),{append:_,remove:u}=Ie({name:h,control:t}),r=M(),n=N().userItems,d=()=>{const v=n.length-1,O=Ve(v+1,b,U,$,f,w,C);setTimeout(()=>_(O,{shouldFocus:!0}))},j=v=>{a(v)},I=()=>{a(-1)},D=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Je,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((v,O)=>{const je=n.length;let V={};if($==="zeni_only")V={email:v.email,role:Ge(v.role.selectedOptions,S)??void 0};else{const ee=v.nonZeniRole?.userRole.selectedRole,Q=ee!=null?(v.nonZeniRole?.productsByUserRole[ee]??[]).map(H=>q.toUserRoleTypeStrict(H.selectedOption?.value)).filter(H=>H!=null):[],le=Q.length>0?q.hasInvestorBankerLevelAccess(Q):!1;V={email:v.email,role:Q,managerId:le?void 0:v.manager?.selectedUser,departmentId:le?void 0:v.department?.selectedOption?.value}}return l.jsxs(Xe,{"data-testid":P("user-item",v.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(Qe,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:D})}):l.jsx(ae,{windowSize:r,children:l.jsx(we,{children:l.jsx(ye,{children:l.jsx($e,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(qe,{isDisabled:e,sectionId:`${h}.${O}`,control:t,user:V,mode:$,isZeniTenant:m,managersList:b,classList:U,controllersList:x,customerRoleOptions:f,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S,person:k,analytics:y,index:O}),o===O&&r==="small"?l.jsx(el,{children:l.jsx(fe,{onCancelClick:I,onRemoveUserItem:D})}):null]},O)}):null,S?null:l.jsxs(sl,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(ol,{}),l.jsx(al,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const $=M();return l.jsxs(we,{children:[l.jsx(ye,{children:l.jsx($e,{windowSize:$,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(He,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},He=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=M();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(tl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(Ke,{children:l.jsx(fe,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Ye,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(il,{})})})})})},fe=({onCancelClick:e,onRemoveUserItem:t})=>{const o=M();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(ll,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:W.buttonWidth.value(o),marginRight:i.sp3},size:"small",variant:"secondary"}),l.jsx(ie,{"data-testid":P("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:W.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ge=(e,t)=>t?e:e!=null?[e]:[],Je=p.div`
96
96
  display: flex;
97
97
  flex-direction: column;
98
98
  padding-top: ${e=>W.containerPaddingTop.valuePx(e.windowSize)};
99
- `,Je=p.div`
99
+ `,Xe=p.div`
100
100
  .delete-icon-wrapper {
101
101
  visibility: hidden;
102
102
  }
@@ -1,4 +1,4 @@
1
- import{u as O,e as B,R as d,j as o,bg as H,fF as K,aX as q,bS as J,o as L,a6 as U,aZ as W,C as A,bL as X,bM as Z,bN as G,q as h}from"./index-BKug3-eP.js";import{b as C,n as i}from"./vendor-rkTZJa59.js";import{W as Q,L as V}from"./EntitySummarySection-wzMCZjZE-2-RWnlxw.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const v={wrapperContainerMarginTop:new A(h[4],h[0]),wrapperContaineHorizontalrMargin:new A(h[0],h[8])},ee=i.div`
1
+ import{u as O,e as B,R as d,j as o,bg as H,fF as K,aX as q,bS as J,o as L,a6 as U,aZ as W,C as A,bL as X,bM as Z,bN as G,q as h}from"./index-0QGih61V.js";import{b as C,n as i}from"./vendor-rkTZJa59.js";import{W as Q,L as V}from"./EntitySummarySection-D3_1EeVb-4HGU6F7u.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const v={wrapperContainerMarginTop:new A(h[4],h[0]),wrapperContaineHorizontalrMargin:new A(h[0],h[8])},ee=i.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -43,4 +43,4 @@ import{u as O,e as B,R as d,j as o,bg as H,fF as K,aX as q,bS as J,o as L,a6 as
43
43
  margin-left: ${e=>v.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
44
44
  margin-right: ${e=>v.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
45
45
  height: 100%;
46
- `;function De(e){const y=O(),c=B(),f=d.getLocalizedStrings().common,g=d.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:a,reportDate:t,analytics:s,onReload:w,onBackClick:N,onColumnSortConfigChanged:_,updateDownloadStateHandler:x,onTransactionClick:T}=e,{authParams:k,downloadEndPoint:$,timezone:z}=a,{fetchState:p,invoices:b,apAgingDetailUIState:j,vendor:n,totalBalances:F}=r,{sortKey:D,sortOrder:S,downloadState:m}=j,[P,I]=C.useState(!1),M=d.getLocalizedStrings(),E=M.reports.aging.agingDetail,R=C.useCallback((l,u)=>{r.vendor!=null&&s.trackApAgingDetailReportSortChange(l,u,t.format(M.dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name),_(l,u)},[s,r.vendor,t,_]);if(C.useEffect(()=>{async function l(){const u={companyName:a.companyName,sortKey:D,sortOrder:S,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:n?.id??"",timezone:z,reportDate:t};await se($,k,u),x("Completed"),r.vendor!=null&&s.trackApAgingDetailReportDownload(D,S,t.format(d.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name)}P&&m!=="In-Progress"&&(I(!1),x("In-Progress"),l())},[s,r.vendor,k,$,a.companyName,m,P,t,D,S,z,x,n?.id]),p==="Error")return o.jsxs(oe,{children:[o.jsx(te,{onClick:w,children:o.jsx(H,{})}),o.jsx(re,{children:g.failed})]});if(p==="In-Progress"||p==="Not-Started")return o.jsx(K,{fetchState:p});const Y=o.jsx(W,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:m==="In-Progress"}],onDownloadClick:async l=>{if(l==="excel")if(m==="In-Progress"){console.log("Download is already in progress!");return}else I(!0)}}}});return o.jsxs(ae,{children:[o.jsx(q,{title:f.strings.empty,backgroundColor:y.colors.grey5,onBackClick:N,rightSideComponent:Y,source:"ApAgingDetailPage"}),o.jsx(Q,{totalBalances:F,entityName:n?.name??"",entityLogo:n?.logo,reportId:"accounts_payable_aging",reportDate:t}),o.jsx(ne,{windowSize:c,children:o.jsx(ie,{windowSize:c,children:b.length===0||n==null?o.jsx(J,{message:E.noDataText}):o.jsx(ee,{windowSize:c,children:o.jsx(V,{uiState:j,invoices:b,entityName:n.name,entityLogo:n.logo,onColumnSortConfigChanged:R,onTransactionClick:T})})})})]})}async function se(e,y,c){const f=`${e}?query=${encodeURIComponent(JSON.stringify(le(c)))}`,g=d.getLocalizedStrings(),r=g.reports.aging.apAging.apAging,a=g.download;try{const t=await X({urlEndPoint:f,authParams:y,fileType:"excel"});if(t.ok){const s=Z(t.headers,a.defaultFileName),w=await t.arrayBuffer();G(w,s)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${t.statusText}`)}catch(t){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${JSON.stringify(t)}`)}}function le(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:d.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{De as default,le as toDownloadAgingDetailedReportOptionsPayload};
46
+ `;function De(e){const y=O(),c=B(),f=d.getLocalizedStrings().common,g=d.getLocalizedStrings().reports.common,{apAgingDetail:r,downloadParams:a,reportDate:t,analytics:s,onReload:w,onBackClick:N,onColumnSortConfigChanged:_,updateDownloadStateHandler:x,onTransactionClick:T}=e,{authParams:$,downloadEndPoint:k,timezone:z}=a,{fetchState:p,invoices:j,apAgingDetailUIState:b,vendor:n,totalBalances:F}=r,{sortKey:D,sortOrder:S,downloadState:m}=b,[P,I]=C.useState(!1),M=d.getLocalizedStrings(),E=M.reports.aging.agingDetail,R=C.useCallback((l,u)=>{r.vendor!=null&&s.trackApAgingDetailReportSortChange(l,u,t.format(M.dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name),_(l,u)},[s,r.vendor,t,_]);if(C.useEffect(()=>{async function l(){const u={companyName:a.companyName,sortKey:D,sortOrder:S,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:n?.id??"",timezone:z,reportDate:t};await se(k,$,u),x("Completed"),r.vendor!=null&&s.trackApAgingDetailReportDownload(D,S,t.format(d.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),r.vendor.id,r.vendor.name)}P&&m!=="In-Progress"&&(I(!1),x("In-Progress"),l())},[s,r.vendor,$,k,a.companyName,m,P,t,D,S,z,x,n?.id]),p==="Error")return o.jsxs(oe,{children:[o.jsx(te,{onClick:w,children:o.jsx(H,{})}),o.jsx(re,{children:g.failed})]});if(p==="In-Progress"||p==="Not-Started")return o.jsx(K,{fetchState:p});const Y=o.jsx(W,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:m==="In-Progress"}],onDownloadClick:async l=>{if(l==="excel")if(m==="In-Progress"){console.log("Download is already in progress!");return}else I(!0)}}}});return o.jsxs(ae,{children:[o.jsx(q,{title:f.strings.empty,backgroundColor:y.colors.grey5,onBackClick:N,rightSideComponent:Y,source:"ApAgingDetailPage"}),o.jsx(Q,{totalBalances:F,entityName:n?.name??"",entityLogo:n?.logo,reportId:"accounts_payable_aging",reportDate:t}),o.jsx(ne,{windowSize:c,children:o.jsx(ie,{windowSize:c,children:j.length===0||n==null?o.jsx(J,{message:E.noDataText}):o.jsx(ee,{windowSize:c,children:o.jsx(V,{uiState:b,invoices:j,entityName:n.name,entityLogo:n.logo,onColumnSortConfigChanged:R,onTransactionClick:T})})})})]})}async function se(e,y,c){const f=`${e}?query=${encodeURIComponent(JSON.stringify(le(c)))}`,g=d.getLocalizedStrings(),r=g.reports.aging.apAging.apAging,a=g.download;try{const t=await X({urlEndPoint:f,authParams:y,fileType:"excel"});if(t.ok){const s=Z(t.headers,a.defaultFileName),w=await t.arrayBuffer();G(w,s)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${t.statusText}`)}catch(t){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",r)} ${JSON.stringify(t)}`)}}function le(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:d.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{De as default,le as toDownloadAgingDetailedReportOptionsPayload};
@@ -1,4 +1,4 @@
1
- import{j as s,e as m,a3 as x,o as e,C as l,f as a,a6 as $,R as g,aL as u,cs as w,dM as f,cr as b}from"./index-BKug3-eP.js";import{n as t,b as j,k}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const d={maxWidth:new l(280,322),contentMaxWidth:new l(200,250)},v=k`
1
+ import{j as s,e as m,a3 as x,o as e,C as l,f as a,a6 as $,R as g,aL as u,cs as w,dM as f,cr as b}from"./index-0QGih61V.js";import{n as t,b as j,k}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const d={maxWidth:new l(280,322),contentMaxWidth:new l(200,250)},v=k`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -65,6 +65,6 @@ import{j as s,e as m,a3 as x,o as e,C as l,f as a,a6 as $,R as g,aL as u,cs as w
65
65
  &:hover {
66
66
  color: ${a.primaryDark};
67
67
  }
68
- `,L=(r,n,o)=>{let i=g.getLocalizedStrings().common.snackBar[r][n];return o?.forEach(c=>{i=i.replace(c.variableName,c.variableValue)}),i},M=({type:r})=>{switch(r){case"success":return s.jsx(S,{});case"info":return s.jsx(z,{});case"error":case"warning":return s.jsx(D,{});case"notification":return s.jsx(E,{});default:return null}};function O(r){const n=m(),{message:o,messageType:i,showStatusIcon:c,onRemoveSnackbar:p}=r;return j.useEffect(()=>{const h=setTimeout(()=>{p()},5e3);return()=>clearTimeout(h)},[o.section]),s.jsxs(y,{windowSize:n,children:[c===!0?s.jsx(M,{type:i}):null,s.jsx(W,{windowSize:n,children:s.jsx(R,{children:s.jsx(T,{children:L(o.section,o.text,o.variables)})})}),s.jsx(C,{onClick:p,children:s.jsx(x,{})})]})}const H=r=>s.jsx(X,{isOnDashboard:r.isOnDashboard,children:r.showSnackbar===!0?s.jsx(O,{...r.snackbar}):null}),X=t.div`
68
+ `,L=(r,n,o)=>{let i=g.getLocalizedStrings().common.snackBar[r][n];return o?.forEach(c=>{i=i.replace(c.variableName,c.variableValue)}),i},M=({type:r})=>{switch(r){case"success":return s.jsx(S,{});case"info":return s.jsx(z,{});case"error":case"warning":return s.jsx(D,{});case"notification":return s.jsx(E,{});default:return null}};function O(r){const n=m(),{message:o,messageType:i,showStatusIcon:c,onRemoveSnackbar:p}=r;return j.useEffect(()=>{const h=setTimeout(()=>{p()},5e3);return()=>clearTimeout(h)},[o.section]),s.jsxs(y,{windowSize:n,children:[c===!0?s.jsx(M,{type:i}):null,s.jsx(W,{windowSize:n,children:s.jsx(R,{children:s.jsx(T,{children:L(o.section,o.text,o.variables)})})}),s.jsx(C,{onClick:p,children:s.jsx(x,{})})]})}const F=r=>s.jsx(B,{isOnDashboard:r.isOnDashboard,children:r.showSnackbar===!0?s.jsx(O,{...r.snackbar}):null}),B=t.div`
69
69
  background-color: ${r=>r.isOnDashboard?r.theme.colors.background:"transparent"};
70
- `;export{H as default};
70
+ `;export{F as default};