@zeniai/web-cockpit-ui 1.15.56-qa → 1.15.57-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 (358) hide show
  1. package/dist/assets/ACHDetailsPage-CUEH8rCg-CIX9LCVV.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BWhcStZE-OZZWOwhI.js → AIPerformancePage-C-7kZpzd-DnU-CnU0.js} +32 -32
  3. package/dist/assets/AccountInfoPage-D6R4uR87-CauYgBnD.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-XBo-oJV1-Da0bieZO.js → AccountInfoPageContent-CaAlcViW-DD8DzME3.js} +22 -22
  5. package/dist/assets/AccountLockedInfoModal-DQXLZ2LO-C0aOsoiG.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DwzrCq7I-DRO35nGz.js → AccountReconDetailsDrawerPage-BeVU7eNW-DnvK_eyt.js} +20 -20
  7. package/dist/assets/AccountRow-CGg3Gvpj-2LubTGsx.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-D-iNswM8-Cpv3KiBl.js → AccountsPromoCardStack-W21wtjzz-BzBECEOs.js} +11 -11
  9. package/dist/assets/AddAddressForCardDrawer-BEt3wVEb-DjZ-MTg6.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DX8xInYJ-oY_8kc5z.js → AddToWalletPage-CNqNAmD1-BAMChQys.js} +15 -15
  11. package/dist/assets/{AgingReportsPage-CXj1Tifk-Bo-rrYDt.js → AgingReportsPage-tl0jPK38-BjO71f63.js} +8 -8
  12. package/dist/assets/{AllUserItems-DU78kWqE-DhNwAIBb.js → AllUserItems-Q1lO4Ln3-CuR2BE-L.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-BV5m2F3a-DRpWO7ks.js → ApAgingDetailPage-D2Z4kxTX-DwVh7bmZ.js} +6 -6
  14. package/dist/assets/AppBasePage-X40fGmvM-B3sSuk1o.js +71 -0
  15. package/dist/assets/AppDrawerContent-CvJTJq58-BGDMCBjA.js +92 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-C4lEfWTu-yCUuOf0u.js +47 -0
  17. package/dist/assets/{ArAgingChart-B0wn2vDP-f7oGxVU8.js → ArAgingChart-DVt6kJYF-BIJAb2VF.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-C-agUa8y-BOcc6BGV.js → ArAgingDetailPage-IHDBT7mF-wxBgjehQ.js} +3 -3
  19. package/dist/assets/{AttachmentView-9Vrv319r-DVVqaraT.js → AttachmentView-CwRBUVxC-B-A8o2yf.js} +7 -7
  20. package/dist/assets/BalancesInsightWithToolTip-XPRUqEEA-Kn1TsaRI.js +38 -0
  21. package/dist/assets/{BankAccountSection-Bv9Iogxn-BLcgKijp.js → BankAccountSection-W3gEhXh6-DFHw2sKM.js} +4 -4
  22. package/dist/assets/{BankAccountWarningSection-DAxaKIg3-CQatpV3z.js → BankAccountWarningSection-9u-04CXU-aDzsUImF.js} +9 -9
  23. package/dist/assets/{BankConnectionsSettingsPage-ZUWw604G-BRehKaig.js → BankConnectionsSettingsPage-DV_X9ctb-CDyQw7u-.js} +27 -27
  24. package/dist/assets/BillDetailPage-C0r7XIcc-BFWDSS_J.js +266 -0
  25. package/dist/assets/{BillPayApprovalRuleDetailPage-BfJ2F03Y-B4Sw2z30.js → BillPayApprovalRuleDetailPage-DJID_-tr-BTp82A3G.js} +4 -4
  26. package/dist/assets/{BillPayApprovalRulesPage-DQ0MRCLa-YnoDd_eN.js → BillPayApprovalRulesPage-73C2kwjc-DV2esjtr.js} +7 -7
  27. package/dist/assets/{BillPayPromoPage-DdxRC1p4-CeUDiYiI.js → BillPayPromoPage-FW3B8U-w-n5VnpHD-.js} +6 -6
  28. package/dist/assets/{BillPaySetUpPage-DBFcp1Yq-DN8GCbic.js → BillPaySetUpPage-rgzWSOQM-C-ZdDZzJ.js} +2 -2
  29. package/dist/assets/BillingSettingsPage-AcYS3TSu--RATyZn_.js +44 -0
  30. package/dist/assets/{BillsBulkReviewDrawerPage-HXDlOpw3-Cm0uTk27.js → BillsBulkReviewDrawerPage-CM8-szf_-D9duXPwz.js} +1 -1
  31. package/dist/assets/{BoxItem-DaxLyqVe-B9VgEFUi.js → BoxItem-u890NmTk-GdZH4g2N.js} +1 -1
  32. package/dist/assets/{BusinessVerificationPage-BG1rOYOk-D5qCYDOp.js → BusinessVerificationPage-CzrVGb5K-CmS-O7sQ.js} +13 -13
  33. package/dist/assets/CardNumberSubText-CxypsknQ-C5MjjYIg.js +21 -0
  34. package/dist/assets/{CashbackDetailPage-CpVmCjts-DdBqQYGO.js → CashbackDetailPage-fBR9M8sC-Dh5E8gW1.js} +27 -27
  35. package/dist/assets/{ChargeCardDetailPage-u6hMCosx-DtARLgQT.js → ChargeCardDetailPage-CYv8doUs-CC359HTm.js} +18 -18
  36. package/dist/assets/{ChargeCardListPage-D_7gwi3K-BPR6_79h.js → ChargeCardListPage-CrwBff5O-BIYKDbQO.js} +36 -36
  37. package/dist/assets/{ChargeCardListTable-DJmStpnO-BzLArBYX.js → ChargeCardListTable-B9P82JB2-DT4hRxIU.js} +37 -37
  38. package/dist/assets/{ChargeCardPaymentHistoryPage-BRGJ-5y3-DkMANxUm.js → ChargeCardPaymentHistoryPage-BzsNSIp4-CyZrJgN7.js} +42 -42
  39. package/dist/assets/ChargeCardPromoPage-D40YUEIh-CzX92eqi.js +222 -0
  40. package/dist/assets/{ChargeCardSetupPage-CRDfRFf1-DwGVvYiG.js → ChargeCardSetupPage-BJ0ruCk3-BaTLJK3K.js} +3 -3
  41. package/dist/assets/{ChargeCardStatementsPage-l4X9T8zd-Buh-S4ZJ.js → ChargeCardStatementsPage-CCn6jmK3-B65SJzNg.js} +10 -10
  42. package/dist/assets/{CheckDepositDrawerPage-DR6LIuPw-DKvVXdmj.js → CheckDepositDrawerPage-COW-uu-_-B15TUyNY.js} +10 -10
  43. package/dist/assets/CollapsableReportTable-oX8IRAxt-DmgpCuxO.js +2941 -0
  44. package/dist/assets/{CompanyOfficerDetailsSection-DoGF7khv-Wy_dQ_8T.js → CompanyOfficerDetailsSection-IqJVtLZK-C3OYrk_8.js} +21 -21
  45. package/dist/assets/{CompanyPassportCard-BHFj9sK6-_Dc-s-J2.js → CompanyPassportCard-BiGjFwZ5-DaDkL0aZ.js} +8 -8
  46. package/dist/assets/{CompanyPassportPage-CH-dqy03-OxH27UIz.js → CompanyPassportPage-Dg-Q0eMl-B0lK1QQa.js} +36 -36
  47. package/dist/assets/{CompleteProfile-Ck4Baf4z-BiDJ7-lr.js → CompleteProfile-Ccg2CHq4-rKD1q2iz.js} +4 -4
  48. package/dist/assets/ConfettiBurst-yXo14QzY-AOku3ebT.js +1 -0
  49. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-D8Z-iftf.js → ConstrainedInnerElement-CgdnMeoA-DBQlMIjc.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-D-0WG9pO-xKEqlz3T.js → CreateOrEditVendorPage-DQYLvgGA-xCTJk5Wj.js} +13 -13
  51. package/dist/assets/{CreditCardPaymentDrawerPage-B7voVDUs-DhCFlSxU.js → CreditCardPaymentDrawerPage-izuZXkqy-ofdy6ysD.js} +14 -14
  52. package/dist/assets/CurrencySelectField-CneumAPd-B7hTgri2.js +139 -0
  53. package/dist/assets/{CustomerOnboardingActivationPage-D42sb2F9-C12j7ObB.js → CustomerOnboardingActivationPage-C4y0EhXQ-Bs3PD2DS.js} +29 -29
  54. package/dist/assets/CustomerOnboardingContainerPage-DbMXDaX1-Bt7wIkF_.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-n6GMQZP5-YVUGziza.js → CustomerOnboardingDetailPageSkeleton-D8UmruuK-BIBD0SgP.js} +12 -12
  56. package/dist/assets/CustomerOnboardingNoStepsPage-hN3TzkAz-Cl3v7kHV.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-BPX2w8Fg-DWYY9hzE.js → CustomerOnboardingPage-C-lYffqT-BHmAdBeO.js} +7 -7
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-CZXqXXFj-DbtnPgDW.js → CustomerOnboardingProductSuitePage-_UgeXE48-BukwqaM7.js} +11 -11
  59. package/dist/assets/{Dashboard-Q5gt63wS-BSx4ra46.js → Dashboard-BqIm-EyG-DjEf_UGj.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DJsc3Nx7-Ci5wRkW7.js → DashboardReportPage-Dnwy7uOD-B5yKdlc5.js} +39 -39
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-D0fh4PIm-DM5qHrdk.js +12 -0
  62. package/dist/assets/DepositAccTransactionItem-C6yQhPjj-l11w2Y5D.js +76 -0
  63. package/dist/assets/DepositAccTransactionListPage-BtncOXZP-BnXQt5-Q.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-Dptv-ebx-DSZ1aqIn.js → DomesticWireDetailsPage-DmtO34lv-CxwBDMGE.js} +1 -1
  65. package/dist/assets/DownloadOverlay-CWHxxKW_-UDgVlxY5.js +439 -0
  66. package/dist/assets/{DrawerPage-DtJQE-UA-Cqtpkmhn.js → DrawerPage-DSU5oir8-DRsRlHno.js} +12 -12
  67. package/dist/assets/EditPeoplePage-D2n0Hqby-DTz2-JYI.js +55 -0
  68. package/dist/assets/EditReimbursementDetailPage-CFLBOcFT-DS-9_HAs.js +865 -0
  69. package/dist/assets/EntityDetailPage-Mmx3DFuG-MVIaVfxx.js +18 -0
  70. package/dist/assets/{EntitySummarySection-BiIPehv4-Du95DQYP.js → EntitySummarySection-HHASyTi6-mpUEq7ck.js} +16 -16
  71. package/dist/assets/{ExpenseAutomationOverviewPage-Bo5Eu3Ju-BIhPjW_P.js → ExpenseAutomationOverviewPage-DJlmx9Oe-B6myEsyW.js} +52 -52
  72. package/dist/assets/ExpenseAutomationPage-Djk1vwnA-DbEUK9XH.js +3001 -0
  73. package/dist/assets/{ExpressPayPage-D18sY5VJ-BzfFkgkp.js → ExpressPayPage-BeCtQ7TL-Ds7KSKVG.js} +21 -21
  74. package/dist/assets/{FeaturePreviewPage-De2_m2xD-dAXyeyrD.js → FeaturePreviewPage-Dr96evH6-D1kxI8yP.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-D5ln-mii-B_5eRfWe.js → FollowStepsSection-CH5j9Kb4-BJ9-zsQc.js} +13 -13
  76. package/dist/assets/GlobalReviewListPage-C32MoCYm-BNlLd0Dn.js +291 -0
  77. package/dist/assets/{InformationCardStack-B4z6RgwP-BT1JNK_O.js → InformationCardStack-OBOt0eaS-CKdLlnik.js} +4 -4
  78. package/dist/assets/{InsightsCardStack-CwBBEkZ7-i2yqT7-p.js → InsightsCardStack-BaaSbxvA-DSePDCyn.js} +13 -13
  79. package/dist/assets/InsightsSection-H8voYHTz-DN8-jvkA.js +27 -0
  80. package/dist/assets/{IntegrationsSettingsPage-DBiomD_q-SEyeefZG.js → IntegrationsSettingsPage-B_2KNKJF-BtmEIfKI.js} +6 -6
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-h4bchKo3--aqneqa5.js → InternationalWireSwiftDetailsPage-DvZU7o6p-BObKTwl6.js} +26 -26
  82. package/dist/assets/InternationalWireVerificationPage-D_jydE0q-DqIfVs5O.js +65 -0
  83. package/dist/assets/{InviteFormPage-Dgb-LZKf-B4zbJlb8.js → InviteFormPage-Dr6gx_W_-B4h2mADz.js} +29 -29
  84. package/dist/assets/{InvitePageListView-DC-Dp4Zc-B-7d1O44.js → InvitePageListView-Dva8LR_u-gmKNm5Jm.js} +39 -39
  85. package/dist/assets/InvitePeoplePage-bg-XFo6D-C4ZVJYSx.js +12 -0
  86. package/dist/assets/InvoiceUploadSection-CnYvPpZv-Gp4_i4AV.js +140 -0
  87. package/dist/assets/{IssueChargeCardPage-DiUKL-rT-BdVoOcei.js → IssueChargeCardPage-Z5WdMvKc-BWkEUK7g.js} +35 -35
  88. package/dist/assets/{LabeledAddressValue-DYTDoPER-SnTlZNct.js → LabeledAddressValue-DGXMQaW1-Fv-4gy9z.js} +2 -2
  89. package/dist/assets/{LabeledAddressValueField-DVNSaKBc-DiqNlFEG.js → LabeledAddressValueField-DR8V5Kty-DLCCRDRb.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-CZlavM3Q-o9j3g7Xs.js → LabeledControlledCheckBoxField-CWjC7vEV-9UTpUa1T.js} +1 -1
  91. package/dist/assets/{LabeledCountryMultiSelectField-BM1jU3hl-DUjzUpNU.js → LabeledCountryMultiSelectField-CvCgQPY6-BWmECH3i.js} +12 -12
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BkI0vyax-B-WErV8z.js → LabeledCreatableSingleSelectField-BZ8L7RY0-DX5NmRdy.js} +6 -6
  93. package/dist/assets/LabeledDocumentField-B44mt0a7-C0VfTm18.js +41 -0
  94. package/dist/assets/LabeledDropDownFormattedTextField-6YP1FaQA-BrHR3rfW.js +59 -0
  95. package/dist/assets/{LabeledText-BaYp8lyd-DsouujPF.js → LabeledText-Q6xdsHJ6-CFwsR7ll.js} +6 -6
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-nlyagP_L-CvgIxOeV.js → LabeledUserSingleSelectWithSubtitlesField-ClUfUqjp-BZp8hOi3.js} +19 -19
  97. package/dist/assets/{LabeledZeniRolesDropDownField-Bgf26ek0-CC9PqeMV.js → LabeledZeniRolesDropDownField-hbA4Pwlf-D_cCYzYL.js} +31 -31
  98. package/dist/assets/{LinkJETransactionPage-ByQktBdK-CF0EgNmk.js → LinkJETransactionPage-CH7I7Hke-Bsatheht.js} +17 -17
  99. package/dist/assets/{LockCardPage-M7Pcx6mB-CzjxHABW.js → LockCardPage-DLFjGMIe-CJwxHBTx.js} +19 -19
  100. package/dist/assets/{LowBalancePopup-DTwIs75G-BRD9r8mS.js → LowBalancePopup-DPe7elRO-Bgii0mzY.js} +6 -6
  101. package/dist/assets/MagicLinkACHDetailsPage-DQc3pum0-C2Dyu42Z.js +1 -0
  102. package/dist/assets/MagicLinkDomesticWireDetailsPage-DtD1wZUs-CVU818YE.js +1 -0
  103. package/dist/assets/MagicLinkInternationalWireDetailsPage-p1K2cYou-BMU75zJW.js +1 -0
  104. package/dist/assets/MagicLinkSuccessPage-uTUHm3oK-BGx1QWS3.js +31 -0
  105. package/dist/assets/{MagicLinkTitleSection-B985JuE8-VlS0_Ueo.js → MagicLinkTitleSection-CrGigZw5-BF_Mel0J.js} +5 -5
  106. package/dist/assets/MailingDetailsSection-BEpTd3QP-CtqpR-Gb.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-2x0kDozt-B-DkgfNl.js → MyBankConnectionsSettingsPage-CPHG_qZj-Cv2vkFlb.js} +13 -13
  108. package/dist/assets/MyPendingActivationChargeCardListPage-CvMl9E2P-C40qfFQ1.js +6 -0
  109. package/dist/assets/{MyProfileSettingsPage-BQx9m8r--CCbDAOvO.js → MyProfileSettingsPage-CDUxWW5P-BV8AekOH.js} +9 -9
  110. package/dist/assets/NavBarWithPicker-ukJ-8SxD-DzuBOs4j.js +30 -0
  111. package/dist/assets/{NavigationArrow-BpKepWMa-BdqB62PO.js → NavigationArrow-DLfHmE8t-CJQw-tog.js} +7 -7
  112. package/dist/assets/NavigationDots-TTIuTGav-Dpl3-lZ_.js +15 -0
  113. package/dist/assets/{NewGlobalMerchantPage-rAYrEwup-DX3zbNGn.js → NewGlobalMerchantPage-qrkVsl71-Gy1heqbr.js} +37 -37
  114. package/dist/assets/{NoDataChart-SlgxXIjJ-DxbYX5JM.js → NoDataChart-CHLcGmJY-o60E8S1E.js} +2 -2
  115. package/dist/assets/{NoDataTable-CePwfuWH-63JcLMeG.js → NoDataTable-Bv2f24Dy-BxdDK0Sh.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CdmLYWbu-4ugV08yh.js → NotFoundPage-De1VvWXR-CTgXCngp.js} +7 -7
  117. package/dist/assets/{NotificationSettingsPage-KThnHYOw-B6fPh0uG.js → NotificationSettingsPage-BA6OA31--CBfWO-I3.js} +19 -19
  118. package/dist/assets/NotificationsListConfig-e5U6zFaL-CLHC4HiN.js +1 -0
  119. package/dist/assets/NotificationsPage-B7xvgP8z-DCZ8FuvH.js +685 -0
  120. package/dist/assets/OpExByVendorPage-C5DN3Ujz-CwGzpZxP.js +100 -0
  121. package/dist/assets/{OverlayContainerPage-D4QU0p4o-VhNl4Ji-.js → OverlayContainerPage-BG9y5C0t-BmISyMhw.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-C6FwSybq-DFlEavl5.js → PandLWithForecastPage-BBINfNiw-BOBMU-KK.js} +13 -13
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DFCQGlZ--O_NjtLB8.js → PaymentAccountSetupBillingAddressSection-D0U3JmOv-vufqhDlQ.js} +16 -16
  124. package/dist/assets/PeoplePage-5vcxUe01-C3vcjFOm.js +727 -0
  125. package/dist/assets/{Preview-DrZGwz9y.js → Preview-CA1Ro8Pa.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-Bq0uDCW7-DVlFZNxE.js → ProductsCarousel-CdRGFDrq-BqWqsGo2.js} +8 -8
  127. package/dist/assets/{PromoBaseCards-Bs1TPBeA-BgeB60k7.js → PromoBaseCards-CnRAEsCq-Bliwh9DN.js} +19 -19
  128. package/dist/assets/{QBOConnectionDialog-CGH6M1BO-BLYU__Ef.js → QBOConnectionDialog-DVZWEDpK-Bc0_cD5P.js} +6 -6
  129. package/dist/assets/QBOSetupSection-qpeMgFEQ-C_--S51D.js +79 -0
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CUf8BGfB-B_xupcTv.js → ReimbursementApprovalRuleDetailPage-BxdIzE6u-CQKnW4o9.js} +4 -4
  131. package/dist/assets/{ReimbursementApprovalRulesPage-SKRjcth4-Bz6bYIZs.js → ReimbursementApprovalRulesPage-DTWRo5Ie-DjHMSjnE.js} +11 -11
  132. package/dist/assets/ReimbursementDetailPage-E6DAkd-i-BjsPRzGO.js +314 -0
  133. package/dist/assets/{ReimbursementPromoPage-X1o2D5fz-COdO7cLo.js → ReimbursementPromoPage-DIb3qZ6_-SpJeCRSI.js} +32 -32
  134. package/dist/assets/{ReimbursementSetUpPage-DfAhrvlw-nYuoapwW.js → ReimbursementSetUpPage-BB1W8YH--B00Vhwv5.js} +6 -6
  135. package/dist/assets/ReimbursementsBulkReviewDrawerPage-LVIfhug4-BO74jBI4.js +1 -0
  136. package/dist/assets/{ReloadCard-DvIzOHkJ-N-AxqgLX.js → ReloadCard-D84Lsd_5-BzO2KGeI.js} +5 -5
  137. package/dist/assets/ReportTableViewSelector-Db3_WDLJ-DUTYFa_F.js +151 -0
  138. package/dist/assets/ReportsPage-Blkv8tLt-UF7wvIxP.js +237 -0
  139. package/dist/assets/{RevenueChart-VvZ0y1TP-CMupOCrE.js → RevenueChart-Dfh_D_Vp-00E7CM78.js} +18 -18
  140. package/dist/assets/{ReviewDetailsPage-DC5Pr6t5-CqFNly7B.js → ReviewDetailsPage-DvFKpxt5-x-cocqaX.js} +22 -22
  141. package/dist/assets/{ReviewOverlay-BidXwnVw-aLFcTmHD.js → ReviewOverlay-B22mWGHc-CSe4tQzR.js} +21 -21
  142. package/dist/assets/RoleWithToolTip-Z-Qz5ghD-BF3ViIqp.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-P4en048K-Bk9b9_R0.js → ScheduleDetailsFixedAssetsPage-B1Tu4OmB-BoWzKj3F.js} +13 -13
  144. package/dist/assets/ScheduleDetailsPage-hMZQawbc-B5K8qyv9.js +37 -0
  145. package/dist/assets/ScheduleSequenceTable-EKOr-6FS-CIMOW3Lv.js +324 -0
  146. package/dist/assets/{ScreenRoutes-GMpQIqvy.js → ScreenRoutes-Bsr7kGfq.js} +29 -51
  147. package/dist/assets/{SetUpAccountSection-DBuoMbxP-Cslg712V.js → SetUpAccountSection-Bc1EdtKp-0yaISOWV.js} +14 -14
  148. package/dist/assets/SignIn-DYdZJ_1z-gBNUWjHV.js +491 -0
  149. package/dist/assets/SignInScreen-BUAoHqsZ.js +1 -0
  150. package/dist/assets/SpendManagementListViewPage-C3b_1mS_-DDW1AA6H.js +134 -0
  151. package/dist/assets/SpendManagementPerTabPage-BctgHJjH-BYX0TtFW.js +754 -0
  152. package/dist/assets/{SpendManagementSection-C-EIQv7m-CV_Wxyh4.js → SpendManagementSection-DjGyXgmL-Cmes-08v.js} +21 -21
  153. package/dist/assets/{StatementItem-BSVnuQ3e-yqvWSMaE.js → StatementItem-DkYczigh-CSnHMTYV.js} +4 -4
  154. package/dist/assets/{StatementsPage-CgOC5W_I-8JR2miwM.js → StatementsPage-CgNLCUZ1-C1Zt1XYf.js} +2 -2
  155. package/dist/assets/{StatusSwitcher-BnSFSpJ0-CBUPADr-.js → StatusSwitcher-CU6EtKkZ-C1BL7O8L.js} +5 -5
  156. package/dist/assets/SubTabSwitcher-BKn38ZMT-B9w-rcp8.js +58 -0
  157. package/dist/assets/{SummaryCard-BTnU1LYd-B0v15J8Z.js → SummaryCard-ROGEOK04-BgGopNGq.js} +1 -1
  158. package/dist/assets/TaskManagementPage-B5otKSZb-BFE0mAT-.js +508 -0
  159. package/dist/assets/TimeRangeSwitcher-JnO2pOTw-N9yivG4V.js +64 -0
  160. package/dist/assets/TimeframeSwitcher-DfDRlQ7n-CpbdT0B7.js +31 -0
  161. package/dist/assets/TimeframeSwitcherWithToggle-CaxIUKDr-DQWeAlGt.js +53 -0
  162. package/dist/assets/{TopExCard-Bc812PB9-COWkoZkp.js → TopExCard-BdqEYR_a-Px7omjuw.js} +6 -6
  163. package/dist/assets/{TopExDetailPage-19FwjeX_-CuNIFiR3.js → TopExDetailPage-CsnKTK9E-RTm78wxT.js} +14 -14
  164. package/dist/assets/{TransactionActivityLogPage-7Lfwq_IY-DnHmLebY.js → TransactionActivityLogPage-D9gPySqM-BB8d-BVV.js} +17 -17
  165. package/dist/assets/TransactionDetailPage-m6wkPmbZ-BkoyM4F5.js +903 -0
  166. package/dist/assets/TransactionList-fHfxF4uV-LtxJekW-.js +153 -0
  167. package/dist/assets/{TransactionListBig-gSPdjYSs-BdSow7ov.js → TransactionListBig-8tRV7xaa-Jk-ZnUXx.js} +16 -16
  168. package/dist/assets/TransactionListPage-C6ZUsD4l-B2cnsaR4.js +35 -0
  169. package/dist/assets/{TransactionVendorDetailPage-rcOVwgxy-B8MBpZCv.js → TransactionVendorDetailPage-Di-VFMud-BTshDO7x.js} +6 -6
  170. package/dist/assets/{TransferDrawerPage-IeuD-8y4-DB9WOT1Q.js → TransferDrawerPage-BYVv35xE-Da_CHRTD.js} +45 -45
  171. package/dist/assets/TreasuryOverviewPage-CXOmwW6t-BcQs0RHi.js +725 -0
  172. package/dist/assets/{TreasuryPromoPage-KuuzWIYO-BDZfrTam.js → TreasuryPromoPage-B-PDUb2u-B-T-cvTP.js} +131 -131
  173. package/dist/assets/{TreasuryStatementsPage-BAfN8DAx-BToIYFN6.js → TreasuryStatementsPage-hjW6l23C-C-DgyZev.js} +6 -6
  174. package/dist/assets/TreasuryTaxLetterPage-DYwjPZ9c-DOWoHFiR.js +58 -0
  175. package/dist/assets/{TrendChart-BJqnjEu6-D4oToyZQ.js → TrendChart-wH6MSice-DJRpqJPt.js} +5 -5
  176. package/dist/assets/TrendWithTransactions-C4RoOFet-B4g09uS7.js +116 -0
  177. package/dist/assets/{UncategorizedAccountsMappingPage-DlxWCGZg-BAwb-_vk.js → UncategorizedAccountsMappingPage-Blk80xZv-CW9X7gIW.js} +22 -22
  178. package/dist/assets/{UnitIntegrationPage-U85XCs_D-D9O_ROgv.js → UnitIntegrationPage-B8yOgT6I-DGHJCnWv.js} +5 -5
  179. package/dist/assets/UploadAdditionalDocumentOverlay-CSfIPVfJ-BDLDUOxO.js +38 -0
  180. package/dist/assets/{Vendor2FAPopup-DLU7H22p-bh-wu--S.js → Vendor2FAPopup-pOBQ1C8g-B_aiKxPv.js} +1 -1
  181. package/dist/assets/VendorACHDetailsPage-vLOpvill-CqCIfcoF.js +1 -0
  182. package/dist/assets/VendorDetailPage-D_6A3zAl-tXWG3blq.js +257 -0
  183. package/dist/assets/VendorDomesticWireDetailsPage-CibBnVcZ-BoJ0ATIU.js +1 -0
  184. package/dist/assets/{VendorFiling1099EditablePage-DIvLStyg-BQ8_Q099.js → VendorFiling1099EditablePage-ORFpUADS-rHSTxH-v.js} +32 -32
  185. package/dist/assets/VendorFirstReviewPage-B2GFRqrs-DYmryaKj.js +730 -0
  186. package/dist/assets/{VendorInternationalWireDetailsPage-Ctwg_CTY-Cwh4VXpi.js → VendorInternationalWireDetailsPage-DCI8Yjx2-DMlPUggt.js} +19 -19
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-C2TqWbKk-CfEJ4hqR.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-Bj840XXA-CgKV8slk.js → VendorsAccountsSection-CpHLUjT0-DtbgyO3N.js} +2 -2
  189. package/dist/assets/{VerifyDevice-D5ce0rEk-DWZM5mzw.js → VerifyDevice-B7mUvk_I-DOI_nJJs.js} +9 -9
  190. package/dist/assets/{VideoPlayer-XhlPd-AK-BnsTqJgD.js → VideoPlayer-uODifSjz-C5_6EW14.js} +2 -2
  191. package/dist/assets/VideoPopup-vRgVcJFh-DUXScMWN.js +31 -0
  192. package/dist/assets/{WarningsDrawerPage-CXHMQPmw-BWpof2zn.js → WarningsDrawerPage-GqThVUqO-BliCg9jp.js} +7 -7
  193. package/dist/assets/ZeniAccountDetailPage-Dplz1Jte-CmvovpKF.js +300 -0
  194. package/dist/assets/ZeniAccountListViewPage-CXVzZ4jo-OfYDDT9h.js +443 -0
  195. package/dist/assets/ZeniAccountNavBarPieces-DymlaQkB-raQlgOHA.js +33 -0
  196. package/dist/assets/{ZeniAccountPromoPage-DGttDJGp-hSxOffm6.js → ZeniAccountPromoPage-BBNUZmma-BaNIxJaE.js} +30 -30
  197. package/dist/assets/ZeniAccountSetupPage-CHHGMoCM-Bpe-HUos.js +36 -0
  198. package/dist/assets/{ZeniCopyright-Ct2Gx1TW-C8K8JRc8.js → ZeniCopyright-BgmdPASs-DelYiDhm.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-CtSVUxFX-Dwsmf36y.js → ZeniTransferAmountSlider-DMsck2bu-DCLTW9RT.js} +7 -7
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-ML9MGMdm.js → add-to-wallet-DgdBD8_G-D-4o-88L.js} +1 -1
  201. package/dist/assets/{analytics-P_xGl18F.js → analytics-C31yhYYa.js} +1 -1
  202. package/dist/assets/{analyticsHelper-XlFGO0fA.js → analyticsHelper-B7l4_BHB.js} +1 -1
  203. package/dist/assets/{analyticsHelper-BZApS5V7-CQ7w4UrQ.js → analyticsHelper-DmrBYvLC-BYxc55FI.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-CaCPY8nT.js → arrow-south-east-round-PEovUgvH-BlzMDlPl.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-NgJPDzL7.js → auto-transfer-rule-mbafm5D3-BYUDU2ca.js} +1 -1
  206. package/dist/assets/chartTypes-xMrDPcl9-DKVI72OS.js +1 -0
  207. package/dist/assets/commonDimensions-BeMzLvmC-DeA_97Hu.js +1 -0
  208. package/dist/assets/{commonTypes-CGdrM7wg-CQNj58rv.js → commonTypes-DYUaD7k3-CaDbaWCj.js} +1 -1
  209. package/dist/assets/{constants-DOyZLfgU.js → constants-9sygGEgN.js} +1 -1
  210. package/dist/assets/{core-9fRi0Mt4.js → core-D_TfeHIh.js} +3 -53
  211. package/dist/assets/{dash.all.min-CF_THag5.js → dash.all.min-Ch2VCoo5.js} +1 -1
  212. package/dist/assets/downloadPdf-vnuUU3X8-B7Q2l1ET.js +1 -0
  213. package/dist/assets/{empty-B5Q0rRHT.js → empty-BiJ0vfXH.js} +1 -1
  214. package/dist/assets/{empty-CAQ4ZkXH.js → empty-DNhRmYaU.js} +1 -1
  215. package/dist/assets/epic-DgXJ8ekR.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-UGNcWPn9.js → gift-box-Cmt9OgIZ-BEAvT8rf.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BOhNpsDD.js → graphic-no-data-l-DU4J8fDt-CYOuVrsL.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-emGPe0Ve.js → graphic-no-data-net-burn-l-CzmycA0m-CwMRb5f1.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-B0o7WHoi.js → handshake-BPg58FML-DG913wOo.js} +1 -1
  220. package/dist/assets/{helper-kGYJRbxq-Dou-1Hvg.js → helper-BabSYuW2-DU5KaXId.js} +3 -3
  221. package/dist/assets/{index-Yp99NR_9.js → index-B69DilQP.js} +1 -1
  222. package/dist/assets/{index-BIjhkiZM.js → index-BidMB_0T.js} +1 -1
  223. package/dist/assets/{index-CLu6elou.js → index-Bv_arhgP.js} +1 -1
  224. package/dist/assets/{index-xQWNfy_j.js → index-COD15W4T.js} +2 -8
  225. package/dist/assets/{index-WR35fJ_g.js → index-CQD_nutl.js} +4740 -4814
  226. package/dist/assets/{index-Bsy-GBiE.js → index-D7j2t6WX.js} +1 -1
  227. package/dist/assets/{index-LDC8nb34.js → index-l2Ugf91P.js} +1 -1
  228. package/dist/assets/{lexical-OBpCEASU.js → lexical-CBxUxgf7.js} +1 -1
  229. package/dist/assets/{liveblocks-C4P3eYZH.js → liveblocks-CtZCL_Pz.js} +2 -15
  230. package/dist/assets/lottie-CVJxkEeH.js +2 -0
  231. package/dist/assets/mapLoadingInProgressToTreeNode-Bs8-HXsR-byZZ2UVu.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-oqbfssc7-Dcmf_p1v.js → mapSectionWithAcOnlyToTreeNode-O-hSpwLG-CBm5dWL6.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-BhgPzzom-CExmYnCM.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-Ldd39Ct5-CMF3q4cV.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-nYrRWCim-DX2Ouhk3.js +1 -0
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BGId2YAo-BE2VzwOR.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D8UYLJpF-CA2QnDit.js} +1 -1
  237. package/dist/assets/{mui-Brvp17ej.js → mui-Dk05P7Hv.js} +1 -9
  238. package/dist/assets/{page-detail-CWX5S47F-ChR2-yvA.js → page-detail-CWX5S47F-DkWNpJ9N.js} +1 -1
  239. package/dist/assets/panelSelectedMixin-Cddsb26L-BuTIFt9p.js +3 -0
  240. package/dist/assets/{radio-default-CiSgisfh-CXFHpW2r.js → radio-default-CiSgisfh-D0KDYg5a.js} +1 -1
  241. package/dist/assets/react-BRl-ICJH.js +19 -0
  242. package/dist/assets/{react-BhtBasS0.js → react-BgX7cXZF.js} +3 -13
  243. package/dist/assets/{react-kWaLU55M.js → react-BwERS3QF.js} +2 -12
  244. package/dist/assets/{react-CWcYCkHQ.js → react-Bxl9Z8Qh.js} +2 -12
  245. package/dist/assets/{react-B62ffbg2.js → react-DDFsdGD8.js} +2 -12
  246. package/dist/assets/{react-D3G0H1Pz.js → react-DQw_p84_.js} +2 -12
  247. package/dist/assets/{react-Be9s5WWp.js → react-klqgMUCw.js} +2 -12
  248. package/dist/assets/{react-DXoHWgeC.js → react-q9e7Zd9C.js} +2 -12
  249. package/dist/assets/{recharts-3nFTO0WQ.js → recharts-CgI_z3-h.js} +19 -27
  250. package/dist/assets/{sentry-Bp-C2lie.js → sentry-B9mdFwQp.js} +2 -17
  251. package/dist/assets/{shield-DOlUxcFf-C7KHbQMV.js → shield-DOlUxcFf-DFrS0m-m.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-BghIFr09-Cj1ZDevr.js +1 -0
  253. package/dist/assets/toChartData-DRKQ5lEf-o8RM5Syw.js +1 -0
  254. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-DZz1sA_Y.js +1 -0
  255. package/dist/assets/{uploadAttachment-CPTMCWWz-BsMxClN1.js → uploadAttachment-DrIqsgBH-KXnF0yC8.js} +34 -34
  256. package/dist/assets/uploadReceipts-CIgkuVpu-DVqh43Th.js +1 -0
  257. package/dist/assets/{url-BgfWw6hk.js → url-1RDcEwn0.js} +1 -1
  258. package/dist/assets/{url-C3X-Ohpm.js → url-OCPnhlmx.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-aiANt-Y6.js → useLongPress-GCK2COYQ-Bdc_o-8-.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-TqZcDLho.js → usp-line-BBd1wKwW-BUoEX_Hw.js} +1 -1
  261. package/dist/assets/{utils-DYOlPuZo.js → utils-DZ3Subia.js} +4 -38
  262. package/dist/assets/zeni-epic-state-ksdE_TIc.js +14 -0
  263. package/dist/index.html +1 -1
  264. package/package.json +6 -6
  265. package/dist/assets/ACHDetailsPage-CfGEDzSb-DV0Eamud.js +0 -21
  266. package/dist/assets/AccountInfoPage-D6sv-ieC-Bi0ZTjMk.js +0 -18
  267. package/dist/assets/AccountLockedInfoModal-DTEWzR6U-LlwPq_cj.js +0 -59
  268. package/dist/assets/AccountRow-BsjoBGWz-DZpihkys.js +0 -298
  269. package/dist/assets/AddAddressForCardDrawer-D7IEsbzd-BKhmiajL.js +0 -6
  270. package/dist/assets/AppBasePage-1U1M1WD9-C_v4CyTj.js +0 -71
  271. package/dist/assets/AppDrawerContent-ilzYI49f-YkJW8OTT.js +0 -92
  272. package/dist/assets/ApprovalRulesSettingsPage-CJ4xz_hQ-ZWS4PutA.js +0 -47
  273. package/dist/assets/BillDetailPage-Cf4PYoYQ-BDF2h_o1.js +0 -266
  274. package/dist/assets/BillingSettingsPage-DsMjw0qG-BHFQfcoR.js +0 -44
  275. package/dist/assets/CardNumberSubText-bkAPzhoK-xPg_Vz-Z.js +0 -21
  276. package/dist/assets/ChargeCardPromoPage-Dx4Lni50-DqToHrb8.js +0 -222
  277. package/dist/assets/CollapsableReportTable-4bJMcvHV-Mhl0eZKS.js +0 -2844
  278. package/dist/assets/ConfettiBurst-CVLXMknu-xHcyRPzb.js +0 -1
  279. package/dist/assets/CurrencySelectField-DrL1sFLq-DKlwkEgI.js +0 -139
  280. package/dist/assets/CustomerOnboardingContainerPage-ecKRiXO1-DkyMsJ2e.js +0 -1
  281. package/dist/assets/CustomerOnboardingNoStepsPage--O7lSduT-CyYXEVAV.js +0 -66
  282. package/dist/assets/DashboardSidebarBackgroundAnimation-8LKlc-IA--VyG_ExD.js +0 -12
  283. package/dist/assets/DepositAccTransactionItem-DB7Oz4GA-Cxjn3epT.js +0 -76
  284. package/dist/assets/DepositAccTransactionListPage-BU1b2OIP-CIILPZQP.js +0 -66
  285. package/dist/assets/DownloadOverlay-B61S0t5X-ChBbIlkz.js +0 -439
  286. package/dist/assets/EditPeoplePage-Dd1g1r37-YXzUsk-J.js +0 -55
  287. package/dist/assets/EditReimbursementDetailPage-B_u1W6bf-CXWrMZff.js +0 -865
  288. package/dist/assets/EntityDetailPage-q_kzXlBV-BMAnc8Y1.js +0 -18
  289. package/dist/assets/ExpenseAutomationPage-CBGrrVMb-DXQLO7aa.js +0 -1703
  290. package/dist/assets/GlobalReviewListPage-Ch51_Flw-Bp8qtPIo.js +0 -291
  291. package/dist/assets/InsightsSection-CQD6KXLg-CwZowiTB.js +0 -27
  292. package/dist/assets/InternationalWireVerificationPage-DAQrAsW5-SZTMjIa_.js +0 -65
  293. package/dist/assets/InvitePeoplePage-CjJOyA8E-CRqZcE-n.js +0 -12
  294. package/dist/assets/InvoiceUploadSection-BJ_Sbytw-S2-9Zj1d.js +0 -140
  295. package/dist/assets/LabeledDocumentField-B7TETIva-C4iXsbqy.js +0 -41
  296. package/dist/assets/LabeledDropDownFormattedTextField-Dj0SVwKK-B-muR79Q.js +0 -59
  297. package/dist/assets/MagicLinkACHDetailsPage-Cateo39t-DeQKBNgp.js +0 -1
  298. package/dist/assets/MagicLinkDomesticWireDetailsPage-BMkPYONG-D9I776xf.js +0 -1
  299. package/dist/assets/MagicLinkInternationalWireDetailsPage-BVn2JAEL-DW-l5QcU.js +0 -1
  300. package/dist/assets/MagicLinkSuccessPage-6e22dOVy-Ca3PQPOI.js +0 -31
  301. package/dist/assets/MailingDetailsSection-detuRa7l-iQO9MOji.js +0 -21
  302. package/dist/assets/MyPendingActivationChargeCardListPage-CfsTMsnG-HpMjRdS6.js +0 -6
  303. package/dist/assets/NavBarWithPicker-BXsxMlBP-Yw922VyS.js +0 -30
  304. package/dist/assets/NavigationDots-CxV99fd--DHe0JJ6H.js +0 -15
  305. package/dist/assets/NotificationsListConfig-6ay7Y8AS-C6rUrmqa.js +0 -1
  306. package/dist/assets/NotificationsPage-BmNwL81h-SvvKfJOs.js +0 -685
  307. package/dist/assets/OpExByVendorPage-DQPUJmPx-BSvUE-Xz.js +0 -100
  308. package/dist/assets/PeoplePage-Df6QdrX5-DiOY0BT9.js +0 -675
  309. package/dist/assets/QBOSetupSection-BsFbgysY-CKfysLHU.js +0 -79
  310. package/dist/assets/ReimbursementDetailPage-BzqZlk2B-CTZbBMQs.js +0 -314
  311. package/dist/assets/ReimbursementsBulkReviewDrawerPage-D0tGia3M-Dr3nLXgh.js +0 -1
  312. package/dist/assets/ReportTableViewSelector-DikZuwk8-SNjapZLW.js +0 -150
  313. package/dist/assets/ReportsPage-CgwJh87H-D5Dh_2rJ.js +0 -121
  314. package/dist/assets/RoleWithToolTip-CUpngYu7-Bv4aTWNw.js +0 -22
  315. package/dist/assets/ScheduleDetailsPage-Bm8IOCpE-DXeoQ75s.js +0 -37
  316. package/dist/assets/ScheduleSequenceTable-Cz46lcuv-JJwBSAjp.js +0 -324
  317. package/dist/assets/SignIn-ogxsR98p-CQtefyen.js +0 -491
  318. package/dist/assets/SignInScreen-BhGickKe.js +0 -1
  319. package/dist/assets/SpendManagementListViewPage-DP6uWx2T-CF2QC1sF.js +0 -134
  320. package/dist/assets/SpendManagementPerTabPage-DSXg_agw-D7L-1Tg8.js +0 -754
  321. package/dist/assets/SubTabSwitcher-VHMqXmGa-eHcHFn5d.js +0 -58
  322. package/dist/assets/TaskManagementPage-CeQkRFbn-Dt9eiknk.js +0 -508
  323. package/dist/assets/TimeRangeSwitcher-BifUYnpe-Cm1SHSWE.js +0 -64
  324. package/dist/assets/TimeframeSwitcher-9X-6amWo-DNzeRE8K.js +0 -31
  325. package/dist/assets/TimeframeSwitcherWithToggle-C0fPwGaA-uGCvLn9v.js +0 -31
  326. package/dist/assets/TransactionDetailPage-C7Tv82YB-BzmjMKCy.js +0 -903
  327. package/dist/assets/TransactionList-CSZxHqad-DMqYfu_m.js +0 -153
  328. package/dist/assets/TransactionListPage-9ezEzYvU-DvKHNHiW.js +0 -35
  329. package/dist/assets/TreasuryOverviewPage-bmv1c3nO-pwlj55Pc.js +0 -708
  330. package/dist/assets/TreasuryTaxLetterPage-BRDygaXn-BYUu-RLt.js +0 -58
  331. package/dist/assets/TrendWithTransactions-2pBj6qUR-CstRDLdO.js +0 -116
  332. package/dist/assets/UploadAdditionalDocumentOverlay-5-avyqy0-CQpeMTAN.js +0 -38
  333. package/dist/assets/VendorACHDetailsPage-B-Zle7l9-DmwsHf4H.js +0 -1
  334. package/dist/assets/VendorDetailPage-prrUwTR_-DAtjrsms.js +0 -257
  335. package/dist/assets/VendorDomesticWireDetailsPage-Cm6an-ZT-BlQReF5b.js +0 -1
  336. package/dist/assets/VendorFirstReviewPage-BJKFcgOq-DxNWypjV.js +0 -730
  337. package/dist/assets/VendorInternationalWireSwiftDetailsPage-D11DRwWL-BLYwxV4T.js +0 -1
  338. package/dist/assets/VideoPopup-8ebccUQt-Tnc2J4oh.js +0 -31
  339. package/dist/assets/ZeniAccountDetailPage-BCEccrGo-BB2c1P9y.js +0 -300
  340. package/dist/assets/ZeniAccountListViewPage-f_9PSaYv-BA_wKmpL.js +0 -441
  341. package/dist/assets/ZeniAccountNavBarPieces-oinah8Mu-BSImrbVQ.js +0 -14
  342. package/dist/assets/ZeniAccountSetupPage-5hc6Dfls-DVsTiUTp.js +0 -36
  343. package/dist/assets/chartTypes-DcNGo46a-8Wbx66DS.js +0 -1
  344. package/dist/assets/commonDimensions-C5V1GwCs-MODdkiG5.js +0 -1
  345. package/dist/assets/detailCommon-DEXTnYE7-DLq8Xlss.js +0 -38
  346. package/dist/assets/downloadPdf-Cd1RR1sH-4x5kEIho.js +0 -1
  347. package/dist/assets/epic-Ng2EVSPh.js +0 -2
  348. package/dist/assets/lottie-Bc1XI_mg.js +0 -9
  349. package/dist/assets/mapLoadingInProgressToTreeNode-BXVk4dIp-BOP1nsZO.js +0 -1
  350. package/dist/assets/mapSpacerToTreeNode-BA1RwyQy-BeUvXbCM.js +0 -1
  351. package/dist/assets/mapTimeframeBalancesToTreeNode-B8pIGqbO-CfD51fLc.js +0 -1
  352. package/dist/assets/mapTimeframeBalancesToTreeNode-D-yDCyLa-DmgDklT3.js +0 -1
  353. package/dist/assets/panelSelectedMixin-CzfD5-Zs-cmGIfAj7.js +0 -4
  354. package/dist/assets/react-BgiuPaJ9.js +0 -37
  355. package/dist/assets/toCOABalancesWithID-Ckyq_c20-B6i1AWVq.js +0 -1
  356. package/dist/assets/toChartData-N0pkfSXY-B_HjSMac.js +0 -1
  357. package/dist/assets/uploadReceipts-Dge0cNF1-D9Xfc9pM.js +0 -1
  358. package/dist/assets/zeni-epic-state-C5X_gOJX.js +0 -151
@@ -1,12 +1,12 @@
1
- import{d as U,J as O,i5 as _e,V as t,i6 as De,bQ as Ne,i7 as ve,bF as Oe,bE as je,y as D,ab as F,ga as ke,O as x,o as N,aV as Pe,u as m,aP as X,ch as Be,ci as $e,cj as Ie,am as Me,ck as Ae,b5 as ne,aF as oe,aX as re}from"./index-WR35fJ_g.js";import{a as f}from"./sentry-Bp-C2lie.js";import{n as y}from"./mui-Brvp17ej.js";import{bh as R,G5 as Ye}from"./zeni-epic-state-C5X_gOJX.js";import{n as M}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Ee}from"./ArAgingChart-B0wn2vDP-f7oGxVU8.js";import{C as ie}from"./NoDataChart-SlgxXIjJ-DxbYX5JM.js";import{I as se,R as $}from"./CollapsableReportTable-4bJMcvHV-Mhl0eZKS.js";import{d as le}from"./NoDataTable-CePwfuWH-63JcLMeG.js";import{l as ce}from"./mapSpacerToTreeNode-BA1RwyQy-BeUvXbCM.js";import{l as Le}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-C4P3eYZH.js";import"./core-9fRi0Mt4.js";import"./recharts-3nFTO0WQ.js";import"./lottie-Bc1XI_mg.js";import"./analytics-P_xGl18F.js";import"./lexical-OBpCEASU.js";import"./utils-DYOlPuZo.js";import"./chartTypes-DcNGo46a-8Wbx66DS.js";import"./AccountRow-BsjoBGWz-DZpihkys.js";import"./graphic-no-data-l-DU4J8fDt-BOhNpsDD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f99c19fb-a6bd-4396-a320-815f44cdebd7",e._sentryDebugIdIdentifier="sentry-dbid-f99c19fb-a6bd-4396-a320-815f44cdebd7")}catch{}})();const Fe={chartHeight:new D(288,360)},de=y.div`
1
+ import{y as K,J as O,ig as _e,V as t,ih as De,bQ as Ne,ii as ve,bF as Oe,bE as je,x as D,ab as T,gc as ke,O as x,o as N,aV as Pe,u as m,aQ as Q,ci as Be,cj as $e,ck as Ie,an as Me,cl as Ae,b5 as ne,aG as oe,aX as re}from"./index-CQD_nutl.js";import{a as f}from"./sentry-B9mdFwQp.js";import{n as y}from"./mui-Dk05P7Hv.js";import{bh as F,GR as Ye}from"./zeni-epic-state-ksdE_TIc.js";import{n as M}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{L as ze,k as Ee}from"./ArAgingChart-DVt6kJYF-BIJAb2VF.js";import{C as ie}from"./NoDataChart-CHLcGmJY-o60E8S1E.js";import{X as se,J as $}from"./CollapsableReportTable-oX8IRAxt-DmgpCuxO.js";import{d as le}from"./NoDataTable-Bv2f24Dy-BxdDK0Sh.js";import{l as ce}from"./mapSpacerToTreeNode-BhgPzzom-CExmYnCM.js";import{l as Le}from"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";import"./chartTypes-xMrDPcl9-DKVI72OS.js";import"./AccountRow-CGg3Gvpj-2LubTGsx.js";import"./graphic-no-data-l-DU4J8fDt-CYOuVrsL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="15dfb43e-7a70-45f2-ae99-c3c26e297790",e._sentryDebugIdIdentifier="sentry-dbid-15dfb43e-7a70-45f2-ae99-c3c26e297790")}catch{}})();const Te={chartHeight:new D(288,360)},de=y.div`
2
2
  display: flex;
3
3
  `,ge=y.div`
4
4
  display: flex;
5
5
  flex: 1 1 auto;
6
6
  flex-direction: column;
7
- height: ${e=>Fe.chartHeight.valuePx(e.windowSize)};
7
+ height: ${e=>Te.chartHeight.valuePx(e.windowSize)};
8
8
  padding-bottom: ${N.sp6};
9
- `;function Re({report:e}){return e.reportId==="accounts_payable_aging"?t.jsx(Te,{report:e}):t.jsx(Ke,{report:e})}function Te({report:e}){const a=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 Ke({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(Ee,{isDetailPage:!0,report:e,width:i,height:o})})})}function Ue({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(Ue({config:s,nestedCustomer:e,numOfBalances:a,title:e.customer.name,parentNodeIDs:n,ancestorMetadata:c})),r}function qe({agingBalances:e,numOfBalances:a,title:o,isLastNode:i,config:s}){const n=$("aging_report_row",[],o);return{children:[],id:n,isLastNode:i,reportElementData:{element:{kind:"aging_report_row",title:o,data:e,numOfBalances:a},config:s}}}function q({agingPeriods:e,config:a,nodeId:o}){return{children:[],id:o??$("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:a}}}function me({title:e,balances:a,config:o,numOfBalances:i,nodeId:s}){return{children:[],id:s??$("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,numOfBalances:i,data:a},config:o}}}const Ge=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=q({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>qe({agingBalances:d,title:d.vendor.name,numOfBalances:c,isLastNode:g===n.length-1,config:a}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}},He=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=q({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>pe({agingBalances:d,title:d.customer.name,numOfBalances:c,isLastNode:g===n.length-1,config:a,parentNodeIDs:[],ancestorMetadata:{vendorOrCustomerAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:d.children.length>0,isLastNode:g===n.length-1}]}}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}};function ue(e,a,o,i=!0){Object.assign(e.config,a);const{agingPeriods:s}=o,n=q({agingPeriods:s,config:a});return{config:a,headerNodes:i?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const v={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])},A=y.div`
9
+ `;function Fe({report:e}){return e.reportId==="accounts_payable_aging"?t.jsx(Re,{report:e}):t.jsx(Ge,{report:e})}function Re({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 Ge({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(Ee,{isDetailPage:!0,report:e,width:i,height:o})})})}function Ke({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(Ke({config:s,nestedCustomer:e,numOfBalances:a,title:e.customer.name,parentNodeIDs:n,ancestorMetadata:c})),r}function qe({agingBalances:e,numOfBalances:a,title:o,isLastNode:i,config:s}){const n=$("aging_report_row",[],o);return{children:[],id:n,isLastNode:i,reportElementData:{element:{kind:"aging_report_row",title:o,data:e,numOfBalances:a},config:s}}}function q({agingPeriods:e,config:a,nodeId:o}){return{children:[],id:o??$("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:a}}}function me({title:e,balances:a,config:o,numOfBalances:i,nodeId:s}){return{children:[],id:s??$("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,numOfBalances:i,data:a},config:o}}}const He=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=q({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>qe({agingBalances:d,title:d.vendor.name,numOfBalances:c,isLastNode:g===n.length-1,config:a}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}},Je=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=q({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>pe({agingBalances:d,title:d.customer.name,numOfBalances:c,isLastNode:g===n.length-1,config:a,parentNodeIDs:[],ancestorMetadata:{vendorOrCustomerAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:d.children.length>0,isLastNode:g===n.length-1}]}}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}};function ue(e,a,o,i=!0){Object.assign(e.config,a);const{agingPeriods:s}=o,n=q({agingPeriods:s,config:a});return{config:a,headerNodes:i?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const v={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])},A=y.div`
10
10
  display: flex;
11
11
  position: sticky;
12
12
  justify-content: center;
@@ -16,13 +16,13 @@ import{d as U,J as O,i5 as _e,V as t,i6 as De,bQ as Ne,i7 as ve,bF as Oe,bE as j
16
16
  `,he=y.div`
17
17
  width: 100%;
18
18
  height: calc(100vh - ${N.sp11});
19
- `;function We({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ve,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=O(),r=U(),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=Ge(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(A,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(A,{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:v.contentPaddingLeft.value(l),right:v.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ve({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=O(),u=U(),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(A,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(A,{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:v.contentPaddingLeft.value(r),right:v.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Qe={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Xe=y.div`
19
+ `;function Ue({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(We,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ve,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function We({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=He(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(A,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(A,{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:v.contentPaddingLeft.value(l),right:v.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ve({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=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=Je(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(A,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(A,{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:v.contentPaddingLeft.value(r),right:v.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])},Qe=y.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
- column-gap: ${e=>Qe.summaryColumnGap.valuePx(e.windowSize)};
25
+ column-gap: ${e=>Xe.summaryColumnGap.valuePx(e.windowSize)};
26
26
  `,Z=y.div`
27
27
  display: flex;
28
28
  flex-direction: column;
@@ -34,7 +34,7 @@ import{d as U,J as O,i5 as _e,V as t,i6 as De,bQ as Ne,i7 as ve,bF as Oe,bE as j
34
34
  width: fit-content;
35
35
  `,te=y(Ae)`
36
36
  color: ${e=>e.theme.colors.primary};
37
- `;function Ze({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Le(e),[e]),i=O();return t.jsxs(Xe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(Z,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:X("0,0",s?.balance)})]},n)}),t.jsxs(Z,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:X("0,0",o?.balance)})]})]})}const K={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:_,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=U(),[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:Y,onNodeCollapseToggled:ye}=e,{fetchState:j,reportTitle:we,reportId:w}=n,{searchString:k,downloadState:I,sortKey:z,sortOrder:E,selectedDate:b,agingDateSelectionType:G}=c,{authParams:H,downloadEndPoint:W,timezone:J}=l,V=f.useCallback((h,C)=>{const P=ae(C);u(h,P),r.trackAgingReportDateChange(M(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),Q=f.useCallback(h=>{const C=_e({options:B.preComputedDurationOptions.map(({label:L,value:Ce})=>({label:L,value:Ye(Ce)})).filter(({value:L})=>L!=null),selectedDate:h}),P=ae(C);u(h,P),r.trackAgingReportDateChange(M(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):R().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),xe=f.useCallback((h,C)=>{S(h,C),r.trackAgingReportSortChange(M(w),C,h)},[r,S,w]),be=f.useCallback(()=>t.jsx(De,{maxDate:R(),selectedDate:{date:b},precomputedOptionsProperties:{preComputedOptionSelected:ct(G),preComputedOptionDateFormat:_.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:V},onSelectedDateChanged:Q}),[b,V,Q,G]);if(f.useEffect(()=>{async function h(){const C={companyName:l.companyName,searchString:k,sortKey:z,sortOrder:E,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:b};await tt(W,H,C),Y("Completed"),r.trackAgingReportDownloadClick(M(w),z,E)}o&&I!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[H,W,l.companyName,I,o,w,k,z,E,Y,b,r,J]),j==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const Se=t.jsxs(t.Fragment,{children:[t.jsx(ve,{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:I==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(I==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(je,{title:we,subTitle:be(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Se,downloadPresent:!0,style:{marginBottom:K.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(F,{controller:j==="In-Progress"||j==="Not-Started",children:t.jsx(ke,{fetchState:j})}),t.jsxs(F,{controller:j==="Completed",children:[t.jsx(F,{controller:k.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Ze,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Re,{report:n})]})}),t.jsx(We,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,T.defaultFileName),l=await n.arrayBuffer();Ie(l,c)}else console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
37
+ `;function Ze({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Le(e),[e]),i=O();return t.jsxs(Qe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(Z,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:Q("0,0",s?.balance)})]},n)}),t.jsxs(Z,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:Q("0,0",o?.balance)})]})]})}const G={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:R,dateFormat:_,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(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:Y,onNodeCollapseToggled:ye}=e,{fetchState:j,reportTitle:we,reportId:w}=n,{searchString:k,downloadState:I,sortKey:z,sortOrder:E,selectedDate:b,agingDateSelectionType:H}=c,{authParams:J,downloadEndPoint:U,timezone:W}=l,V=f.useCallback((h,C)=>{const P=ae(C);u(h,P),r.trackAgingReportDateChange(M(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):F().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),X=f.useCallback(h=>{const C=_e({options:B.preComputedDurationOptions.map(({label:L,value:Ce})=>({label:L,value:Ye(Ce)})).filter(({value:L})=>L!=null),selectedDate:h}),P=ae(C);u(h,P),r.trackAgingReportDateChange(M(w),b!=null?b.format(_.analytics.YYYYDashMMDashDDFormat):F().format(_.analytics.YYYYDashMMDashDDFormat),h.format(_.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,b]),xe=f.useCallback((h,C)=>{S(h,C),r.trackAgingReportSortChange(M(w),C,h)},[r,S,w]),be=f.useCallback(()=>t.jsx(De,{maxDate:F(),selectedDate:{date:b},precomputedOptionsProperties:{preComputedOptionSelected:ct(H),preComputedOptionDateFormat:_.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:V},onSelectedDateChanged:X}),[b,V,X,H]);if(f.useEffect(()=>{async function h(){const C={companyName:l.companyName,searchString:k,sortKey:z,sortOrder:E,statementFileType:"excel",timezone:W,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:b};await tt(U,J,C),Y("Completed"),r.trackAgingReportDownloadClick(M(w),z,E)}o&&I!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[J,U,l.companyName,I,o,w,k,z,E,Y,b,r,W]),j==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const Se=t.jsxs(t.Fragment,{children:[t.jsx(ve,{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:I==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(I==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(je,{title:we,subTitle:be(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Se,downloadPresent:!0,style:{marginBottom:G.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(T,{controller:j==="In-Progress"||j==="Not-Started",children:t.jsx(ke,{fetchState:j})}),t.jsxs(T,{controller:j==="Completed",children:[t.jsx(T,{controller:k.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Ze,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Fe,{report:n})]})}),t.jsx(Ue,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,R.defaultFileName),l=await n.arrayBuffer();Ie(l,c)}else console.error(`${R.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${R.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
38
38
  display: flex;
39
39
  width: 100%;
40
40
  height: calc(100% - 60px);
@@ -74,6 +74,6 @@ import{d as U,J as O,i5 as _e,V as t,i6 as De,bQ as Ne,i7 as ve,bF as Oe,bE as j
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};
77
- padding-left: ${e=>K.wrapperPadding.valuePx(e.windowSize)};
78
- padding-right: ${e=>K.wrapperPadding.valuePx(e.windowSize)};
77
+ padding-left: ${e=>G.wrapperPadding.valuePx(e.windowSize)};
78
+ padding-right: ${e=>G.wrapperPadding.valuePx(e.windowSize)};
79
79
  `,ct=e=>{switch(e){case"last_month":return"month";case"last_quarter":return"quarter";default:return}},ae=e=>e==="month"?"last_month":e==="quarter"?"last_quarter":"custom_date";export{Bt as default,at as toDownloadAgingReportOptionsPayload};
@@ -1,4 +1,4 @@
1
- import{cL as Q,ep as je,J as _,V as l,aR as P,y as T,o as i,bb as re,O as E,i as ie,am as ne,d1 as Pe,ck as Ce,u as k,bV as Se,aL as te,cD as J,gU as de,g1 as R,f_ as Y,f$ as G,g0 as ce,g2 as pe,b1 as me,gV as Oe,p as ue,d0 as ge,an as he,ex as Te,ae as Re}from"./index-WR35fJ_g.js";import{n as p}from"./mui-Brvp17ej.js";import{FM as De,bg as X}from"./zeni-epic-state-C5X_gOJX.js";import{a as Z}from"./sentry-Bp-C2lie.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-nlyagP_L-CvgIxOeV.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-Bgf26ek0-CC9PqeMV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="487cb563-5d08-4aba-8838-b823d7a64024",e._sentryDebugIdIdentifier="sentry-dbid-487cb563-5d08-4aba-8838-b823d7a64024")}catch{}})();const B=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new T(120,120,160),toolTipWidth:new T(215,237)},g=E.getLocalizedStrings().peoplePage,ze=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:y,isBankingOnlyTenant:m,isCardsOnlyTenant:f,isEdit:N,person:x,analytics:v})=>{const w=_(),C=se.largeLabelWidth.value(w),{setValue:S}=Q(),z=te(h),$=z.splice(0,1),U=z.reduce((r,n)=>r.concat(`${n.email},`),""),M=Z.useMemo(()=>te(J.roles),[]),u=X(e.role);return Z.useEffect(()=>{(u||m||f)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,f]),l.jsxs(ke,{windowSize:w,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:B(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(K,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:B(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:G(m,f)},productsByUserRole:Y(e.role,y)},registerOptions:{required:!0}}}),l.jsx(K,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(Le,{}),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],I=s.find(L=>L.classId===d.userRole.accountingClassIDs[0]),j=[];return I!=null&&j.push(I.className),j}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(K,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:B(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||f?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||f)},isDisabled:u||m||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||f?"disabled":void 0,opacity:u||m||f?.32:1}),N?null:l.jsxs(Ne,{windowSize:w,children:[g.invitePage.controllerText,$[0]?l.jsxs(Ue,{href:`mailto:${$[0].email}?cc=${U}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${$[0].firstName} ${$[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(fe,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:B(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:M},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},Le=()=>E.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,ke=p.div`
1
+ import{cN as Q,er as je,J as F,V as l,ac as P,x as T,o as i,bb as re,O as Z,a as ie,an as ne,d3 as Pe,cl as Ce,u as k,bX as Se,aM as te,cF as Y,g_ as de,g3 as R,g0 as G,g1 as J,g2 as ce,g4 as pe,b1 as me,g$ as Oe,p as ue,d2 as ge,ao as he,ez as Te,af as Re}from"./index-CQD_nutl.js";import{n as p}from"./mui-Dk05P7Hv.js";import{Gw as ze,bg as X}from"./zeni-epic-state-ksdE_TIc.js";import{a as q}from"./sentry-B9mdFwQp.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-ClUfUqjp-BZp8hOi3.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-hbA4Pwlf-D_cCYzYL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9285e5d1-ffd2-4f7c-afca-254b4948b3a7",e._sentryDebugIdIdentifier="sentry-dbid-9285e5d1-ffd2-4f7c-afca-254b4948b3a7")}catch{}})();const B=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new T(120,120,160),toolTipWidth:new T(215,237)},g=Z.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:y,isBankingOnlyTenant:m,isCardsOnlyTenant:f,isEdit:N,person:x,analytics:v})=>{const w=F(),C=se.largeLabelWidth.value(w),{setValue:S}=Q(),D=te(h),$=D.splice(0,1),U=D.reduce((r,n)=>r.concat(`${n.email},`),""),M=q.useMemo(()=>te(Y.roles),[]),u=X(e.role);return q.useEffect(()=>{(u||m||f)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,f]),l.jsxs(ke,{windowSize:w,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:B(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:R(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(K,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:B(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:J(m,f)},productsByUserRole:G(e.role,y)},registerOptions:{required:!0}}}),l.jsx(K,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(Le,{}),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],I=s.find(L=>L.classId===d.userRole.accountingClassIDs[0]),j=[];return I!=null&&j.push(I.className),j}else return[]},placeholderLabel:u?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(K,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:B(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||f?g.notApplicable:R(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||f)},isDisabled:u||m||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||f?"disabled":void 0,opacity:u||m||f?.32:1}),N?null:l.jsxs(Ne,{windowSize:w,children:[g.invitePage.controllerText,$[0]?l.jsxs(Ue,{href:`mailto:${$[0].email}?cc=${U}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${$[0].firstName} ${$[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(fe,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:B(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:M},registerOptions:{required:!0},placeholderLabel:R(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},Le=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,ke=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{cL as Q,ep as je,J as _,V as l,aR as P,y as T,o as i,bb as re,O as E,i as
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new T(125,140,160),toolTipWidth:new T(246,250)},c=E.getLocalizedStrings().peoplePage,Fe=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:y,index:m,customerRoleOptions:f,isEdit:N,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const w=_(),{getValues:C,formState:{errors:S},setValue:z}=Q(),$=oe.largeLabelWidth.value(w),[U,...M]=y,u=M.map(d=>d.email).join(","),r=Z.useMemo(()=>J.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=X(e.role);return Z.useEffect(()=>{(n||x||v)&&z(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&z(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),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=>!_e(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(I=>!I.match(Oe)).reduce((I,j)=>I&&j)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ve(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(V,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:c.invitePage.role,width:$},style:{width:"auto"},rolesDropDownField:{name:F(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:G(x,v)},productsByUserRole:Y(e.role,f)},registerOptions:{required:!0}}}),l.jsx(V,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:$},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:F(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const I=s.findIndex(j=>j.userId===d);if(I!==-1){const j=s[I],L=h.find(O=>O.classId===j.userRole.accountingClassIDs[0]),b=[];return L!=null&&b.push(L.className),b}else return[]},placeholderLabel:n?c.notApplicable:R(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(V,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:$},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||v?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||v)},isDisabled:n||x||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||v?"disabled":void 0,opacity:n||x||v?.32:1}),l.jsx(V,{}),N?null:l.jsxs(Be,{windowSize:w,isDisabled:n,children:[c.invitePage.controllerText,U?l.jsx(Ze,{firstController:[U],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(fe,{label:{label:c.invitePage.role,width:$},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:F(t,"role"),placeholderLabel:R(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},We=()=>E.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,_e=(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
+ `,W=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new T(125,140,160),toolTipWidth:new T(246,250)},c=Z.getLocalizedStrings().peoplePage,We=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:y,index:m,customerRoleOptions:f,isEdit:N,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const w=F(),{getValues:C,formState:{errors:S},setValue:D}=Q(),$=oe.largeLabelWidth.value(w),[U,...M]=y,u=M.map(d=>d.email).join(","),r=q.useMemo(()=>Y.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=X(e.role);return q.useEffect(()=>{(n||x||v)&&D(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&D(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),l.jsxs(Me,{windowSize:w,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:W(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:d=>!Fe(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(I=>!I.match(Oe)).reduce((I,j)=>I&&j)}},placeholder:R(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ee(C("userItems"),W(t,"email"),m,o,S)}),l.jsx(E,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:c.invitePage.role,width:$},style:{width:"auto"},rolesDropDownField:{name:W(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:J(x,v)},productsByUserRole:G(e.role,f)},registerOptions:{required:!0}}}),l.jsx(E,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:$},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(_e,{}),userSingleSelectWithSubTitlesField:{name:W(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const I=s.findIndex(j=>j.userId===d);if(I!==-1){const j=s[I],L=h.find(O=>O.classId===j.userRole.accountingClassIDs[0]),b=[];return L!=null&&b.push(L.className),b}else return[]},placeholderLabel:n?c.notApplicable:R(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(E,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:$},singleSelectWithoutClearableField:{name:W(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||v?c.notApplicable:R(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||v)},isDisabled:n||x||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||v?"disabled":void 0,opacity:n||x||v?.32:1}),l.jsx(E,{}),N?null:l.jsxs(Be,{windowSize:w,isDisabled:n,children:[c.invitePage.controllerText,U?l.jsx(qe,{firstController:[U],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(fe,{label:{label:c.invitePage.role,width:$},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:W(t,"role"),placeholderLabel:R(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},_e=()=>Z.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Fe=(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};
@@ -54,7 +54,7 @@ import{cL as Q,ep as je,J as _,V as l,aR as P,y as T,o as i,bb as re,O as E,i as
54
54
  .single-select-field__menu {
55
55
  border: ${e=>e.windowSize==="small"?`1px solid ${e.theme.colors.grey3}`:"unset"};
56
56
  }
57
- `,V=p.div`
57
+ `,E=p.div`
58
58
  display: flex;
59
59
  flex: 1;
60
60
  background-color: ${e=>e.theme.colors.grey3};
@@ -71,7 +71,7 @@ import{cL as Q,ep as je,J as _,V as l,aR as P,y as T,o as i,bb as re,O as E,i as
71
71
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
72
72
  gap: ${e=>e.windowSize==="small"?i.sp0:"6px"};
73
73
  opacity: ${e=>e.isDisabled?.32:1};
74
- `,Ee=p.a`
74
+ `,Ze=p.a`
75
75
  color: ${e=>e.theme.colors.hero};
76
76
  text-decoration: none;
77
77
  cursor: ${e=>e.isDisabled?"unset":"pointer"};
@@ -89,14 +89,14 @@ import{cL as Q,ep as je,J as _,V as l,aR as P,y as T,o as i,bb as re,O as E,i as
89
89
  color: ${e=>e.isDisabled?e.theme.colors.grey1:e.theme.colors.primary};
90
90
  }
91
91
  }
92
- `,Ve=(e,t,o,a,s)=>{if(Te(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(!Re.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(Ee,{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(Fe,{...e})}),Ae=p.div`
92
+ `,Ee=(e,t,o,a,s)=>{if(Te(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(!Re.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}},qe=({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(Ze,{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"})]})},Ae=e=>l.jsx(Ve,{style:e.style,"data-testid":P("user-item-section"),children:e.isEdit?l.jsx(De,{...e}):l.jsx(We,{...e})}),Ve=p.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
- `,W={buttonWidth:new T(70,70),marginBottom:new T(12,k[3]),deleteContentMarginLeft:new T(k[0],k[3]),containerPaddingTop:new T(k[0],k[3]),addUserWrapperGap:new T(k[1],k[2])},He=(e,t,o,a,s,h,y)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:J.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:G(h,y)},productsByUserRole:Y([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),D=E.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:y,isZeniTenant:m,managersList:f,classList:N,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S=!1,person:z,analytics:$})=>{const{getValues:U}=Q(),{append:M,remove:u}=je({name:h,control:t}),r=_(),n=U().userItems,d=()=>{const b=n.length-1,O=He(b+1,f,N,y,v,w,C);setTimeout(()=>M(O,{shouldFocus:!0}))},I=b=>{a(b)},j=()=>{a(-1)},L=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Ye,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((b,O)=>{const Ie=n.length;let q={};if(y==="zeni_only")q={email:b.email,role:Je(b.role.selectedOptions,S)??void 0};else{const ee=b.nonZeniRole?.userRole.selectedRole,A=ee!=null?(b.nonZeniRole?.productsByUserRole[ee]??[]).map(H=>De(H.selectedOption?.value)).filter(H=>H!=null):[],le=A.length>0?X(A):!1;q={email:b.email,role:A,managerId:le?void 0:b.manager?.selectedUser,departmentId:le?void 0:b.department?.selectedOption?.value}}return l.jsxs(Ge,{"data-testid":P("user-item",b.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:Ie>1?l.jsx(ae,{windowSize:r,children:l.jsx(Ke,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:I,onCancelClick:j,onRemoveUserItem:L})}):l.jsx(ae,{windowSize:r,children:l.jsx(we,{children:l.jsx($e,{children:l.jsx(ye,{windowSize:r,children:D.invitePage.user})})})})}),l.jsx(qe,{isDisabled:e,sectionId:`${h}.${O}`,control:t,user:q,mode:y,isZeniTenant:m,managersList:f,classList:N,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S,person:z,analytics:$,index:O}),o===O&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:j,onRemoveUserItem:L})}):null]},O)}):null,S?null:l.jsxs(ol,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(al,{}),l.jsx(rl,{children:`${D.invitePage.add} ${D.invitePage.user}`})]})]})},Ke=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const y=_();return l.jsxs(we,{children:[l.jsx($e,{children:l.jsx(ye,{windowSize:y,children:`#${e+1} ${D.invitePage.user}`})}),h===void 0?l.jsx(Qe,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=_();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Xe,{"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:D.invitePage.remove,placement:"left",children:l.jsx(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=_();return l.jsxs(l.Fragment,{children:[D.invitePage.deleteConfirmation,l.jsxs(il,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:D.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:D.invitePage.remove,onClick:t,style:{width:W.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Je=(e,t)=>t?e:e!=null?[e]:[],Ye=p.div`
95
+ `,_={buttonWidth:new T(70,70),marginBottom:new T(12,k[3]),deleteContentMarginLeft:new T(k[0],k[3]),containerPaddingTop:new T(k[0],k[3]),addUserWrapperGap:new T(k[1],k[2])},He=(e,t,o,a,s,h,y)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:Y.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:J(h,y)},productsByUserRole:G([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=Z.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:y,isZeniTenant:m,managersList:f,classList:N,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S=!1,person:D,analytics:$})=>{const{getValues:U}=Q(),{append:M,remove:u}=je({name:h,control:t}),r=F(),n=U().userItems,d=()=>{const b=n.length-1,O=He(b+1,f,N,y,v,w,C);setTimeout(()=>M(O,{shouldFocus:!0}))},I=b=>{a(b)},j=()=>{a(-1)},L=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Ge,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((b,O)=>{const Ie=n.length;let A={};if(y==="zeni_only")A={email:b.email,role:Ye(b.role.selectedOptions,S)??void 0};else{const ee=b.nonZeniRole?.userRole.selectedRole,V=ee!=null?(b.nonZeniRole?.productsByUserRole[ee]??[]).map(H=>ze(H.selectedOption?.value)).filter(H=>H!=null):[],le=V.length>0?X(V):!1;A={email:b.email,role:V,managerId:le?void 0:b.manager?.selectedUser,departmentId:le?void 0:b.department?.selectedOption?.value}}return l.jsxs(Je,{"data-testid":P("user-item",b.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:Ie>1?l.jsx(ae,{windowSize:r,children:l.jsx(Ke,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:I,onCancelClick:j,onRemoveUserItem:L})}):l.jsx(ae,{windowSize:r,children:l.jsx(we,{children:l.jsx($e,{children:l.jsx(ye,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(Ae,{isDisabled:e,sectionId:`${h}.${O}`,control:t,user:A,mode:y,isZeniTenant:m,managersList:f,classList:N,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S,person:D,analytics:$,index:O}),o===O&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:j,onRemoveUserItem:L})}):null]},O)}):null,S?null:l.jsxs(ol,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(al,{}),l.jsx(rl,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},Ke=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const y=F();return l.jsxs(we,{children:[l.jsx($e,{children:l.jsx(ye,{windowSize:y,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(Qe,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=F();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Xe,{"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(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=F();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(il,{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:_.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:_.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ye=(e,t)=>t?e:e!=null?[e]:[],Ge=p.div`
96
96
  display: flex;
97
97
  flex-direction: column;
98
- padding-top: ${e=>W.containerPaddingTop.valuePx(e.windowSize)};
99
- `,Ge=p.div`
98
+ padding-top: ${e=>_.containerPaddingTop.valuePx(e.windowSize)};
99
+ `,Je=p.div`
100
100
  .delete-icon-wrapper {
101
101
  visibility: hidden;
102
102
  }
@@ -138,10 +138,10 @@ import{cL as Q,ep as je,J as _,V as l,aR as P,y as T,o as i,bb as re,O as E,i as
138
138
  gap: ${i.sp2};
139
139
  `,il=p.div`
140
140
  display: flex;
141
- margin-left: ${e=>W.deleteContentMarginLeft.valuePx(e.windowSize)};
141
+ margin-left: ${e=>_.deleteContentMarginLeft.valuePx(e.windowSize)};
142
142
  `,ae=p.div`
143
143
  display: flex;
144
- margin-bottom: ${e=>W.marginBottom.valuePx(e.windowSize)};
144
+ margin-bottom: ${e=>_.marginBottom.valuePx(e.windowSize)};
145
145
  `,tl=p(ge)`
146
146
  width: ${i.sp3};
147
147
  height: ${i.sp3};
@@ -162,7 +162,7 @@ import{cL as Q,ep as je,J as _,V as l,aR as P,y as T,o as i,bb as re,O as E,i as
162
162
  justify-content: center;
163
163
  align-items: center;
164
164
  padding: ${i.sp3} ${i.sp4};
165
- gap: ${e=>W.addUserWrapperGap.valuePx(e.windowSize)};
165
+ gap: ${e=>_.addUserWrapperGap.valuePx(e.windowSize)};
166
166
 
167
167
  width: auto;
168
168
  height: ${i.sp8};
@@ -1,4 +1,4 @@
1
- import{d as H,J,O as g,V as o,bQ as K,ga as U,bD as q,co as Q,bE as X,o as F,aV as G,y as A,bF as W,ch as Z,ci as ee,cj as oe,u as y}from"./index-WR35fJ_g.js";import{a as v}from"./sentry-Bp-C2lie.js";import{n as i}from"./mui-Brvp17ej.js";import{L as te,D as ne}from"./EntitySummarySection-BiIPehv4-Du95DQYP.js";import"./liveblocks-C4P3eYZH.js";import"./core-9fRi0Mt4.js";import"./recharts-3nFTO0WQ.js";import"./zeni-epic-state-C5X_gOJX.js";import"./lottie-Bc1XI_mg.js";import"./analytics-P_xGl18F.js";import"./lexical-OBpCEASU.js";import"./utils-DYOlPuZo.js";import"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f8a34abc-3bb5-4499-8985-64d39703cf1b",e._sentryDebugIdIdentifier="sentry-dbid-f8a34abc-3bb5-4499-8985-64d39703cf1b")}catch{}})();const C={wrapperContainerMarginTop:new A(y[4],y[0]),wrapperContaineHorizontalrMargin:new A(y[0],y[8])},re=i.div`
1
+ import{y as H,J,O as g,V as o,bQ as K,gc as U,bD as X,cp as q,bE as G,o as F,aV as Q,x as A,bF as W,ci as Z,cj as ee,ck as oe,u as f}from"./index-CQD_nutl.js";import{a as C}from"./sentry-B9mdFwQp.js";import{n as i}from"./mui-Dk05P7Hv.js";import{L as te,D as ne}from"./EntitySummarySection-HHASyTi6-mpUEq7ck.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./zeni-epic-state-ksdE_TIc.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";import"./agingReportHelper-ovKP-qSS-Cx4Hdid-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="325d514e-4e7d-4d88-b865-7e878199f55d",e._sentryDebugIdIdentifier="sentry-dbid-325d514e-4e7d-4d88-b865-7e878199f55d")}catch{}})();const S={wrapperContainerMarginTop:new A(f[4],f[0]),wrapperContaineHorizontalrMargin:new A(f[0],f[8])},re=i.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -25,7 +25,7 @@ import{d as H,J,O as g,V as o,bQ as K,ga as U,bD as q,co as Q,bE as X,o as F,aV
25
25
  color: ${e=>e.theme.colors.primary};
26
26
  }
27
27
  }
28
- `,se=i(G)`
28
+ `,se=i(Q)`
29
29
  margin-top: ${F.sp3};
30
30
  color: ${e=>e.theme.colors.hero};
31
31
  `,le=i.div`
@@ -38,9 +38,9 @@ import{d as H,J,O as g,V as o,bQ as K,ga as U,bD as q,co as Q,bE as X,o as F,aV
38
38
  display: block;
39
39
  background-color: ${e=>e.theme.colors.grey4};
40
40
  height: calc(100vh - 178px);
41
- margin-top: ${e=>C.wrapperContainerMarginTop.valuePx(e.windowSize)};
41
+ margin-top: ${e=>S.wrapperContainerMarginTop.valuePx(e.windowSize)};
42
42
  `,ce=i.div`
43
- margin-left: ${e=>C.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
44
- margin-right: ${e=>C.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
43
+ margin-left: ${e=>S.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
44
+ margin-right: ${e=>S.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
45
45
  height: 100%;
46
- `;function Ie(e){const s=H(),l=J(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:n,downloadParams:r,reportDate:t,analytics:d,onReload:w,onBackClick:N,onColumnSortConfigChanged:S,updateDownloadStateHandler:x,onTransactionClick:T,sidePanelIsOpen:L,sidePanelIsFullView:O,panelContent:E}=e,{authParams:_,downloadEndPoint:I,timezone:k}=r,{fetchState:m,invoices:$,apAgingDetailUIState:j,vendor:a,totalBalances:Y}=n,{sortKey:D,sortOrder:b,downloadState:f}=j,[z,P]=v.useState(!1),M=g.getLocalizedStrings(),B=M.reports.aging.agingDetail,R=v.useCallback((c,u)=>{n.vendor!=null&&d.trackApAgingDetailReportSortChange(c,u,t.format(M.dateFormat.analytics.YYYYDashMMDashDDFormat),n.vendor.id,n.vendor.name),S(c,u)},[d,n.vendor,t,S]);if(v.useEffect(()=>{async function c(){const u={companyName:r.companyName,sortKey:D,sortOrder:b,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:a?.id??"",timezone:k,reportDate:t};await ge(I,_,u),x("Completed"),n.vendor!=null&&d.trackApAgingDetailReportDownload(D,b,t.format(g.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),n.vendor.id,n.vendor.name)}z&&f!=="In-Progress"&&(P(!1),x("In-Progress"),c())},[d,n.vendor,_,I,r.companyName,f,z,t,D,b,k,x,a?.id]),m==="Error")return o.jsxs(ae,{children:[o.jsx(ie,{onClick:w,children:o.jsx(K,{})}),o.jsx(se,{children:p.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(U,{fetchState:m});const V=o.jsx(W,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:f==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(f==="In-Progress"){console.log("Download is already in progress!");return}else P(!0)}}}});return o.jsx(q,{isOpen:L??!1,isFullView:O??!1,panelContent:E,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(X,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:N,rightSideComponent:V,source:"ApAgingDetailPage"}),o.jsx(ne,{totalBalances:Y,entityName:a?.name??"",entityLogo:a?.logo,reportId:"accounts_payable_aging",reportDate:t})]}),listContent:o.jsx(le,{children:o.jsx(de,{windowSize:l,children:o.jsx(ce,{windowSize:l,children:$.length===0||a==null?o.jsx(Q,{message:B.noDataText}):o.jsx(re,{windowSize:l,children:o.jsx(te,{uiState:j,invoices:$,entityName:a.name,entityLogo:a.logo,onColumnSortConfigChanged:R,onTransactionClick:T})})})})})})}async function ge(e,s,l){const h=`${e}?query=${encodeURIComponent(JSON.stringify(pe(l)))}`,p=g.getLocalizedStrings(),n=p.reports.aging.apAging.apAging,r=p.download;try{const t=await Z({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=ee(t.headers,r.defaultFileName),w=await t.arrayBuffer();oe(w,d)}else console.error(`${r.errorMessages.fileDownloadError.replace("__feature__",n)} ${t.statusText}`)}catch(t){console.error(`${r.errorMessages.fileDownloadError.replace("__feature__",n)} ${JSON.stringify(t)}`)}}function pe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:g.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{Ie as default,pe as toDownloadAgingDetailedReportOptionsPayload};
46
+ `;function Ie(e){const s=H(),l=J(),h=g.getLocalizedStrings().common,p=g.getLocalizedStrings().reports.common,{apAgingDetail:n,downloadParams:r,reportDate:t,analytics:d,onReload:w,onBackClick:N,onColumnSortConfigChanged:_,updateDownloadStateHandler:x,onTransactionClick:O,sidePanelIsOpen:T,sidePanelIsFullView:L,panelContent:E}=e,{authParams:b,downloadEndPoint:I,timezone:k}=r,{fetchState:m,invoices:z,apAgingDetailUIState:$,vendor:a,totalBalances:Y}=n,{sortKey:D,sortOrder:v,downloadState:u}=$,[j,P]=C.useState(!1),M=g.getLocalizedStrings(),R=M.reports.aging.agingDetail,B=C.useCallback((c,y)=>{n.vendor!=null&&d.trackApAgingDetailReportSortChange(c,y,t.format(M.dateFormat.analytics.YYYYDashMMDashDDFormat),n.vendor.id,n.vendor.name),_(c,y)},[d,n.vendor,t,_]);if(C.useEffect(()=>{async function c(){const y={companyName:r.companyName,sortKey:D,sortOrder:v,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:a?.id??"",timezone:k,reportDate:t};await ge(I,b,y),x("Completed"),n.vendor!=null&&d.trackApAgingDetailReportDownload(D,v,t.format(g.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),n.vendor.id,n.vendor.name)}j&&u!=="In-Progress"&&(P(!1),x("In-Progress"),c())},[d,n.vendor,b,I,r.companyName,u,j,t,D,v,k,x,a?.id]),m==="Error")return o.jsxs(ae,{children:[o.jsx(ie,{onClick:w,children:o.jsx(K,{})}),o.jsx(se,{children:p.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(U,{fetchState:m});const V=o.jsx(W,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:u==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(u==="In-Progress"){console.log("Download is already in progress!");return}else P(!0)}}}});return o.jsx(X,{isOpen:T??!1,isFullView:L??!1,panelContent:E,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(G,{title:h.strings.empty,backgroundColor:s.colors.grey5,onBackClick:N,rightSideComponent:V,source:"ApAgingDetailPage"}),o.jsx(ne,{totalBalances:Y,entityName:a?.name??"",entityLogo:a?.logo,reportId:"accounts_payable_aging",reportDate:t})]}),listContent:o.jsx(le,{children:o.jsx(de,{windowSize:l,children:o.jsx(ce,{windowSize:l,children:z.length===0||a==null?o.jsx(q,{message:R.noDataText}):o.jsx(re,{windowSize:l,children:o.jsx(te,{uiState:$,invoices:z,entityName:a.name,entityLogo:a.logo,onColumnSortConfigChanged:B,onTransactionClick:O})})})})})})}async function ge(e,s,l){const h=`${e}?query=${encodeURIComponent(JSON.stringify(pe(l)))}`,p=g.getLocalizedStrings(),n=p.reports.aging.apAging.apAging,r=p.download;try{const t=await Z({urlEndPoint:h,authParams:s,fileType:"excel"});if(t.ok){const d=ee(t.headers,r.defaultFileName),w=await t.arrayBuffer();oe(w,d)}else console.error(`${r.errorMessages.fileDownloadError.replace("__feature__",n)} ${t.statusText}`)}catch(t){console.error(`${r.errorMessages.fileDownloadError.replace("__feature__",n)} ${JSON.stringify(t)}`)}}function pe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:g.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{Ie as default,pe as toDownloadAgingDetailedReportOptionsPayload};
@@ -0,0 +1,71 @@
1
+ import{V as t,J as m,c as x,o as r,x as p,p as a,aV as g,O as u,br as f,d1 as $,dR as w,d0 as b}from"./index-CQD_nutl.js";import{n as i,k as y}from"./mui-Dk05P7Hv.js";import{a as j}from"./sentry-B9mdFwQp.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./zeni-epic-state-ksdE_TIc.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4806b4c7-e506-4483-a372-c494dc05ff97",e._sentryDebugIdIdentifier="sentry-dbid-4806b4c7-e506-4483-a372-c494dc05ff97")}catch{}})();const l={maxWidth:new p(280,322),contentMaxWidth:new p(200,250)},k=y`
2
+ 0% {
3
+ transform: translateX(100%)
4
+ }
5
+ 100% {
6
+ transform: translateX(0)
7
+ }
8
+ `,v=i.div`
9
+ position: fixed;
10
+ top: ${r.sp3};
11
+ right: ${r.sp3};
12
+ padding: ${r.sp3} ${r.sp4} ${r.sp3} ${r.sp4};
13
+ z-index: 1400;
14
+ box-sizing: initial;
15
+ padding: ${r.sp3} ${r.sp4};
16
+ max-width: ${e=>l.maxWidth.valuePx(e.windowSize)};
17
+ background: ${e=>e.theme.colors.black};
18
+ color: ${e=>e.theme.colors.hero};
19
+ border-radius: 12px;
20
+ box-shadow: ${e=>`${r.sp0} ${r.sp1} ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
21
+ display: flex;
22
+ flex-direction: row;
23
+ justify-content: center;
24
+ align-items: flex-start;
25
+ animation: ${k} 0.4s;
26
+ `,S=i(b)`
27
+ margin-top: 2px;
28
+ margin-right: 12px;
29
+ width: ${r.sp3};
30
+ height: ${r.sp3};
31
+ color: ${a.success};
32
+ `,D=i(w)`
33
+ margin-top: 2px;
34
+ margin-right: 12px;
35
+ width: ${r.sp3};
36
+ height: ${r.sp3};
37
+ color: ${a.info};
38
+ `,z=i($)`
39
+ margin-top: 2px;
40
+ margin-right: 12px;
41
+ width: ${r.sp3};
42
+ height: ${r.sp3};
43
+ color: ${a.important};
44
+ `,I=i(f)`
45
+ margin-top: 2px;
46
+ margin-right: 12px;
47
+ width: ${r.sp3};
48
+ height: ${r.sp3};
49
+ color: ${a.info};
50
+ `,T=i.div``,E=i(g)`
51
+ color: ${a.neutralGrey2Light};
52
+ word-break: break-word;
53
+ white-space: pre-line;
54
+ `,W=i.div`
55
+ max-width: ${e=>l.contentMaxWidth.valuePx(e.windowSize)};
56
+ `,O=i.div`
57
+ margin-top: 3px;
58
+ margin-left: 12px;
59
+ width: ${r.sp3};
60
+ height: ${r.sp3};
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ cursor: pointer;
65
+ color: ${e=>e.theme.colors.hero};
66
+ &:hover {
67
+ color: ${a.primaryDark};
68
+ }
69
+ `,V=(e,o,s)=>{let n=u.getLocalizedStrings().common.snackBar[e][o];return s?.forEach(c=>{n=n.replace(c.variableName,c.variableValue)}),n},_=({type:e})=>{switch(e){case"success":return t.jsx(S,{});case"info":return t.jsx(D,{});case"error":case"warning":return t.jsx(z,{});case"notification":return t.jsx(I,{});default:return null}};function L(e){const o=m(),{message:s,messageType:n,showStatusIcon:c,onRemoveSnackbar:d}=e;return j.useEffect(()=>{const h=setTimeout(()=>{d()},5e3);return()=>clearTimeout(h)},[s.section]),t.jsxs(v,{windowSize:o,children:[c===!0?t.jsx(_,{type:n}):null,t.jsx(W,{windowSize:o,children:t.jsx(T,{children:t.jsx(E,{children:V(s.section,s.text,s.variables)})})}),t.jsx(O,{onClick:d,children:t.jsx(x,{})})]})}const A=e=>t.jsx(M,{isOnDashboard:e.isOnDashboard,children:e.showSnackbar===!0?t.jsx(L,{...e.snackbar}):null}),M=i.div`
70
+ background-color: ${e=>e.isOnDashboard?e.theme.colors.background:"transparent"};
71
+ `;export{A as default};
@@ -0,0 +1,92 @@
1
+ import{ay as pe,P as be,E as me,H as u,bl as fe,V as n,bm as he,bn as ge,bo as xe,bp as Ee,ab as ye,bq as Ce,o as t,br as Ae,ax as f,b7 as h}from"./index-CQD_nutl.js";import{a as o,P as we}from"./sentry-B9mdFwQp.js";import{n as l}from"./mui-Dk05P7Hv.js";import{bk as ke}from"./zeni-epic-state-ksdE_TIc.js";import{v as Se}from"./DashboardSidebarBackgroundAnimation-D0fh4PIm-DM5qHrdk.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="091155d7-2f2c-4115-9c6f-4f46a2be3bcf",e._sentryDebugIdIdentifier="sentry-dbid-091155d7-2f2c-4115-9c6f-4f46a2be3bcf")}catch{}})();const ve=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomNewYear",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(je,{children:n.jsx(h,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),je=l.div`
2
+ position: absolute;
3
+ z-index: 0;
4
+ bottom: -${t.sp3};
5
+ display: flex;
6
+ height: auto;
7
+ right: ${t.sp0};
8
+ `,De=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomChristmas",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(Te,{children:n.jsx(h,{style:{display:"flex",width:"240px",height:"98px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Te=l.div`
9
+ position: absolute;
10
+ z-index: 0;
11
+ bottom: ${t.sp0};
12
+ display: flex;
13
+ height: auto;
14
+ right: ${t.sp0};
15
+ width: 100%;
16
+ `,$e=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomHalloween",e),[a,r]=o.useState(null);return i!=null&&a==null&&!s&&r(i),e&&a!=null?n.jsx(Ie,{children:n.jsx(h,{style:{display:"flex",width:"60px",height:"60px",marginLeft:"20%",marginTop:"10%"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Ie=l.div`
17
+ position: absolute;
18
+ z-index: 0;
19
+ width: 100%;
20
+ bottom: ${t.sp0};
21
+ display: flex;
22
+ height: 135px;
23
+ background-image: url(https://storage.googleapis.com/zeni-apis.appspot.com/images/halloween-bg.svg);
24
+ background-size: auto;
25
+ background-repeat: no-repeat;
26
+ background-position-y: bottom;
27
+ left: 0;
28
+ `,Me=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomThanksgiving",e),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&a!=null?n.jsx(Pe,{children:n.jsx(h,{style:{display:"flex",width:"100px",height:"100px",marginLeft:"45%"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Pe=l.div`
29
+ position: absolute;
30
+ z-index: 0;
31
+ bottom: ${t.sp0};
32
+ display: flex;
33
+ height: auto;
34
+ right: ${t.sp0};
35
+ `,Fe=o.memo(function({christmasAnimationEnabled:e=!1,halloweenAnimationEnabled:i=!1,newYearAnimationEnabled:s=!1,thanksGivingAnimationEnabled:a=!1}){return i?n.jsx($e,{animationEnabled:i}):a?n.jsx(Me,{animationEnabled:a}):e?n.jsx(De,{animationEnabled:e}):s?n.jsx(ve,{animationEnabled:s}):null}),Ve=l.div`
36
+ display: flex;
37
+ flex: 1 1 auto;
38
+ flex-direction: column;
39
+ padding-left: ${t.sp4};
40
+ width: 240px;
41
+ position: relative;
42
+ overflow: hidden;
43
+ box-shadow: ${e=>e.isOnDashboard?"none":`inset -2px 0 ${t.sp1} -2px ${e.theme.colors.dropShadowNormal}`};
44
+ `,Ye=l.div`
45
+ padding-left: ${t.sp3};
46
+ `,Re=l.div`
47
+ display: flex;
48
+ flex-direction: column;
49
+ flex: 1 1 auto;
50
+ padding: 0 ${t.sp1} 0 12px;
51
+ overflow-y: auto;
52
+ overflow-x: visible;
53
+ min-height: 0;
54
+ margin-top: ${t.sp4};
55
+
56
+ /* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
57
+ &::-webkit-scrollbar {
58
+ display: none;
59
+ }
60
+
61
+ /* Hide scrollbar for Firefox */
62
+ scrollbar-width: none;
63
+
64
+ /* Hide scrollbar for IE and Edge */
65
+ -ms-overflow-style: none;
66
+ `,Ue=l.div`
67
+ margin: ${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0};
68
+ width: fit-content;
69
+ display: flex;
70
+ flex-direction: row;
71
+ align-items: center;
72
+ position: relative;
73
+ z-index: 1;
74
+ `,ze=l.div`
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: center;
78
+ position: relative;
79
+ margin-left: ${t.sp2};
80
+ cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
81
+ color: ${e=>e.theme.colors.hero};
82
+ &:hover {
83
+ color: ${e=>e.theme.colors.primary};
84
+ }
85
+ z-index: 1;
86
+ `,Be=l(Ae)`
87
+ display: flex;
88
+ width: ${t.sp4};
89
+ height: ${t.sp4};
90
+ align-items: center;
91
+ justify-content: center;
92
+ `;function Xe({currentTenantId:e,tenants:i,isVendorsTabVisible:s,isZeniAccountEnabled:a,isTreasuryEnabled:r,isTreasuryPopupVisible:T,isChargeCardEnabled:$,rewardsConfiguration:I,selectedMenu:M,isTenantDropdownDisabled:P,isSettings:p=!1,isAiCfo:F=!1,isOnDashboard:V,isAiCfoAccessEnabled:Y,isNotificationsTabVisible:R,isSettingsFeatureEnabled:C,signedInUser:g,aiCfoView:U,currentTenant:A,christmasAnimationEnabled:x=!1,halloweenAnimationEnabled:w=!1,newYearAnimationEnabled:k=!1,thanksGivingAnimationEnabled:S=!1,notificationCountDetails:b,isExpenseAutomationEnabledForUser:z,isTaskManagerAccessEnabled:B,treasuryYieldPercentage:L,onNotificationIconClick:N,handleLogOutClick:H,handleMenuChange:Z,onZeniLogoClick:_,handlePopupClose:G,handleBackClick:v,handleCockpitClick:O,handleMyProfileClick:j,handleReferralsClick:W,handleTenantSelect:q,onDeleteChatSession:K,updateCurrentChatSessionId:Q}){const[d,J]=o.useState(p&&C),E=we.useRef("noAnimation"),D=ke(g),X=pe(),{useFeatureGate:c,useDynamicConfig:ee}=be(),{configValue:y}=ee(me.expenseAutomationEnablementZeniUsers),ne=y.expenseAutomationEnabledCompanies!=null&&Array.isArray(y.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],{isFeatureEnabled:ie}=c(u.isReimbursementCommentingEnabled),{isFeatureEnabled:te}=c(u.isBillPayCommentingEnabled),{isFeatureEnabled:ae}=c(u.isExpenseAutomationEnabledV2),{isFeatureEnabled:se}=c(u.isTreasuryCommentingEnabled),{isFeatureEnabled:oe}=c(u.isCheckingCommentingEnabled),le=fe(),re=()=>{E.current="slide-in-right-to-left",j&&j()},de=()=>{E.current="slide-in-left-to-right",d&&v&&v()};o.useEffect(()=>{p!==d&&J(p)},[p,d]);const m=b?.fetchStatus.fetchState==="Not-Started"||b?.fetchStatus.fetchState==="In-Progress",ce=E.current,ue=D||(ie||te||ae||se||oe)&&!X.loggedInUserRole.includes("investor_or_banker");return n.jsxs(Ve,{isOnDashboard:V,children:[n.jsxs(Ye,{children:[n.jsx(he,{onClick:_,halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:S,christmasAnimationEnabled:x,newYearAnimationEnabled:k}),n.jsx(ge,{currentTenantId:e??"",tenants:i,isDisabled:P,isZeniUser:D,expenseAutomationEnabledCompanies:ne,onTenantSelect:q})]}),n.jsx(Re,{children:n.jsx(xe,{className:ce,signedInUser:g,selectedMenu:M,currentTenant:A,isVendorsTabVisible:s,rewardsConfiguration:I,isSetting:d,isAiCfo:F,isAiCfoAccessEnabled:Y,aiCfoView:U,isZeniAccountEnabled:a,isTreasuryEnabled:r,isTreasuryPopupVisible:T,treasuryYieldPercentage:L,isChargeCardEnabled:$,isNotificationsTabVisible:R,isPerformanceEnabledForUser:le,isExpenseAutomationEnabledForUser:z,isTaskManagerAccessEnabled:B,onSelectionChanged:Z,onDeleteChatSession:K,updateCurrentChatSessionId:Q,onBackClick:de,onPopupClose:G})}),n.jsx(Se,{christmasAnimationEnabled:x}),n.jsxs(Ue,{children:[n.jsx(Ee,{signedInUser:g,onLogOutClick:H,onMyProfileClick:re,onReferralsClick:W,onCockpitClick:O,currentTenant:A,isSettingsFeatureEnabled:C}),ue?n.jsx(ye,{controller:b!=null,children:n.jsxs(ze,{isDisabled:m,onClick:m?void 0:N,"data-testid":"notification-icon",children:[n.jsx(Ce,{count:m?void 0:b?.count,type:"important",isLoading:m,style:{left:"12px"}}),n.jsx(Be,{})]})}):null]}),n.jsx(Fe,{halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:S,christmasAnimationEnabled:x,newYearAnimationEnabled:k})]},d.toString())}export{Xe as default};
@@ -0,0 +1,47 @@
1
+ import{y as U,J as G,ay as J,O as p,aX as v,V as t,bE as V,L as E,fA as b,dJ as S,x as d,o as k,ao as O,w as j,u as o}from"./index-CQD_nutl.js";import{n as l}from"./mui-Dk05P7Hv.js";import{Gt as N,Gu as X}from"./zeni-epic-state-ksdE_TIc.js";import"./sentry-B9mdFwQp.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="44247f17-ec4f-49fd-b2af-9a76f507d295",e._sentryDebugIdIdentifier="sentry-dbid-44247f17-ec4f-49fd-b2af-9a76f507d295")}catch{}})();const n={sectionRowGap:new d(o[4],o[8],o[8]),lastSectionPaddingBottom:new d(o[7],o[10],o[10]),iconWidthHeight:new d(20,o[4]),subtitleSectionWidth:new d(343,580,1200)},ue=({billpayApprovalView:e,remiApproverView:a,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:z,onSetupApprovalRulesRemiSectionClick:I})=>{const r=U(),i=G(),u=J(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:T}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:A}=a,{commonSetUp:C,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,y=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:L}=$,{billPaySetup:M}=B,{reimbursementSetup:W}=L,{setUp:s}=C,D=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",x=r.mode==="light"?new v(r.colors.brandColorJadeLight):new v(r.colors.brandColorJadeDark),_=N(c,u.loggedInUserRoleMap),H=X(c,u.loggedInUserRoleMap);return t.jsxs(Q,{children:[t.jsx(V,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:P}),t.jsx(Y,{windowSize:i,children:D?t.jsx(Z,{children:t.jsx(E,{size:"ExtraLarge",start:!0})}):t.jsxs(F,{children:[t.jsx(K,{windowSize:i,children:t.jsx(ee,{windowSize:i,children:w.infoText.approvalRules})}),t.jsxs(q,{windowSize:i,children:[_===!0&&t.jsx(b,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:M.approvalSubTitle,header:y.bills,icon:{element:t.jsx(S,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:x},onClick:z,status:m.length>0?T:void 0}),H===!0&&t.jsx(b,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:W.approvalSubTitle,header:y.reimbursements,icon:{element:t.jsx(S,{height:n.iconWidthHeight.valuePx(i)}),color:x},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:I,status:f.length>0?A:void 0})]})]})})]})},F=l.div`
2
+ width: 100%;
3
+ margin: auto;
4
+ display: flex;
5
+ justify-content: flex-start;
6
+ height: 100%;
7
+ overflow-y: auto;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ `,Q=l.div`
11
+ display: flex;
12
+ min-height: 100%;
13
+ flex-direction: column;
14
+ row-gap: ${k.sp3};
15
+ width: 100%;
16
+ background-color: ${e=>e.theme.colors.grey4};
17
+ `,Y=l.div`
18
+ display: flex;
19
+ height: 100%;
20
+ overflow-y: auto;
21
+ justify-content: center;
22
+ `,Z=l.div`
23
+ display: flex;
24
+ width: 100%;
25
+ height: calc(100vh - 110px);
26
+ flex-direction: row;
27
+ justify-content: center;
28
+ align-items: center;
29
+ background-color: ${e=>e.theme.colors.grey4};
30
+ `,q=l.div`
31
+ display: flex;
32
+ flex-direction: column;
33
+ row-gap: ${e=>n.sectionRowGap.valuePx(e.windowSize)};
34
+ `,K=l(O)`
35
+ display: flex;
36
+ justify-content: center;
37
+ align-items: center;
38
+ width: ${e=>n.subtitleSectionWidth.valuePx(e.windowSize)};
39
+ margin-bottom: ${k.sp5};
40
+ `,ee=l.div`
41
+ display: flex;
42
+ align-items: center;
43
+
44
+ color: ${e=>e.theme.colors.hero};
45
+ font-family: ${j.largeMedium.fontFamily};
46
+ ${j.standardRegular.css};
47
+ `;export{ue as default};
@@ -1,4 +1,4 @@
1
- import{V as i,O as f,db as k,d as z,b5 as P,u as w,b as S,a_ as T,dc as N,dd as I,p as h,o as x,am as q}from"./index-WR35fJ_g.js";import{a as C,P as H}from"./sentry-Bp-C2lie.js";import{n as j}from"./mui-Brvp17ej.js";import{l as v,_ as K,h as R,m as J,u as L}from"./chartTypes-DcNGo46a-8Wbx66DS.js";import{bm as D,Ft as B}from"./zeni-epic-state-C5X_gOJX.js";import{N as V,I as A,X as W,Y as _,J as G,K as M}from"./recharts-3nFTO0WQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7b2b299c-66b5-4adf-bddd-26f58da80e6f",e._sentryDebugIdIdentifier="sentry-dbid-7b2b299c-66b5-4adf-bddd-26f58da80e6f")}catch{}})();const Q=j.div`
1
+ import{V as i,O as f,dd as k,y as z,b5 as P,u as w,w as S,a_ as T,de as N,df as I,p as h,o as x,an as q}from"./index-CQD_nutl.js";import{a as C,P as H}from"./sentry-B9mdFwQp.js";import{n as j}from"./mui-Dk05P7Hv.js";import{l as v,_ as K,h as R,m as J,u as L}from"./chartTypes-xMrDPcl9-DKVI72OS.js";import{bm as D,Gd as B}from"./zeni-epic-state-ksdE_TIc.js";import{N as V,I as A,X as G,Y as W,J as _,K as M}from"./recharts-CgI_z3-h.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="313dda27-3d7b-4594-8eaf-15458b160b3f",e._sentryDebugIdIdentifier="sentry-dbid-313dda27-3d7b-4594-8eaf-15458b160b3f")}catch{}})();const Q=j.div`
2
2
  display: flex;
3
3
  `,U=j.div`
4
4
  flex: display;
@@ -15,10 +15,10 @@ import{V as i,O as f,db as k,d as z,b5 as P,u as w,b as S,a_ as T,dc as N,dd as
15
15
  width: 100%;
16
16
  height: 1px;
17
17
  background-color: ${h.neutralGrey3Dark};
18
- `,ee=({active:e,payload:o,barName:r})=>{const t=[];if(o!=null&&e===!0){const n=o.filter(m=>m.name==r)[0],c=n.payload,u=n.color,s=r!=null&&c.record[r]!=null?c.record[r].amount:void 0,d={amount:0,currencyCode:"",currencySymbol:""};let l;for(l in c.record){const m=c.record[l].amount;d.amount+=c.record[l].amount?.amount??0,d.currencyCode=m!=null?m.currencyCode:d.currencyCode,d.currencySymbol=m!=null?m.currencySymbol:d.currencySymbol}const a=J(r);t.push({barName:a,actual:s,color:u}),t.push({barName:f.getLocalizedStrings().chartCard.total,actual:d,color:h.brandColorPearl})}return t},re=({barLabelsWithValues:e})=>i.jsx(Q,{children:i.jsxs(U,{children:[i.jsx(E,{color:e[0].color,children:`${e[0].barName}: ${L(e[0].actual)}`}),i.jsx(Z,{}),i.jsx(E,{children:`${f.getLocalizedStrings().chartCard.total}: ${L(e[1].actual)}`})]})}),te=e=>{const o=ee({...e});return o.length===0?null:i.jsx(re,{barLabelsWithValues:o})},F=H.memo(te),Y=5;function oe(e){const o=N(e,(r,t)=>[r.amount?.amount??0,t]);return o.sort((r,t)=>t[0]-r[0]),o.slice(0,Y-1).reduce((r,t)=>({...r,[t[1]]:!0}),{})}function O(e){const o=[];for(const r in e)o.push(r);return o.sort((r,t)=>(e[t].amount?.amount??0)-(e[r].amount?.amount??0)),o}const ae=e=>{const o=e.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),r=[];return{recordByDurations:e.agingPeriods.map(t=>{const n={};e.agingBalances.forEach(s=>{const d=v(s.vendor?.name??"",t);n[d]={amount:s.apAgingBalances.find(l=>l.period===t)?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>Y){const s=oe(n),d=k(n,(b,y)=>s[y]===!0),l=k(n,(b,y)=>s[y]!==!0),a=Object.keys(l).reduce((b,y)=>b+(l[y].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??D.currencyCode,currencySymbol:l[m].amount?.currencySymbol??D.currencySymbol}};const p=O(d);return r.push(...p),{label:c,record:d}}const u=O(n);return r.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(r)}},ne=j.div`
18
+ `,ee=({active:e,payload:o,barName:r})=>{const t=[];if(o!=null&&e===!0){const n=o.filter(m=>m.name==r)[0],c=n.payload,u=n.color,s=r!=null&&c.record[r]!=null?c.record[r].amount:void 0,d={amount:0,currencyCode:"",currencySymbol:""};let l;for(l in c.record){const m=c.record[l].amount;d.amount+=c.record[l].amount?.amount??0,d.currencyCode=m!=null?m.currencyCode:d.currencyCode,d.currencySymbol=m!=null?m.currencySymbol:d.currencySymbol}const a=J(r);t.push({barName:a,actual:s,color:u}),t.push({barName:f.getLocalizedStrings().chartCard.total,actual:d,color:h.brandColorPearl})}return t},re=({barLabelsWithValues:e})=>i.jsx(Q,{children:i.jsxs(U,{children:[i.jsx(E,{color:e[0].color,children:`${e[0].barName}: ${L(e[0].actual)}`}),i.jsx(Z,{}),i.jsx(E,{children:`${f.getLocalizedStrings().chartCard.total}: ${L(e[1].actual)}`})]})}),te=e=>{const o=ee({...e});return o.length===0?null:i.jsx(re,{barLabelsWithValues:o})},Y=H.memo(te),F=5;function oe(e){const o=N(e,(r,t)=>[r.amount?.amount??0,t]);return o.sort((r,t)=>t[0]-r[0]),o.slice(0,F-1).reduce((r,t)=>({...r,[t[1]]:!0}),{})}function O(e){const o=[];for(const r in e)o.push(r);return o.sort((r,t)=>(e[t].amount?.amount??0)-(e[r].amount?.amount??0)),o}const ae=e=>{const o=e.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),r=[];return{recordByDurations:e.agingPeriods.map(t=>{const n={};e.agingBalances.forEach(s=>{const d=v(s.vendor?.name??"",t);n[d]={amount:s.apAgingBalances.find(l=>l.period===t)?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>F){const s=oe(n),d=k(n,(b,y)=>s[y]===!0),l=k(n,(b,y)=>s[y]!==!0),a=Object.keys(l).reduce((b,y)=>b+(l[y].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??D.currencyCode,currencySymbol:l[m].amount?.currencySymbol??D.currencySymbol}};const p=O(d);return r.push(...p),{label:c,record:d}}const u=O(n);return r.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(r)}},ne=j.div`
19
19
  width: ${e=>e.width}px;
20
20
  height: ${e=>e.height}px;
21
- `,se=({active:e,payload:o,mouseOverBarName:r})=>o?.find(t=>t.name===r)!=null&&r!=null&&e===!0?i.jsx(F,{active:e,payload:o,barName:r}):null;function je({report:e,width:o,height:r,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ae(e),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(M,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const p=g.record;return(p[a]?.amount!=null?p[a].amount:void 0)?.amount??0},stackId:"a",fill:le(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(ce,{chartData:s,barElements:d(),width:o,height:r,isDetailPage:t===!0,customToolTipContent:i.jsx(se,{mouseOverBarName:c})})}const ce=({chartData:e,barElements:o,customToolTipContent:r,width:t,height:n,isDetailPage:c})=>{const u=z(),s=K(e);return i.jsx(ne,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(V,{width:l,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?w[8]:w[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(A,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(W,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...S.extraSmallRegular.cssObject}}),i.jsx(_,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...S.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(G,{wrapperStyle:{zIndex:2},cursor:!1,content:r,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function le(e,o){const r=R(e),t=f.getLocalizedStrings().reports.aging.duration[r],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[e]!=null){const c=n[e].amount?.amount??0;let u=1;switch(I(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}const X=5;function ie(e){const o=N(e,(r,t)=>[r.amount?.amount??0,t]);return o.sort((r,t)=>t[0]-r[0]),o.slice(0,X-1).reduce((r,t)=>({...r,[t[1]]:!0}),{})}function $(e){const o=[];for(const r in e)o.push(r);return o.sort((r,t)=>(e[t].amount?.amount??0)-(e[r].amount?.amount??0)),o}const ue=e=>{const o=e.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),r=[];return{recordByDurations:e.agingPeriods.map(t=>{const n={};e.agingBalances.forEach(s=>{const d=v(s.customer?.name??"",t),l=s.arAgingBalances.find(a=>a.period===t);n[d]={amount:s.children.length>0?l?.totalBalance:l?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>X){const s=ie(n),d=k(n,(b,y)=>s[y]===!0),l=k(n,(b,y)=>s[y]!==!0),a=Object.keys(l).reduce((b,y)=>b+(l[y].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??B.currencyCode,currencySymbol:l[m].amount?.currencySymbol??B.currencySymbol}};const p=$(d);return r.push(...p),{label:c,record:d}}const u=$(n);return r.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(r)}},de=j.div`
21
+ `,se=({active:e,payload:o,mouseOverBarName:r})=>o?.find(t=>t.name===r)!=null&&r!=null&&e===!0?i.jsx(Y,{active:e,payload:o,barName:r}):null;function je({report:e,width:o,height:r,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ae(e),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(M,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const p=g.record;return(p[a]?.amount!=null?p[a].amount:void 0)?.amount??0},stackId:"a",fill:le(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(ce,{chartData:s,barElements:d(),width:o,height:r,isDetailPage:t===!0,customToolTipContent:i.jsx(se,{mouseOverBarName:c})})}const ce=({chartData:e,barElements:o,customToolTipContent:r,width:t,height:n,isDetailPage:c})=>{const u=z(),s=K(e);return i.jsx(ne,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(V,{width:l,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?w[8]:w[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(A,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...S.extraSmallRegular.cssObject}}),i.jsx(W,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...S.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(_,{wrapperStyle:{zIndex:2},cursor:!1,content:r,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function le(e,o){const r=R(e),t=f.getLocalizedStrings().reports.aging.duration[r],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[e]!=null){const c=n[e].amount?.amount??0;let u=1;switch(I(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}const X=5;function ie(e){const o=N(e,(r,t)=>[r.amount?.amount??0,t]);return o.sort((r,t)=>t[0]-r[0]),o.slice(0,X-1).reduce((r,t)=>({...r,[t[1]]:!0}),{})}function $(e){const o=[];for(const r in e)o.push(r);return o.sort((r,t)=>(e[t].amount?.amount??0)-(e[r].amount?.amount??0)),o}const ue=e=>{const o=e.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),r=[];return{recordByDurations:e.agingPeriods.map(t=>{const n={};e.agingBalances.forEach(s=>{const d=v(s.customer?.name??"",t),l=s.arAgingBalances.find(a=>a.period===t);n[d]={amount:s.children.length>0?l?.totalBalance:l?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>X){const s=ie(n),d=k(n,(b,y)=>s[y]===!0),l=k(n,(b,y)=>s[y]!==!0),a=Object.keys(l).reduce((b,y)=>b+(l[y].amount?.amount??0),0),m=Object.keys(l)[0],g=v("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??B.currencyCode,currencySymbol:l[m].amount?.currencySymbol??B.currencySymbol}};const p=$(d);return r.push(...p),{label:c,record:d}}const u=$(n);return r.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(r)}},de=j.div`
22
22
  width: ${e=>e.width}px;
23
23
  height: ${e=>e.height}px;
24
- `,me=({active:e,payload:o,mouseOverBarName:r})=>o?.find(t=>t.name===r)!=null&&r!=null&&e===!0?i.jsx(F,{active:e,payload:o,barName:r}):null;function ke({report:e,width:o,height:r,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ue(e),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(M,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const p=g.record;return(p[a]?.amount!=null?p[a].amount:void 0)?.amount??0},stackId:"a",fill:ge(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(he,{chartData:s,barElements:d(),width:o,height:r,isDetailPage:t===!0,customToolTipContent:i.jsx(me,{mouseOverBarName:c})})}const he=({chartData:e,barElements:o,customToolTipContent:r,width:t,height:n,isDetailPage:c})=>{const u=z(),s=K(e);return i.jsx(de,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(V,{width:l,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?w[8]:w[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(A,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(W,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...S.extraSmallRegular.cssObject}}),i.jsx(_,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...S.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(G,{wrapperStyle:{zIndex:2},cursor:!1,content:r,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function ge(e,o){const r=R(e),t=f.getLocalizedStrings().reports.aging.duration[r],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[e]!=null){const c=n[e].amount?.amount??0;let u=1;switch(I(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}export{je as L,ke as k};
24
+ `,me=({active:e,payload:o,mouseOverBarName:r})=>o?.find(t=>t.name===r)!=null&&r!=null&&e===!0?i.jsx(Y,{active:e,payload:o,barName:r}):null;function ke({report:e,width:o,height:r,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ue(e),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(M,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const p=g.record;return(p[a]?.amount!=null?p[a].amount:void 0)?.amount??0},stackId:"a",fill:ge(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(he,{chartData:s,barElements:d(),width:o,height:r,isDetailPage:t===!0,customToolTipContent:i.jsx(me,{mouseOverBarName:c})})}const he=({chartData:e,barElements:o,customToolTipContent:r,width:t,height:n,isDetailPage:c})=>{const u=z(),s=K(e);return i.jsx(de,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(V,{width:l,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?w[8]:w[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(A,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...S.extraSmallRegular.cssObject}}),i.jsx(W,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...S.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(_,{wrapperStyle:{zIndex:2},cursor:!1,content:r,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function ge(e,o){const r=R(e),t=f.getLocalizedStrings().reports.aging.duration[r],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[e]!=null){const c=n[e].amount?.amount??0;let u=1;switch(I(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}export{je as L,ke as k};