@zeniai/web-cockpit-ui 1.13.89-qa → 1.13.90-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 (221) hide show
  1. package/dist/assets/{ACHDetailsPage-Dht0mfFW-CnBsuoV-.js → ACHDetailsPage-ppaaVv4t-BnOUfoFz.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-D8LI2uJ_-C7bPAaz5.js → AIPerformancePage-brocrTLA-C9EDr2D4.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Cw_Mdy7Z-BT4F8v2w.js → AccountInfoPage-BkqXbGUJ-DXuI8tNZ.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DadwVfBB-uFTPFlOX.js → AccountInfoPageContent-DOrQxiUF-2yx_ZhMt.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-mQx5-mCY-D5_BgiNu.js → AccountReconDetailsDrawerPage-i6rVi1gY-DVchfPsP.js} +1 -1
  6. package/dist/assets/{AccountRow-B4i2KTVu-C7LTIhFl.js → AccountRow-D9vDRsjv-uSOuzaD9.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-B2NngRd9-D-l2lLPy.js → AccountsPromoCardStack-BvFE5A3N-C__nnIqn.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-D-IznBH5-DmcdLsko.js → AddAddressForCardDrawer-BV2BSzaD-CBI5bfsC.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-DflLtoqk-Dsj4N3Cx.js → AddToWalletPage-DTEIuDRq-CzKzLxkn.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-z5SauZFW-CHiK0tNG.js → AgingReportsPage-B8iVxaQX-z0eVPQ8X.js} +1 -1
  11. package/dist/assets/{AllUserItems-Cs-QjNZz-DJ2K-Hgn.js → AllUserItems-BepRyHp7-6smxMTUs.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-lLcH4EB_-Dcjx6dO9.js → ApAgingDetailPage-DOObMUqB-DRL-pTDS.js} +1 -1
  13. package/dist/assets/{AppBasePage-jmR82AtE-WoKiJCRR.js → AppBasePage-Ob8EkU54-B4IzJNVZ.js} +1 -1
  14. package/dist/assets/AppDrawerContent-CNsKktFP-oEQQGdma.js +142 -0
  15. package/dist/assets/{ApprovalRulesSettingsPage-zl3t7M0D-CZboF3af.js → ApprovalRulesSettingsPage-Bn7LOelK-C_JBTy7y.js} +1 -1
  16. package/dist/assets/{ArAgingChart-B7_os9Eg-Bt__YkvI.js → ArAgingChart-C0hTtEmV-Cp3DCSeq.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-DPGrFIuw-FN4rS2zc.js → ArAgingDetailPage-C_E_xPwf-CoqFi7sc.js} +1 -1
  18. package/dist/assets/{AttachmentView-B0X31J2n-CacByoiK.js → AttachmentView-CATl3tNf-DCa2zXLn.js} +1 -1
  19. package/dist/assets/{BankAccountSection-BGfiGdYG-coKtzKmb.js → BankAccountSection-VSbZyxoY-BkprL32R.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-Cd5lC0dV-CUUz-Exs.js → BankAccountWarningSection-a39s142r-4WcZfRoK.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-DHJqJw74-BlTET1Yj.js → BankConnectionsSettingsPage-CBavGNdc-DWKqHO49.js} +1 -1
  22. package/dist/assets/{BillDetailPage-CVPyGkX2-fFTX-Ocr.js → BillDetailPage-uMG3JJPb-ClGgqpml.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-CPvu5b92-F8EjgziX.js → BillPayApprovalRuleDetailPage-Bmrg1Wxh-CFroqaxM.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-04rw5oF_-TIx7_YN6.js → BillPayApprovalRulesPage-BN21qPTb-BwOgIMfY.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-xnBNKyGo-X7TVMSec.js → BillPayPromoPage-DoP2oC8W-D-cHzeZ4.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-2FceZZW4-TCgBSFd3.js → BillPaySetUpPage-o-V-9aI5-DuW6yWFa.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-D2iVTCtE-Ci07KaQL.js → BillingSettingsPage-CX-rbxzB-D5hgrymw.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-sdzCq1Cx-J2uD0n-I.js → BillsBulkReviewDrawerPage-_qgURJjv-CemkDBxg.js} +1 -1
  29. package/dist/assets/{BoxItem-dOIVDQzt-NtTPp4CN.js → BoxItem-CHPfWPEF-lXs1y6iB.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-DaVB5XYz-DY9bdSBg.js → BusinessVerificationPage-YKJ-CZfb-BgJNO5ZA.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-CX7raaMz-Df6fKIc5.js → CardNumberSubText-dxYfM6ph-B1OZ5t3N.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-xKd1BcXA-DOKFrG0z.js → CashbackDetailPage-BfTC3IBm-BcRVF9pL.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-D-htyuB--b8ZuifKu.js → ChargeCardDetailPage-npqfreRG-D_PNn6ZE.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-BFEDq_hH-DLkp657c.js → ChargeCardListPage-Dbx1ymB9-DiXO1BWI.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-D0rr5rCb-DvYas5Ug.js → ChargeCardListTable-qk9tQ6Kb-DR0FaH4k.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-C4RyYN8x-CdqIlnGX.js → ChargeCardPromoPage-CsItH2IC-BEXKS9-8.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-DdabiH79-wT6fIrAy.js → ChargeCardSetupPage-D5LWY3-P-BB2kARlQ.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-fcVVhHeN-B3Z4WiQm.js → ChargeCardStatementsPage-vYbnt2WJ-CDBr97Hk.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-CHUMBmgR-BtDK4UTM.js → ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-kXvIXrLn-Lot7s9mg.js → ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DzZGbAGe-q_SkLLq0.js → CheckDepositDrawerPage-B1Qp-xbY-f-dhYQ0q.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-B7JqlhCA-DlVKUuhN.js → CollapsableReportTable-Dp1985is-CgJ_JGJs.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-Cd0QdDAc-Dw3rzd0i.js → CompanyOfficerDetailsSection-CGewbsKm-DBM7Hns2.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-Bhm76W7a-BPNSSuBF.js → CompanyPassportCard-Dp3a8GH8-qRGWLoZI.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-B6Urivf7-DubnzS8F.js → CompanyPassportPage-CS1LPj5f-CxHtTINk.js} +1 -1
  46. package/dist/assets/{CompleteProfile-Ch4TNwnb-BcsCdDEe.js → CompleteProfile-CJOsHnBa-DdCWBRuB.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-DxWLsUlB-D8Jx9ulS.js → ConfettiBurst-DX1P5VT_-C7tIIZfu.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-MjFD4wWW-C08D4uVX.js → CreateOrEditVendorPage-BL1BXGvy-Vx1XM-1z.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-CcZnGiIZ-BTa8I7UV.js → CreditCardPaymentDrawerPage-D6-R3DiA-ByQ_c4QS.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-DEV6AUvV-DY35HpaU.js → CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-iFR770y_-DUzSudBS.js → CurrencySelectField-CH65s5Fc-DGotu77i.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-O_lVI1Iw-CXCQatOK.js → CustomerOnboardingActivationPage-DCHbvIb1-4vnrfrOn.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-X6X9Yc-9-D6pVLXm5.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-WBhn2MmI-DQx0BLRy.js → CustomerOnboardingDetailPageSkeleton-Cz40bZgg-6UjJ2BJ9.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CmnwYeBe-Cb5_HOMT.js → CustomerOnboardingNoStepsPage-DrbkKOBx-C5bbYFj1.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-DUMb3HBt-C2qKigzd.js → CustomerOnboardingPage-CIbBaMcO-Dqym0Rf2.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DZ8c60qu-DtKq1SkE.js → CustomerOnboardingProductSuitePage-DyGs61vw-DLcQ1dQj.js} +1 -1
  58. package/dist/assets/{Dashboard-BqpjCXF4-DFInYnKb.js → Dashboard-beLswUHx-XoTiAJKU.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-pKEtfyyz-Bz_TuR11.js → DashboardReportPage-BM6TqjrJ-DQu7SOT2.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-CzhTsz8T-BR-YP5Rx.js → DepositAccTransactionItem-CfAjG3HH-COwwc_MG.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-BdBZvUQu-az9hs94h.js → DepositAccTransactionListPage-Cj1smNoP-CkdRHZge.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-CjDxLXR5-8PCnDbOc.js → DocumentSecurityBanner-BRFFDueV-stK3q2uU.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-Ckv29rd5-Bn35fCsZ.js → DomesticWireDetailsPage-BZ8jSo8r-Dcvy9KUR.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-9HCQzpew-D7JQlDlt.js → DownloadOverlay-Ly2ZesqA-D_S8bx9G.js} +1 -1
  65. package/dist/assets/{DrawerPage-BxA7btCQ-BmBzAlev.js → DrawerPage-BFIdjtOJ-BFnTHlQb.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-B9oW6E0C-DtLWviYu.js → EditPeoplePage-BPHt33f5-DjZUh9aC.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-2_Ugsfav-QZjM2qzI.js → EditReimbursementDetailPage-DJ_qNQbh-D_aBh5FK.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-Dv97bCUN-BwIIPL1U.js → EntityDetailPage-DZ9vXZci-DUGgDVnf.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-CAz28n_B-Dm9Mk9cN.js → EntitySummarySection-kCA6OJs0-CuvI5nJX.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CpVokJPL-BLbw9wgH.js → ExpenseAutomationOverviewPage-B9K2qPQi-BcMuOXVi.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-CFRiNGRE-DvXqANdy.js → ExpenseAutomationPage-LoGHiJzr-BnTXz0Ci.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-BsCQmXdG-Ds4YTF8o.js → ExpressPayPage-B12NaLXN-CGW5-zDn.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CnYlH8Tm-4-Rk1rI2.js → FeaturePreviewPage-D9_aRmPj-CvnK2Uy2.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-CvsH5sJq-Bd2bAxCx.js → FollowStepsSection-BL8sM4vS-D6HNdi5Y.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-CKbg3WRJ-HzlEwwYS.js → GlobalReviewListPage-DONc_BXP-jngzyZ2P.js} +1 -1
  76. package/dist/assets/{HelpButton-DmSTrp5G-BFcKSZj9.js → HelpButton-khTPylkl-CEL7Boo7.js} +1 -1
  77. package/dist/assets/{InformationCardStack-X52PXCzi-8yuUPTeZ.js → InformationCardStack-BtIMGsaQ-BRj2ZNHm.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-CXxA6hpf-BdxC_puc.js → InsightsCardStack-lzduh7aO-Crnd4D-1.js} +1 -1
  79. package/dist/assets/{InsightsSection-obWu95-o-ddL771fm.js → InsightsSection-q1QuO6Z4-1k_aUqAr.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-BFZjrnDu-RT-u4_SZ.js → IntegrationsSettingsPage-CpnXcxlz-ANVTxCp5.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-CywJ88_i-BnllM88s.js → InternationalWireSwiftDetailsPage-BXBsK560-i2JR8sEk.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-CjunyEiQ-Dr_TTQI0.js → InternationalWireVerificationPage-BrnMNFx7-CivrskR8.js} +1 -1
  83. package/dist/assets/{InviteFormPage-BaaFGzDE-Dw309kwf.js → InviteFormPage-DQTEQazA-CYIvBKP9.js} +1 -1
  84. package/dist/assets/{InvitePageListView-BJJQpITw-DCbx1IHW.js → InvitePageListView-C7CaDCYN-kxX6EM5-.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-7yKV1JuU-BGZXplYV.js → InvitePeoplePage-Ca0ZnNhV-4UVRRlzN.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-CjV8q6sM-CPl6gGHs.js → InvoiceUploadSection-Cm7WlMIS-Ds7UwHT_.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-BTloC5fY-BmArvej_.js → IssueChargeCardPage-B7w3Xky1-CF1rLLIM.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-C8xq-j7G-EY-L5iS4.js → LabeledAddressValue-B5Yv4nig-BmG4gsPH.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-CqhBSQ8f-CPXJhGgE.js → LabeledAddressValueField-BODlYe8J-C_77UpWi.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-D5A-8bnH-B_eYzZ1v.js → LabeledControlledCheckBoxField-BBrHodlx-ajZwZw2T.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CB34OT80-D0_gUm7_.js → LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-MyG-6WMu-I9bW2EFa.js → LabeledDocumentField-CIlbLPtO-DSLjsPoT.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DyvjlBIK-YdWOnQoJ.js → LabeledDropDownFormattedTextField-Dpt7UG-o-BPi_XfUF.js} +1 -1
  94. package/dist/assets/{LabeledText-CEbLfx4b-BpyGKldy.js → LabeledText-D0aPaE6r-DJ33Sqqy.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CDXChSPU-C7iYeJWK.js → LabeledUserSingleSelectWithSubtitlesField-CO-Owx5--C5GcoA_6.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CpZOSybd-HDTVv3mn.js → LabeledZeniRolesDropDownField-CcfvYWTB-FOsQ-M0q.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-CF2S7mlj-Dla9Sds0.js → LinkJETransactionPage-w2poqqTD-CRc8L88u.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-CI3FeJJc-DoCHgVjv.js → LowBalancePopup-BpFvPcb8-CmbXf1Gb.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-Hs-8X1gB-CdgF1Zp5.js → MagicLinkACHDetailsPage-DUyr5VX8-FvxaU41w.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-JY153fBS-CmyiWHQa.js → MagicLinkDomesticWireDetailsPage-CTA58UoF-CRGjJqP9.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C7H0tqh2-Se7gH2Nu.js → MagicLinkInternationalWireDetailsPage-DDQqyw69-MTxSeQ4l.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DrfXx_R1-BkjVELh_.js → MagicLinkSuccessPage-CKKAWryZ-Cm8AQCr_.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-GAlgtNgO-CZgxBgK0.js → MagicLinkTitleSection-CvW_f4xF-BDkWHabu.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-DwEajxFH-gm7_8xo8.js → MailingDetailsSection-Di5KwEqu-Di8UL6YK.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-CF-RTU9K-C-w6KW4_.js → MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js} +1 -1
  106. package/dist/assets/{Menu-DgxJQlbW-zbTlo91F.js → Menu-BOh_KLZu-BrkD9kYL.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-Bkn9hqAF-B9G2yjC0.js → MyBankConnectionsSettingsPage-BBQ0YN9M-BBihRuQw.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-Bg1r7PJb-w9vjeGWd.js → MyPendingActivationChargeCardListPage-DcXCxGj2-BY3uKh9u.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DFqIWGcr-8iPlbKIP.js → MyProfileSettingsPage-D-lTTFuP-D9kDcE-6.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-BJyEgvZP-JRV3h30X.js → NavBarWithPicker-CNBOk06R-D8yiRwFQ.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CUVFG2Pf-CNhlXp6h.js → NavigationArrow-B15b66TT-B9hYIhnI.js} +1 -1
  112. package/dist/assets/{NavigationDots-BDLMSply-BaF2Vbnh.js → NavigationDots-5fxvl-4e-BzJdpllk.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-Ck7DGlQi-DaQXRBCD.js → NewGlobalMerchantPage-BeP4W8rj-Dwyu3Pw7.js} +1 -1
  114. package/dist/assets/{NoDataChart-DMqFH96W-fv4cR3pY.js → NoDataChart-edFKx0zh-DIp9-BoP.js} +1 -1
  115. package/dist/assets/{NoDataTable-B8PHBrBF-BxwQxjpG.js → NoDataTable-41nH5trW-Brapb7lv.js} +1 -1
  116. package/dist/assets/{NotFoundPage-4JmEE0vS-TCqMAVLD.js → NotFoundPage-CRVGi6Xn-BHvH8jL8.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-D6YQunRL-Cl8KP6vm.js → NotificationSettingsPage-CiVAtoGY-B9kZWOsO.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-DZBF9h2L-CddnMsxc.js → NotificationsListConfig-BjItJJe9-l0BCgaPP.js} +1 -1
  119. package/dist/assets/{NotificationsPage-PjOFwF6H-jBs_ZASx.js → NotificationsPage-DuHUL5V8-CgYzIXTj.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BNNQdeqy-DIbTPTMn.js → OpExByVendorPage-D611nXIC-CqyYyP4C.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-C8DmmLmX.js → OverlayContainerPage-C0rUb6-5-DPaQcYgi.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-Cg3I1JPR-CF8tv3kA.js → PandLWithForecastPage-Cqab0euB-dzseIlDa.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BaNMRbqw-Dzu83wc2.js → PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js} +1 -1
  124. package/dist/assets/{PeoplePage-BRnDI6mc-CkUUGmH6.js → PeoplePage-MCCZAx4z-BnV0pX_P.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-BG5sY-R6-QuPw7wyD.js → PortfolioAllocationFormPage-Coa0Y4wN-CVL7-3BP.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-g9uKkfc0-CyCK7_Rg.js → PortfolioDetails-C9a0p99e-d06R_ouh.js} +1 -1
  127. package/dist/assets/{ProductsCarousel-DZmAO-Ad-CSV1kbrn.js → ProductsCarousel-B0fHKTa_-Bne7N-_V.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-B9AnaalQ-BzQ7sMZC.js → PromoBaseCards-BuCQJuXH-BcjVOmSJ.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-Bnhkqpjg-T0-tQjXm.js → QBOConnectionDialog-D-vB9dbo--0kkpUah.js} +1 -1
  130. package/dist/assets/{QBOSetupSection-CHXmbhAv-CPFzN4Vh.js → QBOSetupSection-CfficE5p-nLwRVoqN.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-B2zXkJz--CtVboWjL.js → ReimbursementApprovalRuleDetailPage-Cg_pVsAh-Baq7EYkc.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-HuTMMWVv-Bv-PkXOa.js → ReimbursementApprovalRulesPage-Dg1b0lJP-YhAdGh62.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-BLvwZrVh-AWvenrtq.js → ReimbursementDetailPage-CE_jx7cM-DEw3OdDA.js} +1 -1
  134. package/dist/assets/{ReimbursementPromoPage-D_mQJpBI-CzavY-06.js → ReimbursementPromoPage-MQpz5nNE-CLg8Hqif.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-FkxlkcbN-sL1c93dG.js → ReimbursementSetUpPage-BRjWHns_-BSdXzytm.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Oqy1_VEa-4Bwv7-2r.js → ReimbursementsBulkReviewDrawerPage-wPNRkXt8-DoNrAJRB.js} +1 -1
  137. package/dist/assets/{ReloadCard-DXOUba_M-Ds_JhQAa.js → ReloadCard-D5woGDxx-DS9HJ3wy.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-CHN0DsMB-BpJxSZpu.js → ReportTableViewSelector-Bc5xUtnG-pW3txVQ2.js} +1 -1
  139. package/dist/assets/{ReportsPage-FPxKx4-a-DjcS-PTA.js → ReportsPage-J8DrZz78-Bf6sj4--.js} +1 -1
  140. package/dist/assets/{RevenueChart-L0b_usU7-DR3KGky3.js → RevenueChart-CS0JmijO-BqFQGtoh.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-BNpQBWoS-DvQQRITm.js → ReviewDetailsPage-C7RbpKwU-C9iDaLL8.js} +1 -1
  142. package/dist/assets/{ReviewOverlay-DDNAl3b3--_jFgC00.js → ReviewOverlay-BwgzcM9d-CSY6hmMy.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-B-ODIDAN-CfZSdhdT.js → RoleWithToolTip-DkeT6zjW-DmUDvRC_.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DqZ58bn4-Bmf0Mrw_.js → ScheduleDetailsFixedAssetsPage-BzZkVg7T-c2tjnpKQ.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-BASxSK8V-C3IBkebO.js → ScheduleDetailsPage-DiXwmlk8-t0I7MASB.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-6xfi8GG9-Dudg_N2j.js → ScheduleSequenceTable-CSxFNhoR-D9UFT3Zm.js} +1 -1
  147. package/dist/assets/{ScreenRoutes--V--Mqce.js → ScreenRoutes-xLzXCTox.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-pi1sH7b5-EagMxPw8.js → SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-BpL2WnED-CgicHaOy.js → SetUpDefaultSection-D4FafmO5-CcuY4gpp.js} +1 -1
  150. package/dist/assets/{SignIn-Bijj9JoA-BL3nNivc.js → SignIn-CAmRcuqx-CXf8JU8h.js} +1 -1
  151. package/dist/assets/{SignInScreen-ZhSf5Gda.js → SignInScreen-CEfXit7t.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-D5QPI34r-BNgi2lsY.js → SpendManagementListViewPage-DdpJprAd-BHEK7wRP.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-BtYyuusT-B8XojjH0.js → SpendManagementPerTabPage-D2Ri2q6S-BZOgnmqs.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-D_HyfwAe-W9LXfSod.js → SpendManagementSection-CisJALAC-zKC9aL_a.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-B4wik5Ee-CYGTF_Jh.js → SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js} +1 -1
  156. package/dist/assets/{StatementItem-BNQblVLa-CI5E679I.js → StatementItem-BOq_DDMZ-VgE7gIr3.js} +1 -1
  157. package/dist/assets/{StatementsPage-_-cg9582-Dtto8qBP.js → StatementsPage-C9WOCLSj-lgfYmMKh.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-D-0rNVEI-NEMJF-Fs.js → StatusSwitcher-CofdCR_K-DYsfjilX.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-D_djwADF-8B_A3mRF.js → SubTabSwitcher-BPVG5BHS-C6Ng45Yx.js} +1 -1
  160. package/dist/assets/{SummaryCard-0WkhoBZC-CFhYiVOj.js → SummaryCard-D-me4TrL-C69v2luu.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-Dwna66e0-DX_b0Y9q.js → TaskManagementPage-BSmG6YR2-BRBZRYl9.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-C_XduWs4-DjVrPo4a.js → TimeRangeSwitcher-BK7gGqaa-li6QV9p5.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcher-rcx5z-sh-xZ8efuWW.js → TimeframeSwitcher-SD5_8TCp-DcEUsFuS.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-Bvkq6Qa--CJudW9kF.js → TimeframeSwitcherWithToggle-BwvVsB_p-CoKIqOrx.js} +1 -1
  165. package/dist/assets/{TopExCard-J5ItU1Wy-ozEfFcFX.js → TopExCard-CDgcQKGp-G2-ryp7z.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-Lqg8jkw2-CMSFHr_S.js → TopExDetailPage-CXiEe14r-DrI7SLfC.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-jXKnnUTd-DaT9dird.js → TransactionDetailPage-IJyZF-Z_-ssTdABCq.js} +1 -1
  168. package/dist/assets/{TransactionList-BVJHbP4d-DVlkxieO.js → TransactionList-C34ivmk5-BL7wpE6F.js} +1 -1
  169. package/dist/assets/{TransactionListBig-CUi7KfHo-CwYRqoNl.js → TransactionListBig-qruiU0xy-4hBLzp6P.js} +1 -1
  170. package/dist/assets/{TransactionListPage-BFYQMXP7-BOyJF2h0.js → TransactionListPage-C31U97xd-B7MDVBJ8.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-Cc45iBaC-FtcEzLID.js → TransactionVendorDetailPage-DZsvH-GM-CHoVBuA8.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-D0eKdLeA-D3SZSjs8.js → TransferDrawerPage-DC5q2Zpv-Bbx0ZiKK.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-C-tdus29-BcdjcYh9.js → TreasuryOverviewPage-DSBqawrH--EJITXP0.js} +1 -1
  174. package/dist/assets/{TreasuryPromoPage-Cohb5lP7-Dw1uUpDf.js → TreasuryPromoPage-D6WSBxgD-BYq_YoGm.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage-DS2_m-SO-D0FYRAVS.js → TreasurySetupPage-BgSq4D0a-BeLJ_DJT.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-DooqXGAQ-DLBrm-yQ.js → TreasuryStatementsPage-Dj9RAujO-BX1C5lYD.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-hpQxSwqV-Cff1AkiV.js → TreasuryTaxLetterPage-Dw6tL_j9-BVOoGBCD.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-LCmwI3GX-D7wV6N1-.js → TreasuryTransferOrReviewPage-cBHznYnK-1UcbcZaf.js} +1 -1
  179. package/dist/assets/{TrendChart-N85Ktah2-D9qomAET.js → TrendChart-dARoUu-T-CjrTnbAe.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-Cm8gWBLF-CBtN5wGl.js → TrendWithTransactions-BOGQK2Zt-itTZBsuV.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-DF2hKM1m-DGh82Kix.js → UncategorizedAccountsMappingPage-Ci4VHOLB-CZTpXCGM.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-DXYXOU32-CBbLGDyb.js → UnitIntegrationPage-DSMTzyKA-DnkdzVNG.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-ed-RjMyM-BcVk5T-x.js → UploadAdditionalDocumentOverlay-CBpLz-gk-DUe20w1p.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-CNiCYT5L-sjNaJfCv.js → Vendor2FAPopup-Be7OBE4e-Cos9XGLx.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-DfERI3o4-DY5DI5Ho.js → VendorACHDetailsPage-LvWgxsF7-BpMJ6WbJ.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-BYEJTlBT-CyNQBknP.js → VendorDetailPage-C-qpa1GC-C0r4HDge.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-Cvje85xW-D0rUK_Rq.js → VendorDomesticWireDetailsPage-Ckoq2I8V-BwkAhyAi.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-Brjs_rAW-BXsSYmKk.js → VendorFiling1099EditablePage-WZMwLILQ-BqoTTIiC.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-CjmWNXBj-dDyEbMtV.js → VendorFirstReviewPage-DNhp59d9-D_f9l4B9.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-CRPZSizn-BWolRCcT.js → VendorInternationalWireDetailsPage-DuP916gU-COYahX1d.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DgOKhTmI-DrUbwSgd.js → VendorInternationalWireSwiftDetailsPage-BCIC6mrJ-BI-zVOHZ.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CdrVkoqQ-mRqd22rT.js → VendorsAccountsSection-C4q6FPlB-C6cNo2_u.js} +1 -1
  193. package/dist/assets/{WarningsDrawerPage-vVdVeMGb-BEfGcvIh.js → WarningsDrawerPage-C162biV8-pPVOEtpH.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-DzA2-ZfY-gCRDLMYV.js → ZeniAccountDetailPage-C3NnXuFp-CXwXsDQ1.js} +1 -1
  195. package/dist/assets/{ZeniAccountListViewPage-BjOzn-pL-BqCKWwnc.js → ZeniAccountListViewPage-Cn7rYnlu-DTOPnL32.js} +1 -1
  196. package/dist/assets/{ZeniAccountNavBarPieces-C4QCZKVg-qs7wRelN.js → ZeniAccountNavBarPieces-DHYLxQKr-DoTCX7_F.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-CojH6h6Y-DgTiFWUV.js → ZeniAccountPromoPage-BGyyQP4l-B98KmCaD.js} +1 -1
  198. package/dist/assets/{ZeniAccountSetupPage-BQ4BSW6F-CXA8E3wm.js → ZeniAccountSetupPage-CIh0isMw-lFqJMWg0.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-DZ-h_Rou-DbMET3fd.js → ZeniCopyright-B83zWEf0-19q3_mPy.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-CDH-_8b0-CyTrsjPs.js → ZeniTransferAmountSlider-CPg3o4xG-BlMvJPot.js} +1 -1
  201. package/dist/assets/{analyticsHelper-C8SgK0SS.js → analyticsHelper-CD5PHV67.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DqZXz5oK-B0yimKwh.js → analyticsHelper-DlYWxxhD-DdeYfQh2.js} +1 -1
  203. package/dist/assets/{chartTypes-BrP58mNO-C1TmCcpt.js → chartTypes-DueLK3Wl-B3lGAHMU.js} +1 -1
  204. package/dist/assets/{commonDimensions-C9IpJAVN-C85_2wgw.js → commonDimensions-D4uH020E-szItJUN9.js} +1 -1
  205. package/dist/assets/{detailCommon-nFSW0gvc-BWw17m2N.js → detailCommon-D5qKBZdS-CPasfcVD.js} +1 -1
  206. package/dist/assets/{downloadPdf-CYD5QftD-Dp-LHWQY.js → downloadPdf-s4pLtuS_-CF3EQD3j.js} +1 -1
  207. package/dist/assets/{index-T4e21nnZ.js → index-DoFw58Mw.js} +107 -107
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-Dj9DvcOS-CF4kQvCc.js → mapLoadingInProgressToTreeNode-M0QN8LkC-3yQrrz5g.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bw9kw0FP-CSXp7Z6U.js → mapSectionWithAcOnlyToTreeNode-CrtVdHui-CnnfThO_.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-CJfnsOmt-CRNfRZzT.js → mapSpacerToTreeNode-yPPIJHBw-D3Gjllyb.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-BJdFcHRm-Dw1vJzex.js → mapTimeframeBalancesToTreeNode-px916zpo-rIOc1Hnu.js} +1 -1
  212. package/dist/assets/{play-icon-C1_v_oqQ-aBksrrtg.js → play-icon-Bih37F_s-C73Mu05H.js} +1 -1
  213. package/dist/assets/{toCOABalancesWithID-CYXJAMXX-yZCX9bGP.js → toCOABalancesWithID-CAhfOfUa-CUvT0aen.js} +1 -1
  214. package/dist/assets/{toChartData-oAAd1YDY-C3bZ9kal.js → toChartData-BicnbT0F-BAKhPkjP.js} +1 -1
  215. package/dist/assets/{treasuryColorHelper-BClHzQle-CJL-S_JM.js → treasuryColorHelper-A_YlwvaQ-YLNVEYZe.js} +1 -1
  216. package/dist/assets/{uploadAttachment-Bi2HYlA8-Bl8-k7IC.js → uploadAttachment-DVoWdoWD-RtUqrYnb.js} +1 -1
  217. package/dist/assets/{uploadReceipts-Buvz7DfG-D7suivjs.js → uploadReceipts-Buvz7DfG-XWftDYl6.js} +1 -1
  218. package/dist/index.html +1 -1
  219. package/package.json +4 -4
  220. package/dist/assets/AppDrawerContent-BjVgRQD8-C8F7bkE1.js +0 -116
  221. package/dist/assets/CustomerOnboardingContainerPage-DY7-75zX-DXGGb3sk.js +0 -1
@@ -1,4 +1,4 @@
1
- import{u as h,j as r,V as a,Y as m,an as j,M as w,a8 as l,bJ as x,w as g,o as c,ao as C}from"./index-T4e21nnZ.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(x,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-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,V as a,Y as m,an as j,M as w,a8 as l,bJ as x,w as g,o as c,ao as C}from"./index-DoFw58Mw.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(x,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-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:n,width:i})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}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,4 +1,4 @@
1
- import{u as Q,X as ie,aV as me,a as fe,j as o,n as ge,M as X,bD as ee,F as xe,C as F,a7 as be,o as a,bE as ye,bF as we,bG as _e,ah as $e,bH as ve,m as ce,bI as Ce,p,w as ke,H as K,bJ as je,ab as Ie,s as Se,b0 as Ne}from"./index-T4e21nnZ.js";import{b as f,f as de,n as d}from"./vendor-CnQcJ2Lu.js";import{r as O,a as Fe}from"./CollapsableReportTable-B7JqlhCA-DlVKUuhN.js";const W=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Pe=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}: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(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Pe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ao(e,c,n){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(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`
1
+ import{u as Q,X as ie,aV as me,a as fe,j as o,n as ge,M as X,bD as ee,F as xe,C as F,a7 as be,o as a,bE as ye,bF as we,bG as _e,ah as $e,bH as ve,m as ce,bI as Ce,p,w as ke,H as K,bJ as je,ab as Ie,s as Se,b0 as Ne}from"./index-DoFw58Mw.js";import{b as f,f as de,n as d}from"./vendor-CnQcJ2Lu.js";import{r as O,a as Fe}from"./CollapsableReportTable-Dp1985is-CgJ_JGJs.js";const W=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Pe=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}: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(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Pe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ao(e,c,n){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(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
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};
@@ -1,4 +1,4 @@
1
- import{X as W,u as G,M as y,y as le,l as _,j as c,Y as k,bf as de,aY as pe,aW as ue,C as B,o as C,a9 as he,e as fe,bg as me,p as w,D as A,H as K,bh as ge,ab as _e,b4 as be,a_ as Se}from"./index-T4e21nnZ.js";import{b as T,f as J,n as g}from"./vendor-CnQcJ2Lu.js";import{m as z,l as H}from"./analyticsHelper-DqZXz5oK-B0yimKwh.js";import{h as we}from"./ReportTableViewSelector-CHN0DsMB-BpJxSZpu.js";import{a as X,p as Ce}from"./TimeRangeSwitcher-C_XduWs4-DjVrPo4a.js";import{M as ye}from"./TimeframeSwitcherWithToggle-Bvkq6Qa--CJudW9kF.js";import{DownloadOverlayButton as xe}from"./DownloadOverlay-9HCQzpew-D7JQlDlt.js";import{a as Oe,r as F,b as Q}from"./CollapsableReportTable-B7JqlhCA-DlVKUuhN.js";import{T as ee,I as te,L as $,D as Re,g as se}from"./mapSectionWithAcOnlyToTreeNode-Bw9kw0FP-CSXp7Z6U.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BJdFcHRm-Dw1vJzex.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-rcx5z-sh-xZ8efuWW.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-B4i2KTVu-C7LTIhFl.js";function oe({section:e,sectionId:t,numOfBalances:a,config:i}){return Q("no_filter",i.filterAccountsWithNilBalances,i.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>Ae({accountGroup:o,sectionType:t,numOfBalances:a,title:o.accountGroupName,isLastNode:!0,config:i}))}function Ae({accountGroup:e,sectionType:t,numOfBalances:a,title:i,isLastNode:o,config:r}){const p=F("section",[],i+t),d={children:[],id:p,isLastNode:o,reportElementData:{element:{kind:"section",title:i,sectionType:t,data:e,numOfBalances:a},config:r}},n=Q("no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),f=n.map((m,b)=>se({account:m,sectionType:t,numOfBalances:a,title:m.account.accountName,config:r,isLastNode:b===n.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:m.children.length>0,isLastNode:b===n.length-1}]}}));return d.children.push(...f),d}function ne({sectionWithAcOnly:e,sectionType:t,numOfBalances:a,config:i}){return e.accounts.map((o,r)=>se({account:o,sectionType:t,numOfBalances:a,title:o.account.accountName,config:i,isLastNode:r===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:r===e.accounts.length-1}]}}))}function ae({balances:e,config:t,nodeId:a}){return{children:[],id:a??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 Be(e,t,a,i=!0){Object.assign(e.config,t);const o=ie(a),r=Y({balances:o,config:t});return{config:t,headerNodes:i?[r]:[],contentNodes:[r,...e.contentNodes.slice(1)]}}const ie=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 a=[];return Object.keys(t.sections).forEach(i=>{t.sections[i].balances.length>0&&(a=[...t.sections[i].balances,...t.sections[i].additionalBalances])}),a}default:return[]}};function ve(e,t,a=!0){const i=y.getLocalizedStrings().reports.sections,o=y.getLocalizedStrings().reports.balanceSheet,r=ie(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&r.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=ae({balances:r,config:t}),n=[];return n.push(d),Object.keys(e.rootSectionsWithSubSectionIds).forEach(f=>{const m=F("title_string_only",[],f),b={children:[],id:m,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:i[f],data:void 0,numOfBalances:0},config:t}};n.push(b),e.rootSectionsWithSubSectionIds[f].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const l=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});n.push(...l)}else n.push(ee({section:e.sections[s],sectionType:s,numOfBalances:p,title:o[s],isLastNode:!0,config:t}));else if(s==="equity"){const l=ne({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});n.push(...l)}else{const l=e.sections[s];n.push(te({sectionWithAcOnly:l,sectionType:s,numOfBalances:p,title:o[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&n.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:o[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:a?[d]:[],contentNodes:n}}function Le({calculatedSection:e,numOfBalances:t,title:a,isLastNode:i,config:o}){return{children:[],id:F("calculated_section_type1",[],a),isLastNode:i,reportElementData:{element:{kind:"calculated_section_type1",title:a,data:e,numOfBalances:t},config:o}}}function Te(e,t,a=!0){const i=y.getLocalizedStrings().reports.sections,o=y.getLocalizedStrings().reports.cashFlow,r=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&r.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=ae({balances:r,config:t}),n=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(f=>{const m=F("title_string_only",[],f),b={children:[],id:m,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:i[f],data:void 0,numOfBalances:0},config:t}};n.push(b),e.rootSectionsWithSubSectionIds[f].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const l=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});n.push(...l)}else{const l=ne({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});n.push(...l)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?n.push(Le({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:o[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&n.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:o[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...n]}}function ke(e,t,a=!0){const i=y.getLocalizedStrings().reports,o=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]:[],r=t.mode!=null&&t.mode==="this_period_vs_period_before"&&o.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:o,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{_.isPandLReportViewSectionID(n)===!0?d.push(Re({section:e.sections[n],sectionType:n,numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t})):_.isPandLReportViewCalculatedSectionID(n)===!0&&d.push($({calculatedSection:e.calculatedSections[n],numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t}))}),{config:t,headerNodes:a?[p]:[],contentNodes:d}}function Pe(e,t,a=!0){const i=y.getLocalizedStrings().reports,o=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]:[],r=t.mode!=null&&t.mode==="this_period_vs_period_before"&&o.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:o,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{if(_.isPandLReportViewSectionID(n)===!0&&(e.sections[n].accountGroups.length>0?d.push(ee({section:e.sections[n],sectionType:n,numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t})):d.push(te({sectionWithAcOnly:e.sections[n],sectionType:n,numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(n)===!0){const f=e.calculatedSections[n];f!=null&&d.push($({calculatedSection:f,numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t}))}}),{config:t,headerNodes:a?[p]:[],contentNodes:d}}const Z={contentPaddingLeft:new B(w[0],w[0],w[0]),contentPaddingRight:new B(w[3],w[3],w[8])},Ne=g.div`
1
+ import{X as W,u as G,M as y,y as le,l as _,j as c,Y as k,bf as de,aY as pe,aW as ue,C as B,o as C,a9 as he,e as fe,bg as me,p as w,D as A,H as K,bh as ge,ab as _e,b4 as be,a_ as Se}from"./index-DoFw58Mw.js";import{b as T,f as J,n as g}from"./vendor-CnQcJ2Lu.js";import{m as z,l as H}from"./analyticsHelper-DlYWxxhD-DdeYfQh2.js";import{h as we}from"./ReportTableViewSelector-Bc5xUtnG-pW3txVQ2.js";import{a as X,p as Ce}from"./TimeRangeSwitcher-BK7gGqaa-li6QV9p5.js";import{M as ye}from"./TimeframeSwitcherWithToggle-BwvVsB_p-CoKIqOrx.js";import{DownloadOverlayButton as xe}from"./DownloadOverlay-Ly2ZesqA-D_S8bx9G.js";import{a as Oe,r as F,b as Q}from"./CollapsableReportTable-Dp1985is-CgJ_JGJs.js";import{T as ee,I as te,L as $,D as Re,g as se}from"./mapSectionWithAcOnlyToTreeNode-CrtVdHui-CnnfThO_.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-px916zpo-rIOc1Hnu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-SD5_8TCp-DcEUsFuS.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-D9vDRsjv-uSOuzaD9.js";function oe({section:e,sectionId:t,numOfBalances:a,config:i}){return Q("no_filter",i.filterAccountsWithNilBalances,i.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>Ae({accountGroup:o,sectionType:t,numOfBalances:a,title:o.accountGroupName,isLastNode:!0,config:i}))}function Ae({accountGroup:e,sectionType:t,numOfBalances:a,title:i,isLastNode:o,config:r}){const p=F("section",[],i+t),d={children:[],id:p,isLastNode:o,reportElementData:{element:{kind:"section",title:i,sectionType:t,data:e,numOfBalances:a},config:r}},n=Q("no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),f=n.map((m,b)=>se({account:m,sectionType:t,numOfBalances:a,title:m.account.accountName,config:r,isLastNode:b===n.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:m.children.length>0,isLastNode:b===n.length-1}]}}));return d.children.push(...f),d}function ne({sectionWithAcOnly:e,sectionType:t,numOfBalances:a,config:i}){return e.accounts.map((o,r)=>se({account:o,sectionType:t,numOfBalances:a,title:o.account.accountName,config:i,isLastNode:r===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:r===e.accounts.length-1}]}}))}function ae({balances:e,config:t,nodeId:a}){return{children:[],id:a??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 Be(e,t,a,i=!0){Object.assign(e.config,t);const o=ie(a),r=Y({balances:o,config:t});return{config:t,headerNodes:i?[r]:[],contentNodes:[r,...e.contentNodes.slice(1)]}}const ie=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 a=[];return Object.keys(t.sections).forEach(i=>{t.sections[i].balances.length>0&&(a=[...t.sections[i].balances,...t.sections[i].additionalBalances])}),a}default:return[]}};function ve(e,t,a=!0){const i=y.getLocalizedStrings().reports.sections,o=y.getLocalizedStrings().reports.balanceSheet,r=ie(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&r.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=ae({balances:r,config:t}),n=[];return n.push(d),Object.keys(e.rootSectionsWithSubSectionIds).forEach(f=>{const m=F("title_string_only",[],f),b={children:[],id:m,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:i[f],data:void 0,numOfBalances:0},config:t}};n.push(b),e.rootSectionsWithSubSectionIds[f].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const l=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});n.push(...l)}else n.push(ee({section:e.sections[s],sectionType:s,numOfBalances:p,title:o[s],isLastNode:!0,config:t}));else if(s==="equity"){const l=ne({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});n.push(...l)}else{const l=e.sections[s];n.push(te({sectionWithAcOnly:l,sectionType:s,numOfBalances:p,title:o[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&n.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:o[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:a?[d]:[],contentNodes:n}}function Le({calculatedSection:e,numOfBalances:t,title:a,isLastNode:i,config:o}){return{children:[],id:F("calculated_section_type1",[],a),isLastNode:i,reportElementData:{element:{kind:"calculated_section_type1",title:a,data:e,numOfBalances:t},config:o}}}function Te(e,t,a=!0){const i=y.getLocalizedStrings().reports.sections,o=y.getLocalizedStrings().reports.cashFlow,r=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&r.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=ae({balances:r,config:t}),n=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(f=>{const m=F("title_string_only",[],f),b={children:[],id:m,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:i[f],data:void 0,numOfBalances:0},config:t}};n.push(b),e.rootSectionsWithSubSectionIds[f].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const l=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});n.push(...l)}else{const l=ne({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});n.push(...l)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?n.push(Le({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:o[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&n.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:o[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...n]}}function ke(e,t,a=!0){const i=y.getLocalizedStrings().reports,o=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]:[],r=t.mode!=null&&t.mode==="this_period_vs_period_before"&&o.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:o,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{_.isPandLReportViewSectionID(n)===!0?d.push(Re({section:e.sections[n],sectionType:n,numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t})):_.isPandLReportViewCalculatedSectionID(n)===!0&&d.push($({calculatedSection:e.calculatedSections[n],numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t}))}),{config:t,headerNodes:a?[p]:[],contentNodes:d}}function Pe(e,t,a=!0){const i=y.getLocalizedStrings().reports,o=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]:[],r=t.mode!=null&&t.mode==="this_period_vs_period_before"&&o.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:o,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{if(_.isPandLReportViewSectionID(n)===!0&&(e.sections[n].accountGroups.length>0?d.push(ee({section:e.sections[n],sectionType:n,numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t})):d.push(te({sectionWithAcOnly:e.sections[n],sectionType:n,numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(n)===!0){const f=e.calculatedSections[n];f!=null&&d.push($({calculatedSection:f,numOfBalances:r,title:i.sections[n],isLastNode:!0,config:t}))}}),{config:t,headerNodes:a?[p]:[],contentNodes:d}}const Z={contentPaddingLeft:new B(w[0],w[0],w[0]),contentPaddingRight:new B(w[3],w[3],w[8])},Ne=g.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,ao as Q,b6 as Te,p as E,b7 as J,aB as ee,v as M,aA as ae,aJ as re,b8 as oe,b9 as ge,o as m,ba as te,g,H as Fe,bb as pe,bc as me,C as xe,bd as fe,s as R,be as F,av as V}from"./index-T4e21nnZ.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-BrP58mNO-C1TmCcpt.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-CYXJAMXX-yZCX9bGP.js";import{V as Z}from"./toChartData-oAAd1YDY-C3bZ9kal.js";const X={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,ao as Q,b6 as Te,p as E,b7 as J,aB as ee,v as M,aA as ae,aJ as re,b8 as oe,b9 as ge,o as m,ba as te,g,H as Fe,bb as pe,bc as me,C as xe,bd as fe,s as R,be as F,av as V}from"./index-DoFw58Mw.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-DueLK3Wl-B3lGAHMU.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-CAhfOfUa-CUvT0aen.js";import{V as Z}from"./toChartData-BicnbT0F-BAKhPkjP.js";const X={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,y 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 kt,l as d,cH as Pt,cI as At,Y as j,cJ as Mt,_ as A,cK as Bt,cL as Nt,cM as Ae,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,bt as Ne,o as n,a7 as Ot,p as c,c as zt,bp as _t,Q as Wt,h as Ut,cW as Ht,ah as Zt,s as se,m as de,cX as Yt,cY as Vt,cZ as Gt,k as Kt,as as qt,Z as Xe,b5 as Xt,w as Qe,aN as Qt,c_ as Jt}from"./index-T4e21nnZ.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-CI3FeJJc-DoCHgVjv.js";import{S as W}from"./LabeledText-CEbLfx4b-BpyGKldy.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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(kn,{})})]}):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,k=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:k?.code=="approved"&&H?.code?H:k,pt=e.billPayInfo?.isRefundInitiated===!0?mt:k?.code=="approved"&&H?.code?H:k,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(kt,{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"||k?.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=k?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",ke=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,ke,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,ke,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(At,{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:A("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:A("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?Ae.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:A("0,0[.]00",l.amount)})]}),t.jsx(qe,{children:r!=null?Ae.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:A("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:A("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:A("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(An,{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,y 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 kt,l as d,cH as Pt,cI as At,Y as j,cJ as Mt,_ as A,cK as Bt,cL as Nt,cM as Ae,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,bt as Ne,o as n,a7 as Ot,p as c,c as zt,bp as _t,Q as Wt,h as Ut,cW as Ht,ah as Zt,s as se,m as de,cX as Yt,cY as Vt,cZ as Gt,k as Kt,as as qt,Z as Xe,b5 as Xt,w as Qe,aN as Qt,c_ as Jt}from"./index-DoFw58Mw.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-BpFvPcb8-CmbXf1Gb.js";import{S as W}from"./LabeledText-D0aPaE6r-DJ33Sqqy.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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(kn,{})})]}):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,k=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:k?.code=="approved"&&H?.code?H:k,pt=e.billPayInfo?.isRefundInitiated===!0?mt:k?.code=="approved"&&H?.code?H:k,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(kt,{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"||k?.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=k?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",ke=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,ke,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,ke,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(At,{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:A("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:A("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?Ae.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:A("0,0[.]00",l.amount)})]}),t.jsx(qe,{children:r!=null?Ae.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:A("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:A("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:A("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(An,{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 m,o as r,a7 as C,C as d,a6 as L,Q as M,h as W,g as s,s as y,b$ as R,e as I,w as j,hE as D,p as n,ef as G,ee as F,jl as A,jm as J}from"./index-T4e21nnZ.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])},Q={title:new M("h6Regular","h5Regular")},mi=({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(H,{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":m("review-overlay-close",i)})})})})}),e.jsxs(K,{windowSize:l,children:[e.jsxs(O,{windowSize:l,children:[e.jsx(Y,{children:e.jsx(q,{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":m("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:X(o)}),e.jsxs(oi,{children:[e.jsxs(x,{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(x,{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(C,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},X=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,{}),H=t.div`
1
+ import{X as B,j as e,Y as m,o as r,a7 as C,C as d,a6 as L,Q as M,h as W,g as s,s as y,b$ as R,e as I,w as j,hE as D,p as n,ef as G,ee as F,jl as A,jm as J}from"./index-DoFw58Mw.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])},Q={title:new M("h6Regular","h5Regular")},mi=({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(H,{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":m("review-overlay-close",i)})})})})}),e.jsxs(K,{windowSize:l,children:[e.jsxs(O,{windowSize:l,children:[e.jsx(Y,{children:e.jsx(q,{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":m("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:X(o)}),e.jsxs(oi,{children:[e.jsxs(x,{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(x,{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(C,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},X=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,{}),H=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{eK as x,eL as h,j as t,bt as m,o as n,Y as o,M as g,r as j,w as p}from"./index-T4e21nnZ.js";import{n as s}from"./vendor-CnQcJ2Lu.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
1
+ import{eK as x,eL as h,j as t,bt as m,o as n,Y as o,M as g,r as j,w as p}from"./index-DoFw58Mw.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{a5 as K,l as me,hN as ee,g5 as fe,eu as we,hO as Je,a as Me,hP as Ve,c3 as _e,c4 as Pe,j as a,M as be,F as Fe,bO as Ne,bQ as qe,bR as Re,a7 as $e,hQ as Be,hR as Ue,T as he,hS as Se,hT as We,cg as ze,X as He,i5 as Ke,ga as re,p as $,g as De,C as Ce,c6 as Xe,hU as Ge,hV as Qe,hW as Ye,o as _}from"./index-T4e21nnZ.js";import{b as m,n as U}from"./vendor-CnQcJ2Lu.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-6xfi8GG9-Dudg_N2j.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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 Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.div`
1
+ import{a5 as K,l as me,hN as ee,g5 as fe,eu as we,hO as Je,a as Me,hP as Ve,c3 as _e,c4 as Pe,j as a,M as be,F as Fe,bO as Ne,bQ as qe,bR as Re,a7 as $e,hQ as Be,hR as Ue,T as he,hS as Se,hT as We,cg as ze,X as He,i5 as Ke,ga as re,p as $,g as De,C as Ce,c6 as Xe,hU as Ge,hV as Qe,hW as Ye,o as _}from"./index-DoFw58Mw.js";import{b as m,n as U}from"./vendor-CnQcJ2Lu.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CSxFNhoR-D9UFT3Zm.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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 Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{a5 as _,l as ie,hN as Y,g5 as Ae,eu as Ie,hO as Je,a as Le,hP 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,a7 as Ne,hQ as ze,hR as Be,T as re,hS as pe,hT as Ue,cg as Re,X as We,ga as me,p as X,g as qe,C as He,hU as Ke,hV as Ge,hW as Qe,o as L}from"./index-T4e21nnZ.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-6xfi8GG9-Dudg_N2j.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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 He(160,160,160)},tt=P.div`
1
+ import{a5 as _,l as ie,hN as Y,g5 as Ae,eu as Ie,hO as Je,a as Le,hP 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,a7 as Ne,hQ as ze,hR as Be,T as re,hS as pe,hT as Ue,cg as Re,X as We,ga as me,p as X,g as qe,C as He,hU as Ke,hV as Ge,hW as Qe,o as L}from"./index-DoFw58Mw.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-CSxFNhoR-D9UFT3Zm.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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 He(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 U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,cO as we,v as A,h_ as ye,hW as be,o as i,C as b,g as j,k as $e,T as re,dI as je,bO as Se,bR as ke,cg as Z,co as ee,cm as ve,h$ as Q,i0 as Ce,ao as De,i1 as Me,bT as ze,i2 as Le,p as h,s as L,as as Ee,bQ as Oe,n as pe,cp as Ae,am as ne,cA as Te,a7 as Ie,l as q,i3 as I,fJ as Je,_ as Fe,i4 as Ve,ab as G,cq as Be,hE as Pe}from"./index-T4e21nnZ.js";import{b as D,n as l,j as B}from"./vendor-CnQcJ2Lu.js";const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:o,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,o),x=T(),a=U();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ue,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"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(o,"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(`${o}.dayOfMonth`,$),S(`${o}.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(o,"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:o,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ge,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.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:o}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>o(q.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:()=>o(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:()=>o(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:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=l.div`
1
+ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,cO as we,v as A,h_ as ye,hW as be,o as i,C as b,g as j,k as $e,T as re,dI as je,bO as Se,bR as ke,cg as Z,co as ee,cm as ve,h$ as Q,i0 as Ce,ao as De,i1 as Me,bT as ze,i2 as Le,p as h,s as L,as as Ee,bQ as Oe,n as pe,cp as Ae,am as ne,cA as Te,a7 as Ie,l as q,i3 as I,fJ as Je,_ as Fe,i4 as Ve,ab as G,cq as Be,hE as Pe}from"./index-DoFw58Mw.js";import{b as D,n as l,j as B}from"./vendor-CnQcJ2Lu.js";const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:o,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,o),x=T(),a=U();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ue,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"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(o,"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(`${o}.dayOfMonth`,$),S(`${o}.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(o,"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:o,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ge,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.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:o}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>o(q.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:()=>o(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:()=>o(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:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=l.div`
2
2
  position: relative;
3
3
  `,qe=l.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{u as Ut,X as en,l as Y,kg as Ke,kh as tt,C as dt,ki as ud,kj as cd,kk as tn,kl as fd,km as Tt,M as ir,kn as Bt,ko as qt,e as rn,o as kt,kp as ld,kq as hd,a1 as Ft,a2 as Kl,a3 as Lt,kr as dd,ks as pd,p as yn,kt as md,ku as Yl,kv as gd,kw as Jl,bh as Xl,D as zo,kx as vd,ky as yd,kz as _d,kA as Ql,kB as bd,kC as wd,kD as Sd,kE as Ed,kF as Rd,kG as Od,kH as Td,kI as xd,kJ as Cd,kK as Ad,kL as Id,kM as Pd,kN as kd,gl as Ld}from"./index-T4e21nnZ.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-C8SgK0SS.js";import{g as rt,u as Ie,f as Ye}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 Ko,f as Yo,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-DThoELaW.js";import"./liveblocks-sSQ9JElv.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Yd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.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(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.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=Ye(Jd,Yd)(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=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:h}=Ie(w=>Y.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(Y.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),w(p)&&a(Y.fetchZeniUsers()),w(u.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ke.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:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(Y.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,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 Y,kg as Ke,kh as tt,C as dt,ki as ud,kj as cd,kk as tn,kl as fd,km as Tt,M as ir,kn as Bt,ko as qt,e as rn,o as kt,kp as ld,kq as hd,a1 as Ft,a2 as Kl,a3 as Lt,kr as dd,ks as pd,p as yn,kt as md,ku as Yl,kv as gd,kw as Jl,bh as Xl,D as zo,kx as vd,ky as yd,kz as _d,kA as Ql,kB as bd,kC as wd,kD as Sd,kE as Ed,kF as Rd,kG as Od,kH as Td,kI as xd,kJ as Cd,kK as Ad,kL as Id,kM as Pd,kN as kd,gl as Ld}from"./index-DoFw58Mw.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-CD5PHV67.js";import{g as rt,u as Ie,f as Ye}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 Ko,f as Yo,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-DThoELaW.js";import"./liveblocks-sSQ9JElv.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Yd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.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(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.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=Ye(Jd,Yd)(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=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:h}=Ie(w=>Y.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(Y.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),w(p)&&a(Y.fetchZeniUsers()),w(u.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ke.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:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(Y.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,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%;