@zeniai/web-cockpit-ui 1.13.99-dev → 1.14.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/assets/{ACHDetailsPage-BzRxPzII-BUoGUcFj.js → ACHDetailsPage-CSnsNr1V-C8sshpTF.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CnGGNibb-C_6wJkfU.js → AIPerformancePage-Bp6NkJmc-e9Z0bvvn.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-BJM3RRKI-DG0a0jhE.js → AccountInfoPage-DUhICds8-CiMJuBY7.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BdDuyEg1-BIFPYnvP.js → AccountInfoPageContent-DrQmMqaW-D-pGlndX.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-BSUQGqdv-CbaBqJp_.js → AccountReconDetailsDrawerPage-D3xJm7fZ-B-KJQqRZ.js} +1 -1
  6. package/dist/assets/{AccountRow-C1XH7owI-rCAHD5JM.js → AccountRow-BZ3Sp_Zw-CJ70DMKN.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-BCNXpo4I-Dv0FV5qf.js → AccountsPromoCardStack-RNWvlSoJ-B7cBf7TC.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-Cr8ayMMm-CAi5TCHA.js → AddAddressForCardDrawer-BnlGRnfE-BmfXblOT.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-CdGCrkGQ-YM_InRmm.js → AddToWalletPage-BsDJbWcg-BABej0Dv.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-CJ2yR3HB-DBWsDRN2.js → AgingReportsPage-BzfKuv3U-BXigNJmY.js} +1 -1
  11. package/dist/assets/{AllUserItems-BgLsElXf-6OJKAnBf.js → AllUserItems-Dons5n56-CSrr9BPY.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-Bzr9B_m4-C577cR4G.js → ApAgingDetailPage-hyvhEbaW-DRDoBjV1.js} +1 -1
  13. package/dist/assets/{AppBasePage-C-TrULjy-Cjktl7Oe.js → AppBasePage-CoHyqNQo-DUeLFMOa.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-D_Rt7IHT-B58S7217.js → AppDrawerContent-ChAQrDWU-FfM2rFHs.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-cFNlSXp7-CJiF6Uy3.js → ApprovalRulesSettingsPage-DZ-tEUhJ-DFaEiFnc.js} +1 -1
  16. package/dist/assets/{ArAgingChart-CIuGvxjA-BfiNOx4a.js → ArAgingChart-B6sVwdsh-Cy2Xm4DE.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-CpoJ3qUN-DXImJQq3.js → ArAgingDetailPage-DlI47K7L-BJLL3ute.js} +1 -1
  18. package/dist/assets/{AttachmentView-CWTIRV_N-iJPjQ0Jv.js → AttachmentView-Cn3hQEkQ-C8_fLPcZ.js} +1 -1
  19. package/dist/assets/{BankAccountSection-Bv33dQx--DPPNn4wa.js → BankAccountSection-Dt3lb88O-mB9ZXibN.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-C2D8M8et-BZYwqReu.js → BankAccountWarningSection-HVZlzCAu-BiWEstnT.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-BJsgVci_-BfqyUxFV.js → BankConnectionsSettingsPage-sI4-KHqF-vff42RaM.js} +1 -1
  22. package/dist/assets/{BillDetailPage-Cmmj2505-DUsjiqml.js → BillDetailPage-DJ4f8xle-BzcgM8gC.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-Drnme01N-agmBkGoJ.js → BillPayApprovalRuleDetailPage-BHYWECuG-D5mroy7X.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-B8-fPh0t-D1TMaYTi.js → BillPayApprovalRulesPage-C060AuRe-DohL90us.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-Bwu1C994-BYao7Gje.js → BillPayPromoPage-D6RRu4W_-CVJd97RR.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-qgMzTWUT-DMU29sKp.js → BillPaySetUpPage-3J8PIprb-CuYD42S3.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-CgLWVqUV-DrEgRmI-.js → BillingSettingsPage-DdH-O80Y-pPJlggDO.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-BYglpdi7-Bt49SSoR.js → BillsBulkReviewDrawerPage-BzRPYgmH-a4yQ09Kg.js} +1 -1
  29. package/dist/assets/{BoxItem-D1pnPLjq-DNBj4ORn.js → BoxItem-eTxUGnXc-DEGyAd14.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-CCdSqWau-DQd7SBAf.js → BusinessVerificationPage-DXnmg7Ux-DiR97-Yd.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-XagW9IHF-BgPk9Kl2.js → CardNumberSubText-D5z3PEdv-TfOKuYrR.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-ClT-mA0b-D0-pBKlK.js → CashbackDetailPage-Bjdd2yr4-DGc-AePR.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-TgGKTt9H-DAh7Mh0_.js → ChargeCardDetailPage-C5dnGCGs-B_GekQHK.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-F4pOyHm1-BROj16dB.js → ChargeCardListPage-CKjT6WqS-D-Nczdej.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-fOBNuapk-Brvnc5__.js → ChargeCardListTable-B3e8phUk-DiZDTBqP.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-CqYrY31Q-BIhulsIe.js → ChargeCardPromoPage-BLnOo8KV-BWNbbvau.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-Dt2KUrNn-BWmPge4W.js → ChargeCardSetupPage-DVt_tQuX-DBTbA0O3.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-342g2YUw-Gr3iGTB4.js → ChargeCardStatementsPage-9q007HWr-CKdWO9bN.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-CXwPL8kw-UEsImlqI.js → ChargeCardUtils-CHHXg_Qi-rotMPtpr.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-DzWOML9n-DWzXfXiH.js → ChaseOverlay-Bc0GfIc6-BKMhjbPT.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-y6MUK_PP-VkaJefVM.js → CheckDepositDrawerPage-DBXKuV2a-BVWNkiGn.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-_pjChSxq-Bm2P88Mn.js → CollapsableReportTable-DlPsnWiz-BgJYLMD1.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-Bk25OKbY-Cuco64bk.js → CompanyOfficerDetailsSection-BQW5rZjd-LAAp3riI.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-YGgKMFIt-CbBze1Qh.js → CompanyPassportCard-CDnPUIJs-kNW2Sist.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-W6OOSrt2-DXL3woWg.js → CompanyPassportPage-CIjDFl5o-DiKSKnZV.js} +1 -1
  46. package/dist/assets/{CompleteProfile-DmlS5V9g-MawzMorj.js → CompleteProfile-B4nZ7vC_-DUT8CFcI.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-BjAeXOeV-B-f1O9Z0.js → ConfettiBurst-Ba2OiqXD-PZW-LJg7.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-CUgHRqcO-txgulEGm.js → CreateOrEditVendorPage-sF6U1fFH-h_FzxCgE.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BnKoC9rd-DvdxMeCg.js → CreditCardPaymentDrawerPage-mMyTBk4j-Do_Hbmgj.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-xRmYJOBa-BDTGo5w9.js → CreditCardPaymentPlgSection-D1iBVxR6-CulftYta.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-D7xkyJ_O-gmcTNXDD.js → CurrencySelectField-PFKAqHQu-ZDUDFF4D.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-B8hvreuI-cdqHWnA_.js → CustomerOnboardingActivationPage-B1_0-eof-DPD6i_JD.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DLvSrfgp-Dl1M1hZs.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D2JV6qSC-ftp5njnQ.js → CustomerOnboardingDetailPageSkeleton-Cc2MEctL-D9WjHu-r.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DCjr_ZdZ-B3viuxPC.js → CustomerOnboardingNoStepsPage-CfsBxwGr-CBm77dB_.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-DwmHUTO7-CIMwNFVb.js → CustomerOnboardingPage-BH4c57yX-mnDO_OzU.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-C5DkoaE--CrmZ2BRi.js → CustomerOnboardingProductSuitePage-QQlL3hKv-C24jQxXI.js} +1 -1
  58. package/dist/assets/{Dashboard-ec51ErlE-BnYR9nMW.js → Dashboard-BaJ9E50_-W4YLpDlo.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-DAnCJ2xg-BiUAov2Y.js → DashboardReportPage-q9hnDFuv-D8xATq04.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-CX4aEmZs-uFk9Z49D.js → DepositAccTransactionItem-BZcado4W-Cvv17u0C.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-BkXomWy6-CZGIGdu8.js → DepositAccTransactionListPage-CFzpTiWv-DYg4haVs.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-AGP6qXyp-D4qwdN0Y.js → DocumentSecurityBanner-Dk3o5_6F-DkgsyvkW.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-BEZvgUd1-CbwDrjfH.js → DomesticWireDetailsPage-mbgormGs-DH1HYmoC.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-EomDRwiC-mCUB5vOt.js → DownloadOverlay-CPS0X-o1-CcYRsm28.js} +1 -1
  65. package/dist/assets/{DrawerPage-B5OEKMI4-DSJ7SB0-.js → DrawerPage-JCR8KCkv-CuKJ3r9d.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-BOoMf0fq-Bn2aaoVN.js → EditPeoplePage-Bv-eRTlp-DbjGx_QH.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-BgBLQj8J-B-9qAii6.js → EditReimbursementDetailPage-QeCQ59Wr-B1DaQjiS.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-CUw-FC1B-BL9e1DtI.js → EntityDetailPage-CRu4kJBb-BUM-5Ad1.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-DBenChLK-5T_sQRA6.js → EntitySummarySection-B8ad0rxa-D1dY1RFP.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-C0xAAlYr-DVT8kN9q.js → ExpenseAutomationOverviewPage-Ckmim262-CpiKG0SO.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-Cr-LoKP0-DHH09_Dc.js → ExpenseAutomationPage-Crlshy4t-Dclbv0w8.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-DFbl-GwM-CoU-dmvV.js → ExpressPayPage-DD1ht-J--Cs6HCBXj.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-C1Nz_0MB-CaC-0lzI.js → FeaturePreviewPage-DGljBaN4-Beyk2ROJ.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-BnQU57f_-Ci0loPQG.js → FollowStepsSection-Bx8_JsRm-KARYVPf8.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-W75aTHM2-DWB0s9Bl.js → GlobalReviewListPage-BPV4E3tM-Blvi5-Np.js} +1 -1
  76. package/dist/assets/{HelpButton-DbXhEWQv-RGpqAgPI.js → HelpButton-pj034msF-B6DCPolv.js} +1 -1
  77. package/dist/assets/{InformationCardStack-CdZNbBs3-Cyi4rdjD.js → InformationCardStack-D5r7fGUK-BU8i999j.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-Ba6uqldL-Cyk3CVB8.js → InsightsCardStack-DSRF-w9c-BK5SwUpE.js} +1 -1
  79. package/dist/assets/{InsightsSection-DN_68y7y-DvD_BHiY.js → InsightsSection-jbXmsMC6-BDAvc4ru.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-BDu4Ezdm-DB2LUB9s.js → IntegrationsSettingsPage-Dcr2s_B6-CETHWkPu.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-T1JDEvyQ-l7I8MD0x.js → InternationalWireSwiftDetailsPage-C4zVgFLt-cqxaLSVC.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-Bi-RW_nx-CxfoSiYK.js → InternationalWireVerificationPage-Djedh5bX-DuGI028C.js} +1 -1
  83. package/dist/assets/{InviteFormPage-dAvzxrNO-DVwpO5WD.js → InviteFormPage-CY2f6v6c-BnQq2Ssl.js} +1 -1
  84. package/dist/assets/{InvitePageListView-CDQ72-kB-CILpqtPb.js → InvitePageListView-DI3F52Zy-BOXmv_3e.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-Bi2uNADO-B0PF13eR.js → InvitePeoplePage-BQSIcOiF-DoDwWsoY.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-DIOCGdUV-lK0Z6vhU.js → InvoiceUploadSection-B80zba2p-CV5v3NJw.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-SUJ7EQS_-Wkr9ykDm.js → IssueChargeCardPage-6-s-UWq_-BmpTWTnI.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-DbJlhAeE-D4ADpabq.js → LabeledAddressValue-DvHuoKA3-ByGrgctu.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-Dh-tCiqd-CopPVibc.js → LabeledAddressValueField-D_MiUMo1-BjhNea8N.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-C1XX6rxl-C9A1O0qF.js → LabeledControlledCheckBoxField-CCyeo-ZW-QI54iatM.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BKgRYDeH-B8PL3IPN.js → LabeledCreatableSingleSelectField-CZzezvdx-w9crem2Z.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-C4DeMshZ-BYsIaoaw.js → LabeledDocumentField-CmVMZUTj-BuxYwuRk.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-D9E4SrnM-DzEH6MvT.js → LabeledDropDownFormattedTextField-DwioWQ3H-BbnN_bg3.js} +1 -1
  94. package/dist/assets/{LabeledText-BoEcvuKP-k8wcEyHY.js → LabeledText-DCAW4nE7-C3Nzkpjg.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B249ciQ9-DY1vb70y.js → LabeledUserSingleSelectWithSubtitlesField-7h-ttahY-DxdjxYM6.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-ChPjLOoI-J1uAt1RC.js → LabeledZeniRolesDropDownField-D4BIq5HF-CExPFqT9.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-CXrjmH2S-Dnk2D8de.js → LinkJETransactionPage-DAQVDAXt-BCcVE_NM.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-Bjvrj9sJ-BamtSJNM.js → LowBalancePopup-D9Q_ALaf-YPbzufYS.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-Bd6iQTB7-Bmg10TH2.js → MagicLinkACHDetailsPage-ynvW5qdK-Dfq_Talq.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DqZdoA5j-v9SDRHBO.js → MagicLinkDomesticWireDetailsPage-4UCrDRCC-oSKfky7B.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-YTOaNpfo-wNaZUaIs.js → MagicLinkInternationalWireDetailsPage-C4lIsKUB-BAx7pouL.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DnyMLLDO-DducSy_q.js → MagicLinkSuccessPage-9c9Tn_qo-C0JuJ3fR.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-PNYU01lE-Cu4q1oL3.js → MagicLinkTitleSection-BrjFuMwS-DbXX5Zmf.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-BoQbZB45-BleE36WA.js → MailingDetailsSection-DgDMtsxQ-CC5C87iu.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-BAUk-2qO-5AU86Dir.js → MeetingCalenderPopup-CRSDBuLJ-OtqBz06L.js} +1 -1
  106. package/dist/assets/{Menu-7IqPbZfx-BOI4GSEy.js → Menu-BzQoNjkh-CC4M3xVx.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BaH8SIHb-Di5mkIOV.js → MyBankConnectionsSettingsPage-C45EhJK5-BjM7vg_f.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-ZbeFj953-C7dhx8a2.js → MyPendingActivationChargeCardListPage-CR_cld21-CqQWJQML.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-fAXtltF5-2HSJjYkF.js → MyProfileSettingsPage-Bd4BMq8O-BulPMjJp.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-BkkWEbzv-C2Txjo9f.js → NavBarWithPicker-Dn4oWjCF-D_OtLAU3.js} +1 -1
  111. package/dist/assets/{NavigationArrow-DJXwUqv_-CI993N6j.js → NavigationArrow-DDiJFL1e-CEPOCCmb.js} +1 -1
  112. package/dist/assets/{NavigationDots-BsApWf6Z-D7K8CQ08.js → NavigationDots-Cv-F19I9-JyWha_qz.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-YrzYOQOy-DOFeO2s9.js → NewGlobalMerchantPage-B7muJVCL-C-_hFtQd.js} +1 -1
  114. package/dist/assets/{NoDataChart-J6vinxLK-CANuvDB9.js → NoDataChart-D-NrGJT9-BjxfiOXh.js} +1 -1
  115. package/dist/assets/{NoDataTable-zEKE4E0y-DX-nLJUE.js → NoDataTable-rfVgRk3Q-CbLpBgvO.js} +1 -1
  116. package/dist/assets/{NotFoundPage-DBwRnuJL-w7RI5T6F.js → NotFoundPage-DfZN-1Pf-D7320uua.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-gVQQuPtr-CcYeo49L.js → NotificationSettingsPage-CZ7uvC_h-9yMpdDwX.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-BTyn2zk0-BWG1y5sn.js → NotificationsListConfig-D1qLw3pV-DUEWkOXF.js} +1 -1
  119. package/dist/assets/{NotificationsPage-CuoQ6qBG-NdbgEAOc.js → NotificationsPage-CkhbN-kU-DUBT3gqV.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-Dokik4eA-BV_HBJXa.js → OpExByVendorPage--OssjAU3-yE9eqIEn.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-GWXnlbZH-B19tGtSY.js → OverlayContainerPage-GWXnlbZH-Dfa5yZev.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-BdmWCTj8-C4FmKe0x.js → PandLWithForecastPage-ClndDOYh-SJAUsmw5.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DOyxWZZK-BaYX2ZxL.js → PaymentAccountSetupBillingAddressSection-C078sYd8-CcYNSWYx.js} +1 -1
  124. package/dist/assets/{PeoplePage-pW48j5jS-BUDMr71X.js → PeoplePage-CW_L4QmC-C34apYuj.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-DhzXKBe4-DJRvOoqH.js → PortfolioAllocationFormPage-DSjAD_xB-DhOLPL96.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-BxQSupSD-BYkmPDRZ.js → PortfolioDetails-BO6oRP5r-DF5-f3uH.js} +1 -1
  127. package/dist/assets/{ProductsCarousel-CDIDT4wn-Cl6WD0ah.js → ProductsCarousel-D-AotGP3-BDI9ItBj.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-CjvIBCH5-CV7Xi1JF.js → PromoBaseCards-BaRq2gW7-CaV0HA0Q.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-CtparEZI-gMCdxAEU.js → QBOConnectionDialog-TWp9ojWE-Cy7KiT6U.js} +1 -1
  130. package/dist/assets/{QBOSetupSection-52wnORpS-1VcVr3AK.js → QBOSetupSection-CAEVos7R-C63Jm--j.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-ByhxwHGf-B5L-zbQM.js → ReimbursementApprovalRuleDetailPage-DNvNDsYb-N5KhEeit.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-C3wvGX7S-CAQVRuoF.js → ReimbursementApprovalRulesPage-PP2Av_Fg-EsOEUCl-.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-BeDLEhZU-BZNph0_i.js → ReimbursementDetailPage-BxODrJT2-Bwz9_lA3.js} +1 -1
  134. package/dist/assets/{ReimbursementPromoPage-B6h1qMFN-DMm8WaTZ.js → ReimbursementPromoPage-CY07bEdH-C5I-oeX1.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-BmfWsBxE-CRVeNY4n.js → ReimbursementSetUpPage-KP5C3TD9-DpowlJOX.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CxgjodrK-CLnvhRRe.js → ReimbursementsBulkReviewDrawerPage-kmEhvHQX-BTSfrc32.js} +1 -1
  137. package/dist/assets/{ReloadCard-BrSevhYt-Ce0u7oQu.js → ReloadCard-BCOFjZZr-DP5t3AjN.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-DG_GBBVy-B9Q7ANPJ.js → ReportTableViewSelector-DRJq_coC-sj8tBpHh.js} +24 -24
  139. package/dist/assets/{ReportsPage-2LvSKAqc-BVEIvxpr.js → ReportsPage-SG40vbC5-DuN3nPIa.js} +1 -1
  140. package/dist/assets/{RevenueChart-3auWL4WN-cwAWUbMW.js → RevenueChart-Ca64TJCo-C7JT5Y2T.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-Ox0-qs0S-kHSqFRjZ.js → ReviewDetailsPage-BU-0bDd9-CEnRtiG5.js} +1 -1
  142. package/dist/assets/{ReviewOverlay-gTpho8SC-D-km8Xn_.js → ReviewOverlay-CL3CPnN_-DJyw7YBh.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-Q8E1C8-k-DTOrkXB0.js → RoleWithToolTip-B2SfhDfC-BsH1jXPJ.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DAmjCtuH-Bn15Lz-Y.js → ScheduleDetailsFixedAssetsPage-X38BPRbi-smp1BUXs.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-CU4XpNcz-C5OU6EgT.js → ScheduleDetailsPage-DXNHT3jy-Bb_D9sAt.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-CN2JHfpD-Bqr7i61k.js → ScheduleSequenceTable-DOoxwZ33-p2ENgYtx.js} +1 -1
  147. package/dist/assets/{ScreenRoutes-899kefCn.js → ScreenRoutes-mBDvymlT.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-brNfCxq1-pVl319_g.js → SetUpAccountSection-Dq7XPkje-B4S2qJMx.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-D6TOI6xl-NwY_48Gv.js → SetUpDefaultSection-Bwllgb3V-gis6MQyU.js} +1 -1
  150. package/dist/assets/{SignIn-BxOVyYlO-CK1OAlH0.js → SignIn-DNWtgNjX-C8wuYvhu.js} +1 -1
  151. package/dist/assets/{SignInScreen-DhZQp5XK.js → SignInScreen-BgkNpmQx.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-BQr0lhis-BHJLo8pl.js → SpendManagementListViewPage-BhkIACPN-C_P_vHC6.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-YRo21ObB-9U0HGy03.js → SpendManagementPerTabPage-BjOxRVbT-QjN-WWwS.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-DZoAUIl2-rrGVeOC5.js → SpendManagementSection-CiavvRPP-Cyla1JRL.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DoZz507k-COCtt4C7.js → SpendMgmtSetupAccountSection-CpLvxn91-Bns8ZC6q.js} +1 -1
  156. package/dist/assets/{StatementItem-rxYRmxgy-BqtDdZWd.js → StatementItem-DdCDaiNw-BqflqKk1.js} +1 -1
  157. package/dist/assets/{StatementsPage-DYWqJAfe-Bjpv0ZcA.js → StatementsPage-DeAIoSNr-B4PbbzA7.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-CgnPShSa-0iiBHdx9.js → StatusSwitcher-DRcsgcqk-Db747Alf.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-B9tuDWmi-DDJj95M0.js → SubTabSwitcher-DEu0w6xG-BaQek63u.js} +1 -1
  160. package/dist/assets/{SummaryCard-DWTm0Ibs-QlsWJnNR.js → SummaryCard-uv4lzlcb-jTjBnPZZ.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-CVX-2RUq-DBCo0vTM.js → TaskManagementPage-Cvajt_yE-BX1jbYU7.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-EZMj8FMO-io-gqh0I.js → TimeRangeSwitcher-I6PTIuko-BUYMhGzO.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcher-dIf_dX9W-DA1D01oe.js → TimeframeSwitcher-OwZhofpM-CUyJFXG7.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-DX_MIWBW-IBIePqKi.js → TimeframeSwitcherWithToggle-CrMpS9eg-BgL_SaLJ.js} +1 -1
  165. package/dist/assets/{TopExCard-BGysJqNM-DwrqkF7R.js → TopExCard-C0HId814-BwK4VDds.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-C2YT7JBn-BTdJebJy.js → TopExDetailPage-B_oju_VW-B3qGXHuw.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-CoguEap7-DMtn3_o5.js → TransactionDetailPage-9WsXXggv-U-sgOw7W.js} +1 -1
  168. package/dist/assets/{TransactionList-CcGXxT2s-DjKlPsIw.js → TransactionList-BxsEMjYy-Cx9_0hB7.js} +1 -1
  169. package/dist/assets/{TransactionListBig-m66L_Blu-D_t79BS-.js → TransactionListBig-DHqll412-CnrUfDIm.js} +1 -1
  170. package/dist/assets/{TransactionListPage-Txlc8xds-DqIUSnET.js → TransactionListPage-kGc1IJsq-BA0rAsyr.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-BJNirMDz-FhkRMfNU.js → TransactionVendorDetailPage-DwrZXzxo-DSTM2MWP.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-BnpmSf4G-CVvEvMJ4.js → TransferDrawerPage-CV8rT6Ls-DBr04qOP.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-UCekyhOR-ClC4ZJRO.js → TreasuryOverviewPage-5qcly3m5-CZlMDb2U.js} +1 -1
  174. package/dist/assets/{TreasuryPromoPage-BOa2LTL4-CZ2ctyns.js → TreasuryPromoPage-DSRfEWNK-CWMy8dns.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage-ja0CPbxg-Bsq1DVYU.js → TreasurySetupPage-CDhPN2Bb-W60yBR4S.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-Cv5lbQZJ-Nnq1nzZs.js → TreasuryStatementsPage-D8DDd_5Y-BY9qn6N_.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-5WaTmfJq-DNsnEAqs.js → TreasuryTaxLetterPage-B9fT9sak-SGsqSB1O.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-RRR4WW_v-DhXMr2l3.js → TreasuryTransferOrReviewPage-dNdO4rAi-BgLGp852.js} +1 -1
  179. package/dist/assets/{TrendChart-CoyqZdfU-Dxkh0wzy.js → TrendChart-BQuGBR1d-DuM7SMIf.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-CL-XhvBr-DkoirZMh.js → TrendWithTransactions-DqDVJ54f-Bp5ER0Hq.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-DB8jM1Ih-Bl4Ee7b-.js → UncategorizedAccountsMappingPage-BxfVIUoI-CerKzhMo.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-DhcDCI1c-BiTIWtB4.js → UnitIntegrationPage-CdZI78vH-DCu7SpTw.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-DTfiFcaF-59-uqojU.js → UploadAdditionalDocumentOverlay-DO8Wchkc-PSPxIv5t.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-BVlwb1dK-C2FmmHuq.js → Vendor2FAPopup--aencw-V-Ch78oHtc.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-DDgmMmEr-DMm0qbHo.js → VendorACHDetailsPage-BCPlUNfz-DHiqrH44.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-BrH2hVoE-LGpuwJo6.js → VendorDetailPage-CVJBUbZ2-CuXjC4CQ.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-BpOmtl89-Dqhsl0HL.js → VendorDomesticWireDetailsPage-DWW8h7s8-Byu-VmBD.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-Gs9lElUd-yVN80kjj.js → VendorFiling1099EditablePage-C8InkcfJ-YfFad-ml.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-DYR3H2ef-D3tj6_Lf.js → VendorFirstReviewPage-BDyNH-vU-BKLaPjFQ.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-D7udb20g-CK-6EJS2.js → VendorInternationalWireDetailsPage-C3nJ3Pt0-BC0OZ003.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BqG1zZ2i-_Ni6v2r1.js → VendorInternationalWireSwiftDetailsPage-C9H4QLT1-BMB_XjDV.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-Co0kKl0H-gTeO1NSE.js → VendorsAccountsSection-CGWJqmKQ-CjZSaorN.js} +1 -1
  193. package/dist/assets/{WarningsDrawerPage-BWXcJCDx-B4rdsaU5.js → WarningsDrawerPage-BxOxXMaW-GydpQDwQ.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-DUkBoD5J-iby_53mC.js → ZeniAccountDetailPage-DCAIPx-c-DUYkuLhN.js} +1 -1
  195. package/dist/assets/{ZeniAccountListViewPage-BipORlgg-C6bg8buU.js → ZeniAccountListViewPage-CDYYbdFb-C8nl1qd3.js} +1 -1
  196. package/dist/assets/{ZeniAccountNavBarPieces-B3o6oUCK-D-GfB7AL.js → ZeniAccountNavBarPieces-CcOiYS-H-Bj_hBtue.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-BBG0GlO4-BmjEjU3q.js → ZeniAccountPromoPage-Cfw0_0bd-BQu6DxQD.js} +1 -1
  198. package/dist/assets/{ZeniAccountSetupPage-B8rMMC04-BgqAt4Ew.js → ZeniAccountSetupPage-B7EJAqdM-Dodpdd1u.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-C0xdlTRq-BiudWK-l.js → ZeniCopyright-DEdrnsiw-D59Jixsy.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-DBLbQ7lj-DubLWjZO.js → ZeniTransferAmountSlider-DBXBirJi-B0Yoikn9.js} +1 -1
  201. package/dist/assets/{analyticsHelper-BLY5h0Fx.js → analyticsHelper-BWQZmr-f.js} +1 -1
  202. package/dist/assets/{analyticsHelper-Bru974EY-0oj_wEHH.js → analyticsHelper-w8iM5r14-B9QaLiMz.js} +1 -1
  203. package/dist/assets/{chartTypes-Catjpbws-BdIAO_NJ.js → chartTypes-B0MskeA2-B7uafHCG.js} +1 -1
  204. package/dist/assets/{commonDimensions-C-GkWv5y-LwUpsUBN.js → commonDimensions-BKJwd7tr-BQnReruf.js} +1 -1
  205. package/dist/assets/{detailCommon-Cu3vYgB3-Cq870J_S.js → detailCommon-B0KC7weQ-CwsP1PKi.js} +1 -1
  206. package/dist/assets/{downloadPdf-DNZP7qt1-BSmHs1j2.js → downloadPdf-D-MBiFpt-BC-Vei-1.js} +1 -1
  207. package/dist/assets/{index-BArxjGR7.js → index-CHAUm_f6.js} +27 -27
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BdT9wYk1-CsTc5yDn.js → mapLoadingInProgressToTreeNode-wdFfuF9A-SGdQPCKG.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DmZNefgA-mDeHKiwv.js → mapSectionWithAcOnlyToTreeNode-tV6QhZnt-BrM-Ksub.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-BgNip-wz-B7-N37YM.js → mapSpacerToTreeNode-WahUVvQq-CmA7s8_r.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-CBVm4tmc-BxZd5GgW.js → mapTimeframeBalancesToTreeNode-B6T9ekBs-BIh14cp8.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-Ce6wBQiE-V3YBY_IS.js → mapTimeframeBalancesToTreeNode-BibBSUgv-Ct2Em2-x.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-eRiGzvGN-BkBODAVp.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ndk0FkTh-Dmj9stz2.js} +1 -1
  214. package/dist/assets/{play-icon-DAuBi44S--rAkXTis.js → play-icon-DSOHLBMM-CTvYd7Zx.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-DammrRRq-CgY-avxa.js → toCOABalancesWithID-DxjnLUiu-BaBWoEX7.js} +1 -1
  216. package/dist/assets/{toChartData-B-OSTzWb-DJBiVtWc.js → toChartData-DGP41gut-DAlJi9Lz.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-CsGgr6lo-BBn1Zy3E.js → treasuryColorHelper-BExq29Np-DWPmU6Zk.js} +1 -1
  218. package/dist/assets/{uploadAttachment-BNscQzsM-DOOy1CaO.js → uploadAttachment-DrRDYvZb-DQwt71Ee.js} +1 -1
  219. package/dist/assets/{uploadReceipts-D80JLNY4-HKAJP_Iw.js → uploadReceipts-D80JLNY4-s-z5fHkW.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/CustomerOnboardingContainerPage-BoNrm4NC-Ccouasqa.js +0 -1
@@ -1,4 +1,4 @@
1
- import{u as h,j as r,W as a,Y as m,ah as j,M as w,a4 as l,aY as x,w as g,o as c,ai as C}from"./index-BArxjGR7.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{u as h,j as r,W as a,Y as m,ah as j,M as w,a4 as l,aY as x,w as g,o as c,ai as C}from"./index-CHAUm_f6.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:i,width:n})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
@@ -1,13 +1,13 @@
1
- import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C as P,a3 as be,o as n,bE as ye,bF as we,bG as _e,bH as $e,bI as ve,f as ce,bJ as Ce,n as p,w as ke,H as K,aY as je,a7 as Ne,q as Se,b0 as Ie}from"./index-BArxjGR7.js";import{b as f,f as de,n as d}from"./vendor-CnQcJ2Lu.js";import{W as F,R as Pe}from"./CollapsableReportTable-_pjChSxq-Bm2P88Mn.js";const Y=Z.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Fe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(Y),end_date:e.thisPeriod.endDate.format(Y)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Oe=e=>e!=null?{start_date:e.startDate.format(Y),end_date:e.endDate.format(Y)}:void 0;function De(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(Y):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Fe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Oe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=Z.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Ee=d.div`
2
- padding: 0 ${n.sp3} 0 ${n.sp3};
1
+ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C as P,a3 as be,o as a,bE as ye,bF as we,bG as _e,bH as $e,bI as ve,f as ce,bJ as Ce,n as p,w as ke,H as K,aY as je,a7 as Ne,q as Se,b0 as Ie}from"./index-CHAUm_f6.js";import{b as f,f as de,n as d}from"./vendor-CnQcJ2Lu.js";import{W as D,R as Pe}from"./CollapsableReportTable-DlPsnWiz-BgJYLMD1.js";const z=Z.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,De=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Oe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:De(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Fe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ao(e,c,n){const t=Z.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Oe(n)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:n.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Ee=d.div`
2
+ padding: 0 ${a.sp3} 0 ${a.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
5
- border-radius: ${n.sp1};
5
+ border-radius: ${a.sp1};
6
6
  display: flex;
7
7
  justify-content: space-between;
8
8
  align-items: center;
9
9
  position: relative;
10
- height: ${n.sp8};
10
+ height: ${a.sp8};
11
11
  cursor: pointer;
12
12
  `,Be=d(Se)`
13
13
  color: ${e=>e.theme.colors.primary};
@@ -16,14 +16,14 @@ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  width: 12px;
18
18
  height: 12px;
19
- margin: auto ${n.sp0};
19
+ margin: auto ${a.sp0};
20
20
  :hover {
21
21
  color: ${e=>e.theme.colors.primary};
22
22
  }
23
- `,Ae=e=>{const{value:c,onClick:a}=e,t=X();return o.jsxs(Ee,{onClick:a,children:[o.jsx(Be,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=F("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=F("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(O=>he({nestedClass:O,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},Ye=d.div`
23
+ `,Ae=e=>{const{value:c,onClick:n}=e,t=X();return o.jsxs(Ee,{onClick:n,children:[o.jsx(Be,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:n,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:n!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:a.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:n,parentNodeIDs:t}){const r=D("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:n,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const n=e.map((t,r)=>{const h=D("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(F=>he({nestedClass:F,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...n]}}function Re(e,c){Object.assign(e.config,c);const n=e.contentNodes;return n.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...n]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(n=>ue(n,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},ze=d.div`
24
24
  height: ${e=>e.height}px;
25
25
  width: 100%;
26
- `,ze=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:D})=>{const z=X(),H=ie(),[$,j]=f.useState(void 0),[T,w]=f.useState(!1),[M,E]=f.useState({}),[g,W]=f.useState(void 0),[B,v]=f.useState(r),G="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{w(!0),E(i),D?.(i,l,r==="account_group"?!0:void 0),_(i,l)},_=(i,l)=>{const m=V(i);for(const C of m.children)D?.(C.classId,l),_(C.classId,l)},V=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=V(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?D?.(l.classId,!0):D?.(l.classId,!1),E(l.classId)}};f.useEffect(()=>{T&&q(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:G,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!K(g,a)||!K(B,r)||T===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[J,Q]=f.useState(5),A=i=>{const l=i+p[6];Q(l)};return $!=null?o.jsx(Ye,{height:J,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Ne(z.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(H),right:oe.contentPaddingRight.value(H)},scrollPosition:b,onScroll:y,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},He=d.div`
26
+ `,He=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:n,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:F,onNodeCollapseToggled:U,onToggleCheck:O})=>{const H=X(),Y=ie(),[$,j]=f.useState(void 0),[T,w]=f.useState(!1),[M,E]=f.useState({}),[g,W]=f.useState(void 0),[B,v]=f.useState(r),G="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{w(!0),E(i),O?.(i,l,r==="account_group"?!0:void 0),_(i,l)},_=(i,l)=>{const m=V(i);for(const C of m.children)O?.(C.classId,l),_(C.classId,l)},V=i=>{let l=n.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=V(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?O?.(l.classId,!0):O?.(l.classId,!1),E(l.classId)}};f.useEffect(()=>{T&&q(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:G,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!K(g,n)||!K(B,r)||T===!0){const l=We(n,i);W(n),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[n,r,t]);const[J,Q]=f.useState(5),A=i=>{const l=i+p[6];Q(l)};return $!=null?o.jsx(ze,{height:J,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Ne(H.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(Y),right:oe.contentPaddingRight.value(Y)},scrollPosition:b,onScroll:y,nodeOpenStatus:F,onNodeCollapseToggled:U,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},Ye=d.div`
27
27
  position: relative;
28
28
  pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
29
  `,Ge=d.div`
@@ -44,13 +44,13 @@ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C
44
44
  color: ${e=>e.theme.colors.primary};
45
45
  }
46
46
  }
47
- gap: ${n.sp2};
47
+ gap: ${a.sp2};
48
48
  margin-top: 12px;
49
49
  align-items: center;
50
50
  `,qe=d(ve)`
51
51
  color: ${e=>e.theme.colors.hero};
52
- width: ${n.sp4};
53
- height: ${n.sp4};
52
+ width: ${a.sp4};
53
+ height: ${a.sp4};
54
54
  &:hover {
55
55
  color: ${e=>e.theme.colors.primary};
56
56
  }
@@ -61,10 +61,10 @@ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C
61
61
  justify-content: space-between;
62
62
  flex-direction: column;
63
63
  border: 1px solid ${e=>e.theme.colors.grey5};
64
- border-radius: ${n.sp1};
65
- box-shadow: ${e=>`${n.sp0} 2px ${n.sp2} ${e.theme.colors.dropShadowHover}`};
64
+ border-radius: ${a.sp1};
65
+ box-shadow: ${e=>`${a.sp0} 2px ${a.sp2} ${e.theme.colors.dropShadowHover}`};
66
66
  margin-top: 10px;
67
- padding-top: ${n.sp1};
67
+ padding-top: ${a.sp1};
68
68
  background: ${e=>e.theme.colors.grey5};
69
69
  `,te=d.div`
70
70
  display: flex;
@@ -78,13 +78,13 @@ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C
78
78
  -moz-appearance: none;
79
79
  appearance: none;
80
80
  display: inline-block;
81
- width: ${n.sp3};
82
- height: ${n.sp3};
81
+ width: ${a.sp3};
82
+ height: ${a.sp3};
83
83
  padding: 2px;
84
84
  background-clip: content-box;
85
85
  border: 1px solid ${e=>e.theme.colors.primary};
86
86
  border-radius: 50%;
87
- margin: ${n.sp0} ${n.sp2} ${n.sp0} ${n.sp2};
87
+ margin: ${a.sp0} ${a.sp2} ${a.sp0} ${a.sp2};
88
88
  cursor: pointer;
89
89
  }
90
90
 
@@ -100,7 +100,7 @@ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C
100
100
  background: ${e=>e.theme.colors.background};
101
101
  }
102
102
  `,se=d(ke)`
103
- height: ${n.sp6};
103
+ height: ${a.sp6};
104
104
  display: flex;
105
105
  justify-content: center;
106
106
  align-items: center;
@@ -120,14 +120,14 @@ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C
120
120
  `,Qe=d.div`
121
121
  width: 100%;
122
122
  height: 65px;
123
- `,ae=d.label`
123
+ `,ne=d.label`
124
124
  color: ${e=>e.theme.colors.primary};
125
125
  cursor: ${e=>e.disabled===!0?"default":"pointer"};
126
126
  `,Ke=d(ce)`
127
127
  display: flex;
128
128
  align-items: center;
129
- column-gap: ${n.sp2};
130
- margin-left: ${n.sp5};
129
+ column-gap: ${a.sp2};
130
+ margin-left: ${a.sp5};
131
131
  color: ${e=>e.theme.colors.hero};
132
132
  &:hover {
133
133
  cursor: pointer;
@@ -141,10 +141,10 @@ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C
141
141
  min-height: 1px;
142
142
  max-height: 1px;
143
143
  `,Ze=d(Ce)`
144
- width: ${n.sp3};
145
- height: ${n.sp3};
144
+ width: ${a.sp3};
145
+ height: ${a.sp3};
146
146
  `,eo=d(ce)`
147
- margin-left: ${n.sp5};
147
+ margin-left: ${a.sp5};
148
148
  margin-top: -12px;
149
149
  color: ${e=>e.theme.colors.hero};
150
- `,{reportViewSelector:I,common:{footer:ne}}=Z.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:O,isClassViewDisabled:U,downloadPage:D,showAccountGroups:z=!0,onResyncReports:H,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=X(),w=ie(),[M,E]=f.useState(!1),[g,W]=f.useState(r),[B,v]=f.useState({}),G=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=G(x.children,u)}),u),L=G(a,[]),[N,_]=f.useState(g==="classes"?h:L),V=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:z===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),Q=J.handleSubmit(()=>{E(!1),g==="classes"?O?.("classes",N):O?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),_([]);else{_(L);let u={};a.forEach(x=>{const S=F("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),E(!M);let s={};a.forEach(u=>{const x=F("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),_(L)),u===!0){const S=F("checkbox_and_name_only",[],s[0]);B[S]=!0,v(B),_(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=F("checkbox_and_name_only",[],s[0]);B[S]=!1,N.find(R=>R[0]===s[0])===void 0&&_(R=>[...R,s])}},m=()=>{E(!1),W(r),_(h)},C=()=>{$===!1&&H?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=F("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(He,{isDisabled:U??!1,children:[D===!0?o.jsx(Te,{value:q(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ge,{windowSize:w,children:[o.jsxs(Ve,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Ke,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Ze,{})]})}):null]}),M?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:Q,children:o.jsxs(Je,{width:k.width.value(w),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:z===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Xe,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$===!1&&j?o.jsx(eo,{children:ee(j)}):null,t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:B,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(w),height:k.height.value(w),animated:!0})]}),o.jsx(Qe,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:V,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(ze,K);export{no as c,ro as h};
150
+ `,{reportViewSelector:I,common:{footer:ae}}=Z.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:n,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:F,isClassViewDisabled:U,downloadPage:O,showAccountGroups:H=!0,onResyncReports:Y,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=X(),w=ie(),[M,E]=f.useState(!1),[g,W]=f.useState(r),[B,v]=f.useState({}),G=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=G(x.children,u)}),u),L=G(n,[]),[N,_]=f.useState(g==="classes"?h:L),V=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:H===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),Q=J.handleSubmit(()=>{E(!1),g==="classes"?F?.("classes",N):F?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),_([]);else{_(L);let u={};n.forEach(x=>{const S=D("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),E(!M);let s={};n.forEach(u=>{const x=D("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),_(L)),u===!0){const S=D("checkbox_and_name_only",[],s[0]);B[S]=!0,v(B),_(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=D("checkbox_and_name_only",[],s[0]);B[S]=!1,N.find(R=>R[0]===s[0])===void 0&&_(R=>[...R,s])}},m=()=>{E(!1),W(r),_(h)},C=()=>{$===!1&&Y?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};n.forEach(u=>{const x=D("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(Ye,{isDisabled:U??!1,children:[O===!0?o.jsx(Te,{value:q(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ge,{windowSize:w,children:[o.jsxs(Ve,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Ke,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Ze,{})]})}):null]}),M?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:Q,children:o.jsxs(Je,{width:k.width.value(w),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ne,{disabled:t!=="Completed",children:H===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Xe,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ne,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:n,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:B,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(w),height:k.height.value(w),animated:!0})]}),o.jsx(Qe,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ae.save,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:V,size:"small"},showCancel:!0,cancelBtn:{label:ae.cancel,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:a.sp3}})})]})})}):null]})})}const oo=de.memo(He,K);export{ao as c,ro as h};
@@ -1,4 +1,4 @@
1
- import{X as U,u as G,M as y,t as he,l as _,j as r,Y as k,be as fe,aX as me,aV as ge,C as v,o as C,a5 as _e,c as be,bf as Se,n as w,D as B,H as J,bg as we,a7 as Ce,aB as ye,a_ as xe}from"./index-BArxjGR7.js";import{b as P,f as K,n as b}from"./vendor-CnQcJ2Lu.js";import{m as z,l as Z}from"./analyticsHelper-Bru974EY-0oj_wEHH.js";import{h as Oe}from"./ReportTableViewSelector-DG_GBBVy-B9Q7ANPJ.js";import{a as Q,p as Re}from"./TimeRangeSwitcher-EZMj8FMO-io-gqh0I.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-DX_MIWBW-IBIePqKi.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-EomDRwiC-mCUB5vOt.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-_pjChSxq-Bm2P88Mn.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-DmZNefgA-mDeHKiwv.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CBVm4tmc-BxZd5GgW.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-eRiGzvGN-BkBODAVp.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-BdT9wYk1-CsTc5yDn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-dIf_dX9W-DA1D01oe.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-C1XH7owI-rCAHD5JM.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
1
+ import{X as U,u as G,M as y,t as he,l as _,j as r,Y as k,be as fe,aX as me,aV as ge,C as v,o as C,a5 as _e,c as be,bf as Se,n as w,D as B,H as J,bg as we,a7 as Ce,aB as ye,a_ as xe}from"./index-CHAUm_f6.js";import{b as P,f as K,n as b}from"./vendor-CnQcJ2Lu.js";import{m as z,l as Z}from"./analyticsHelper-w8iM5r14-B9QaLiMz.js";import{h as Oe}from"./ReportTableViewSelector-DRJq_coC-sj8tBpHh.js";import{a as Q,p as Re}from"./TimeRangeSwitcher-I6PTIuko-BUYMhGzO.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-CrMpS9eg-BgL_SaLJ.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CPS0X-o1-CcYRsm28.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-DlPsnWiz-BgJYLMD1.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-tV6QhZnt-BrM-Ksub.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-B6T9ekBs-BIh14cp8.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Ndk0FkTh-Dmj9stz2.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-wdFfuF9A-SGdQPCKG.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-OwZhofpM-CUyJFXG7.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-BZ3Sp_Zw-CJ70DMKN.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${C.sp2};
@@ -1,4 +1,4 @@
1
- import{u as A,j as a,M as S,X as de,Y as Ae,ai as Q,b5 as Te,n as E,b6 as J,au as ee,v as M,at as ae,aa as re,b7 as oe,b8 as ge,o as m,b9 as te,g,H as Fe,ba as pe,bb as me,C as xe,bc as fe,q as R,bd as F,ao as V}from"./index-BArxjGR7.js";import{b as P,f as le,n as x}from"./vendor-CnQcJ2Lu.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-Catjpbws-BdIAO_NJ.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-DammrRRq-CgY-avxa.js";import{V as Z}from"./toChartData-B-OSTzWb-DJBiVtWc.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
1
+ import{u as A,j as a,M as S,X as de,Y as Ae,ai as Q,b5 as Te,n as E,b6 as J,au as ee,v as M,at as ae,aa as re,b7 as oe,b8 as ge,o as m,b9 as te,g,H as Fe,ba as pe,bb as me,C as xe,bc as fe,q as R,bd as F,ao as V}from"./index-CHAUm_f6.js";import{b as P,f as le,n as x}from"./vendor-CnQcJ2Lu.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-B0MskeA2-B7uafHCG.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-DxjnLUiu-BaBWoEX7.js";import{V as Z}from"./toChartData-DGP41gut-DAlJi9Lz.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It,cF as le,cG as At,l as d,cH as Pt,cI as kt,Y as j,cJ as Mt,_ as k,cK as Bt,cL as Nt,cM as ke,cN as Me,cO as Be,v as G,cP as O,cQ as z,cR as _,g as S,cS as Rt,cT as Ft,cU as Et,cV as Lt,bs as Ne,o as n,a3 as Ot,n as c,r as zt,bo as _t,Q as Wt,h as Ut,cW as Ht,bH as Zt,q as se,f as de,cX as Yt,cY as Vt,aA as Gt,k as Kt,an as qt,Z as Xe,b4 as Xt,w as Qe,aN as Qt,cZ as Jt}from"./index-BArxjGR7.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-Bjvrj9sJ-BamtSJNM.js";import{S as W}from"./LabeledText-BoEcvuKP-k8wcEyHY.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:T,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=vt(),m=Tt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const v=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:A?.code=="approved"&&H?.code?H:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&H?.code?H:A,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Y=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",v?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(v?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(v?.code!=null?v.code==="draft"||A?.code==="approved":!0),b=P&&!it,ve=Oe(b,Y,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===T.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=v?.code??"draft",Ce=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},Te=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",v?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ye,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ye,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(Tn,{children:a.duplicateBillPayWarning}),t.jsxs(vn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsx(q,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(q,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(qe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(q,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(q,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(qe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Rt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==T.currencyCode?Ee.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,Y,s)}},primaryBtn:{label:Oe(b,Y,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):Te()},style:{width:ze(!0,P,b,Y,s)}},rightSideComponent:P&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
1
+ import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It,cF as le,cG as At,l as d,cH as Pt,cI as kt,Y as j,cJ as Mt,_ as k,cK as Bt,cL as Nt,cM as ke,cN as Me,cO as Be,v as G,cP as O,cQ as z,cR as _,g as S,cS as Rt,cT as Ft,cU as Et,cV as Lt,bs as Ne,o as n,a3 as Ot,n as c,r as zt,bo as _t,Q as Wt,h as Ut,cW as Ht,bH as Zt,q as se,f as de,cX as Yt,cY as Vt,aA as Gt,k as Kt,an as qt,Z as Xe,b4 as Xt,w as Qe,aN as Qt,cZ as Jt}from"./index-CHAUm_f6.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-D9Q_ALaf-YPbzufYS.js";import{S as W}from"./LabeledText-DCAW4nE7-C3Nzkpjg.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:T,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=vt(),m=Tt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const v=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:A?.code=="approved"&&H?.code?H:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&H?.code?H:A,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Y=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",v?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(v?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(v?.code!=null?v.code==="draft"||A?.code==="approved":!0),b=P&&!it,ve=Oe(b,Y,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===T.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=v?.code??"draft",Ce=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},Te=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",v?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ye,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ye,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(Tn,{children:a.duplicateBillPayWarning}),t.jsxs(vn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsx(q,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(q,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(qe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(q,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(q,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(qe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Rt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==T.currencyCode?Ee.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,Y,s)}},primaryBtn:{label:Oe(b,Y,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):Te()},style:{width:ze(!0,P,b,Y,s)}},rightSideComponent:P&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{X as B,j as e,Y as x,o as r,a3 as L,C as d,a2 as M,Q as C,h as W,g as s,q as y,b$ as R,c as I,w as j,az as D,n,ed as G,ax as A,jj as F,jk as H}from"./index-BArxjGR7.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},J={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return e.jsxs(X,{children:[e.jsx(V,{windowSize:l,children:e.jsx(Z,{children:e.jsx(_,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(q,{windowSize:l,children:[e.jsxs(K,{windowSize:l,children:[e.jsx(O,{children:e.jsx(Y,{windowSize:l,children:i})}),e.jsx(N,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(U,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>P(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:Q(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},Q=i=>i.reviewStatus.isLoading?e.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),X=t.div`
1
+ import{X as B,j as e,Y as x,o as r,a3 as L,C as d,a2 as M,Q as C,h as W,g as s,q as y,b$ as R,c as I,w as j,az as D,n,ed as G,ax as A,jj as F,jk as H}from"./index-CHAUm_f6.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},J={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return e.jsxs(X,{children:[e.jsx(V,{windowSize:l,children:e.jsx(Z,{children:e.jsx(_,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(q,{windowSize:l,children:[e.jsxs(K,{windowSize:l,children:[e.jsx(O,{children:e.jsx(Y,{windowSize:l,children:i})}),e.jsx(N,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(U,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>P(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:Q(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},Q=i=>i.reviewStatus.isLoading?e.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),X=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${i=>i.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{eI as h,eJ as x,j as t,bs as m,o as n,Y as o,M as g,e as j,w as p}from"./index-BArxjGR7.js";import{n as s}from"./vendor-CnQcJ2Lu.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
1
+ import{eI as h,eJ as x,j as t,bs as m,o as n,Y as o,M as g,e as j,w as p}from"./index-CHAUm_f6.js";import{n as s}from"./vendor-CnQcJ2Lu.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{a1 as H,l as me,hK as ee,g3 as fe,es as we,hL as Je,a as Me,hM as Ve,c3 as _e,c4 as Fe,j as a,M as be,F as Pe,bO as $e,bQ as Ne,bR as qe,a3 as Re,hN as ze,hO as Be,T as he,hP as Se,hQ as Ue,cg as We,X as Ge,i2 as He,g8 as re,n as R,g as De,C as Ce,c6 as Ke,hR as Xe,hS as Ye,hT as Qe,o as _}from"./index-BArxjGR7.js";import{b as m,n as B}from"./vendor-CnQcJ2Lu.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CN2JHfpD-Bqr7i61k.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const z={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=B.div`
1
+ import{a1 as H,l as me,hK as ee,g3 as fe,es as we,hL as Je,a as Me,hM as Ve,c3 as _e,c4 as Fe,j as a,M as be,F as Pe,bO as $e,bQ as Ne,bR as qe,a3 as Re,hN as ze,hO as Be,T as he,hP as Se,hQ as Ue,cg as We,X as Ge,i2 as He,g8 as re,n as R,g as De,C as Ce,c6 as Ke,hR as Xe,hS as Ye,hT as Qe,o as _}from"./index-CHAUm_f6.js";import{b as m,n as B}from"./vendor-CnQcJ2Lu.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-DOoxwZ33-p2ENgYtx.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const z={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=B.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{a1 as $,l as ie,hK as Y,g3 as Ae,es as Ie,hL as Je,a as Le,hM as we,c3 as Me,c4 as Ve,j as a,M as De,F as Pe,bO as Fe,bQ as $e,bR as _e,a3 as Ne,hN as ze,hO as Be,T as re,hP as pe,hQ as Re,cg as Ue,X as We,g8 as me,n as X,g as qe,C as Ke,hR as He,hS as Ge,hT as Qe,o as L}from"./index-BArxjGR7.js";import{b as D,n as P}from"./vendor-CnQcJ2Lu.js";import{i as Ye,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-CN2JHfpD-Bqr7i61k.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new Ke(160,160,160)},tt=P.div`
1
+ import{a1 as $,l as ie,hK as Y,g3 as Ae,es as Ie,hL as Je,a as Le,hM as we,c3 as Me,c4 as Ve,j as a,M as De,F as Pe,bO as Fe,bQ as $e,bR as _e,a3 as Ne,hN as ze,hO as Be,T as re,hP as pe,hQ as Re,cg as Ue,X as We,g8 as me,n as X,g as qe,C as Ke,hR as He,hS as Ge,hT as Qe,o as L}from"./index-CHAUm_f6.js";import{b as D,n as P}from"./vendor-CnQcJ2Lu.js";import{i as Ye,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-DOoxwZ33-p2ENgYtx.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new Ke(160,160,160)},tt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{X as T,u as K,j as t,hU as ie,M as R,hV as le,Q as oe,hW as ge,dK as fe,cO as we,v as A,hX as ye,hT as be,o as i,C as b,g as j,k as $e,T as re,dH as je,bO as Se,bR as ke,cg as Z,co as ee,cm as ve,hY as Q,hZ as Ce,ai as De,h_ as Me,bT as ze,h$ as Le,n as h,q as L,an as Oe,bQ as Ee,m as pe,cp as Ae,ag as ne,cA as Te,a3 as Ie,l as _,i0 as I,fH as Fe,_ as Je,i1 as Ve,a7 as G,cq as Be,az as Pe}from"./index-BArxjGR7.js";import{b as D,n as o,j as B}from"./vendor-CnQcJ2Lu.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=T(),a=K();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(qe,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ke,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Te,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ne({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(_.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
1
+ import{X as T,u as K,j as t,hU as ie,M as R,hV as le,Q as oe,hW as ge,dK as fe,cO as we,v as A,hX as ye,hT as be,o as i,C as b,g as j,k as $e,T as re,dH as je,bO as Se,bR as ke,cg as Z,co as ee,cm as ve,hY as Q,hZ as Ce,ai as De,h_ as Me,bT as ze,h$ as Le,n as h,q as L,an as Oe,bQ as Ee,m as pe,cp as Ae,ag as ne,cA as Te,a3 as Ie,l as _,i0 as I,fH as Fe,_ as Je,i1 as Ve,a7 as G,cq as Be,az as Pe}from"./index-CHAUm_f6.js";import{b as D,n as o,j as B}from"./vendor-CnQcJ2Lu.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=T(),a=K();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(qe,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ke,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Te,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ne({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(_.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
2
2
  position: relative;
3
3
  `,_e=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{u as Ut,X as en,l as K,kd as Ye,ke as tt,C as dt,kf as ud,kg as cd,kh as tn,ki as fd,kj as Tt,M as ir,kk as Bt,kl as qt,c as rn,o as kt,km as ld,kn as hd,aC as Ft,aD as Yl,jS as Lt,ko as dd,kp as pd,n as yn,kq as md,kr as Kl,ks as gd,kt as Jl,bg as Xl,D as zo,ku as vd,kv as yd,kw as _d,kx as Ql,ky as bd,kz as wd,kA as Sd,kB as Ed,kC as Rd,kD as Od,kE as Td,kF as xd,kG as Cd,kH as Ad,kI as Id,kJ as Pd,kK as kd,gj as Ld}from"./index-BArxjGR7.js";import{j as X,D as nn,S as Vt}from"./mui-C5LQ0bMa.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-CnQcJ2Lu.js";import{f as jd}from"./analyticsHelper-BLY5h0Fx.js";import{g as rt,u as Ie,f as Ke}from"./redux-ByjIRbhZ.js";import{a as Je,d as pt,e as Dd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-Cpaypegg.js";import{B as ze,a as Qe,b as Nd,c as Wo,d as $d,e as Yo,f as Ko,g as Md,h as Fd,i as zt,j as th,k as rr,l as an,m as Ud,n as Bd,o as Vd,p as zd,q as Gd,s as Hd,t as Zd,u as rh,v as on,w as ar}from"./crypto-BURQLTgV.js";import{p as Oe}from"./sentry-HDxG13yk.js";import{r as Wd}from"./lodash-Dq_mKlGB.js";import"./analytics-CBL_L82S.js";import"./liveblocks-sSQ9JElv.js";const Yd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Kd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ye.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ye.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(K.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(K.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(K.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(K.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Jd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Xd=Ke(Jd,Kd)(fd);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Dd(),[d,l]=Se.useState(!1),c=Ie(w=>K.getCompanyHealthMetricView(w)),f=Ie(w=>K.getCompanyManagementView(w)),{additionalChurnFactors:h}=Ie(w=>K.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:_,selectedCompanyId:m,localFormDataAndStatusByCompanyId:b}=c,p=Ie(w=>w.companyViewState.zeniUsers.fetchState),u=Ie(w=>w.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";c.fetchState==="Completed"?a(K.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(K.fetchCompanyHealthMetricView()),w(p)&&a(K.fetchZeniUsers()),w(u.fetchState)&&a(K.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(K.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ye.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:_.companyInfo.companyId,companyName:_.companyInfo.name,churnProbability:_.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[c.fetchState,_?.companyInfo.companyId,_?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||m!=null&&_!=null?X.jsx(nn,{anchor:"right",open:m!=null,PaperProps:{style:{width:Yd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(K.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(K.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(K.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(K.removeSelectedCompanyId()),analytics:Ye,urlSource:d,additionalChurnFactorsOptions:h})})}):null,X.jsx(Xd,{healthView:c,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},Qd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ep=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function tp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const rp={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??rp.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const np=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ip,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ip=ut.div`
1
+ import{u as Ut,X as en,l as K,kd as Ye,ke as tt,C as dt,kf as ud,kg as cd,kh as tn,ki as fd,kj as Tt,M as ir,kk as Bt,kl as qt,c as rn,o as kt,km as ld,kn as hd,aC as Ft,aD as Yl,jS as Lt,ko as dd,kp as pd,n as yn,kq as md,kr as Kl,ks as gd,kt as Jl,bg as Xl,D as zo,ku as vd,kv as yd,kw as _d,kx as Ql,ky as bd,kz as wd,kA as Sd,kB as Ed,kC as Rd,kD as Od,kE as Td,kF as xd,kG as Cd,kH as Ad,kI as Id,kJ as Pd,kK as kd,gj as Ld}from"./index-CHAUm_f6.js";import{j as X,D as nn,S as Vt}from"./mui-C5LQ0bMa.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-CnQcJ2Lu.js";import{f as jd}from"./analyticsHelper-BWQZmr-f.js";import{g as rt,u as Ie,f as Ke}from"./redux-ByjIRbhZ.js";import{a as Je,d as pt,e as Dd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-Cpaypegg.js";import{B as ze,a as Qe,b as Nd,c as Wo,d as $d,e as Yo,f as Ko,g as Md,h as Fd,i as zt,j as th,k as rr,l as an,m as Ud,n as Bd,o as Vd,p as zd,q as Gd,s as Hd,t as Zd,u as rh,v as on,w as ar}from"./crypto-BURQLTgV.js";import{p as Oe}from"./sentry-HDxG13yk.js";import{r as Wd}from"./lodash-Dq_mKlGB.js";import"./analytics-CBL_L82S.js";import"./liveblocks-sSQ9JElv.js";const Yd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Kd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ye.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ye.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(K.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(K.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(K.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(K.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Jd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Xd=Ke(Jd,Kd)(fd);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Dd(),[d,l]=Se.useState(!1),c=Ie(w=>K.getCompanyHealthMetricView(w)),f=Ie(w=>K.getCompanyManagementView(w)),{additionalChurnFactors:h}=Ie(w=>K.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:_,selectedCompanyId:m,localFormDataAndStatusByCompanyId:b}=c,p=Ie(w=>w.companyViewState.zeniUsers.fetchState),u=Ie(w=>w.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";c.fetchState==="Completed"?a(K.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(K.fetchCompanyHealthMetricView()),w(p)&&a(K.fetchZeniUsers()),w(u.fetchState)&&a(K.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(K.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ye.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:_.companyInfo.companyId,companyName:_.companyInfo.name,churnProbability:_.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[c.fetchState,_?.companyInfo.companyId,_?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||m!=null&&_!=null?X.jsx(nn,{anchor:"right",open:m!=null,PaperProps:{style:{width:Yd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(K.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(K.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(K.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(K.removeSelectedCompanyId()),analytics:Ye,urlSource:d,additionalChurnFactorsOptions:h})})}):null,X.jsx(Xd,{healthView:c,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},Qd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ep=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function tp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const rp={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??rp.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const np=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ip,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ip=ut.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;