@zeniai/web-app-ui 4.14.38-dev → 4.14.38-qa

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 (279) hide show
  1. package/dist/assets/{ACHDetailsPage-BShpKoIj-D1Wy32uO.js → ACHDetailsPage-BShpKoIj-fWd9thRi.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CFErwUsE-DcUypqs6.js → AIPerformancePage-CFErwUsE-snITC-s1.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-B8upbXj9-Cm42EUIq.js → AccountInfoPage-B8upbXj9-vrSWYUF1.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CKpeDot5-CwoUlvIm.js → AccountInfoPageContent-CKpeDot5-D2xjzg6V.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-c30P9O_3-DzDiXoV7.js → AccountLockedInfoModal-c30P9O_3-7xneSCwL.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CO9BYPWm-CTb98mzK.js → AccountReconDetailsDrawerPage-CO9BYPWm-C-h2FArs.js} +1 -1
  7. package/dist/assets/{AccountRow-BrW_eEjE-Cmf0Jids.js → AccountRow-BrW_eEjE-DNRjFVcP.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-De2yNNuZ-XXlQf85I.js → AccountsPromoCardStack-De2yNNuZ-CSno44se.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-riOPLnxb-DAb8sz-Z.js → AddAddressForCardDrawer-riOPLnxb-mAwCf0Pc.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CsOmzC7v-S49ZGsCa.js → AddToWalletPage-CsOmzC7v-Cj06wdOf.js} +1 -1
  11. package/dist/assets/{AddressRoutes-CO2FKDgK.js → AddressRoutes-DQjryUkl.js} +1 -1
  12. package/dist/assets/{AddressScreen-DsuZFaVf.js → AddressScreen-C6vJhn2u.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-D9I9afnB-Df3hrLUY.js → AgingReportsPage-D9I9afnB-yHHj3Wmi.js} +1 -1
  14. package/dist/assets/{AiCfoScreen-D5N0hxeG.js → AiCfoScreen-BAk_dxw0.js} +1 -1
  15. package/dist/assets/{AllUserItems-Dq7NcP-o-Da1Zo4z6.js → AllUserItems-Dq7NcP-o-BAdmqEIT.js} +1 -1
  16. package/dist/assets/{ApAgingDetailPage-Z5JgfH-e-CEuDNd6O.js → ApAgingDetailPage-Z5JgfH-e-BN9WDlLq.js} +1 -1
  17. package/dist/assets/{AppBasePage-B5sDynhi-CeUmBhIQ.js → AppBasePage-B5sDynhi-KPVBtrs7.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-D9Q8ir0T-DZmwUW8c.js → AppDrawerContent-D9Q8ir0T-CSqphav9.js} +1 -1
  19. package/dist/assets/{ApprovalRulesSettingsPage-DVGvJsQG-yl1UuAvx.js → ApprovalRulesSettingsPage-DVGvJsQG-C6QLqN1r.js} +1 -1
  20. package/dist/assets/{ArAgingChart-Tcu0Lja_-BWNKgMZE.js → ArAgingChart-Tcu0Lja_-BdIZJO8_.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-B5vqkc3v-B1AqC5xt.js → ArAgingDetailPage-B5vqkc3v-BVlxBAMs.js} +1 -1
  22. package/dist/assets/{AttachmentView-CiYfninr-DZhIwWMR.js → AttachmentView-CiYfninr-6iFibggZ.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-tiQUQUbX-DMW3pWLJ.js → BalancesInsightWithToolTip-tiQUQUbX-DzkOWVQM.js} +1 -1
  24. package/dist/assets/{BankAccountSection-EZtscP2z-C2fUrA1M.js → BankAccountSection-EZtscP2z-CnmlGLJZ.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-DCfyIUlu-D_RVGDL2.js → BankAccountWarningSection-DCfyIUlu-DWGOWwU8.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-CQWy9jvt-Brl3VmAQ.js → BankConnectionsSettingsPage-CQWy9jvt-6r8YHtRG.js} +1 -1
  27. package/dist/assets/{BillDetailPage-pt1k5AQf-C_HrCJfS.js → BillDetailPage-pt1k5AQf-C4XZbQqy.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-5Y0msu-c.js → BillPayApprovalRoutes-BlJjLh3Z.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-Drh7Bhi8-EZrQsXba.js → BillPayApprovalRuleDetailPage-Drh7Bhi8-DEQ3gHmS.js} +1 -1
  30. package/dist/assets/{BillPayApprovalRulesPage-Cmyo59xB-D7U9ywcy.js → BillPayApprovalRulesPage-Cmyo59xB-B9Q9d_tb.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-Dgpz2TLG-BwKkDBie.js → BillPayPromoPage-Dgpz2TLG-CIs4FndH.js} +1 -1
  32. package/dist/assets/{BillPayRoutes-aVWMd64J.js → BillPayRoutes-C3s6um5A.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-B6Pd_eBf-DFM86E0U.js → BillPaySetUpPage-B6Pd_eBf-Ds0KjbN5.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-CYsvBrFV-B9NfPSZ9.js → BillingSettingsPage-CYsvBrFV-CkCbu93u.js} +1 -1
  35. package/dist/assets/{BillsBulkReviewDrawerPage-DNnAmqWz-C01NVO_d.js → BillsBulkReviewDrawerPage-DNnAmqWz-DGjq3gMe.js} +1 -1
  36. package/dist/assets/{BoxItem-B06DK4G--C4opawya.js → BoxItem-B06DK4G--DWbBsOKU.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-Dgk5gyMv-BrQSkaHR.js → BusinessVerificationPage-Dgk5gyMv-C_48y3eC.js} +1 -1
  38. package/dist/assets/{BusinessVerificationPageScreen-D9PxWQrU.js → BusinessVerificationPageScreen-C0MRjLR6.js} +1 -1
  39. package/dist/assets/{BusyIndication-Cd67eHX6-C7aB5h-1.js → BusyIndication-Cd67eHX6-CtvBXiRL.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-CcH9jUoZ-HppogTjx.js → CardNumberSubText-CcH9jUoZ-BDFM7Ge9.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-5eysaHGf-CZA31npt.js → CashbackDetailPage-5eysaHGf-CYaLHynC.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-Diwf-gwZ-BccKvsWr.js → ChargeCardDetailPage-Diwf-gwZ-BiwCPZo-.js} +1 -1
  43. package/dist/assets/{ChargeCardListPage-C-RTGkKK-Cc1az4M9.js → ChargeCardListPage-C-RTGkKK-B2_lKD4-.js} +1 -1
  44. package/dist/assets/{ChargeCardListTable-B-bNbtZQ-BuEumynS.js → ChargeCardListTable-B-bNbtZQ-Dci6OLkr.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-Cu-zT5tO-CNy0B9A3.js → ChargeCardPaymentHistoryPage-Cu-zT5tO-BOra7Rvn.js} +1 -1
  46. package/dist/assets/{ChargeCardPromoPage-Cz3rNFwM-CdxjjcEa.js → ChargeCardPromoPage-Cz3rNFwM-Bi8y2V52.js} +1 -1
  47. package/dist/assets/{ChargeCardRoutes-CKV_cGg2.js → ChargeCardRoutes-BN8xSwU5.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-BcTB9Yy5-BJuaiwYA.js → ChargeCardSetupPage-BcTB9Yy5-r-uwgYnE.js} +1 -1
  49. package/dist/assets/{ChargeCardStatementsPage-B_ERvgmB-W5ryAUPk.js → ChargeCardStatementsPage-B_ERvgmB-CYpHQAai.js} +1 -1
  50. package/dist/assets/{CheckDepositDrawerPage-D7_usOVn-DA-Kombi.js → CheckDepositDrawerPage-D7_usOVn-J4mV41ZF.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-h0vIfI8o-Q6XPsw6M.js → CollapsableReportTable-h0vIfI8o-B6GpVtrk.js} +1 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-CWADX4kZ-DANlup8L.js → CompanyOfficerDetailsSection-CWADX4kZ-BPWcwdB2.js} +1 -1
  53. package/dist/assets/{CompanyPassportCard-DF9LFrFD-DPvP8c2P.js → CompanyPassportCard-DF9LFrFD-DKr80bar.js} +1 -1
  54. package/dist/assets/{CompanyPassportPage-BtAopyLq-CG1Jq4C9.js → CompanyPassportPage-BtAopyLq-CYUPpkJA.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-Dl29U7F0.js → CompanyPassportScreen-ChKPVSO-.js} +1 -1
  56. package/dist/assets/{CompleteProfile-CsbsHQ0p-DmLd2177.js → CompleteProfile-CsbsHQ0p-Bd33SFhs.js} +1 -1
  57. package/dist/assets/{ConfettiBurst-duD341Gp-CKS6HfNq.js → ConfettiBurst-duD341Gp-DUM2aCzm.js} +1 -1
  58. package/dist/assets/{ConnectionAuthScreen-CtmFWvaS.js → ConnectionAuthScreen--S5MRVzc.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-hv51KpGg-CKGSsSPo.js → ConstrainedInnerElement-hv51KpGg-D4gYEuVE.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-C2xU6c51-Cx-c8OBN.js → CreateOrEditVendorPage-C2xU6c51-DBwl6xUl.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-CeagMaCu-CazU8VPX.js → CreditCardPaymentDrawerPage-CeagMaCu-WyeO0sfn.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-B8EoF2aF-DHzUxLL4.js → CurrencySelectField-B8EoF2aF-CpaeLEvO.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-CIeR2XvU-CMOVbNs9.js → CustomerOnboardingActivationPage-CIeR2XvU-C2ojqyMc.js} +1 -1
  64. package/dist/assets/{CustomerOnboardingAuthScreen-DtvN_x2S.js → CustomerOnboardingAuthScreen-56Gd68oe.js} +1 -1
  65. package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-DfPVnT4w.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-kUbwh2r2-BjHJq9e_.js → CustomerOnboardingDetailPageSkeleton-kUbwh2r2-XN6Qwg1Y.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-Br0jy7Pu-xbtVpPeD.js → CustomerOnboardingNoStepsPage-Br0jy7Pu-BRxlJCi7.js} +1 -1
  68. package/dist/assets/{CustomerOnboardingPage-Dm2Si769-CuOP2t9G.js → CustomerOnboardingPage-Dm2Si769-Cmr-TTFk.js} +1 -1
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-Cz81Q5jC-CBFgnoEY.js → CustomerOnboardingProductSuitePage-Cz81Q5jC-_9JVpPYF.js} +1 -1
  70. package/dist/assets/{CustomerOnboardingRoutes-C_QLwzau.js → CustomerOnboardingRoutes-BM1FvHLp.js} +1 -1
  71. package/dist/assets/{Dashboard-DReG_aaf-B9cmSG7e.js → Dashboard-DReG_aaf-CJroxq1R.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-BXSlwsR7-CjT08Tnm.js → DashboardReportPage-BXSlwsR7-Bifyqc1s.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-Cr_y84hZ.js → DashboardRoutes-CcC7_3PW.js} +1 -1
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-B3dtVAe2-DcsdDEM2.js → DashboardSidebarBackgroundAnimation-B3dtVAe2-ceF5qNn2.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-Bp9gU4vX.js → DefaultTenantHome-d55WPyJZ.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-YuSXjbLh-DkrFIYaS.js → DepositAccTransactionItem-YuSXjbLh-B9DRqaZc.js} +1 -1
  77. package/dist/assets/{DepositAccTransactionListPage-C-FAvZwD-CLMW6N19.js → DepositAccTransactionListPage-C-FAvZwD-BlyjU0oU.js} +1 -1
  78. package/dist/assets/{DomesticWireDetailScreen-CV-2twy7.js → DomesticWireDetailScreen-BavbRsOF.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-BaiSpc0N-BjZ307kD.js → DomesticWireDetailsPage-BaiSpc0N-Ch_6qZVT.js} +1 -1
  80. package/dist/assets/{DownloadOverlay-BpRKCn-0-Ceuu4G9V.js → DownloadOverlay-BpRKCn-0-L4byV6ko.js} +1 -1
  81. package/dist/assets/{DrawerPage-DQ3Xuekx-osFrzw_b.js → DrawerPage-DQ3Xuekx-C25HKZ4X.js} +1 -1
  82. package/dist/assets/{DrawerScreen-0WDRSJz6.js → DrawerScreen-C_bLtDRv.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-8DalSMWH-CybAz5BL.js → EditPeoplePage-8DalSMWH-jeT76aa4.js} +1 -1
  84. package/dist/assets/{EditReimbursementDetailPage-CC2BjMkR-UcYvbITo.js → EditReimbursementDetailPage-CC2BjMkR-BA33kcGZ.js} +1 -1
  85. package/dist/assets/{EntityDetailPage-fmWuxHTZ-zOCr7HwT.js → EntityDetailPage-fmWuxHTZ-DkQICR3e.js} +1 -1
  86. package/dist/assets/{EntityDetailRoutes-r6uNQDsF.js → EntityDetailRoutes-BJPdCnex.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-vsEMiXYh-xFy88yRd.js → EntitySummarySection-vsEMiXYh-b447Pkl8.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-B3HPfIsK-BoAXmFoS.js → ExpenseAutomationOverviewPage-B3HPfIsK-BWcr0uLA.js} +1 -1
  89. package/dist/assets/{ExpenseAutomationPage-4LJefgNh-n1--5-UE.js → ExpenseAutomationPage-4LJefgNh-CHSe-eX7.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-Dd80KoVV.js → ExpenseAutomationRoutes-DVq6I4cf.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-BH7oCW_F-DgICn4el.js → ExpressPayPage-BH7oCW_F-Cn_ygI86.js} +1 -1
  92. package/dist/assets/{FeaturePreviewPage-DSv61BhF-BsdnfTlO.js → FeaturePreviewPage-DSv61BhF-CnLFcwsn.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-D2Pa-R10.js → FeaturePreviewScreen-DX_dSelb.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-Bgy9MpO4-CvIWpdyW.js → FollowStepsSection-Bgy9MpO4-C5zXR2w0.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-VRq_gimm-BpVLghA7.js → GlobalReviewListPage-VRq_gimm-q7Ngmw6E.js} +1 -1
  96. package/dist/assets/{InformationCardStack-rx0fypl3-OYwqii2C.js → InformationCardStack-rx0fypl3-DX-Qi0u8.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-uJWMkIZL-BDZTXUwm.js → InsightsCardStack-uJWMkIZL-BEQ1nM_Y.js} +1 -1
  98. package/dist/assets/{InsightsSection-ByFf2oGn-ChvKOP1F.js → InsightsSection-ByFf2oGn-O2kwXghv.js} +1 -1
  99. package/dist/assets/{IntegrationsSettingsPage-Cj01Nub6-lRHeOJiB.js → IntegrationsSettingsPage-Cj01Nub6-DanmyN_T.js} +1 -1
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-C2PM97sv-BLs5mpsl.js → InternationalWireSwiftDetailsPage-C2PM97sv--IsCSEC1.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-Cr3sDrT--Dj5HT769.js → InternationalWireVerificationPage-Cr3sDrT--CUVEN_2T.js} +1 -1
  102. package/dist/assets/{InviteFormPage-dsMpScvq-pwPoaIw-.js → InviteFormPage-dsMpScvq-BSmEB5t_.js} +1 -1
  103. package/dist/assets/{InvitePageListView-e7vGSbFa-BfSD0kcH.js → InvitePageListView-e7vGSbFa-lWVPew31.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-BT_YVCP4-CQRb2c-r.js → InvitePeoplePage-BT_YVCP4-DtNP7JKz.js} +1 -1
  105. package/dist/assets/{InvoiceUploadSection-Dg1-uunA-1cshMTVc.js → InvoiceUploadSection-Dg1-uunA-CdV_lYCj.js} +1 -1
  106. package/dist/assets/{IssueChargeCardPage-CyF9wrb0-CWwHqex_.js → IssueChargeCardPage-CyF9wrb0-C00uByr7.js} +1 -1
  107. package/dist/assets/{LabeledAddressValue-3l0Bv00--Bw_81ZJz.js → LabeledAddressValue-3l0Bv00--D4SAlVUn.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-F9kvUR_r-9ELTRqNI.js → LabeledAddressValueField-F9kvUR_r-DWIWqg4N.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-BgC8y0D6-BlS4qFJC.js → LabeledControlledCheckBoxField-BgC8y0D6-CE2WH-rg.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-3qI_4noU-UcVNXOp1.js → LabeledCountryMultiSelectField-3qI_4noU-BeknFMe3.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-BV3h9bh7-BCEINAy7.js → LabeledCreatableSingleSelectField-BV3h9bh7-46gx1dC-.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-rriEcsdr-CcDZw3QZ.js → LabeledDocumentField-rriEcsdr-BwrcuQUL.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-DoVSg3nZ-82mPtDTT.js → LabeledDropDownFormattedTextField-DoVSg3nZ-BFaTo2zA.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-CKWZEkTs-C9DTkL1y.js → LabeledEmailInputField-CKWZEkTs-K1-nx9hv.js} +1 -1
  115. package/dist/assets/{LabeledNameField-yaSRe5Vt-cnDt7eal.js → LabeledNameField-yaSRe5Vt-B1WOmtZJ.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-D5QUlcEP-DOA8WTdI.js → LabeledSingleSelectField-D5QUlcEP-CTACJg8Z.js} +1 -1
  117. package/dist/assets/{LabeledText-DGZ7hxY4-BBOC0Eln.js → LabeledText-DGZ7hxY4-BoX7lemD.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-NPjB_w_o.js → LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-BjyfWV9u.js} +1 -1
  119. package/dist/assets/{LabeledZeniRolesDropDownField-jIrTovp--C7mgztQg.js → LabeledZeniRolesDropDownField-jIrTovp--KnDiAlnF.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-Bvbqpltz-BZhW34oI.js → LinkJETransactionPage-Bvbqpltz-TQTwB5Ra.js} +1 -1
  121. package/dist/assets/{LockCardPage-DyEQBJYx-DksW1-ZG.js → LockCardPage-DyEQBJYx-BqE2JwR7.js} +1 -1
  122. package/dist/assets/{LowBalancePopup-C2vHKMNF-CMEceag2.js → LowBalancePopup-C2vHKMNF-B1dLaV9R.js} +1 -1
  123. package/dist/assets/{MagicLinkACHDetailsPage-lAAwAtH7-D8E0BCBV.js → MagicLinkACHDetailsPage-lAAwAtH7-u0ZacaAy.js} +1 -1
  124. package/dist/assets/{MagicLinkDomesticWireDetailsPage-cv823ASo-Br4bjkHP.js → MagicLinkDomesticWireDetailsPage-cv823ASo-CPv9egXH.js} +1 -1
  125. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C_SjsgC9-Dt-hi6Za.js → MagicLinkInternationalWireDetailsPage-C_SjsgC9-nDwskxXL.js} +1 -1
  126. package/dist/assets/{MagicLinkRoutes-DAnRUF47.js → MagicLinkRoutes-JRtQtFqQ.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-BRdR8FPq.js → MagicLinkSignInScreen-DkCDkLiS.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-B1LBYM2F-DRIhjweE.js → MagicLinkSuccessPage-B1LBYM2F-BhpgnlDO.js} +1 -1
  129. package/dist/assets/{MagicLinkTitleSection-ClAnBBt9-BWJjfwMs.js → MagicLinkTitleSection-ClAnBBt9-Cym29B_c.js} +1 -1
  130. package/dist/assets/{MailingDetailsSection-9_XLl4bT-Bq5v10Od.js → MailingDetailsSection-9_XLl4bT-uVaax-qs.js} +1 -1
  131. package/dist/assets/{MobileAppDrawer-DXy0Oi_h.js → MobileAppDrawer-D_NdxckS.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-Ct8k8Oax-C0IXgNiJ.js → MoreMenuButton-Ct8k8Oax-Jl7RdYoC.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBNYcuP4-CSPIvvUE.js → MyBankConnectionsSettingsPage-CBNYcuP4-D719I_IU.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-n71n40uQ-DnLQhl3T.js → MyPendingActivationChargeCardListPage-n71n40uQ-DGClXmnK.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-BUMIjZYc-CAlzma3h.js → MyProfileSettingsPage-BUMIjZYc-DIf9EMiw.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-CbjFNysh-Ck578WIs.js → NavBarWithPicker-CbjFNysh-Gsj0zn-Z.js} +1 -1
  137. package/dist/assets/{NavigationArrow-Dpc7u6y4-CiTKhYeI.js → NavigationArrow-Dpc7u6y4-BduXlhxm.js} +1 -1
  138. package/dist/assets/{NavigationDots-DCpslVnm-D-4SKVAz.js → NavigationDots-DCpslVnm-wapVz6Ga.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-B10sY6Q_-Cu6PKFa1.js → NewGlobalMerchantPage-B10sY6Q_-DHbg5KdP.js} +1 -1
  140. package/dist/assets/{NoDataChart-9-bhq204-BNHp8Nld.js → NoDataChart-9-bhq204-Ck-FboCC.js} +1 -1
  141. package/dist/assets/{NoDataTable-C6Q2Anpz-BqTI2GFx.js → NoDataTable-C6Q2Anpz-Dt08aukB.js} +1 -1
  142. package/dist/assets/{NotFoundPage-4mPhXD5--pWqZwF3K.js → NotFoundPage-4mPhXD5--B-cMmgSa.js} +1 -1
  143. package/dist/assets/{NotFoundScreen-MU1vvTl3.js → NotFoundScreen-DIsBJSaH.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-CiTIiIjp.js → NotificationRoutes-BlE0nk7I.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-BTxCoB_b-1ycVlHAN.js → NotificationSettingsPage-BTxCoB_b-GR1fpvE7.js} +1 -1
  146. package/dist/assets/{NotificationsListConfig-CylnViXd-DEcj9I_Q.js → NotificationsListConfig-CylnViXd-DiKD1VlE.js} +1 -1
  147. package/dist/assets/{NotificationsPage-D41h0mS6-lOcsglza.js → NotificationsPage-D41h0mS6-C9DBLIC1.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-BV_uJSCh-ClxLsbjb.js → OpExByVendorPage-BV_uJSCh-CweIBxzu.js} +1 -1
  149. package/dist/assets/{OverlayContainerPage-CkUYOhlh-C1amAlX0.js → OverlayContainerPage-CkUYOhlh-BLbo4mkL.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-Cj3UWjG4-C0webWAA.js → PandLWithForecastPage-Cj3UWjG4-DJOh_oXL.js} +1 -1
  151. package/dist/assets/{PandLWithForecastRoutes-t6sqNQ0M.js → PandLWithForecastRoutes-Du4Y6NM_.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWFl695q-DCuXfW77.js → PaymentAccountSetupBillingAddressSection-BWFl695q-COL-e_83.js} +1 -1
  153. package/dist/assets/{PeoplePage-DcGqWtAP-kL10xLdE.js → PeoplePage-DcGqWtAP-DPX6yuPR.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-DvMa0FHX.js → PeopleRoutes-BBTvXpYa.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-C97G2NlX.js → PerformanceRoutes-BwZ7C83C.js} +1 -1
  156. package/dist/assets/{ProductsCarousel-C9JoJQeH-y7_emSya.js → ProductsCarousel-C9JoJQeH-CkXkxCBK.js} +1 -1
  157. package/dist/assets/{PromoBaseCards-mFk7SsOr-B_0Pg0f0.js → PromoBaseCards-mFk7SsOr-aETB5Ygs.js} +1 -1
  158. package/dist/assets/{QBOConnectionDialog-CJsIrEZq-CgfqE4WV.js → QBOConnectionDialog-CJsIrEZq-D0yN3PXk.js} +1 -1
  159. package/dist/assets/{QBOConnectionScreen-1Q56jIZw.js → QBOConnectionScreen--nNex-HH.js} +1 -1
  160. package/dist/assets/{QBOSetupSection-C_fqHza_-B72ZoKWs.js → QBOSetupSection-C_fqHza_-KCFm35xW.js} +1 -1
  161. package/dist/assets/{ReferralListScreen-DJHg0qdR.js → ReferralListScreen-DTl3cgUl.js} +1 -1
  162. package/dist/assets/{ReimbursementApprovalRoutes-5hvNi1ri.js → ReimbursementApprovalRoutes-Chwz3Zd6.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BMZnKpsk-C22qLIuK.js → ReimbursementApprovalRuleDetailPage-BMZnKpsk-CZta2n6p.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CE15OHBL.js → ReimbursementApprovalRuleDetailScreen-3osscpq2.js} +1 -1
  165. package/dist/assets/{ReimbursementApprovalRulesPage-C2zNa8dT-D_08-i4Q.js → ReimbursementApprovalRulesPage-C2zNa8dT-Dx_jUEM7.js} +1 -1
  166. package/dist/assets/{ReimbursementDetailPage-B1o8ea57-pJYrfLLt.js → ReimbursementDetailPage-B1o8ea57-Dof3tsbT.js} +1 -1
  167. package/dist/assets/{ReimbursementPromoPage-Df5QmXzC-CKWnZWeo.js → ReimbursementPromoPage-Df5QmXzC-BHlanHYp.js} +1 -1
  168. package/dist/assets/{ReimbursementRoutes-RM0BTfix.js → ReimbursementRoutes-CNHtnGTV.js} +1 -1
  169. package/dist/assets/{ReimbursementSetUpPage-D450RVsP-XThkQYrn.js → ReimbursementSetUpPage-D450RVsP-w7ex11t8.js} +1 -1
  170. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-Dpv01EXR.js → ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-CGZmi3lN.js} +1 -1
  171. package/dist/assets/{ReloadCard-D5cvzWxe-BiXLC8Nt.js → ReloadCard-D5cvzWxe-DYoPEBgn.js} +1 -1
  172. package/dist/assets/{ReportTableViewSelector-Ig41fOPb-DWudlBCf.js → ReportTableViewSelector-Ig41fOPb-rBlSQ3e9.js} +1 -1
  173. package/dist/assets/{ReportsPage-CRAVAUTO-B8oVNLjt.js → ReportsPage-CRAVAUTO-CDAZl-Wm.js} +1 -1
  174. package/dist/assets/{ReportsRoutes-yGE_MThE.js → ReportsRoutes-BpBrdYFu.js} +1 -1
  175. package/dist/assets/{RevenueChart-DtQu0KAn-8Nxk30mB.js → RevenueChart-DtQu0KAn-CJ0e9bCc.js} +1 -1
  176. package/dist/assets/{ReviewDetailsPage-vui4TqeA-BHywFcJg.js → ReviewDetailsPage-vui4TqeA-CrYNT8pq.js} +1 -1
  177. package/dist/assets/{ReviewOverlay-CUnL7H-a-C2Hax1dX.js → ReviewOverlay-CUnL7H-a-B6WGfdWG.js} +1 -1
  178. package/dist/assets/{RewardsRoutes-BLdquuw-.js → RewardsRoutes-j_a3QqIz.js} +1 -1
  179. package/dist/assets/{RoleWithToolTip-x2rnvWn9-CndfBCzZ.js → RoleWithToolTip-x2rnvWn9-BcsseCTF.js} +1 -1
  180. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D_Cls2jC-DT2hV6fF.js → ScheduleDetailsFixedAssetsPage-D_Cls2jC-BbXiHOdz.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsPage-DmSLuM8g-BJX_WigV.js → ScheduleDetailsPage-DmSLuM8g-VVVHjW5Q.js} +1 -1
  182. package/dist/assets/{ScheduleSequenceTable-js9_P_Lo-C0aHTQ-B.js → ScheduleSequenceTable-js9_P_Lo-D3P2gakZ.js} +1 -1
  183. package/dist/assets/{ScreenRoutes-Ckyy2m-9.js → ScreenRoutes-tN3DKXwj.js} +2 -2
  184. package/dist/assets/{SetUpAccountSection-DYRWWXcL-BJMCbqBu.js → SetUpAccountSection-DYRWWXcL-Bt4sXwAD.js} +1 -1
  185. package/dist/assets/{SettingsRoutes-HPPA3EWU.js → SettingsRoutes-B7xS4Bv0.js} +1 -1
  186. package/dist/assets/{SetupPagesScreen-Cz2ybo_2.js → SetupPagesScreen-Dec5-vG9.js} +1 -1
  187. package/dist/assets/{SignIn-CUJkZb3S-Cj2EgQsz.js → SignIn-CUJkZb3S-Cl_ZsA0p.js} +1 -1
  188. package/dist/assets/{SignInScreen-BSE9oghj.js → SignInScreen-BCab6yM0.js} +1 -1
  189. package/dist/assets/{SignOutScreen-CDL-h93X.js → SignOutScreen-BVFjhNbz.js} +1 -1
  190. package/dist/assets/{SpendManagementListViewPage-BieufnDb-Cqid6Xsk.js → SpendManagementListViewPage-BieufnDb-BvlrNZeN.js} +3 -3
  191. package/dist/assets/{SpendManagementPerTabPage-BmUp80QX-B1ZhgxKn.js → SpendManagementPerTabPage-BmUp80QX-5QSrTfVD.js} +1 -1
  192. package/dist/assets/{SpendManagementSection-DKZNTYXT-D04hpJmz.js → SpendManagementSection-DKZNTYXT-JIQihEyD.js} +1 -1
  193. package/dist/assets/{StatementItem-Dyt5Q0eR-jB2YMdu5.js → StatementItem-Dyt5Q0eR-DMqzBE6A.js} +1 -1
  194. package/dist/assets/{StatementsPage-CbtnJM5y-y3-8Ovdn.js → StatementsPage-CbtnJM5y-DFFjoYfI.js} +1 -1
  195. package/dist/assets/{StatusSwitcher-BfQ9VbBH-C2uXiIL4.js → StatusSwitcher-BfQ9VbBH-Dgu_WG_g.js} +1 -1
  196. package/dist/assets/{SubTabSwitcher-CzGiuhk3-C7cKUv_v.js → SubTabSwitcher-CzGiuhk3-ryyXc5wR.js} +1 -1
  197. package/dist/assets/{SuccessAnimation-DA3343II-B6vDBJ0_.js → SuccessAnimation-DA3343II-CPpeKMV2.js} +1 -1
  198. package/dist/assets/{SummaryCard-D61xzK3a-CfR23TFg.js → SummaryCard-D61xzK3a-QerUeyNc.js} +1 -1
  199. package/dist/assets/{TaskDetailPage-CyZxZdJB-DrITidSC.js → TaskDetailPage-CyZxZdJB-Ciw5Uu5K.js} +1 -1
  200. package/dist/assets/{TaskListScreen-DwAEl1NC.js → TaskListScreen-j6aXmdAS.js} +1 -1
  201. package/dist/assets/{TaskManagementPage-ucVAdv7x-Msj3UnnC.js → TaskManagementPage-ucVAdv7x-fUgA7HRS.js} +1 -1
  202. package/dist/assets/{TaskRoutes-Bz1uRNCx.js → TaskRoutes-CGRMEck8.js} +1 -1
  203. package/dist/assets/{TimeRangeSwitcher-C3jXm39I-fOK0S_yE.js → TimeRangeSwitcher-C3jXm39I-0VbXr2bN.js} +1 -1
  204. package/dist/assets/{TimeframeSwitcher-CcYg-YQJ-DfqszobX.js → TimeframeSwitcher-CcYg-YQJ-DOGZ9gMN.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcherWithToggle-w4YJno-p-mLBmOb3v.js → TimeframeSwitcherWithToggle-w4YJno-p-C9o85JE8.js} +1 -1
  206. package/dist/assets/{TopExCard-D2PRxvFc-3B8t-gu0.js → TopExCard-D2PRxvFc-DYT8NSuE.js} +1 -1
  207. package/dist/assets/{TopExDetailPage-C0uHdU7N-CImodBfZ.js → TopExDetailPage-C0uHdU7N-nxnaVy-a.js} +1 -1
  208. package/dist/assets/{TransactionActivityLogPage-CqYb19tY-MGx1R4Ww.js → TransactionActivityLogPage-CqYb19tY-BdO5tRUg.js} +1 -1
  209. package/dist/assets/{TransactionDetailPage-D-NR_yZG-CxUKWZX4.js → TransactionDetailPage-D-NR_yZG-Ci72o0wJ.js} +1 -1
  210. package/dist/assets/{TransactionDetailRoutes-CpDSsFwB.js → TransactionDetailRoutes-DT2_L5nu.js} +1 -1
  211. package/dist/assets/{TransactionDetailScreen-DfuoY_gg.js → TransactionDetailScreen-C-kbZYkM.js} +1 -1
  212. package/dist/assets/{TransactionList-f6yB-byH-FETk5Iif.js → TransactionList-f6yB-byH-BbsyqjjD.js} +1 -1
  213. package/dist/assets/{TransactionListBig-BrDWayQS-BY28Hg37.js → TransactionListBig-BrDWayQS-CYutGkGW.js} +1 -1
  214. package/dist/assets/{TransactionListPage-C-Z62y2d-DONuCLTJ.js → TransactionListPage-C-Z62y2d-Cs4hNKp4.js} +1 -1
  215. package/dist/assets/{TransactionListRoutes-Bw5edFOJ.js → TransactionListRoutes-CS-Aed2O.js} +1 -1
  216. package/dist/assets/{TransactionVendorDetailPage-CQQuAR6V-DBSEzxOy.js → TransactionVendorDetailPage-CQQuAR6V-BrnkOOxy.js} +1 -1
  217. package/dist/assets/{TransferDrawerPage-DfFm-1-3-BhX0O4LO.js → TransferDrawerPage-DfFm-1-3-BUPWCPmv.js} +1 -1
  218. package/dist/assets/{TreasuryOverviewPage-CKSanlUG-CXaeORdV.js → TreasuryOverviewPage-CKSanlUG-hcTuDL8m.js} +1 -1
  219. package/dist/assets/{TreasuryPromoPage-Dyip3H10-C2tUOOp5.js → TreasuryPromoPage-Dyip3H10-CaL--OIv.js} +1 -1
  220. package/dist/assets/{TreasuryRoutes-j5E27301.js → TreasuryRoutes-2SWOS6G5.js} +1 -1
  221. package/dist/assets/{TreasuryStatementsPage-mljf2Van-DcI9l-or.js → TreasuryStatementsPage-mljf2Van-BxW1eeF3.js} +1 -1
  222. package/dist/assets/{TreasuryTaxLetterPage-D3cV3a-8-ZsZIzn5I.js → TreasuryTaxLetterPage-D3cV3a-8-BTBXzOEj.js} +1 -1
  223. package/dist/assets/{TrendChart-fFlHCvNx-QKskVgw6.js → TrendChart-fFlHCvNx-C-NDpGcx.js} +1 -1
  224. package/dist/assets/{TrendWithTransactions-It4KDov3-DY_vu1lx.js → TrendWithTransactions-It4KDov3-SqmxJLwp.js} +1 -1
  225. package/dist/assets/{UncategorizedAccountsMappingPage-BxBz2Ce0-BJNWUYth.js → UncategorizedAccountsMappingPage-BxBz2Ce0-BuxR3cW9.js} +1 -1
  226. package/dist/assets/{UnitIntegrationPage-gVgsk2ji-D4-73jRv.js → UnitIntegrationPage-gVgsk2ji-Be3rQKfw.js} +1 -1
  227. package/dist/assets/{UploadAdditionalDocumentOverlay-C5m8jqup-BRodE0Ls.js → UploadAdditionalDocumentOverlay-C5m8jqup-BuDXKqpt.js} +1 -1
  228. package/dist/assets/{Vendor2FAPopup-DRwBzOwn-DD_9hpy1.js → Vendor2FAPopup-DRwBzOwn-Bu88G5Uf.js} +1 -1
  229. package/dist/assets/{VendorACHDetailsPage-By2Ya2bv-Cwsi_OAL.js → VendorACHDetailsPage-By2Ya2bv-BZiTrUhh.js} +1 -1
  230. package/dist/assets/{VendorDetailPage-jci1LqX3-BHXhYJF0.js → VendorDetailPage-jci1LqX3-CcT9Y7_3.js} +1 -1
  231. package/dist/assets/{VendorDomesticWireDetailsPage-uIDE-n5v-uvktM6eq.js → VendorDomesticWireDetailsPage-uIDE-n5v-CZQCRVkI.js} +1 -1
  232. package/dist/assets/{VendorFiling1099EditablePage-8pYT3u-X-BDiOOpIL.js → VendorFiling1099EditablePage-8pYT3u-X-E-s_MI6R.js} +1 -1
  233. package/dist/assets/{VendorFirstReviewPage-CafakxA1-DGimiBs4.js → VendorFirstReviewPage-CafakxA1-2lhthp_z.js} +1 -1
  234. package/dist/assets/{VendorInternationalWireDetailsPage-DJeI-ZFW-Cgs5W7gM.js → VendorInternationalWireDetailsPage-DJeI-ZFW-DsIia0J7.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Co-5nTam-xgR7Rh7n.js → VendorInternationalWireSwiftDetailsPage-Co-5nTam-ShOnk0vp.js} +1 -1
  236. package/dist/assets/{VendorsAccountsSection-YX2g8ETe-YNhvXO1d.js → VendorsAccountsSection-YX2g8ETe-DB_XPKqM.js} +1 -1
  237. package/dist/assets/{VendorsRoutes-n5RcX0Vf.js → VendorsRoutes-BKpp91Ol.js} +1 -1
  238. package/dist/assets/{VerifyDevice-DeHW4GAi-ejYUh2le.js → VerifyDevice-DeHW4GAi-Xw2L2uDk.js} +1 -1
  239. package/dist/assets/{VideoPlayer-DxIfGrPu-C3cW7OOT.js → VideoPlayer-DxIfGrPu-CxZJ5OEW.js} +1 -1
  240. package/dist/assets/{VideoPopup-CUP7ctgS-Cy6Bpggh.js → VideoPopup-CUP7ctgS-COd6keBu.js} +1 -1
  241. package/dist/assets/{WiseConfirmationScreen-CJyMiRdY.js → WiseConfirmationScreen-B8p2H0wE.js} +1 -1
  242. package/dist/assets/{ZeniAccountDetailPage-7NdkdSg3-trkVyM14.js → ZeniAccountDetailPage-7NdkdSg3-7e7alBpD.js} +1 -1
  243. package/dist/assets/{ZeniAccountListViewPage-B-cs_xnc-DkcNyo5a.js → ZeniAccountListViewPage-B-cs_xnc-DPQ7NJOh.js} +1 -1
  244. package/dist/assets/{ZeniAccountNavBarPieces-CjRip0v9-Bv00yUCA.js → ZeniAccountNavBarPieces-CjRip0v9-x_CaXaVR.js} +1 -1
  245. package/dist/assets/{ZeniAccountPromoPage-BikXtkeH-BWgu0hz6.js → ZeniAccountPromoPage-BikXtkeH-nFNGwlDD.js} +1 -1
  246. package/dist/assets/{ZeniAccountRoutes-BdqNU648.js → ZeniAccountRoutes-C-qtUClC.js} +1 -1
  247. package/dist/assets/{ZeniAccountSetupPage-BRBsijVt-BBTbKTOF.js → ZeniAccountSetupPage-BRBsijVt-ZM0-bMDB.js} +1 -1
  248. package/dist/assets/{ZeniAccountStatementScreen-DVjRkXeL.js → ZeniAccountStatementScreen-BtXMxdDS.js} +1 -1
  249. package/dist/assets/{ZeniAvatar-pjdoqfWE-DmYSRpHD.js → ZeniAvatar-pjdoqfWE-BIF5P_G9.js} +1 -1
  250. package/dist/assets/{ZeniCopyright-DDGvdmLF-CPeY3qcE.js → ZeniCopyright-DDGvdmLF-DwYXGCDa.js} +1 -1
  251. package/dist/assets/{ZeniDatePicker-K3F-G3-0-pGSyeWuf.js → ZeniDatePicker-K3F-G3-0-D-lxuOwz.js} +1 -1
  252. package/dist/assets/{ZeniTransferAmountSlider-Cdg0TlHk-B_jBC96s.js → ZeniTransferAmountSlider-Cdg0TlHk-DNSmlK3y.js} +1 -1
  253. package/dist/assets/{analyticsHelper-CTH_kB-0.js → analyticsHelper-CMK0FF_Q.js} +1 -1
  254. package/dist/assets/{analyticsHelper-D9xdJK4b-DkISjLhy.js → analyticsHelper-D9xdJK4b-C4FHTXha.js} +1 -1
  255. package/dist/assets/{calculateSize-zPet_z9g-UKcDxIjM.js → calculateSize-zPet_z9g-DAbLjY3A.js} +1 -1
  256. package/dist/assets/{chartTypes-Dq3hUz_T-DlStt0to.js → chartTypes-Dq3hUz_T-boMzYtYd.js} +1 -1
  257. package/dist/assets/{common-kiEGPQ33-BvLj55nP.js → common-kiEGPQ33-i2MKa07U.js} +1 -1
  258. package/dist/assets/{commonDimensions-CGHIQ2To-BVJ-7SGP.js → commonDimensions-CGHIQ2To-BnULbNsl.js} +1 -1
  259. package/dist/assets/{commonTypes-BAJPaPYg-qcmBeNCl.js → commonTypes-BAJPaPYg-2nCYtMXG.js} +1 -1
  260. package/dist/assets/{downloadPdf-BI2Y41h2-C3b-r1N_.js → downloadPdf-BI2Y41h2-Bu4K6jWB.js} +1 -1
  261. package/dist/assets/{getLocaleForTenant-BPL6tSgt.js → getLocaleForTenant-BxHoiee7.js} +1 -1
  262. package/dist/assets/{helper-z5-P4a-y-DRvyDGbW.js → helper-z5-P4a-y-BYdbtuif.js} +1 -1
  263. package/dist/assets/{index-BocbTmE1.js → index-DBW4633P.js} +5 -5
  264. package/dist/assets/{mapLoadingInProgressToTreeNode-DrC2Zs2y-B2Wt05iy.js → mapLoadingInProgressToTreeNode-DrC2Zs2y-BM0pLknf.js} +1 -1
  265. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dsBogxKz-DAKgnUEj.js → mapSectionWithAcOnlyToTreeNode-dsBogxKz-D2PE8B4K.js} +1 -1
  266. package/dist/assets/{mapSpacerToTreeNode-DMDEaLzQ-lo7UbRO0.js → mapSpacerToTreeNode-DMDEaLzQ-A_DJ4_H7.js} +1 -1
  267. package/dist/assets/{mapTimeframeBalancesToTreeNode-CW_wzI5T-BaeuL7EQ.js → mapTimeframeBalancesToTreeNode-CW_wzI5T-u6fAoA1F.js} +1 -1
  268. package/dist/assets/{mapTimeframeBalancesToTreeNode-DvfKBCs5-Dl1ySEwF.js → mapTimeframeBalancesToTreeNode-DvfKBCs5-pYXcOLbR.js} +1 -1
  269. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-CUYmne9-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-BAYHZBxR.js} +1 -1
  270. package/dist/assets/{routePaths-_EQ7HBkZ.js → routePaths-GPfd2GU_.js} +1 -1
  271. package/dist/assets/{toCOABalancesWithID-P7keEtAg-CVzjqCh4.js → toCOABalancesWithID-P7keEtAg-DjgvOCvR.js} +1 -1
  272. package/dist/assets/{toChartData-BUf5HHim-BMyIU8Hn.js → toChartData-BUf5HHim-BlDtF069.js} +1 -1
  273. package/dist/assets/{uploadAttachment-DJA30WSD-Mme28mRP.js → uploadAttachment-DJA30WSD-plv7LCEU.js} +1 -1
  274. package/dist/assets/{uploadReceipts-CqDftTRt-DnJMDyN6.js → uploadReceipts-CqDftTRt-Dkc7WGe9.js} +1 -1
  275. package/dist/assets/{useInitialThreadRequest-GWflkp6K.js → useInitialThreadRequest-CIvC2FkG.js} +1 -1
  276. package/dist/assets/{withTransactionSidePanel-D4o5a7Hq.js → withTransactionSidePanel-C2pbazis.js} +1 -1
  277. package/dist/index.html +1 -1
  278. package/package.json +1 -1
  279. package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-uJRgyQW8.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as i}from"./liveblocks-BsQBjN-0.js";import{j as z,i as ne,h as G,l as V,u as B,N as L,k as H,g as Qe,R as Je,m as E}from"./core-5sxMy3sZ.js";import{ct as N,LU as ae,bE as se,yk as ke,gW as Ye,LV as et,bm as ie,dp as ve,LW as tt,If as nt,Ig as de,Ih as at,fI as st,La as it,fX as rt,y8 as ot,pi as mt,fP as lt,yU as Ae,LX as Ce,LY as ct,LZ as ut,L_ as dt,L$ as pt,yx as bt,M0 as gt,yE as pe,g1 as ht,Lj as St,yy as ft,yi as yt,M1 as It,yh as Rt,M2 as kt,yq as be,yI as vt,yH as At,yD as Ct,yw as Et,M3 as Ee,Dx as Bt,bn as xt,yt as Tt,za as wt,M4 as Dt,M5 as jt,yQ as Ft,yN as ge,KF as Lt,yf as Ut,M6 as Be,zz as he,zH as Mt,M7 as Pt,M8 as _,M9 as _t,Ma as xe,Mb as $t,Mc as Te,Md as we,z0 as Y,bq as Nt,Gb as re,bL as oe,cA as De,cy as je,Me as Ot,eg as Gt,KS as zt,Mf as Ht,Mg as Fe,KW as Zt,LE as Wt,Mh as Vt,LT as Kt,zE as Se,zD as qt,Mi as Xt,Mj as Qt,Mk as Jt,Ml as Yt,Mm as en,Lp as tn,zu as nn,zy as an,bt as sn,G1 as rn,G2 as on,Fb as mn,Fa as ln,Hh as cn,bM as un,bO as dn,bN as pn,bK as bn}from"./zeni-epic-state-a7Sj5mjO.js";import{y as K,W as Le,aE as q,aG as k,ju as j,jS as Z,o as me,bk as X,jB as v,lC as gn,kx as Ue,jQ as $,lD as hn,v as Q,lE as Sn,X as fn,k4 as yn,x as In,K as Me,O as Rn,kb as kn,l6 as vn,k6 as An,lF as Cn,ke as En}from"./index-BocbTmE1.js";import{n as Pe,S as Bn}from"./mui-C_CXevf3.js";import ee from"./NotFoundScreen-MU1vvTl3.js";import{S as fe}from"./SetupPagesScreen-Cz2ybo_2.js";import{F as _e}from"./FeaturePreviewScreen-D2Pa-R10.js";import{a as y}from"./sentry-DINNQYpi.js";import{u as $e}from"./useInitialThreadRequest-GWflkp6K.js";import{D as xn}from"./DrawerScreen-0WDRSJz6.js";import{M as Ne}from"./MobileAppDrawer-DXy0Oi_h.js";import{R as Tn}from"./ReimbursementApprovalRoutes-5hvNi1ri.js";import{FallBackRoute as wn}from"./ScreenRoutes-Ckyy2m-9.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";import"./analyticsHelper-CTH_kB-0.js";import"./routePaths-_EQ7HBkZ.js";import"./BusinessVerificationPageScreen-D9PxWQrU.js";import"./ReimbursementApprovalRuleDetailScreen-CE15OHBL.js";import"./getLocaleForTenant-BPL6tSgt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60271612-938d-44b5-9f06-30fbd0b94088",e._sentryDebugIdIdentifier="sentry-dbid-60271612-938d-44b5-9f06-30fbd0b94088")}catch{}})();const Oe=e=>`/${e}/reimbursements`,Dn=H(function(e,t){const n=t.currentTenant?.companyId,o=et(e.plaidAccountViewState,"user_reimbursement_account"),l=j.getSignedInUser(),u=ie(l),c=o.plaidConnectionDetails,r=ve(e.companyState,n),a=e.tenantState.currentTenantId,s={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:a??""},m=ae(e,t.reimbursementId),d=tt(e,l?.userId??"");let I=`${l?.firstName} ${l?.lastName}`,g=!0;t.reimbursementId!=null&&(I=`${m.createdBy?.firstName??"Zeni"} ${m.createdBy?.lastName??""}`,g=l?.userId===m.createdBy?.userId);const x=e.entityAutoCompleteState?.autoCompleteText?.common,p=nt(e,"common");return{remiDetails:m,uploadInvoiceEndPoint:`${Ue.communicationAgentMicroServiceBaseUrl}`,reimbursementId:t.reimbursementId,customerSearchAutoCompleteData:{autoCompleteText:x,entityAutoCompleteView:p},authParams:s,defaultCurrency:{currencySymbol:r?.company.companyLocaleInfo.currencySymbol??"$",currencyCode:r?.company.companyLocaleInfo.currencyCode??"USD"},companyMileageConfigInfo:r?.company.configInfo.mileageRateConfig,createdBy:I,isUserAdmin:se(t.currentTenant?.userRole??[]),isZeniUser:u,plaidConnectionDetails:c,bankNameByRouting:m.bankNameByRouting,bankAccountCreationState:d.bankAccountCreationState,bankAccounts:d.bankAccounts,analytics:v,bankAccountToCreate:m.bankAccountToCreate,fetchBankNameByRoutingStatus:m.fetchBankNameByRoutingStatus,isSignedInUserReimbursementCreator:g}},function(e,t){const{reimbursementId:n,currentTenant:o,location:l,navigate:u,themeState:c}=t,{tenantEmailDomain:r}=o,a=j.getSignedInUser();return{onReceiptsUpload:(s,m,d)=>{s!=null&&e(Et(s,m,d,n,a?.userId))},onExistingMerchantChange:(s,m)=>{e(be(!1,m,n,s,void 0))},fetchDuplicateReimbursement:()=>{a?.userId!=null&&e(Ct(a.userId,!0,n))},clearDuplicateReimbursementDetail:()=>{e(At())},clearRemiSaveStatus:()=>{e(vt("Not-Started",n))},onDuplicateLineClick:(s,m)=>window.open(`/${r}/reimbursement/${s}#L${m}`),onNewMerchantChange:(s,m)=>{e(be(!1,m,n,void 0,s))},removeFileFromLine:s=>{e(kt({lineId:s,reimbursementId:n}))},onAmountChanged:(s,m)=>{e(Rt(m,s,n))},updateReimbursementType:(s,m,d)=>{e(It({reimbursementId:d,lineId:m,reimbursementType:s}))},onHomeCurrencyConversionUpdate:(s,m,d)=>{e(yt({reimbursementId:d,lineId:m,amountPayload:{amount:s.amount,currency_code:s.currencyCode,currency_symbol:s.currencySymbol}}))},onReimbursementDetailsChanged:s=>{e(ft({remiDetailLocalData:s,reimbursementId:n}))},saveRemiDetails:s=>{e(pe(s,!1,n))},onUserBankDetailsUpdated:s=>{const{bankAccountSection:m}=s;e(St({data:m}))},onFetchBankName:s=>{e(ht(s))},submitRemiDetails:()=>{e(pe("pending_approval",!0,n))},discardReimbursementDetailsFromLocalStore:s=>{e(gt({reimbursementId:s}))},updateInvoiceUploadFetchState:s=>{e(bt({reimbursementId:n,fetchState:s}))},clearTentativeNameForLine:s=>{e(pt({reimbursementId:n,lineId:s}))},removeDuplicateReimbursementForLine:s=>{e(dt({lineId:s}))},onZeniLogoClick:()=>{c.toggle()},clearAddRemiAutoFields:s=>{e(ut({reimbursementId:n,lineId:s}))},redirectToReimbursementListScreen:()=>{e(Ce()),e(ct());const s=Oe(r),m=$(l.state?.pathnameStackToGoBack,l.pathname);u(s,{state:{pathnameStackToGoBack:m}})},redirectToReimbursementDetailScreen:()=>{t.navigate("../")},deleteReimbursement:()=>{n!=null&&(v.trackReimbursementDeleteReimbursement(n),e(Ae(n)))},onSaveBankAccount:()=>{a?.userId&&e(lt(a?.userId,n))},onFetchLinkTokenClick:s=>{e(mt("user_reimbursement_account",s))},onEstablishConnectionClick:s=>{e(ot(s,o.companyId,"user_reimbursement_account",void 0,"link_account_no_microdeposit"))},deleteBankAccount:s=>{e(rt(s,a?.userId??""))},onBackClickFromBankAccountPage:()=>{e(st({fetchState:"Not-Started"})),e(it())},customerSearchAutoCompleteActions:{onAutoCompleteInputChange:(s,m)=>{s.trim().length>=2?e(at({searchString:s,entityType:m,searchOrigin:"common"})):e(de("common"))},onCancelAutoComplete:()=>{e(de("common"))}}}})(gn);function ye(){const e=z(),t=ne(),n=G(),{reimbursementId:o}=V(),l=K(),u=Le(),{useFeatureGate:c}=q(),{isFeatureEnabled:r}=c(k.isLimitedCategoryForReimbursement),{isFeatureEnabled:a}=c(k.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:s}=c(k.isReimbursementCommentingEnabled),m=G().pathname,d=m.includes("edit"),I=m.includes("reimbursement/new"),[g,x]=y.useState(!1),p=j.getSignedInUser(),A=B(h=>N(h)),b=B(h=>ae(h,o)),f=$e(A?.companyId,{clearParams:b.fetchState==="Completed"}),T=se(A?.userRole??[]);y.useEffect(()=>{(I&&!g||d&&b.fetchState!="Completed"&&b.fetchState!="In-Progress")&&(x(!0),t(ke(!1,r,a,o)))});const R=B(h=>Ye(h.accountState,h.accountListState,"reimbursementAccountList"));if(p==null)throw Error("Can't access address page without signing in...");const w={pathname:`../${o}`,search:n.search};return b.isDeleted===!0||b.billStage=="paid"||b.billStage=="scheduled"||b.fetchState=="Not-Started"||T&&b.billStatus==="rejected"||T===!1&&b.billStage==="pending_approval"&&b.billStatus!=="rejected"?i.jsx(L,{to:w}):b.deleteStatus.fetchState==="In-Progress"||b.fetchState!=="Completed"?i.jsx(Z,{style:{backgroundColor:l.colors.grey5,boxShadow:`0px 2px ${me.sp1} ${l.colors.dropShadowNormal}`},fetchState:b.deleteStatus.fetchState}):i.jsxs(i.Fragment,{children:[i.jsx(X,{analytics:v,onLoad:h=>(D=>{o!=null&&b.deleteStatus.fetchState!=="Completed"&&D.trackReimbursementEditReimbursement(o)})(h)}),i.jsx(Dn,{initialOpenThreadRequest:f??void 0,isReimbursementCommentingEnabled:s,location:n,navigate:e,currentTenant:A,reimbursementId:o,themeState:u,uncategorizedAccounts:R})]})}const jn=H(function(e,t){const n=Ee(e,t.reimbursementId),o=j.getSignedInUser(),l=ie(o),u=e.tenantState.currentTenantId,c={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:u??""},r=`${n.createdBy?.firstName??"Zeni"} ${n.createdBy?.lastName??""}`;let a=!1;n?.remiActivities.length>0&&(a=Dt(n.remiActivities,jt(t.currentTenant),o));const s=se(t.currentTenant?.userRole??[]),m=o?.userId===n.createdBy?.userId;return{remiDetails:n,uploadInvoiceEndPoint:`${Ue.communicationAgentMicroServiceBaseUrl}`,authParams:c,signedInUser:o,createdBy:r,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,isAdmin:s,showApproveRejectBtns:a,isZeniUser:l,isSignedInUserReimbursementCreator:m}},function(e,t){const{reimbursementId:n,currentTenant:o,location:l,navigate:u,themeState:c}=t,{tenantEmailDomain:r}=o;return{onDuplicateLineClick:(a,s)=>window.open(`/${r}/reimbursement/${a}#L${s}`),redirectToReimbursementListScreen:()=>{e(Ce());const a=Oe(r),s=$(l.state?.pathnameStackToGoBack,l.pathname);u(a,{state:{pathnameStackToGoBack:s}})},onSaveRealTimeApprovals:a=>{e(Ut(n,"reimbursement",a))},updateEditRealTimeApproverClicked:a=>{e(Lt({isEdit:a,entityId:n,entityType:"reimbursement"}))},approveOrRejectRemi:a=>{a.type==="approved"?e(ge(n,a.type,"")):e(ge(n,a.type,a.description??""))},redirectToEditableReimbursementScreen:()=>{const a=$(l.state?.pathnameStackToGoBack,l.pathname);u("./edit",{state:{pathnameStackToGoBack:a}})},deleteReimbursement:()=>{v.trackReimbursementDeleteReimbursement(n),e(Ae(n))},cancelAndDeleteReport:a=>{a===!0?v.trackReimbursementCancelAndDeleteReimbursement(n):v.trackReimbursementCancelReimbursement(n),e(Ft(n,a))},handleZeniLogoClick:()=>{c.toggle()}}})(hn);function Fn(){const e=z(),t=ne(),n=G(),o=n.hash.substring(1),l=Le(),{reimbursementId:u}=V(),c=j.getSignedInUser(),r=B(C=>N(C)),a=B(C=>Ee(C,u??"")),s=a.remiDetails?.reimbursementInfo.stage.code==="draft",m=$e(r?.companyId,{clearParams:a.fetchState==="Completed"&&!s}),{useFeatureGate:d}=q(),{isFeatureEnabled:I}=d(k.isLimitedCategoryForReimbursement),[g,x]=y.useState(!1),[p,A]=y.useState(!1),[b,f]=y.useState(!1),{isFeatureEnabled:T}=d(k.isReimbursementCommentingEnabled),{isFeatureEnabled:R}=d(k.isShowDeletedReimbursementsFeatureEnabled),w=B(C=>ae(C,u??"")),h=K(),D=Bt(r),P=xt(r.userRole),F=a.fetchState;if(y.useEffect(()=>{g||u==null?g==1&&F==="Error"&&e("page-not-found",{replace:!0}):(x(!0),t(Tt(u,!1,R)))},[g,u,t,F]),y.useEffect(()=>{R&&a.remiDetails?.isDeleted===!0||r.isZeni===!0&&c?.userEmailDomain==="zeni.ai"&&D===!1?f(!1):f(a.remiActivities[0]?.isRealTimeApprovalEnabled&&(P||a.allApprovers.find(C=>C.user.userId===c?.userId)!=null||a.remiDetails?.lastUpdatedBy===c?.userId))},[a.remiActivities[0]?.isRealTimeApprovalEnabled,a.allApprovers,a.remiDetails?.lastUpdatedBy,P,r.isZeni,D,c]),y.useEffect(()=>{p||a.fetchState!="Completed"||a.remiDetails?.reimbursementInfo.stage.code=="paid"||a.remiDetails?.reimbursementInfo.stage.code=="scheduled"||w.fetchState=="Completed"||w.fetchState=="In-Progress"||(A(!0),t(ke(!1,I,R,u)),a.remiActivities[0]?.isRealTimeApprovalEnabled===!0&&t(wt(!1,!0,!0,a.lastUpdatedByUserId)))},[p,a,u,t]),c==null)throw Error("Can't access address page without signing in...");return a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState=="Completed"&&a.remiDetails.isDeleted===!1?i.jsx(L,{to:`./edit${n.search}`}):a.deleteStatus.fetchState==="In-Progress"||a.cancelAndDeleteStatus.fetchState==="In-Progress"||a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState!="Completed"||a.fetchState!="Completed"?i.jsx(Z,{fetchState:a.deleteStatus.fetchState,style:{backgroundColor:h.colors.grey5,boxShadow:`0px 2px ${me.sp1} ${h.colors.dropShadowNormal}`}}):i.jsxs(i.Fragment,{children:[i.jsx(X,{analytics:v,onLoad:C=>(O=>{u!=null&&O.trackReimbursementReimbursementDetails(u)})(C)}),i.jsx(jn,{initialOpenThreadRequest:m??void 0,scrollId:o,isReimbursementCommentingEnabled:T,isShowDeletedReimbursementEnabled:R,location:n,navigate:e,isRealTimeApprovalEnabled:b,currentTenant:r,reimbursementId:u??"",themeState:l})]})}const Ln=H(function(e,t){return{remisReviewView:Be(e),analytics:t.analytics}},function(e,t){return{onCloseOverlay:()=>{t.navigate("./"),e(_())},onCloseReviewItem:n=>{e(Pt(n))},onProceedForBulkActionClick:(n,o)=>{switch(n){case"send_for_approval":e(Mt());break;case"approve":e(he("approved",o??""));break;case"reject":e(he("rejected",o??""))}}}})(Sn);function Un(){const e=z(),t=B(u=>u.remisBulkActionViewState.bulkSubmissionFetchState.fetchState),{remisForReview:n}=B(u=>Be(u)),o=Q(),l=o?.loggedInUserRole?.includes("admin")===!0;return y.useEffect(()=>{t!=="Completed"&&n.length!==0||e("./")},[t,n.length]),i.jsx(Ln,{navigate:e,analytics:v,isAdmin:l})}const M=Zt(),Ge="bulk-operation-update",te="reimbursement-approval-rule-update",{spendManagement:Mn,common:Ie}=Rn.getLocalizedStrings(),Re=Mn.reimbursement.bulkActions,Pn=Pe.div`
1
+ import{j as i}from"./liveblocks-BsQBjN-0.js";import{j as z,i as ne,h as G,l as V,u as B,N as L,k as H,g as Qe,R as Je,m as E}from"./core-5sxMy3sZ.js";import{ct as N,LU as ae,bE as se,yk as ke,gW as Ye,LV as et,bm as ie,dp as ve,LW as tt,If as nt,Ig as de,Ih as at,fI as st,La as it,fX as rt,y8 as ot,pi as mt,fP as lt,yU as Ae,LX as Ce,LY as ct,LZ as ut,L_ as dt,L$ as pt,yx as bt,M0 as gt,yE as pe,g1 as ht,Lj as St,yy as ft,yi as yt,M1 as It,yh as Rt,M2 as kt,yq as be,yI as vt,yH as At,yD as Ct,yw as Et,M3 as Ee,Dx as Bt,bn as xt,yt as Tt,za as wt,M4 as Dt,M5 as jt,yQ as Ft,yN as ge,KF as Lt,yf as Ut,M6 as Be,zz as he,zH as Mt,M7 as Pt,M8 as _,M9 as _t,Ma as xe,Mb as $t,Mc as Te,Md as we,z0 as Y,bq as Nt,Gb as re,bL as oe,cA as De,cy as je,Me as Ot,eg as Gt,KS as zt,Mf as Ht,Mg as Fe,KW as Zt,LE as Wt,Mh as Vt,LT as Kt,zE as Se,zD as qt,Mi as Xt,Mj as Qt,Mk as Jt,Ml as Yt,Mm as en,Lp as tn,zu as nn,zy as an,bt as sn,G1 as rn,G2 as on,Fb as mn,Fa as ln,Hh as cn,bM as un,bO as dn,bN as pn,bK as bn}from"./zeni-epic-state-a7Sj5mjO.js";import{y as K,W as Le,aE as q,aG as k,ju as j,jS as Z,o as me,bk as X,jB as v,lC as gn,kx as Ue,jQ as $,lD as hn,v as Q,lE as Sn,X as fn,k4 as yn,x as In,K as Me,O as Rn,kb as kn,l6 as vn,k6 as An,lF as Cn,ke as En}from"./index-DBW4633P.js";import{n as Pe,S as Bn}from"./mui-C_CXevf3.js";import ee from"./NotFoundScreen-DIsBJSaH.js";import{S as fe}from"./SetupPagesScreen-Dec5-vG9.js";import{F as _e}from"./FeaturePreviewScreen-DX_dSelb.js";import{a as y}from"./sentry-DINNQYpi.js";import{u as $e}from"./useInitialThreadRequest-CIvC2FkG.js";import{D as xn}from"./DrawerScreen-C_bLtDRv.js";import{M as Ne}from"./MobileAppDrawer-D_NdxckS.js";import{R as Tn}from"./ReimbursementApprovalRoutes-Chwz3Zd6.js";import{FallBackRoute as wn}from"./ScreenRoutes-tN3DKXwj.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";import"./analyticsHelper-CMK0FF_Q.js";import"./routePaths-GPfd2GU_.js";import"./BusinessVerificationPageScreen-C0MRjLR6.js";import"./ReimbursementApprovalRuleDetailScreen-3osscpq2.js";import"./getLocaleForTenant-BxHoiee7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60271612-938d-44b5-9f06-30fbd0b94088",e._sentryDebugIdIdentifier="sentry-dbid-60271612-938d-44b5-9f06-30fbd0b94088")}catch{}})();const Oe=e=>`/${e}/reimbursements`,Dn=H(function(e,t){const n=t.currentTenant?.companyId,o=et(e.plaidAccountViewState,"user_reimbursement_account"),l=j.getSignedInUser(),u=ie(l),c=o.plaidConnectionDetails,r=ve(e.companyState,n),a=e.tenantState.currentTenantId,s={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:a??""},m=ae(e,t.reimbursementId),d=tt(e,l?.userId??"");let I=`${l?.firstName} ${l?.lastName}`,g=!0;t.reimbursementId!=null&&(I=`${m.createdBy?.firstName??"Zeni"} ${m.createdBy?.lastName??""}`,g=l?.userId===m.createdBy?.userId);const x=e.entityAutoCompleteState?.autoCompleteText?.common,p=nt(e,"common");return{remiDetails:m,uploadInvoiceEndPoint:`${Ue.communicationAgentMicroServiceBaseUrl}`,reimbursementId:t.reimbursementId,customerSearchAutoCompleteData:{autoCompleteText:x,entityAutoCompleteView:p},authParams:s,defaultCurrency:{currencySymbol:r?.company.companyLocaleInfo.currencySymbol??"$",currencyCode:r?.company.companyLocaleInfo.currencyCode??"USD"},companyMileageConfigInfo:r?.company.configInfo.mileageRateConfig,createdBy:I,isUserAdmin:se(t.currentTenant?.userRole??[]),isZeniUser:u,plaidConnectionDetails:c,bankNameByRouting:m.bankNameByRouting,bankAccountCreationState:d.bankAccountCreationState,bankAccounts:d.bankAccounts,analytics:v,bankAccountToCreate:m.bankAccountToCreate,fetchBankNameByRoutingStatus:m.fetchBankNameByRoutingStatus,isSignedInUserReimbursementCreator:g}},function(e,t){const{reimbursementId:n,currentTenant:o,location:l,navigate:u,themeState:c}=t,{tenantEmailDomain:r}=o,a=j.getSignedInUser();return{onReceiptsUpload:(s,m,d)=>{s!=null&&e(Et(s,m,d,n,a?.userId))},onExistingMerchantChange:(s,m)=>{e(be(!1,m,n,s,void 0))},fetchDuplicateReimbursement:()=>{a?.userId!=null&&e(Ct(a.userId,!0,n))},clearDuplicateReimbursementDetail:()=>{e(At())},clearRemiSaveStatus:()=>{e(vt("Not-Started",n))},onDuplicateLineClick:(s,m)=>window.open(`/${r}/reimbursement/${s}#L${m}`),onNewMerchantChange:(s,m)=>{e(be(!1,m,n,void 0,s))},removeFileFromLine:s=>{e(kt({lineId:s,reimbursementId:n}))},onAmountChanged:(s,m)=>{e(Rt(m,s,n))},updateReimbursementType:(s,m,d)=>{e(It({reimbursementId:d,lineId:m,reimbursementType:s}))},onHomeCurrencyConversionUpdate:(s,m,d)=>{e(yt({reimbursementId:d,lineId:m,amountPayload:{amount:s.amount,currency_code:s.currencyCode,currency_symbol:s.currencySymbol}}))},onReimbursementDetailsChanged:s=>{e(ft({remiDetailLocalData:s,reimbursementId:n}))},saveRemiDetails:s=>{e(pe(s,!1,n))},onUserBankDetailsUpdated:s=>{const{bankAccountSection:m}=s;e(St({data:m}))},onFetchBankName:s=>{e(ht(s))},submitRemiDetails:()=>{e(pe("pending_approval",!0,n))},discardReimbursementDetailsFromLocalStore:s=>{e(gt({reimbursementId:s}))},updateInvoiceUploadFetchState:s=>{e(bt({reimbursementId:n,fetchState:s}))},clearTentativeNameForLine:s=>{e(pt({reimbursementId:n,lineId:s}))},removeDuplicateReimbursementForLine:s=>{e(dt({lineId:s}))},onZeniLogoClick:()=>{c.toggle()},clearAddRemiAutoFields:s=>{e(ut({reimbursementId:n,lineId:s}))},redirectToReimbursementListScreen:()=>{e(Ce()),e(ct());const s=Oe(r),m=$(l.state?.pathnameStackToGoBack,l.pathname);u(s,{state:{pathnameStackToGoBack:m}})},redirectToReimbursementDetailScreen:()=>{t.navigate("../")},deleteReimbursement:()=>{n!=null&&(v.trackReimbursementDeleteReimbursement(n),e(Ae(n)))},onSaveBankAccount:()=>{a?.userId&&e(lt(a?.userId,n))},onFetchLinkTokenClick:s=>{e(mt("user_reimbursement_account",s))},onEstablishConnectionClick:s=>{e(ot(s,o.companyId,"user_reimbursement_account",void 0,"link_account_no_microdeposit"))},deleteBankAccount:s=>{e(rt(s,a?.userId??""))},onBackClickFromBankAccountPage:()=>{e(st({fetchState:"Not-Started"})),e(it())},customerSearchAutoCompleteActions:{onAutoCompleteInputChange:(s,m)=>{s.trim().length>=2?e(at({searchString:s,entityType:m,searchOrigin:"common"})):e(de("common"))},onCancelAutoComplete:()=>{e(de("common"))}}}})(gn);function ye(){const e=z(),t=ne(),n=G(),{reimbursementId:o}=V(),l=K(),u=Le(),{useFeatureGate:c}=q(),{isFeatureEnabled:r}=c(k.isLimitedCategoryForReimbursement),{isFeatureEnabled:a}=c(k.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:s}=c(k.isReimbursementCommentingEnabled),m=G().pathname,d=m.includes("edit"),I=m.includes("reimbursement/new"),[g,x]=y.useState(!1),p=j.getSignedInUser(),A=B(h=>N(h)),b=B(h=>ae(h,o)),f=$e(A?.companyId,{clearParams:b.fetchState==="Completed"}),T=se(A?.userRole??[]);y.useEffect(()=>{(I&&!g||d&&b.fetchState!="Completed"&&b.fetchState!="In-Progress")&&(x(!0),t(ke(!1,r,a,o)))});const R=B(h=>Ye(h.accountState,h.accountListState,"reimbursementAccountList"));if(p==null)throw Error("Can't access address page without signing in...");const w={pathname:`../${o}`,search:n.search};return b.isDeleted===!0||b.billStage=="paid"||b.billStage=="scheduled"||b.fetchState=="Not-Started"||T&&b.billStatus==="rejected"||T===!1&&b.billStage==="pending_approval"&&b.billStatus!=="rejected"?i.jsx(L,{to:w}):b.deleteStatus.fetchState==="In-Progress"||b.fetchState!=="Completed"?i.jsx(Z,{style:{backgroundColor:l.colors.grey5,boxShadow:`0px 2px ${me.sp1} ${l.colors.dropShadowNormal}`},fetchState:b.deleteStatus.fetchState}):i.jsxs(i.Fragment,{children:[i.jsx(X,{analytics:v,onLoad:h=>(D=>{o!=null&&b.deleteStatus.fetchState!=="Completed"&&D.trackReimbursementEditReimbursement(o)})(h)}),i.jsx(Dn,{initialOpenThreadRequest:f??void 0,isReimbursementCommentingEnabled:s,location:n,navigate:e,currentTenant:A,reimbursementId:o,themeState:u,uncategorizedAccounts:R})]})}const jn=H(function(e,t){const n=Ee(e,t.reimbursementId),o=j.getSignedInUser(),l=ie(o),u=e.tenantState.currentTenantId,c={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:u??""},r=`${n.createdBy?.firstName??"Zeni"} ${n.createdBy?.lastName??""}`;let a=!1;n?.remiActivities.length>0&&(a=Dt(n.remiActivities,jt(t.currentTenant),o));const s=se(t.currentTenant?.userRole??[]),m=o?.userId===n.createdBy?.userId;return{remiDetails:n,uploadInvoiceEndPoint:`${Ue.communicationAgentMicroServiceBaseUrl}`,authParams:c,signedInUser:o,createdBy:r,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,isAdmin:s,showApproveRejectBtns:a,isZeniUser:l,isSignedInUserReimbursementCreator:m}},function(e,t){const{reimbursementId:n,currentTenant:o,location:l,navigate:u,themeState:c}=t,{tenantEmailDomain:r}=o;return{onDuplicateLineClick:(a,s)=>window.open(`/${r}/reimbursement/${a}#L${s}`),redirectToReimbursementListScreen:()=>{e(Ce());const a=Oe(r),s=$(l.state?.pathnameStackToGoBack,l.pathname);u(a,{state:{pathnameStackToGoBack:s}})},onSaveRealTimeApprovals:a=>{e(Ut(n,"reimbursement",a))},updateEditRealTimeApproverClicked:a=>{e(Lt({isEdit:a,entityId:n,entityType:"reimbursement"}))},approveOrRejectRemi:a=>{a.type==="approved"?e(ge(n,a.type,"")):e(ge(n,a.type,a.description??""))},redirectToEditableReimbursementScreen:()=>{const a=$(l.state?.pathnameStackToGoBack,l.pathname);u("./edit",{state:{pathnameStackToGoBack:a}})},deleteReimbursement:()=>{v.trackReimbursementDeleteReimbursement(n),e(Ae(n))},cancelAndDeleteReport:a=>{a===!0?v.trackReimbursementCancelAndDeleteReimbursement(n):v.trackReimbursementCancelReimbursement(n),e(Ft(n,a))},handleZeniLogoClick:()=>{c.toggle()}}})(hn);function Fn(){const e=z(),t=ne(),n=G(),o=n.hash.substring(1),l=Le(),{reimbursementId:u}=V(),c=j.getSignedInUser(),r=B(C=>N(C)),a=B(C=>Ee(C,u??"")),s=a.remiDetails?.reimbursementInfo.stage.code==="draft",m=$e(r?.companyId,{clearParams:a.fetchState==="Completed"&&!s}),{useFeatureGate:d}=q(),{isFeatureEnabled:I}=d(k.isLimitedCategoryForReimbursement),[g,x]=y.useState(!1),[p,A]=y.useState(!1),[b,f]=y.useState(!1),{isFeatureEnabled:T}=d(k.isReimbursementCommentingEnabled),{isFeatureEnabled:R}=d(k.isShowDeletedReimbursementsFeatureEnabled),w=B(C=>ae(C,u??"")),h=K(),D=Bt(r),P=xt(r.userRole),F=a.fetchState;if(y.useEffect(()=>{g||u==null?g==1&&F==="Error"&&e("page-not-found",{replace:!0}):(x(!0),t(Tt(u,!1,R)))},[g,u,t,F]),y.useEffect(()=>{R&&a.remiDetails?.isDeleted===!0||r.isZeni===!0&&c?.userEmailDomain==="zeni.ai"&&D===!1?f(!1):f(a.remiActivities[0]?.isRealTimeApprovalEnabled&&(P||a.allApprovers.find(C=>C.user.userId===c?.userId)!=null||a.remiDetails?.lastUpdatedBy===c?.userId))},[a.remiActivities[0]?.isRealTimeApprovalEnabled,a.allApprovers,a.remiDetails?.lastUpdatedBy,P,r.isZeni,D,c]),y.useEffect(()=>{p||a.fetchState!="Completed"||a.remiDetails?.reimbursementInfo.stage.code=="paid"||a.remiDetails?.reimbursementInfo.stage.code=="scheduled"||w.fetchState=="Completed"||w.fetchState=="In-Progress"||(A(!0),t(ke(!1,I,R,u)),a.remiActivities[0]?.isRealTimeApprovalEnabled===!0&&t(wt(!1,!0,!0,a.lastUpdatedByUserId)))},[p,a,u,t]),c==null)throw Error("Can't access address page without signing in...");return a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState=="Completed"&&a.remiDetails.isDeleted===!1?i.jsx(L,{to:`./edit${n.search}`}):a.deleteStatus.fetchState==="In-Progress"||a.cancelAndDeleteStatus.fetchState==="In-Progress"||a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState!="Completed"||a.fetchState!="Completed"?i.jsx(Z,{fetchState:a.deleteStatus.fetchState,style:{backgroundColor:h.colors.grey5,boxShadow:`0px 2px ${me.sp1} ${h.colors.dropShadowNormal}`}}):i.jsxs(i.Fragment,{children:[i.jsx(X,{analytics:v,onLoad:C=>(O=>{u!=null&&O.trackReimbursementReimbursementDetails(u)})(C)}),i.jsx(jn,{initialOpenThreadRequest:m??void 0,scrollId:o,isReimbursementCommentingEnabled:T,isShowDeletedReimbursementEnabled:R,location:n,navigate:e,isRealTimeApprovalEnabled:b,currentTenant:r,reimbursementId:u??"",themeState:l})]})}const Ln=H(function(e,t){return{remisReviewView:Be(e),analytics:t.analytics}},function(e,t){return{onCloseOverlay:()=>{t.navigate("./"),e(_())},onCloseReviewItem:n=>{e(Pt(n))},onProceedForBulkActionClick:(n,o)=>{switch(n){case"send_for_approval":e(Mt());break;case"approve":e(he("approved",o??""));break;case"reject":e(he("rejected",o??""))}}}})(Sn);function Un(){const e=z(),t=B(u=>u.remisBulkActionViewState.bulkSubmissionFetchState.fetchState),{remisForReview:n}=B(u=>Be(u)),o=Q(),l=o?.loggedInUserRole?.includes("admin")===!0;return y.useEffect(()=>{t!=="Completed"&&n.length!==0||e("./")},[t,n.length]),i.jsx(Ln,{navigate:e,analytics:v,isAdmin:l})}const M=Zt(),Ge="bulk-operation-update",te="reimbursement-approval-rule-update",{spendManagement:Mn,common:Ie}=Rn.getLocalizedStrings(),Re=Mn.reimbursement.bulkActions,Pn=Pe.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{y as Le,X as Ve,a7 as O,P as Ge,c8 as Je,O as Me,ad as $e,V as i,eS as Ze,e as q,x as s,a_ as Xe,L as Ye,M as Ke,f7 as Pe,dh as Qe,f8 as ei,aU as ii,d7 as ti,a9 as ni,o as a,fa as oi,j as n,bH as ai,cc as li,e5 as si,fi as je,fj as Ae,fR as ri,a as ci,E as De,N as Ie,b8 as di,C as ui,aR as mi}from"./index-BocbTmE1.js";import{a as o}from"./sentry-DINNQYpi.js";import{n as t}from"./mui-C_CXevf3.js";import{cf as pi}from"./zeni-epic-state-a7Sj5mjO.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-C5m8jqup-BRodE0Ls.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="64f93223-ff50-4411-bc7d-8b89382c344d",e._sentryDebugIdIdentifier="sentry-dbid-64f93223-ff50-4411-bc7d-8b89382c344d")}catch{}})();const hi=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},pe={title:new Ie("standardSemiBold","largeSemiBold"),infoLabel:new Ie("extraSmallRegular","smallRegular")};function fi({companyMileageConfigInfo:e,mileageDetails:m,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:G}){const l=Ve(),A=Le(),{formState:{errors:J},trigger:Z}=li(),D=xi(P,"mileageAmountInDenomination"),f=si(J,D),{localData:c,updateStatus:z,mileageStatus:b}=m,R=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Me.getLocalizedStrings(),{reimbursement:K}=Y,[S,I]=o.useState(R),[Q,U]=o.useState(!1);o.useEffect(()=>{f||Z(D)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||U(S)},[S]);const{reimbursementSetup:x}=K,{setUp:ee}=X,ie=S===!1||z.fetchState==="In-Progress"?"readonly":r,te=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ne=c&&c?.mileageUnit?c?.mileageUnit:"";return i.jsxs(yi,{windowSize:l,style:j,isActive:d&&r==null,children:[i.jsxs(ji,{windowSize:l,children:[x.mileageHeader,d===!1?i.jsx(Ii,{children:ee.comingSoon}):null]}),i.jsxs($i,{windowSize:l,children:[i.jsx(ki,{windowSize:l,isDarkMode:A.mode==="dark",children:i.jsx(hi,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),i.jsxs(wi,{children:[i.jsxs(Pi,{children:[i.jsxs(Ai,{children:[i.jsxs(Di,{children:[i.jsx(Si,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),i.jsx(Ci,{children:x.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?i.jsx(je,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:Ae(b.code)}):null]}),i.jsxs(bi,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?i.jsx(je,{style:{width:"max-content"},tagTitle:b.name,textColor:Ae(b.code)}):null,i.jsx(vi,{})]})]}),i.jsxs(Ei,{children:[i.jsxs(Ti,{children:[i.jsx(ri,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:A.colors.background,color:S||f?void 0:A.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:Q,name:D,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:te,suffix:` ${x.perText} ${ne}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:E=>E!=null||r!=null,required:r==null},isDisabled:ie}),i.jsx(Vi,{children:S?i.jsx(ci,{label:x.save,"data-testid":De("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&R&&!f&&G?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:z.fetchState==="In-Progress"}):i.jsx(Mi,{isDisabled:r,"data-testid":De("edit-mileage"),onClick:E=>{E.stopPropagation(),I(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?i.jsx(Li,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(100*e.defaultMileageUnitAmount).toString()):c.description}):null]})]})]})]})}const xi=(e,m)=>`${e}.${m}`,yi=t.div`
1
+ import{y as Le,X as Ve,a7 as O,P as Ge,c8 as Je,O as Me,ad as $e,V as i,eS as Ze,e as q,x as s,a_ as Xe,L as Ye,M as Ke,f7 as Pe,dh as Qe,f8 as ei,aU as ii,d7 as ti,a9 as ni,o as a,fa as oi,j as n,bH as ai,cc as li,e5 as si,fi as je,fj as Ae,fR as ri,a as ci,E as De,N as Ie,b8 as di,C as ui,aR as mi}from"./index-DBW4633P.js";import{a as o}from"./sentry-DINNQYpi.js";import{n as t}from"./mui-C_CXevf3.js";import{cf as pi}from"./zeni-epic-state-a7Sj5mjO.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-C5m8jqup-BuDXKqpt.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="64f93223-ff50-4411-bc7d-8b89382c344d",e._sentryDebugIdIdentifier="sentry-dbid-64f93223-ff50-4411-bc7d-8b89382c344d")}catch{}})();const hi=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},pe={title:new Ie("standardSemiBold","largeSemiBold"),infoLabel:new Ie("extraSmallRegular","smallRegular")};function fi({companyMileageConfigInfo:e,mileageDetails:m,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:G}){const l=Ve(),A=Le(),{formState:{errors:J},trigger:Z}=li(),D=xi(P,"mileageAmountInDenomination"),f=si(J,D),{localData:c,updateStatus:z,mileageStatus:b}=m,R=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Me.getLocalizedStrings(),{reimbursement:K}=Y,[S,I]=o.useState(R),[Q,U]=o.useState(!1);o.useEffect(()=>{f||Z(D)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||U(S)},[S]);const{reimbursementSetup:x}=K,{setUp:ee}=X,ie=S===!1||z.fetchState==="In-Progress"?"readonly":r,te=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ne=c&&c?.mileageUnit?c?.mileageUnit:"";return i.jsxs(yi,{windowSize:l,style:j,isActive:d&&r==null,children:[i.jsxs(ji,{windowSize:l,children:[x.mileageHeader,d===!1?i.jsx(Ii,{children:ee.comingSoon}):null]}),i.jsxs($i,{windowSize:l,children:[i.jsx(ki,{windowSize:l,isDarkMode:A.mode==="dark",children:i.jsx(hi,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),i.jsxs(wi,{children:[i.jsxs(Pi,{children:[i.jsxs(Ai,{children:[i.jsxs(Di,{children:[i.jsx(Si,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),i.jsx(Ci,{children:x.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?i.jsx(je,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:Ae(b.code)}):null]}),i.jsxs(bi,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?i.jsx(je,{style:{width:"max-content"},tagTitle:b.name,textColor:Ae(b.code)}):null,i.jsx(vi,{})]})]}),i.jsxs(Ei,{children:[i.jsxs(Ti,{children:[i.jsx(ri,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:A.colors.background,color:S||f?void 0:A.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:Q,name:D,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:te,suffix:` ${x.perText} ${ne}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:E=>E!=null||r!=null,required:r==null},isDisabled:ie}),i.jsx(Vi,{children:S?i.jsx(ci,{label:x.save,"data-testid":De("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&R&&!f&&G?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:z.fetchState==="In-Progress"}):i.jsx(Mi,{isDisabled:r,"data-testid":De("edit-mileage"),onClick:E=>{E.stopPropagation(),I(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?i.jsx(Li,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(100*e.defaultMileageUnitAmount).toString()):c.description}):null]})]})]})]})}const xi=(e,m)=>`${e}.${m}`,yi=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{v as V,fw as W,V as _,bR as M,bS as z,bT as G,iW as Q,ag as q,O as H}from"./index-BocbTmE1.js";import{a as b}from"./sentry-DINNQYpi.js";import{GQ as J}from"./zeni-epic-state-a7Sj5mjO.js";import{u as K}from"./ReviewOverlay-CUnL7H-a-C2Hax1dX.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./mui-C_CXevf3.js";import"./pdf-DyB_VHQx.js";import"./recharts-CTWfsY-L.js";import"./lottie-C2R6rGxS.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="34b00430-875d-4f69-96ce-ab2153a3d655",e._sentryDebugIdIdentifier="sentry-dbid-34b00430-875d-4f69-96ce-ab2153a3d655")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=H.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:m,onCloseReviewItem:d,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:l,bulkOperationTypeSelected:r,currentTab:f,currentSubTab:g}=e,v=!1,T=V(),p=W(T),[y,u]=b.useState(!1),[h,A]=b.useState(P(e,v,o,p)),[w,D]=b.useState(v),[j,Z]=b.useState(0),[S,F]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(j===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(P(e,!1,o,p)),()=>{clearInterval(R)}),[h.length,j,w,e.fetchState,v,e,o,p]);const $=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,E={onOkClick:c=>{u(!1);const I=e.remisForReview.map(k=>k.reimbursement);s.trackReimbursementBulkPopupConfirm(r,f,g,J(I.map(k=>k?.reimbursementTypesIncluded??[]))),m("reject",c)},onCancelClick:()=>{u(!1)}},{title:O,description:L}=Y(i,x,$,w),C=e.fetchState==="Completed"&&x===0,U=()=>{s.trackReimbursementBulkSubmit(r,f,g),m(r)},N={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&l==="In-Progress",isLoading:r==="reject"&&l==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:()=>{const{title:c,description:I}=X(x);F({type:"reject",title:c,description:I,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,f,g),u(!0)},style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[y?_.jsx(M,{titleComponent:_.jsx(G,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(K,{title:O,description:{content:L,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:d,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:(()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&l==="In-Progress",isLoading:l==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:U,style:r==="send_for_approval"?{minWidth:"92px"}:{}}})(),cancelButton:N,hideCancel:C}})]})},P=(e,o,s,m)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=Q(s,t.submittedBy,m);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:t.reviewStatus??""}}})},X=e=>{const{this_:o,these:s,report:m,reports:d,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",d)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",m)}},Y=(e,o,s,m)=>{const{has:d,have:t,report:i,reports:l,are:r,is:f,do_:g,does:v}=a.texts,T=o>1,p=s>1;let y="",u="";return e!=="Completed"||m?(y=n.reviewPage.reportsReviewing.title.replace("__report__",p?l:i),u=n.reviewPage.reportsReviewing.description.replace("__report__",p?l:i)):(y=n.reviewPage.reportsReviewed.title.replace("__report__",p?B.bulkActions.reports:n.report).replace("<_has_>",p?t:d),u=o===0?n.reviewPage.reportsReviewed.descriptionError.replace("__report__",p?l:i).replace("<_do_>",p?g:v):`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?l:i).replace("<_is_>",T?r:f)}`),{title:y,description:u}};export{_e as default};
1
+ import{v as V,fw as W,V as _,bR as M,bS as z,bT as G,iW as Q,ag as q,O as H}from"./index-DBW4633P.js";import{a as b}from"./sentry-DINNQYpi.js";import{GQ as J}from"./zeni-epic-state-a7Sj5mjO.js";import{u as K}from"./ReviewOverlay-CUnL7H-a-B6WGfdWG.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./mui-C_CXevf3.js";import"./pdf-DyB_VHQx.js";import"./recharts-CTWfsY-L.js";import"./lottie-C2R6rGxS.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="34b00430-875d-4f69-96ce-ab2153a3d655",e._sentryDebugIdIdentifier="sentry-dbid-34b00430-875d-4f69-96ce-ab2153a3d655")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=H.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:m,onCloseReviewItem:d,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:l,bulkOperationTypeSelected:r,currentTab:f,currentSubTab:g}=e,v=!1,T=V(),p=W(T),[y,u]=b.useState(!1),[h,A]=b.useState(P(e,v,o,p)),[w,D]=b.useState(v),[j,Z]=b.useState(0),[S,F]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(j===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(P(e,!1,o,p)),()=>{clearInterval(R)}),[h.length,j,w,e.fetchState,v,e,o,p]);const $=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,E={onOkClick:c=>{u(!1);const I=e.remisForReview.map(k=>k.reimbursement);s.trackReimbursementBulkPopupConfirm(r,f,g,J(I.map(k=>k?.reimbursementTypesIncluded??[]))),m("reject",c)},onCancelClick:()=>{u(!1)}},{title:O,description:L}=Y(i,x,$,w),C=e.fetchState==="Completed"&&x===0,U=()=>{s.trackReimbursementBulkSubmit(r,f,g),m(r)},N={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&l==="In-Progress",isLoading:r==="reject"&&l==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:()=>{const{title:c,description:I}=X(x);F({type:"reject",title:c,description:I,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,f,g),u(!0)},style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[y?_.jsx(M,{titleComponent:_.jsx(G,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(K,{title:O,description:{content:L,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:d,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:(()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&l==="In-Progress",isLoading:l==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:U,style:r==="send_for_approval"?{minWidth:"92px"}:{}}})(),cancelButton:N,hideCancel:C}})]})},P=(e,o,s,m)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=Q(s,t.submittedBy,m);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:t.reviewStatus??""}}})},X=e=>{const{this_:o,these:s,report:m,reports:d,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",d)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",m)}},Y=(e,o,s,m)=>{const{has:d,have:t,report:i,reports:l,are:r,is:f,do_:g,does:v}=a.texts,T=o>1,p=s>1;let y="",u="";return e!=="Completed"||m?(y=n.reviewPage.reportsReviewing.title.replace("__report__",p?l:i),u=n.reviewPage.reportsReviewing.description.replace("__report__",p?l:i)):(y=n.reviewPage.reportsReviewed.title.replace("__report__",p?B.bulkActions.reports:n.report).replace("<_has_>",p?t:d),u=o===0?n.reviewPage.reportsReviewed.descriptionError.replace("__report__",p?l:i).replace("<_do_>",p?g:v):`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?l:i).replace("<_is_>",T?r:f)}`),{title:y,description:u}};export{_e as default};
@@ -1,4 +1,4 @@
1
- import{y as h,V as r,a4 as a,an as f,am as m,O as y,E as b,aa as l,b0 as g,C as u,o as c}from"./index-BocbTmE1.js";import{n as s}from"./mui-C_CXevf3.js";import{a as d}from"./sentry-DINNQYpi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4b52cb23-c6e9-4ad1-bcfe-e085417e8430",e._sentryDebugIdIdentifier="sentry-dbid-4b52cb23-c6e9-4ad1-bcfe-e085417e8430")}catch{}})();function j({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=0,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 w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=0,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 x=s(l)`
1
+ import{y as h,V as r,a4 as a,an as f,am as m,O as y,E as b,aa as l,b0 as g,C as u,o as c}from"./index-DBW4633P.js";import{n as s}from"./mui-C_CXevf3.js";import{a as d}from"./sentry-DINNQYpi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4b52cb23-c6e9-4ad1-bcfe-e085417e8430",e._sentryDebugIdIdentifier="sentry-dbid-4b52cb23-c6e9-4ad1-bcfe-e085417e8430")}catch{}})();function j({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=0,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 w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=0,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 x=s(l)`
2
2
  justify-content: flex-start;
3
3
  `;function B({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:n,width:i})=>r.jsx(j,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const p=s(l)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{y as Q,X as de,bF as fe,P as be,V as t,i as xe,bG as te,M as ye,x as S,a9 as _e,o as r,bH as we,H as he,O as ee,bI as $e,C as ve,S as Z,b0 as ke,j as m,ad as Ce,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-BocbTmE1.js";import{a as u,b as ue}from"./sentry-DINNQYpi.js";import{n as h}from"./mui-C_CXevf3.js";import{t as O,n as Pe}from"./CollapsableReportTable-h0vIfI8o-Q6XPsw6M.js";import{t as De}from"./filter-cZIFUNvj-DR0oScp6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3a34d635-e06c-41ec-a7ba-b06f87b93828",e._sentryDebugIdIdentifier="sentry-dbid-3a34d635-e06c-41ec-a7ba-b06f87b93828")}catch{}})();const z=ee.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;async function ro(e,i,n){const s=ee.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(function(o){return{locale_id:o.localeId,show_negative_amount_in_parenthesis:o.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:o.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:o.filterAccountGroupsWithNilBalances,include_cover_page:o.includeCoverPage,company_name:o.companyName,statement_file_type:o.statementFileType,statements:o.statements,first_month_of_fy:o.firstMonthOfFY,book_close_date:o.bookCloseDate!=null?o.bookCloseDate.format(z):void 0,timeframe:o.timeframe,additional_balances:o.additionalBalances,format:o.format,balances_filter:Te(o.balancesFilter),account_view_mode:o.accountViewMode,classes_to_filter_out:o.classesToFilterOut,data_available:Fe(o.dataAvailable),is_zeni_coa_used:o.isZeniCOAUsed,class_view_layout:o.accountViewMode==="classes"?o.classViewLayout:void 0}}(n)))}`;try{const o=await je({urlEndPoint:l,authParams:i,fileType:n.statementFileType});if(o.ok){const y=Ne(o.headers,s.defaultFileName),_=await o.arrayBuffer();Ie(_,y)}else console.error(`${s.reportErrorMessage} ${o.statusText}`)}catch(o){console.error(`${s.reportErrorMessage} ${JSON.stringify(o)}`)}}const Be=h.div`
1
+ import{y as Q,X as de,bF as fe,P as be,V as t,i as xe,bG as te,M as ye,x as S,a9 as _e,o as r,bH as we,H as he,O as ee,bI as $e,C as ve,S as Z,b0 as ke,j as m,ad as Ce,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-DBW4633P.js";import{a as u,b as ue}from"./sentry-DINNQYpi.js";import{n as h}from"./mui-C_CXevf3.js";import{t as O,n as Pe}from"./CollapsableReportTable-h0vIfI8o-B6GpVtrk.js";import{t as De}from"./filter-cZIFUNvj-DR0oScp6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3a34d635-e06c-41ec-a7ba-b06f87b93828",e._sentryDebugIdIdentifier="sentry-dbid-3a34d635-e06c-41ec-a7ba-b06f87b93828")}catch{}})();const z=ee.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;async function ro(e,i,n){const s=ee.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(function(o){return{locale_id:o.localeId,show_negative_amount_in_parenthesis:o.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:o.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:o.filterAccountGroupsWithNilBalances,include_cover_page:o.includeCoverPage,company_name:o.companyName,statement_file_type:o.statementFileType,statements:o.statements,first_month_of_fy:o.firstMonthOfFY,book_close_date:o.bookCloseDate!=null?o.bookCloseDate.format(z):void 0,timeframe:o.timeframe,additional_balances:o.additionalBalances,format:o.format,balances_filter:Te(o.balancesFilter),account_view_mode:o.accountViewMode,classes_to_filter_out:o.classesToFilterOut,data_available:Fe(o.dataAvailable),is_zeni_coa_used:o.isZeniCOAUsed,class_view_layout:o.accountViewMode==="classes"?o.classViewLayout:void 0}}(n)))}`;try{const o=await je({urlEndPoint:l,authParams:i,fileType:n.statementFileType});if(o.ok){const y=Ne(o.headers,s.defaultFileName),_=await o.arrayBuffer();Ie(_,y)}else console.error(`${s.reportErrorMessage} ${o.statusText}`)}catch(o){console.error(`${s.reportErrorMessage} ${JSON.stringify(o)}`)}}const Be=h.div`
2
2
  padding: 0 ${r.sp3} 0 ${r.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 me,y as fe,v as lt,ba as ct,bb as dt,bc as pt,O as k,V as a,bd as ht,E as F,a$ as mt,aM as ft,a_ as ut,be as gt,o as S,ab as bt,L as _t,bf as yt,x as W,bg as xt,j,i as ye,K as z,bh as xe,bi as wt,C as ue,$ as St,bj as Ct,S as Me,bk as Rt,ad as Ot,l as Fe,k as vt,b7 as Tt}from"./index-BocbTmE1.js";import{a as v,b as Ie}from"./sentry-DINNQYpi.js";import{n as g}from"./mui-C_CXevf3.js";import{_ as At}from"./liveblocks-BsQBjN-0.js";import{bt as we,Fc as kt,Fl as Bt,Fm as Lt,Fn as Q,Fo as jt,Fp as Nt,Fq as $t,Fr as Mt,Fs as Ft,Ft as re,Fu as le,Fv as Se}from"./zeni-epic-state-a7Sj5mjO.js";import{j as It,z as ce}from"./mapTimeframeBalancesToTreeNode-CW_wzI5T-BaeuL7EQ.js";import{m as J,l as de}from"./analyticsHelper-D9xdJK4b-DkISjLhy.js";import{b as Pt}from"./ReportTableViewSelector-Ig41fOPb-DWudlBCf.js";import{S as oe,y as Et,M as Vt,$ as zt,v as Dt}from"./TimeRangeSwitcher-C3jXm39I-fOK0S_yE.js";import{X as Ut}from"./TimeframeSwitcherWithToggle-w4YJno-p-mLBmOb3v.js";import{DownloadOverlayButton as Wt}from"./DownloadOverlay-BpRKCn-0-Ceuu4G9V.js";import{Z as Yt,n as Gt,t as P,j as Ce}from"./CollapsableReportTable-h0vIfI8o-Q6XPsw6M.js";import{D as Re,T as Oe,C as te,L as Ht,g as Pe}from"./mapSectionWithAcOnlyToTreeNode-dsBogxKz-DAKgnUEj.js";import{d as qt,l as Zt}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-CUYmne9-.js";import{d as Xt}from"./mapLoadingInProgressToTreeNode-DrC2Zs2y-B2Wt05iy.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";import"./filter-cZIFUNvj-DR0oScp6.js";import"./TimeframeSwitcher-CcYg-YQJ-DfqszobX.js";import"./page-detail-CWX5S47F-DCvximFz.js";import"./page-summary-D7_VQHwN-BBMfUdRp.js";import"./AccountRow-BrW_eEjE-Cmf0Jids.js";import"./clock-CJkylEKt-BFtrn8ev.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b26a6b1e-6da5-4b33-9e1b-7dfd42727b16",e._sentryDebugIdIdentifier="sentry-dbid-b26a6b1e-6da5-4b33-9e1b-7dfd42727b16")}catch{}})();const Kt=g.div`
1
+ import{X as me,y as fe,v as lt,ba as ct,bb as dt,bc as pt,O as k,V as a,bd as ht,E as F,a$ as mt,aM as ft,a_ as ut,be as gt,o as S,ab as bt,L as _t,bf as yt,x as W,bg as xt,j,i as ye,K as z,bh as xe,bi as wt,C as ue,$ as St,bj as Ct,S as Me,bk as Rt,ad as Ot,l as Fe,k as vt,b7 as Tt}from"./index-DBW4633P.js";import{a as v,b as Ie}from"./sentry-DINNQYpi.js";import{n as g}from"./mui-C_CXevf3.js";import{_ as At}from"./liveblocks-BsQBjN-0.js";import{bt as we,Fc as kt,Fl as Bt,Fm as Lt,Fn as Q,Fo as jt,Fp as Nt,Fq as $t,Fr as Mt,Fs as Ft,Ft as re,Fu as le,Fv as Se}from"./zeni-epic-state-a7Sj5mjO.js";import{j as It,z as ce}from"./mapTimeframeBalancesToTreeNode-CW_wzI5T-u6fAoA1F.js";import{m as J,l as de}from"./analyticsHelper-D9xdJK4b-C4FHTXha.js";import{b as Pt}from"./ReportTableViewSelector-Ig41fOPb-rBlSQ3e9.js";import{S as oe,y as Et,M as Vt,$ as zt,v as Dt}from"./TimeRangeSwitcher-C3jXm39I-0VbXr2bN.js";import{X as Ut}from"./TimeframeSwitcherWithToggle-w4YJno-p-C9o85JE8.js";import{DownloadOverlayButton as Wt}from"./DownloadOverlay-BpRKCn-0-L4byV6ko.js";import{Z as Yt,n as Gt,t as P,j as Ce}from"./CollapsableReportTable-h0vIfI8o-B6GpVtrk.js";import{D as Re,T as Oe,C as te,L as Ht,g as Pe}from"./mapSectionWithAcOnlyToTreeNode-dsBogxKz-D2PE8B4K.js";import{d as qt,l as Zt}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-BAYHZBxR.js";import{d as Xt}from"./mapLoadingInProgressToTreeNode-DrC2Zs2y-BM0pLknf.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";import"./filter-cZIFUNvj-DR0oScp6.js";import"./TimeframeSwitcher-CcYg-YQJ-DOGZ9gMN.js";import"./page-detail-CWX5S47F-DCvximFz.js";import"./page-summary-D7_VQHwN-BBMfUdRp.js";import"./AccountRow-BrW_eEjE-DNRjFVcP.js";import"./clock-CJkylEKt-BFtrn8ev.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b26a6b1e-6da5-4b33-9e1b-7dfd42727b16",e._sentryDebugIdIdentifier="sentry-dbid-b26a6b1e-6da5-4b33-9e1b-7dfd42727b16")}catch{}})();const Kt=g.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  `,Qt=g.div`
@@ -1 +1 @@
1
- import{j as c}from"./liveblocks-BsQBjN-0.js";import{j as ee,i as ae,h as te,l as se,u as f,k as oe,R as ne,m as V}from"./core-5sxMy3sZ.js";import{ct as L,cR as C,HG as re,mV as F,gB as le,fF as ie,m_ as ce,bt as de,HH as pe,bm as me,rd as fe,HI as ue,HJ as _e,qb as he,HK as v,HL as be,HM as ye,HN as T,HO as O,HP as k,HQ as D,HR as H,Fn as ge,qV as Ce,qJ as U,qK as j,q$ as Ie,qO as x,r5 as we,HS as Se,HT as Te,HU as Re,HV as Fe,HW as Oe,cA as ke,cy as De}from"./zeni-epic-state-a7Sj5mjO.js";import{X as He,aE as G,aG as A,ju as Y,k4 as Ae,v as Ee,bk as Le,jB as E,K as Me,k5 as Pe,k6 as Be,jQ as Ve}from"./index-BocbTmE1.js";import"./mui-C_CXevf3.js";import ve from"./NotFoundScreen-MU1vvTl3.js";import{F as Ue}from"./FeaturePreviewScreen-D2Pa-R10.js";import{a as y}from"./sentry-DINNQYpi.js";import{u as je}from"./useInitialThreadRequest-GWflkp6K.js";import{t as z,a as q}from"./routePaths-_EQ7HBkZ.js";import{M as xe}from"./MobileAppDrawer-DXy0Oi_h.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7cf333b6-1bb3-491c-b099-7fb4d9731611",e._sentryDebugIdIdentifier="sentry-dbid-7cf333b6-1bb3-491c-b099-7fb4d9731611")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",t={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},s=C(e),n=pe(u);return{fetchState:s.fetchState,selectedTimeframe:s.filter.timeframe,selectedReport:s.selectedReportId,displayOrder:s.displayOrder,reportFormat:s.reportFormat,dataAvailable:s.dataAvailable,balancesInTimeframe:s.balancesInTimeframe,allTimeframeTicks:s.allTimeframeTicks,selectedCOABalancesRange:s.filter.balancesRange,isCompareMode:s.isCompareModeOn,profitAndLossReport:s.profitAndLossReport,profitAndLossClassesViewReport:s.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:s.profitAndLossByClassHorizontalReport,balanceSheetReport:s.balanceSheetReport,cashFlowReport:s.cashFlowReport,downloadState:s.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:t,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,t,s)=>{if(e(we(a)),t){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(j(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}s!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const t=o.selectedReportID;if(a===t)return;const s=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&t==="profit_and_loss_by_classes"&&s==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&t==="profit_and_loss_by_classes"&&s==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,t)=>{e(x(a,t)),g(e)},onThisPeriodChanged:(a,t,s)=>{e(Ie(o.firstMonthOfFY,a,t<4?4:t)),s!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,t,s,n)=>{e(U(o.firstMonthOfFY,a,s<4?4:s,t)),t.length>0&&e(j(o.firstMonthOfFY,t.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",s<4?4:s,t)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,t,s,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:t,additionalBalances:a,maxNumOfPeriodsToHighlight:s<4?4:s,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,t,s)=>{let n,l;if(t.balanceTimeFrame==="month"||t.balanceTimeFrame==="quarter"?(n=t.balanceTimeFrame,l=ge(t)):t.balanceTimeFrame==="year"?(n="quarter",l={startDate:t.endDate.startOf("quarter"),endDate:t.endDate}):console.error(`timeframe ${t.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(s?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(s?.isHorizontalClassColumn===!0&&t.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,t.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=Ve(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,t)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:t}));break;case"profit_and_loss_by_classes":e(D({scrollPosition:t}));break;case"balance_sheet":e(k({scrollPosition:t}));break;case"cash_flow":e(O({scrollPosition:t}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,t,s)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:t,isCollapsed:s}}));break;case"profit_and_loss_by_classes":e(D({nodeCollapseState:{nodeId:t,isCollapsed:s}}));break;case"balance_sheet":e(k({nodeCollapseState:{nodeId:t,isCollapsed:s}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:t,isCollapsed:s}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=te(),{tenantEmailDomain:a}=se(),{useFeatureGate:t}=G(),{isFeatureEnabled:s}=t(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=t(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=je(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),K=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),J=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),Q=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Z=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:Q,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:J,hasTransactionAccess:Z,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:K.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:s,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(t=>L(t)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=ke(i,e),a=De(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(V,{path:"/",element:c.jsx(Ge,{})}),c.jsx(V,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
1
+ import{j as c}from"./liveblocks-BsQBjN-0.js";import{j as ee,i as ae,h as te,l as se,u as f,k as oe,R as ne,m as V}from"./core-5sxMy3sZ.js";import{ct as L,cR as C,HG as re,mV as F,gB as le,fF as ie,m_ as ce,bt as de,HH as pe,bm as me,rd as fe,HI as ue,HJ as _e,qb as he,HK as v,HL as be,HM as ye,HN as T,HO as O,HP as k,HQ as D,HR as H,Fn as ge,qV as Ce,qJ as U,qK as j,q$ as Ie,qO as x,r5 as we,HS as Se,HT as Te,HU as Re,HV as Fe,HW as Oe,cA as ke,cy as De}from"./zeni-epic-state-a7Sj5mjO.js";import{X as He,aE as G,aG as A,ju as Y,k4 as Ae,v as Ee,bk as Le,jB as E,K as Me,k5 as Pe,k6 as Be,jQ as Ve}from"./index-DBW4633P.js";import"./mui-C_CXevf3.js";import ve from"./NotFoundScreen-DIsBJSaH.js";import{F as Ue}from"./FeaturePreviewScreen-DX_dSelb.js";import{a as y}from"./sentry-DINNQYpi.js";import{u as je}from"./useInitialThreadRequest-CIvC2FkG.js";import{t as z,a as q}from"./routePaths-GPfd2GU_.js";import{M as xe}from"./MobileAppDrawer-D_NdxckS.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7cf333b6-1bb3-491c-b099-7fb4d9731611",e._sentryDebugIdIdentifier="sentry-dbid-7cf333b6-1bb3-491c-b099-7fb4d9731611")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",t={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},s=C(e),n=pe(u);return{fetchState:s.fetchState,selectedTimeframe:s.filter.timeframe,selectedReport:s.selectedReportId,displayOrder:s.displayOrder,reportFormat:s.reportFormat,dataAvailable:s.dataAvailable,balancesInTimeframe:s.balancesInTimeframe,allTimeframeTicks:s.allTimeframeTicks,selectedCOABalancesRange:s.filter.balancesRange,isCompareMode:s.isCompareModeOn,profitAndLossReport:s.profitAndLossReport,profitAndLossClassesViewReport:s.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:s.profitAndLossByClassHorizontalReport,balanceSheetReport:s.balanceSheetReport,cashFlowReport:s.cashFlowReport,downloadState:s.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:t,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,t,s)=>{if(e(we(a)),t){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(j(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}s!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const t=o.selectedReportID;if(a===t)return;const s=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&t==="profit_and_loss_by_classes"&&s==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&t==="profit_and_loss_by_classes"&&s==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,t)=>{e(x(a,t)),g(e)},onThisPeriodChanged:(a,t,s)=>{e(Ie(o.firstMonthOfFY,a,t<4?4:t)),s!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,t,s,n)=>{e(U(o.firstMonthOfFY,a,s<4?4:s,t)),t.length>0&&e(j(o.firstMonthOfFY,t.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",s<4?4:s,t)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,t,s,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:t,additionalBalances:a,maxNumOfPeriodsToHighlight:s<4?4:s,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,t,s)=>{let n,l;if(t.balanceTimeFrame==="month"||t.balanceTimeFrame==="quarter"?(n=t.balanceTimeFrame,l=ge(t)):t.balanceTimeFrame==="year"?(n="quarter",l={startDate:t.endDate.startOf("quarter"),endDate:t.endDate}):console.error(`timeframe ${t.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(s?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(s?.isHorizontalClassColumn===!0&&t.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,t.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=Ve(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,t)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:t}));break;case"profit_and_loss_by_classes":e(D({scrollPosition:t}));break;case"balance_sheet":e(k({scrollPosition:t}));break;case"cash_flow":e(O({scrollPosition:t}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,t,s)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:t,isCollapsed:s}}));break;case"profit_and_loss_by_classes":e(D({nodeCollapseState:{nodeId:t,isCollapsed:s}}));break;case"balance_sheet":e(k({nodeCollapseState:{nodeId:t,isCollapsed:s}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:t,isCollapsed:s}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=te(),{tenantEmailDomain:a}=se(),{useFeatureGate:t}=G(),{isFeatureEnabled:s}=t(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=t(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=je(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),K=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),J=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),Q=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Z=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:Q,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:J,hasTransactionAccess:Z,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:K.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:s,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(t=>L(t)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=ke(i,e),a=De(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(V,{path:"/",element:c.jsx(Ge,{})}),c.jsx(V,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
@@ -1,4 +1,4 @@
1
- import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de,o as x,E as Fe,x as fe,b8 as ge,l as R,b9 as F,au as K}from"./index-BocbTmE1.js";import{a as z,b as ee}from"./sentry-DINNQYpi.js";import{n as f}from"./mui-C_CXevf3.js";import{p as b,b as N,d as te,y as T,g as ae,u as W}from"./chartTypes-Dq3hUz_T-DlStt0to.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-P7keEtAg-CVzjqCh4.js";import{V as J}from"./toChartData-BUf5HHim-BMyIU8Hn.js";import{D as pe,H as oe,N as me,C as le,X as ne,Y as ce,B as se,E as xe,G as We}from"./recharts-CTWfsY-L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="49c7231b-9cb5-4ea5-9339-483f9a820508",e._sentryDebugIdIdentifier="sentry-dbid-49c7231b-9cb5-4ea5-9339-483f9a820508")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
1
+ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de,o as x,E as Fe,x as fe,b8 as ge,l as R,b9 as F,au as K}from"./index-DBW4633P.js";import{a as z,b as ee}from"./sentry-DINNQYpi.js";import{n as f}from"./mui-C_CXevf3.js";import{p as b,b as N,d as te,y as T,g as ae,u as W}from"./chartTypes-Dq3hUz_T-boMzYtYd.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-P7keEtAg-DjgvOCvR.js";import{V as J}from"./toChartData-BUf5HHim-BlDtF069.js";import{D as pe,H as oe,N as me,C as le,X as ne,Y as ce,B as se,E as xe,G as We}from"./recharts-CTWfsY-L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="49c7231b-9cb5-4ea5-9339-483f9a820508",e._sentryDebugIdIdentifier="sentry-dbid-49c7231b-9cb5-4ea5-9339-483f9a820508")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
2
2
  display: flex;
3
3
  `,He=f.div`
4
4
  margin: ${x.sp2} ${x.sp0} ${x.sp2} ${x.sp0};
@@ -1,4 +1,4 @@
1
- import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as ie,eQ as Tt,eR as Dt,eS as It,eT as Pt,a5 as k,eU as kt,E as v,eV as Mt,eW as Be,eX as Fe,eY as Re,w as K,d2 as O,e as j,eZ as At,e_ as E,d8 as V,e$ as Bt,f0 as Ft,bo as Le,o as n,a9 as Rt,j as d,O as Lt,u as Nt,bx as zt,N as Ot,d as Et,f1 as Vt,bH as _t,l as ce,H as me,f2 as Yt,f3 as Zt,aD as Gt,n as Ut,at as Ht,f4 as Kt,D as tt,b6 as qt,C as nt,aR as Wt,f5 as Xt}from"./index-BocbTmE1.js";import{a as Y}from"./sentry-DINNQYpi.js";import{n as a}from"./mui-C_CXevf3.js";import{cp as Ne,ci as ze,bU as D,c3 as Jt,G0 as Qt,bG as re,c5 as en}from"./zeni-epic-state-a7Sj5mjO.js";import{t as tn,o as nn}from"./LowBalancePopup-C2vHKMNF-CMEceag2.js";import{S as _}from"./LabeledText-DGZ7hxY4-BBOC0Eln.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="b51c070f-1855-4311-b71a-0a45c4443964",e._sentryDebugIdIdentifier="sentry-dbid-b51c070f-1855-4311-b71a-0a45c4443964")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:Ve}=ln,_e=({attachment:e})=>{const[y,x]=Y.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Zt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:J,retryPayment:ct})=>{const s=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),I=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},N={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Y.useState(!1),[te,be]=Y.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:s,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Y.useEffect(()=>{(I?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),ge())},[I,Q,ge,ue,he]);const P=e.billPayInfo?.stage,z=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:z?.code=="approved"&&Z?.code?Z:z,yt=e.billPayInfo?.isRefundInitiated===!0?ut:z?.code=="approved"&&Z?.code?Z:z,ae=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,U=y.allApprovalRules.length>0,gt=Ne(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-N.amount:p.amount,i?.fee.currencyCode??ze.currencyCode,i?.fee.currencySymbol??ze.currencySymbol),f=Jt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ye(h,U,e.isBillMarkedForRetry),le=st&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&H(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=z?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Xt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Qt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,H]=Y.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{dt(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{H(!1),ae()},onClickAway:()=>{H(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:s,style:lt,children:[s==="small"?t.jsxs(Pn,{windowSize:s,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ue,{windowSize:s,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),s!=="small"?t.jsx(bn,{children:t.jsx(Ue,{windowSize:s,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(Vn,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(zn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(He,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(Nn,{"data-testid":v("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(Dn,{children:[t.jsx(Ke,{children:o.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ke,{children:o.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,s):g,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Kt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(q,{}),f||G==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:G.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(G.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(q,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(s,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:s,children:[t.jsxs(yn,{children:[t.jsx(dn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:i.method.includes(D)&&ee!==$.currencyCode?Ve.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:Ve.transactionFee}),t.jsx(se,{children:k("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(sn,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:Ne(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,U,s)}},primaryBtn:{label:Ye(h,U,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?H(!0):Ce()},style:{width:Ze(!0,C,h,U,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Zn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Yn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ye=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ze=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(qt)`
1
+ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as ie,eQ as Tt,eR as Dt,eS as It,eT as Pt,a5 as k,eU as kt,E as v,eV as Mt,eW as Be,eX as Fe,eY as Re,w as K,d2 as O,e as j,eZ as At,e_ as E,d8 as V,e$ as Bt,f0 as Ft,bo as Le,o as n,a9 as Rt,j as d,O as Lt,u as Nt,bx as zt,N as Ot,d as Et,f1 as Vt,bH as _t,l as ce,H as me,f2 as Yt,f3 as Zt,aD as Gt,n as Ut,at as Ht,f4 as Kt,D as tt,b6 as qt,C as nt,aR as Wt,f5 as Xt}from"./index-DBW4633P.js";import{a as Y}from"./sentry-DINNQYpi.js";import{n as a}from"./mui-C_CXevf3.js";import{cp as Ne,ci as ze,bU as D,c3 as Jt,G0 as Qt,bG as re,c5 as en}from"./zeni-epic-state-a7Sj5mjO.js";import{t as tn,o as nn}from"./LowBalancePopup-C2vHKMNF-B1dLaV9R.js";import{S as _}from"./LabeledText-DGZ7hxY4-BoX7lemD.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="b51c070f-1855-4311-b71a-0a45c4443964",e._sentryDebugIdIdentifier="sentry-dbid-b51c070f-1855-4311-b71a-0a45c4443964")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:Ve}=ln,_e=({attachment:e})=>{const[y,x]=Y.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Zt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:J,retryPayment:ct})=>{const s=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),I=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},N={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Y.useState(!1),[te,be]=Y.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:s,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Y.useEffect(()=>{(I?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),ge())},[I,Q,ge,ue,he]);const P=e.billPayInfo?.stage,z=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:z?.code=="approved"&&Z?.code?Z:z,yt=e.billPayInfo?.isRefundInitiated===!0?ut:z?.code=="approved"&&Z?.code?Z:z,ae=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,U=y.allApprovalRules.length>0,gt=Ne(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-N.amount:p.amount,i?.fee.currencyCode??ze.currencyCode,i?.fee.currencySymbol??ze.currencySymbol),f=Jt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ye(h,U,e.isBillMarkedForRetry),le=st&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&H(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=z?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Xt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Qt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,H]=Y.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{dt(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{H(!1),ae()},onClickAway:()=>{H(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:s,style:lt,children:[s==="small"?t.jsxs(Pn,{windowSize:s,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ue,{windowSize:s,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),s!=="small"?t.jsx(bn,{children:t.jsx(Ue,{windowSize:s,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(Vn,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(zn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(He,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(Nn,{"data-testid":v("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(Dn,{children:[t.jsx(Ke,{children:o.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ke,{children:o.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,s):g,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Kt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(q,{}),f||G==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:G.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(G.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(q,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(s,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:s,children:[t.jsxs(yn,{children:[t.jsx(dn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:i.method.includes(D)&&ee!==$.currencyCode?Ve.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:Ve.transactionFee}),t.jsx(se,{children:k("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(sn,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:Ne(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,U,s)}},primaryBtn:{label:Ye(h,U,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?H(!0):Ce()},style:{width:Ze(!0,C,h,U,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Zn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Yn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ye=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ze=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(qt)`
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 P,V as i,E as m,o as r,a9 as B,x as d,a8 as L,N as I,d as W,e as s,l as b,c1 as D,L as R,C as S,aC as G,j as o,dV as A,aA as _,ib as F}from"./index-BocbTmE1.js";import{n as t}from"./mui-C_CXevf3.js";import{a as w}from"./sentry-DINNQYpi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="0c0cb6b6-ef38-4ce4-8184-e29407965396",e._sentryDebugIdIdentifier="sentry-dbid-0c0cb6b6-ef38-4ce4-8184-e29407965396")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},me=({title:e,description:g,reviewItems:x,showFooter:z,footerProps:{primaryButton:C,cancelButton:E,hideCancel:T},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(Q,{windowSize:l,children:i.jsx(U,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(N,{windowSize:l,children:[i.jsx(O,{children:i.jsx(X,{windowSize:l,children:e})}),i.jsx(q,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(K,{windowSize:l,children:x.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":m("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:V(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:E,showCancel:!T}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
1
+ import{X as P,V as i,E as m,o as r,a9 as B,x as d,a8 as L,N as I,d as W,e as s,l as b,c1 as D,L as R,C as S,aC as G,j as o,dV as A,aA as _,ib as F}from"./index-DBW4633P.js";import{n as t}from"./mui-C_CXevf3.js";import{a as w}from"./sentry-DINNQYpi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="0c0cb6b6-ef38-4ce4-8184-e29407965396",e._sentryDebugIdIdentifier="sentry-dbid-0c0cb6b6-ef38-4ce4-8184-e29407965396")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},me=({title:e,description:g,reviewItems:x,showFooter:z,footerProps:{primaryButton:C,cancelButton:E,hideCancel:T},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(Q,{windowSize:l,children:i.jsx(U,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(N,{windowSize:l,children:[i.jsx(O,{children:i.jsx(X,{windowSize:l,children:e})}),i.jsx(q,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(K,{windowSize:l,children:x.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":m("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:V(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:E,showCancel:!T}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1 +1 @@
1
- import{j as e}from"./liveblocks-BsQBjN-0.js";import{aE as x,ju as w,aF as y,bk as I,jB as p,K as F,ml as L,aG as P}from"./index-BocbTmE1.js";import"./mui-C_CXevf3.js";import m from"./NotFoundScreen-MU1vvTl3.js";import{a as u}from"./sentry-DINNQYpi.js";import{i as R,u as b,j as T,h as V,k as A,R as O,m as d}from"./core-5sxMy3sZ.js";import{ct as U,O8 as C,L3 as G,O9 as k,qA as q,cG as z,Oa as Y,qy as B}from"./zeni-epic-state-a7Sj5mjO.js";import{R as j}from"./ReferralListScreen-DJHg0qdR.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";import"./MobileAppDrawer-DXy0Oi_h.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="72b2053a-8497-4568-94b8-43826af591d1",a._sentryDebugIdIdentifier="sentry-dbid-72b2053a-8497-4568-94b8-43826af591d1")}catch{}})();const K=A(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{a(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(B())},onUpdateInviteFormLocalData:s=>{a(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),H=()=>{const a=R(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=b(i=>U(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const l=b(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),E=G(v);u.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&o===!1&&(a(q()),s(!0))},[]),u.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(z(!0)))},[l.fetchState,a]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(O,{children:[e.jsx(d,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(d,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(d,{path:"refer/*",element:t?e.jsx(H,{}):e.jsx(m,{})}),e.jsx(d,{path:"*",element:e.jsx(m,{})})]})}export{la as default};
1
+ import{j as e}from"./liveblocks-BsQBjN-0.js";import{aE as x,ju as w,aF as y,bk as I,jB as p,K as F,ml as L,aG as P}from"./index-DBW4633P.js";import"./mui-C_CXevf3.js";import m from"./NotFoundScreen-DIsBJSaH.js";import{a as u}from"./sentry-DINNQYpi.js";import{i as R,u as b,j as T,h as V,k as A,R as O,m as d}from"./core-5sxMy3sZ.js";import{ct as U,O8 as C,L3 as G,O9 as k,qA as q,cG as z,Oa as Y,qy as B}from"./zeni-epic-state-a7Sj5mjO.js";import{R as j}from"./ReferralListScreen-DTl3cgUl.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";import"./MobileAppDrawer-D_NdxckS.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="72b2053a-8497-4568-94b8-43826af591d1",a._sentryDebugIdIdentifier="sentry-dbid-72b2053a-8497-4568-94b8-43826af591d1")}catch{}})();const K=A(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{a(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(B())},onUpdateInviteFormLocalData:s=>{a(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),H=()=>{const a=R(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=b(i=>U(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const l=b(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),E=G(v);u.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&o===!1&&(a(q()),s(!0))},[]),u.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(z(!0)))},[l.fetchState,a]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(O,{children:[e.jsx(d,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(d,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(d,{path:"refer/*",element:t?e.jsx(H,{}):e.jsx(m,{})}),e.jsx(d,{path:"*",element:e.jsx(m,{})})]})}export{la as default};
@@ -1,4 +1,4 @@
1
- import{eq as p,er as h,V as s,bo as g,o,E as l,O as x,g as b,C as c}from"./index-BocbTmE1.js";import{n as a}from"./mui-C_CXevf3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1109b0bd-c009-4016-a818-5a0b14ea0aac",e._sentryDebugIdIdentifier="sentry-dbid-1109b0bd-c009-4016-a818-5a0b14ea0aac")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,f=a.div``,m=a.div`
1
+ import{eq as p,er as h,V as s,bo as g,o,E as l,O as x,g as b,C as c}from"./index-DBW4633P.js";import{n as a}from"./mui-C_CXevf3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1109b0bd-c009-4016-a818-5a0b14ea0aac",e._sentryDebugIdIdentifier="sentry-dbid-1109b0bd-c009-4016-a818-5a0b14ea0aac")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,f=a.div``,m=a.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{a7 as U,hK as Y,ga as fe,ed as Le,hL as we,P as Je,hM as Me,c8 as _e,c9 as Ve,V as a,M as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hN as Re,hO as Be,O as xe,I as ue,hP as Se,hQ as We,cc as Ue,X as ze,i1 as He,gf as ie,j as q,e as De,x as ye,cd as Ke,hR as Ge,hS as Qe,hT as Xe,o as V}from"./index-BocbTmE1.js";import{a as D}from"./sentry-DINNQYpi.js";import{n as B}from"./mui-C_CXevf3.js";import{bH as Ye,bI as Ze}from"./zeni-epic-state-a7Sj5mjO.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-js9_P_Lo-C0aHTQ-B.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="c70ed519-b61a-49b4-9857-a49feae614af",e._sentryDebugIdIdentifier="sentry-dbid-c70ed519-b61a-49b4-9857-a49feae614af")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
1
+ import{a7 as U,hK as Y,ga as fe,ed as Le,hL as we,P as Je,hM as Me,c8 as _e,c9 as Ve,V as a,M as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hN as Re,hO as Be,O as xe,I as ue,hP as Se,hQ as We,cc as Ue,X as ze,i1 as He,gf as ie,j as q,e as De,x as ye,cd as Ke,hR as Ge,hS as Qe,hT as Xe,o as V}from"./index-DBW4633P.js";import{a as D}from"./sentry-DINNQYpi.js";import{n as B}from"./mui-C_CXevf3.js";import{bH as Ye,bI as Ze}from"./zeni-epic-state-a7Sj5mjO.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-js9_P_Lo-D3P2gakZ.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="c70ed519-b61a-49b4-9857-a49feae614af",e._sentryDebugIdIdentifier="sentry-dbid-c70ed519-b61a-49b4-9857-a49feae614af")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{a7 as P,hK as X,ga as ke,ed as Ae,hL as Ie,P as Je,hM as we,c8 as Le,c9 as Me,V as a,M as Ve,bR as Pe,bS as _e,bT as $e,a9 as Fe,hN as Ne,hO as Be,O as De,I as ce,hP as pe,hQ as Re,cc as Ue,X as qe,gf as me,j as Y,e as ze,x as We,hR as Ke,hS as Ge,hT as He,o as A}from"./index-BocbTmE1.js";import{a as D}from"./sentry-DINNQYpi.js";import{n as M}from"./mui-C_CXevf3.js";import{bH as Qe,bI as Xe,bG as Ye}from"./zeni-epic-state-a7Sj5mjO.js";import{l as Ze,a as et,s as tt,r as lt}from"./ScheduleSequenceTable-js9_P_Lo-C0aHTQ-B.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9c99968e-34e0-4d54-9fe5-b4c5811d51e0",e._sentryDebugIdIdentifier="sentry-dbid-9c99968e-34e0-4d54-9fe5-b4c5811d51e0")}catch{}})();const N={labelWidth:new We(160,160,160)},at=M.div`
1
+ import{a7 as P,hK as X,ga as ke,ed as Ae,hL as Ie,P as Je,hM as we,c8 as Le,c9 as Me,V as a,M as Ve,bR as Pe,bS as _e,bT as $e,a9 as Fe,hN as Ne,hO as Be,O as De,I as ce,hP as pe,hQ as Re,cc as Ue,X as qe,gf as me,j as Y,e as ze,x as We,hR as Ke,hS as Ge,hT as He,o as A}from"./index-DBW4633P.js";import{a as D}from"./sentry-DINNQYpi.js";import{n as M}from"./mui-C_CXevf3.js";import{bH as Qe,bI as Xe,bG as Ye}from"./zeni-epic-state-a7Sj5mjO.js";import{l as Ze,a as et,s as tt,r as lt}from"./ScheduleSequenceTable-js9_P_Lo-D3P2gakZ.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9c99968e-34e0-4d54-9fe5-b4c5811d51e0",e._sentryDebugIdIdentifier="sentry-dbid-9c99968e-34e0-4d54-9fe5-b4c5811d51e0")}catch{}})();const N={labelWidth:new We(160,160,160)},at=M.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{X as T,y as Q,V as i,hU as le,d6 as ne,N as se,hV as we,dn as fe,eY as be,w as I,O as N,hW as $e,hT as je,o as t,x as j,e as S,n as Se,E as q,I as re,df as ke,bR as ve,bT as De,cc as ee,e5 as ie,c6 as Ce,hX as X,hY as ze,an as Me,hZ as Ee,bV as Le,h_ as Oe,j as p,l as M,at as Ie,bS as Te,i as ge,ee as Ae,al as ae,d_ as Ve,a9 as Fe,h$ as V,fR as Je,a5 as Be,i0 as Pe,ad as G,cq as Re,aC as Ne}from"./index-BocbTmE1.js";import{n as l,c as P}from"./mui-C_CXevf3.js";import{a as D}from"./sentry-DINNQYpi.js";import{bs as U,Gw as We}from"./zeni-epic-state-a7Sj5mjO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="3c3d979b-5a73-4a9c-8816-1f48b06525fd",e._sentryDebugIdIdentifier="sentry-dbid-3c3d979b-5a73-4a9c-8816-1f48b06525fd")}catch{}})();const W=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:C},common:de}=N.getLocalizedStrings();function Ye({defaultValue:e,name:o,placeholder:s,alignLeft:n=!1,style:g,isDisabled:d,registerOptions:r,onSaveClick:c,onCancelClick:$}){const[w,h]=D.useState(!1),{control:m,formState:{errors:f},setValue:b}=ee(),k=()=>{y||(c(),h(!1))},x=()=>{$(),h(!1)},y=ie(f,o),E=T(),a=Q();return i.jsx(ge,{onClickAway:()=>{h(!1)},children:i.jsx(Qe,{style:g,isDisabled:d!=null,windowSize:E,onClick:()=>{!w&&d==null&&h(!0)},children:i.jsx(Ae,{name:W(o,"dayOfMonth"),control:m,rules:{...r},render:()=>i.jsxs(Ge,{children:[i.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:d}),w?i.jsxs(Xe,{alignLeft:n===!0,children:[i.jsx(ti,{}),i.jsxs(ce,{isSelected:e.type==="day",children:[i.jsxs(ii,{isError:e.type==="day"&&y,children:[i.jsx(ae,{label:{label:C.pickDate},radioField:{id:"day",name:W(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${t.sp3} ${t.sp0}`,width:"fit-content",marginLeft:t.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&y?S.important:"inherit"}}),i.jsx(Ve,{name:W(o,"dayOfMonth"),type:"number",placeholder:C.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:u=>{u.key!=="Backspace"&&isNaN(parseInt(u.key))&&u.preventDefault()},defaultValue:e.dayOfMonth==null||isNaN(e.dayOfMonth)?0:e.dayOfMonth,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:t.sp1,marginRight:t.sp1},style:{border:`1px solid ${e.type==="day"&&y?S.important:a.colors.grey2}`,borderRadius:t.sp1,...I.smallRegular.cssObject,padding:t.sp2,maxWidth:"35px",boxSizing:"border-box"}}),i.jsx(Ke,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),i.jsx(He,{defaultValue:e.dayOfMonth,onClick:u=>{b(`${o}.dayOfMonth`,u),b(`${o}.type`,"day")}})]}),i.jsx(oi,{}),i.jsx(ce,{isSelected:e.type==="lastDayOfMonth",children:i.jsx(ae,{label:{label:C.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:W(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${t.sp3} ${t.sp0}`,width:"fit-content",marginLeft:t.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&y?S.important:"inherit"}})}),i.jsx(Fe,{primaryBtn:{label:de.footer.save,onClick:k,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:de.footer.cancel,onClick:x,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:o,isDisabled:s}){return i.jsxs(Ue,{isDisabled:s!=null,children:[o?.type==null?i.jsx(Ze,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?i.jsxs(he,{children:[i.jsx(Y,{children:C.daysOfMonth[`${o.dayOfMonth}`]}),i.jsx(Y,{children:C.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?i.jsxs(he,{children:[i.jsx(Y,{children:C.daysOfMonth.lastDayOfMonth}),i.jsx(Y,{children:C.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:o}){return i.jsxs(ei,{children:[i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+1;return i.jsx(H,{isSelected:n===e,onClick:()=>o(We(n)),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+8;return i.jsx(H,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+15;return i.jsx(H,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+22;return i.jsx(H,{isSelected:n===e,onClick:()=>o(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ge=l.div`
1
+ import{X as T,y as Q,V as i,hU as le,d6 as ne,N as se,hV as we,dn as fe,eY as be,w as I,O as N,hW as $e,hT as je,o as t,x as j,e as S,n as Se,E as q,I as re,df as ke,bR as ve,bT as De,cc as ee,e5 as ie,c6 as Ce,hX as X,hY as ze,an as Me,hZ as Ee,bV as Le,h_ as Oe,j as p,l as M,at as Ie,bS as Te,i as ge,ee as Ae,al as ae,d_ as Ve,a9 as Fe,h$ as V,fR as Je,a5 as Be,i0 as Pe,ad as G,cq as Re,aC as Ne}from"./index-DBW4633P.js";import{n as l,c as P}from"./mui-C_CXevf3.js";import{a as D}from"./sentry-DINNQYpi.js";import{bs as U,Gw as We}from"./zeni-epic-state-a7Sj5mjO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="3c3d979b-5a73-4a9c-8816-1f48b06525fd",e._sentryDebugIdIdentifier="sentry-dbid-3c3d979b-5a73-4a9c-8816-1f48b06525fd")}catch{}})();const W=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:C},common:de}=N.getLocalizedStrings();function Ye({defaultValue:e,name:o,placeholder:s,alignLeft:n=!1,style:g,isDisabled:d,registerOptions:r,onSaveClick:c,onCancelClick:$}){const[w,h]=D.useState(!1),{control:m,formState:{errors:f},setValue:b}=ee(),k=()=>{y||(c(),h(!1))},x=()=>{$(),h(!1)},y=ie(f,o),E=T(),a=Q();return i.jsx(ge,{onClickAway:()=>{h(!1)},children:i.jsx(Qe,{style:g,isDisabled:d!=null,windowSize:E,onClick:()=>{!w&&d==null&&h(!0)},children:i.jsx(Ae,{name:W(o,"dayOfMonth"),control:m,rules:{...r},render:()=>i.jsxs(Ge,{children:[i.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:d}),w?i.jsxs(Xe,{alignLeft:n===!0,children:[i.jsx(ti,{}),i.jsxs(ce,{isSelected:e.type==="day",children:[i.jsxs(ii,{isError:e.type==="day"&&y,children:[i.jsx(ae,{label:{label:C.pickDate},radioField:{id:"day",name:W(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${t.sp3} ${t.sp0}`,width:"fit-content",marginLeft:t.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&y?S.important:"inherit"}}),i.jsx(Ve,{name:W(o,"dayOfMonth"),type:"number",placeholder:C.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:u=>{u.key!=="Backspace"&&isNaN(parseInt(u.key))&&u.preventDefault()},defaultValue:e.dayOfMonth==null||isNaN(e.dayOfMonth)?0:e.dayOfMonth,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:t.sp1,marginRight:t.sp1},style:{border:`1px solid ${e.type==="day"&&y?S.important:a.colors.grey2}`,borderRadius:t.sp1,...I.smallRegular.cssObject,padding:t.sp2,maxWidth:"35px",boxSizing:"border-box"}}),i.jsx(Ke,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),i.jsx(He,{defaultValue:e.dayOfMonth,onClick:u=>{b(`${o}.dayOfMonth`,u),b(`${o}.type`,"day")}})]}),i.jsx(oi,{}),i.jsx(ce,{isSelected:e.type==="lastDayOfMonth",children:i.jsx(ae,{label:{label:C.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:W(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${t.sp3} ${t.sp0}`,width:"fit-content",marginLeft:t.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&y?S.important:"inherit"}})}),i.jsx(Fe,{primaryBtn:{label:de.footer.save,onClick:k,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:de.footer.cancel,onClick:x,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:o,isDisabled:s}){return i.jsxs(Ue,{isDisabled:s!=null,children:[o?.type==null?i.jsx(Ze,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?i.jsxs(he,{children:[i.jsx(Y,{children:C.daysOfMonth[`${o.dayOfMonth}`]}),i.jsx(Y,{children:C.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?i.jsxs(he,{children:[i.jsx(Y,{children:C.daysOfMonth.lastDayOfMonth}),i.jsx(Y,{children:C.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:o}){return i.jsxs(ei,{children:[i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+1;return i.jsx(H,{isSelected:n===e,onClick:()=>o(We(n)),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+8;return i.jsx(H,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+15;return i.jsx(H,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+22;return i.jsx(H,{isSelected:n===e,onClick:()=>o(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ge=l.div`
2
2
  position: relative;
3
3
  `,Ue=l.div`
4
4
  display: flex;