@zeniai/web-app-ui 4.14.30-dev → 4.14.30-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-CQdbfxHV-BW88pIYa.js → ACHDetailsPage-CQdbfxHV-CVfdxX3S.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-jyNXVGMj-Bs4Wcfnt.js → AIPerformancePage-jyNXVGMj-Df3oatFx.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-CiPtog_o-B4btRIXv.js → AccountInfoPage-CiPtog_o-DPWdb5xr.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-Bj0kaRHv-CjMeZGo_.js → AccountInfoPageContent-Bj0kaRHv-B0-iD3mG.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-EbQpyRJx-DeA2eRRt.js → AccountLockedInfoModal-EbQpyRJx-CBjiURZ4.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CK1QV13E-BSUxm7rf.js → AccountReconDetailsDrawerPage-CK1QV13E-DZmItK8g.js} +1 -1
  7. package/dist/assets/{AccountRow-B3Sz6a-V-GlNhkavB.js → AccountRow-B3Sz6a-V-CTAgoDt8.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DJtz56-u-D5uyYQuY.js → AccountsPromoCardStack-DJtz56-u-DZZMgyeG.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BDtxj9h6-Xx-rQDHp.js → AddAddressForCardDrawer-BDtxj9h6-CGRCP-Ov.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Czepun8f-MGSdB8OM.js → AddToWalletPage-Czepun8f-BSrXEfN0.js} +1 -1
  11. package/dist/assets/{AddressRoutes-CmvRhhab.js → AddressRoutes-TFWvRoK1.js} +1 -1
  12. package/dist/assets/{AddressScreen-Cb00RwYZ.js → AddressScreen-TV5gX_gl.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-DzAVDq_i-BP-WG6Wy.js → AgingReportsPage-DzAVDq_i-ym_LOlxy.js} +1 -1
  14. package/dist/assets/{AiCfoScreen-CZVtCrsQ.js → AiCfoScreen-D6K-vpzr.js} +1 -1
  15. package/dist/assets/{AllUserItems-BEoRQT-v-9OnCgvS-.js → AllUserItems-BEoRQT-v-B0L7dc_f.js} +1 -1
  16. package/dist/assets/{ApAgingDetailPage-55JdoIHh-kk28-9yG.js → ApAgingDetailPage-55JdoIHh-DrarMtyY.js} +1 -1
  17. package/dist/assets/{AppBasePage-CLye29uw-B08L49eb.js → AppBasePage-CLye29uw-XKxIMpL1.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-CDawrmfz-DqagnYqP.js → AppDrawerContent-CDawrmfz-CIsX5yBE.js} +1 -1
  19. package/dist/assets/{ApprovalRulesSettingsPage-BHUZdWCO-tMTnXaFd.js → ApprovalRulesSettingsPage-BHUZdWCO-Dwb34rZQ.js} +1 -1
  20. package/dist/assets/{ArAgingChart-DeL9nNI7-Bj8y0fT6.js → ArAgingChart-DeL9nNI7-jiARVqmw.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-CuG65EQs-CXt16x8B.js → ArAgingDetailPage-CuG65EQs-DJsQVyGf.js} +1 -1
  22. package/dist/assets/{AttachmentView-C5anq6-B-BkQi2I92.js → AttachmentView-C5anq6-B-B0oKrwit.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-1PK_fwhP-BOcx7wZs.js → BalancesInsightWithToolTip-1PK_fwhP-DTycoTBO.js} +1 -1
  24. package/dist/assets/{BankAccountSection-BUJoSOk8-BG4ByPDH.js → BankAccountSection-BUJoSOk8-CktP5_6B.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-BQaoV2yQ-BLOJsai8.js → BankAccountWarningSection-BQaoV2yQ-D2dPrb3a.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-DRDS5xzS-CGYqJS-4.js → BankConnectionsSettingsPage-DRDS5xzS-sJm12Xpi.js} +1 -1
  27. package/dist/assets/{BillDetailPage-CtVVaqTN-BwEQZwAf.js → BillDetailPage-CtVVaqTN-Cs2maBN6.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-DwRul1Fq.js → BillPayApprovalRoutes-BcknH4As.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-6GHCsDkX-ClsaXk5H.js → BillPayApprovalRuleDetailPage-6GHCsDkX-BhEokdj1.js} +1 -1
  30. package/dist/assets/{BillPayApprovalRulesPage-QKjq-qVP-DTJcefrH.js → BillPayApprovalRulesPage-QKjq-qVP-bPrJjJ_n.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-_n9uoXTN-DW34nsnh.js → BillPayPromoPage-_n9uoXTN-C-ItO23h.js} +1 -1
  32. package/dist/assets/{BillPayRoutes-D22Q6pQL.js → BillPayRoutes-CrujOQ7A.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-DNYX24VA-DLV9gKNt.js → BillPaySetUpPage-DNYX24VA-xlmRW4oi.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-Btv3yiNs-M_OusRvc.js → BillingSettingsPage-Btv3yiNs-8WC50UDB.js} +1 -1
  35. package/dist/assets/{BillsBulkReviewDrawerPage-BiLLeGke-Bs5f4SMl.js → BillsBulkReviewDrawerPage-BiLLeGke-JyRoZ7s-.js} +1 -1
  36. package/dist/assets/{BoxItem-Dqp4SNlI-EUjyx5Zm.js → BoxItem-Dqp4SNlI-CnJYfmyU.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-_8Wg_S5G-ChiNdD4I.js → BusinessVerificationPage-_8Wg_S5G-CBDfKOCi.js} +1 -1
  38. package/dist/assets/{BusinessVerificationPageScreen-B_00ICvM.js → BusinessVerificationPageScreen-BSkh5puj.js} +1 -1
  39. package/dist/assets/{BusyIndication-BZLVwIo8-6s8wSi7T.js → BusyIndication-BZLVwIo8-D7x09Syx.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-12zyW5qQ-c22fv1fM.js → CardNumberSubText-12zyW5qQ-CZArd4_p.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-B8-TDuv8-Dd6aEuJQ.js → CashbackDetailPage-B8-TDuv8-BtBdmaco.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-Bdz5L2ko-CaBbXfBZ.js → ChargeCardDetailPage-Bdz5L2ko-B9HW8VJu.js} +1 -1
  43. package/dist/assets/{ChargeCardListPage-EuJ1VXck-BU5r2hWM.js → ChargeCardListPage-EuJ1VXck-C9ILrDfC.js} +1 -1
  44. package/dist/assets/{ChargeCardListTable-SgjwYd8W-EVdaCbR4.js → ChargeCardListTable-SgjwYd8W-D2X3nHhv.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-BC2DkmZT--xdPwk1t.js → ChargeCardPaymentHistoryPage-BC2DkmZT-z-BJ1TRl.js} +1 -1
  46. package/dist/assets/{ChargeCardPromoPage-C-z0xtuN-qFHF_adM.js → ChargeCardPromoPage-C-z0xtuN-Cj9Xh0NF.js} +1 -1
  47. package/dist/assets/{ChargeCardRoutes-DV8TKacG.js → ChargeCardRoutes-DtXgeUrQ.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-ByLoLZE_-DIekUpHc.js → ChargeCardSetupPage-ByLoLZE_-D5yhBe12.js} +1 -1
  49. package/dist/assets/{ChargeCardStatementsPage-C4XdqPO1-BSM3bO35.js → ChargeCardStatementsPage-C4XdqPO1-B4JvhC1B.js} +1 -1
  50. package/dist/assets/{CheckDepositDrawerPage-D5X61CKc-CyEf-jUu.js → CheckDepositDrawerPage-D5X61CKc-DCVEIWOd.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-D7zD4-h0-CdsTnLhf.js → CollapsableReportTable-D7zD4-h0-CXEJdn3k.js} +1 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-w86_5FXJ-CDmgqN3N.js → CompanyOfficerDetailsSection-w86_5FXJ-BVS8U2VI.js} +1 -1
  53. package/dist/assets/{CompanyPassportCard-tpE1lXug-CLl-IbcU.js → CompanyPassportCard-tpE1lXug-aG1e_v_p.js} +1 -1
  54. package/dist/assets/{CompanyPassportPage-bND99CJN-D7hjvVvQ.js → CompanyPassportPage-bND99CJN-51EM3BS8.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-DR-zdvAJ.js → CompanyPassportScreen-DNHzvh3T.js} +1 -1
  56. package/dist/assets/{CompleteProfile-B5W07hcs-mOeGRg8M.js → CompleteProfile-B5W07hcs-BYS2Cw7x.js} +1 -1
  57. package/dist/assets/{ConfettiBurst-C0DFgWJj-DC0n_rE6.js → ConfettiBurst-C0DFgWJj-BGxc90V2.js} +1 -1
  58. package/dist/assets/{ConnectionAuthScreen-D4VaoAIy.js → ConnectionAuthScreen-C1ACdx6M.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-bMF_z_bc.js → ConstrainedInnerElement-CgdnMeoA-C96GWvku.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CrQh8JCh-BX5wTD-m.js → CreateOrEditVendorPage-CrQh8JCh-CdARK_ay.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-BoVmLCHh-Blea7AvV.js → CreditCardPaymentDrawerPage-BoVmLCHh-ClmStU3s.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-D2azwi1T-CSrQI1j0.js → CurrencySelectField-D2azwi1T-Yce6ywvM.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-DxuEGe6X-BPuiwcIL.js → CustomerOnboardingActivationPage-DxuEGe6X-DOVYYini.js} +1 -1
  64. package/dist/assets/{CustomerOnboardingAuthScreen-DLH-rYdF.js → CustomerOnboardingAuthScreen-voIng-Gb.js} +1 -1
  65. package/dist/assets/CustomerOnboardingContainerPage-DS0-65s7-CbCO9XOL.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DRGKainD-Y7JaILNu.js → CustomerOnboardingDetailPageSkeleton-DRGKainD-DRHsfYAC.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-C--jDBQq-BgvTeh9S.js → CustomerOnboardingNoStepsPage-C--jDBQq-D1RWdf29.js} +1 -1
  68. package/dist/assets/{CustomerOnboardingPage-BXZSl2im-DDrc-wX_.js → CustomerOnboardingPage-BXZSl2im-CdR09mXQ.js} +1 -1
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-BJmYX0kI-C3qX-GBN.js → CustomerOnboardingProductSuitePage-BJmYX0kI-DgmtQLkO.js} +1 -1
  70. package/dist/assets/{CustomerOnboardingRoutes-DqfIHwc7.js → CustomerOnboardingRoutes-BNk50EBa.js} +1 -1
  71. package/dist/assets/{Dashboard-yhqyXPbZ-CPcltsfF.js → Dashboard-yhqyXPbZ-DD3l1FY2.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-BG4StCjY-CzFGaujV.js → DashboardReportPage-BG4StCjY-BqArxOAD.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-Bawz4pw0.js → DashboardRoutes-sZ-hP0Lz.js} +1 -1
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-DsWKmIXY-BuOmk2Nk.js → DashboardSidebarBackgroundAnimation-DsWKmIXY-BKVS4wpr.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-B10KVon4.js → DefaultTenantHome-BZ1C0pHF.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-5ZEPnNxa-3AfijWCl.js → DepositAccTransactionItem-5ZEPnNxa-5QBvNOk0.js} +1 -1
  77. package/dist/assets/{DepositAccTransactionListPage-BR8d0Kun-DVyGTLJU.js → DepositAccTransactionListPage-BR8d0Kun-DoTQr_rp.js} +1 -1
  78. package/dist/assets/{DomesticWireDetailScreen-CMEoUywc.js → DomesticWireDetailScreen-H_WuL4rG.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-wGIWvhgQ-CmjPpsLr.js → DomesticWireDetailsPage-wGIWvhgQ-uEZDY48j.js} +1 -1
  80. package/dist/assets/{DownloadOverlay-SLvxfa6B-CQ7BxjF9.js → DownloadOverlay-SLvxfa6B-BbI1muq1.js} +1 -1
  81. package/dist/assets/{DrawerPage-CFdTV10k-BenpSUGv.js → DrawerPage-CFdTV10k-BDAq-J1m.js} +1 -1
  82. package/dist/assets/{DrawerScreen-B7BWNi51.js → DrawerScreen-DokbcyFi.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-C-Y62PJ0-BgijqRCf.js → EditPeoplePage-C-Y62PJ0-OR5daMys.js} +1 -1
  84. package/dist/assets/{EditReimbursementDetailPage-BYpXof8e-CdyZTm2g.js → EditReimbursementDetailPage-BYpXof8e-DpqR0TKa.js} +1 -1
  85. package/dist/assets/{EntityDetailPage-CgDHg6g5-B_vQblwz.js → EntityDetailPage-CgDHg6g5-DEy7q7j7.js} +1 -1
  86. package/dist/assets/{EntityDetailRoutes-nFrPna9t.js → EntityDetailRoutes-DPf_I5PV.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-B2uG3-Zh-DoF2hAYB.js → EntitySummarySection-B2uG3-Zh-BNN-XEhG.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-CrtNuarm-C8tGkYQU.js → ExpenseAutomationOverviewPage-CrtNuarm-DCl80aVX.js} +1 -1
  89. package/dist/assets/{ExpenseAutomationPage-CWPnIMSu-BUnHNcGe.js → ExpenseAutomationPage-CWPnIMSu-DYb4-i2t.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-DxRmXEnL.js → ExpenseAutomationRoutes-DUWDjNay.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-CsI_DUc6-BKAOKKa9.js → ExpressPayPage-CsI_DUc6-DXAWujAE.js} +1 -1
  92. package/dist/assets/{FeaturePreviewPage-B67a68N9-BPSn99tM.js → FeaturePreviewPage-B67a68N9-D61ej93i.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-D_cOMPjM.js → FeaturePreviewScreen-Bcvg8Bfv.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-CgjzMm02-DPMc3VYJ.js → FollowStepsSection-CgjzMm02-glrhNO5E.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-CIfK-0rd-F3X4MQ4k.js → GlobalReviewListPage-CIfK-0rd-COml45hA.js} +1 -1
  96. package/dist/assets/{InformationCardStack-qKld10kr-IVC5wYc5.js → InformationCardStack-qKld10kr-0nHm6M6u.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-Bbh77o6f-Dr_8r9pW.js → InsightsCardStack-Bbh77o6f-D3KyjkmI.js} +1 -1
  98. package/dist/assets/{InsightsSection-DgfCOO4F-rd7xZxVI.js → InsightsSection-DgfCOO4F-D4slzBMJ.js} +1 -1
  99. package/dist/assets/{IntegrationsSettingsPage-BRQFeOLt-2BecY83T.js → IntegrationsSettingsPage-BRQFeOLt-PsXcQlIc.js} +1 -1
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-DPemNncS-Datvi8oR.js → InternationalWireSwiftDetailsPage-DPemNncS-DLnjaRZK.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-BOxXfIY5-D1lMmBlP.js → InternationalWireVerificationPage-BOxXfIY5-B_1WnyJ0.js} +1 -1
  102. package/dist/assets/{InviteFormPage-BbbPCdh--Cb0-_CQ6.js → InviteFormPage-BbbPCdh--NZBdztJE.js} +1 -1
  103. package/dist/assets/{InvitePageListView-DqfrAulo-BtCqgsIl.js → InvitePageListView-DqfrAulo-DhRBOiF7.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-CgTpZp4M-CYe0nmg8.js → InvitePeoplePage-CgTpZp4M-BUUsiiJF.js} +1 -1
  105. package/dist/assets/{InvoiceUploadSection-DZOzTShz-BFwyUvOT.js → InvoiceUploadSection-DZOzTShz-CcOswv0c.js} +1 -1
  106. package/dist/assets/{IssueChargeCardPage-x6dLcd-P-D7R8buXv.js → IssueChargeCardPage-x6dLcd-P-w04y_5jk.js} +1 -1
  107. package/dist/assets/{LabeledAddressValue-CY4Fn72d-VdKSkT_l.js → LabeledAddressValue-CY4Fn72d-eGI6rz6c.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-D47ofJFV-CGqdgTnp.js → LabeledAddressValueField-D47ofJFV-vxJBVafU.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-C_c8Rs-i-Cz1fNsx_.js → LabeledControlledCheckBoxField-C_c8Rs-i-BHT9Wulx.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-vRw9drBe-Bw1loTny.js → LabeledCountryMultiSelectField-vRw9drBe-B76tRzel.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CdF97ljM-DTrzefeb.js → LabeledCreatableSingleSelectField-CdF97ljM-CAYzF-3Y.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-Dn25Ru1C-CLM-i9xW.js → LabeledDocumentField-Dn25Ru1C-B_WMp98N.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-C2sZjA-q-Bkuc_5w_.js → LabeledDropDownFormattedTextField-C2sZjA-q-Ct_5ILId.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-DzAdekQn-BkQ7kdJx.js → LabeledEmailInputField-DzAdekQn-C8rbJEKG.js} +1 -1
  115. package/dist/assets/{LabeledNameField-Dxx0xwMv-DBRkdNqp.js → LabeledNameField-Dxx0xwMv-q011DeE8.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-EO8TA_z_-C26qdLJU.js → LabeledSingleSelectField-EO8TA_z_-C5J3CIRA.js} +1 -1
  117. package/dist/assets/{LabeledText-Bo7B-LrF-DECCi3EJ.js → LabeledText-Bo7B-LrF-XkdNglCy.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DD11_Map-ZtH1v-68.js → LabeledUserSingleSelectWithSubtitlesField-DD11_Map-Cz77QBp-.js} +1 -1
  119. package/dist/assets/{LabeledZeniRolesDropDownField-BJ99uBt1-DGvakh0f.js → LabeledZeniRolesDropDownField-BJ99uBt1-DRxN007k.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-BiDoUKQW-xgKDBdnj.js → LinkJETransactionPage-BiDoUKQW-DfQfBCux.js} +1 -1
  121. package/dist/assets/{LockCardPage-B1QOSByp-BfsUhZIZ.js → LockCardPage-B1QOSByp-DoXf8Ddb.js} +1 -1
  122. package/dist/assets/{LowBalancePopup-Bl_PaIUx-yOClgIGf.js → LowBalancePopup-Bl_PaIUx-Cz8COji5.js} +1 -1
  123. package/dist/assets/{MagicLinkACHDetailsPage-l76_Y3sO-DBz5GRKZ.js → MagicLinkACHDetailsPage-l76_Y3sO-BRaxCag1.js} +1 -1
  124. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D_z_Q-jz-DriIOIxl.js → MagicLinkDomesticWireDetailsPage-D_z_Q-jz-C4Uhpu4B.js} +1 -1
  125. package/dist/assets/{MagicLinkInternationalWireDetailsPage-D276lsq_-ColrMYZA.js → MagicLinkInternationalWireDetailsPage-D276lsq_-BhCxcHkI.js} +1 -1
  126. package/dist/assets/{MagicLinkRoutes-B-WHuq25.js → MagicLinkRoutes-26mPfcBZ.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-BBwmXYDm.js → MagicLinkSignInScreen-BZrsQ5lk.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-CuL-7CWN-C2vVBJ4S.js → MagicLinkSuccessPage-CuL-7CWN-CPURwwOW.js} +1 -1
  129. package/dist/assets/{MagicLinkTitleSection-RYhrN820-BbeWYlVu.js → MagicLinkTitleSection-RYhrN820-C7Vcy8B4.js} +1 -1
  130. package/dist/assets/{MailingDetailsSection-D9_I-DTk-Cdb1WRS_.js → MailingDetailsSection-D9_I-DTk-CH2kzcO6.js} +1 -1
  131. package/dist/assets/{MobileAppDrawer-CTcTm5tx.js → MobileAppDrawer-CVmbFUtl.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-5MZl4h9B-BympoCwa.js → MoreMenuButton-5MZl4h9B-zFBR8G0C.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBw6kNsm-DlddyW1w.js → MyBankConnectionsSettingsPage-CBw6kNsm-CLFKHbI6.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-BC4YjZtP-DfpXnRCt.js → MyPendingActivationChargeCardListPage-BC4YjZtP-DazHEsal.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-DZ5M2BUN-CQ7zk2gg.js → MyProfileSettingsPage-DZ5M2BUN-CgmWIcfU.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-C6FiaLu5-BVvTIBUE.js → NavBarWithPicker-C6FiaLu5-CpPmiX85.js} +1 -1
  137. package/dist/assets/{NavigationArrow-BnAgR0wH-BYYktF7B.js → NavigationArrow-BnAgR0wH-BHMKW5N7.js} +1 -1
  138. package/dist/assets/{NavigationDots-WUDG_g8M-CSwlLBTM.js → NavigationDots-WUDG_g8M-DDdWfUW3.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-gAsCusVw-CA6lhup4.js → NewGlobalMerchantPage-gAsCusVw-Dq-IWGpb.js} +1 -1
  140. package/dist/assets/{NoDataChart-BBYUjdKn-CaszePO0.js → NoDataChart-BBYUjdKn-CRdzJbNp.js} +1 -1
  141. package/dist/assets/{NoDataTable-D3750d25-CC_2gGkK.js → NoDataTable-D3750d25-DG2oQDdM.js} +1 -1
  142. package/dist/assets/{NotFoundPage-C4D8Rn9E--AJk-xer.js → NotFoundPage-C4D8Rn9E-CwNmDrN1.js} +1 -1
  143. package/dist/assets/{NotFoundScreen-SRDW4_mE.js → NotFoundScreen-B8XFlejE.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-BSrkx0LD.js → NotificationRoutes-N8MRrxNI.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-CD-t91ia-DJoX_UtT.js → NotificationSettingsPage-CD-t91ia-m4MxTTW4.js} +1 -1
  146. package/dist/assets/{NotificationsListConfig-C7JSE-eQ-DyT-ZhYk.js → NotificationsListConfig-C7JSE-eQ-KxVFUV3z.js} +1 -1
  147. package/dist/assets/{NotificationsPage-Be1v8niA-BlgDo9nE.js → NotificationsPage-Be1v8niA-VHkbcX-a.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-D1f1lQbs-BnyzfFJz.js → OpExByVendorPage-D1f1lQbs-DLXANeGq.js} +1 -1
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-DTorHW75.js → OverlayContainerPage-BG9y5C0t-B0J4P0vh.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-DIYb7BWp-B3vKwRhN.js → PandLWithForecastPage-DIYb7BWp-eRZ2xhPy.js} +1 -1
  151. package/dist/assets/{PandLWithForecastRoutes-CsL0r0I3.js → PandLWithForecastRoutes-DV3lwMtf.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-tGkjxbjY-CHrQD7Oe.js → PaymentAccountSetupBillingAddressSection-tGkjxbjY-DHB-KR0X.js} +1 -1
  153. package/dist/assets/{PeoplePage-xwAOX4Jk-BnzId5aB.js → PeoplePage-xwAOX4Jk-cobVcrYv.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-D-yY-A49.js → PeopleRoutes-0VPcCQMG.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-DUxeAB_T.js → PerformanceRoutes-DWL6I_M2.js} +1 -1
  156. package/dist/assets/{ProductsCarousel-OHbYasaa-Bps9QCYO.js → ProductsCarousel-OHbYasaa-DyO10mDE.js} +1 -1
  157. package/dist/assets/{PromoBaseCards-B_0dccCZ-BeKRkhdX.js → PromoBaseCards-B_0dccCZ-Cll52Aug.js} +1 -1
  158. package/dist/assets/{QBOConnectionDialog-5ItNvdCA-D1LNYclF.js → QBOConnectionDialog-5ItNvdCA-B93tYXoX.js} +1 -1
  159. package/dist/assets/{QBOConnectionScreen-BDwso3KZ.js → QBOConnectionScreen-CIFlgaXj.js} +1 -1
  160. package/dist/assets/{QBOSetupSection-CHZgQppe-Fu_QXCEh.js → QBOSetupSection-CHZgQppe-Boi15f5H.js} +1 -1
  161. package/dist/assets/{ReferralListScreen-DPkRtA1r.js → ReferralListScreen-OXcIgRf5.js} +1 -1
  162. package/dist/assets/{ReimbursementApprovalRoutes-DyX9YlA9.js → ReimbursementApprovalRoutes-CoU_u8MQ.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CqZT111l-Th1QLQg3.js → ReimbursementApprovalRuleDetailPage-CqZT111l-BQrCKR9A.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BR6Wdj2J.js → ReimbursementApprovalRuleDetailScreen-CPkYjm-o.js} +1 -1
  165. package/dist/assets/{ReimbursementApprovalRulesPage-BzTe2nqd-DFHyb7gY.js → ReimbursementApprovalRulesPage-BzTe2nqd-CnRJV-7t.js} +1 -1
  166. package/dist/assets/{ReimbursementDetailPage-DM650uCR-BZojPp4W.js → ReimbursementDetailPage-DM650uCR-CfT7lIQy.js} +1 -1
  167. package/dist/assets/{ReimbursementPromoPage-CitTg9s4-C6Ht-4dW.js → ReimbursementPromoPage-CitTg9s4-C0IJS9C3.js} +1 -1
  168. package/dist/assets/{ReimbursementRoutes-C4Yz_jbS.js → ReimbursementRoutes-CexK6hr3.js} +1 -1
  169. package/dist/assets/{ReimbursementSetUpPage-qphyaCoX-CvNz9jXQ.js → ReimbursementSetUpPage-qphyaCoX-DoGJ3Yjs.js} +1 -1
  170. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CCJvQKip-BQLPbz53.js → ReimbursementsBulkReviewDrawerPage-CCJvQKip-DJZoHiHh.js} +1 -1
  171. package/dist/assets/{ReloadCard-DMNbI6QE-C1j_tgy-.js → ReloadCard-DMNbI6QE-C_0_5wQl.js} +1 -1
  172. package/dist/assets/{ReportTableViewSelector-CUG4hVI9-Bjuyu4DH.js → ReportTableViewSelector-CUG4hVI9-BizHpKUG.js} +1 -1
  173. package/dist/assets/{ReportsPage-nuM-ub1p-CKOT47VZ.js → ReportsPage-nuM-ub1p-B6rPi-ib.js} +1 -1
  174. package/dist/assets/{ReportsRoutes-DohAZqsL.js → ReportsRoutes-Cp6mze8I.js} +1 -1
  175. package/dist/assets/{RevenueChart-BL5Wb2UT-JQVA4c7e.js → RevenueChart-BL5Wb2UT-33eDsujQ.js} +1 -1
  176. package/dist/assets/{ReviewDetailsPage-CUolLJ6s-I5bNk9-1.js → ReviewDetailsPage-CUolLJ6s-D-zhUoA6.js} +1 -1
  177. package/dist/assets/{ReviewOverlay-A1OYNSqG-DCeKL3J7.js → ReviewOverlay-A1OYNSqG-9s_1ZdtP.js} +1 -1
  178. package/dist/assets/{RewardsRoutes-BjB7FD9l.js → RewardsRoutes-BSovi6wQ.js} +1 -1
  179. package/dist/assets/{RoleWithToolTip-VOllzDDB-BXr_ucO6.js → RoleWithToolTip-VOllzDDB-BYsZPBtm.js} +1 -1
  180. package/dist/assets/{ScheduleDetailsFixedAssetsPage-By3U1RYU-Dut2stb8.js → ScheduleDetailsFixedAssetsPage-By3U1RYU-DKJcrnu_.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsPage-ButJHPUw-XhuUVDsI.js → ScheduleDetailsPage-ButJHPUw-QIDoDzfq.js} +1 -1
  182. package/dist/assets/{ScheduleSequenceTable-Dv831gVJ-OIQZXWKl.js → ScheduleSequenceTable-Dv831gVJ-DAMs3BZ5.js} +1 -1
  183. package/dist/assets/{ScreenRoutes-B6WQ9uqs.js → ScreenRoutes-Dbhh2QOI.js} +2 -2
  184. package/dist/assets/{SetUpAccountSection-BcNG0nDh-C2x0keC_.js → SetUpAccountSection-BcNG0nDh-wr_b4Gnf.js} +1 -1
  185. package/dist/assets/{SettingsRoutes-U8aLQkxi.js → SettingsRoutes-DsoaaeGm.js} +1 -1
  186. package/dist/assets/{SetupPagesScreen-KLzrKq5d.js → SetupPagesScreen-C8L8QqMz.js} +1 -1
  187. package/dist/assets/{SignIn-D80UITQm-CVsAto0V.js → SignIn-D80UITQm-DIIeYnW9.js} +1 -1
  188. package/dist/assets/{SignInScreen-g1CD9jiJ.js → SignInScreen-CWsG4Mxf.js} +1 -1
  189. package/dist/assets/{SignOutScreen-Cclrjb6Y.js → SignOutScreen-Cs9C3-Pe.js} +1 -1
  190. package/dist/assets/{SpendManagementListViewPage-DSG6Son_-3Woa8ZKL.js → SpendManagementListViewPage-DSG6Son_-kr01Gbhc.js} +3 -3
  191. package/dist/assets/{SpendManagementPerTabPage-DiSu0RS1-Dj2U_5YO.js → SpendManagementPerTabPage-DiSu0RS1-DHuUoD95.js} +1 -1
  192. package/dist/assets/{SpendManagementSection-BXU3RGG8-BwEQ7fN8.js → SpendManagementSection-BXU3RGG8-BYhx4BvA.js} +1 -1
  193. package/dist/assets/{StatementItem-B1M65xN--D_j2q7nS.js → StatementItem-B1M65xN--GeNfVEEV.js} +1 -1
  194. package/dist/assets/{StatementsPage-Ck1xzA0w-CdWUN6DK.js → StatementsPage-Ck1xzA0w-ClPKQbtk.js} +1 -1
  195. package/dist/assets/{StatusSwitcher-_Cs3CzJl-D1XlTHt5.js → StatusSwitcher-_Cs3CzJl-Dgp2ChlN.js} +1 -1
  196. package/dist/assets/{SubTabSwitcher-D3ltE_yc-Ry1ed6uf.js → SubTabSwitcher-D3ltE_yc-CnL7Gxp8.js} +1 -1
  197. package/dist/assets/{SuccessAnimation-RuQd1S4B-C9QgxngQ.js → SuccessAnimation-RuQd1S4B-Bm3TMOLx.js} +1 -1
  198. package/dist/assets/{SummaryCard-buadhnmc-COTvxgGf.js → SummaryCard-buadhnmc-D_ubT5UT.js} +1 -1
  199. package/dist/assets/{TaskDetailPage-CJKga1vr-ciDskCCR.js → TaskDetailPage-CJKga1vr-C9aggkuO.js} +1 -1
  200. package/dist/assets/{TaskListScreen-ksTObC06.js → TaskListScreen--R6ZRUkx.js} +1 -1
  201. package/dist/assets/{TaskManagementPage-BMwMSG1j-D-VvypFm.js → TaskManagementPage-BMwMSG1j-H5G6dYbH.js} +1 -1
  202. package/dist/assets/{TaskRoutes-C_cjp_9o.js → TaskRoutes-DYzJiY4s.js} +1 -1
  203. package/dist/assets/{TimeRangeSwitcher-B1Wx03tG-Br6TSwpo.js → TimeRangeSwitcher-B1Wx03tG-BWIrI-Q6.js} +1 -1
  204. package/dist/assets/{TimeframeSwitcher-Dmtsdwi9-Ce3iuH6w.js → TimeframeSwitcher-Dmtsdwi9-Cw7Bi58F.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcherWithToggle-P5CfgTUd-DXOPf3Bj.js → TimeframeSwitcherWithToggle-P5CfgTUd-Dktx47QV.js} +1 -1
  206. package/dist/assets/{TopExCard-DQkr9Xhh-CEMSG53J.js → TopExCard-DQkr9Xhh-BRnZbxyD.js} +1 -1
  207. package/dist/assets/{TopExDetailPage-5Di6WUfV-hilBOr7-.js → TopExDetailPage-5Di6WUfV-BUXw1BOA.js} +1 -1
  208. package/dist/assets/{TransactionActivityLogPage-R9LoW4DL-C_Mhlr8m.js → TransactionActivityLogPage-R9LoW4DL-D_EoHZ59.js} +1 -1
  209. package/dist/assets/{TransactionDetailPage-B-blHtkn-CbeGtCIa.js → TransactionDetailPage-B-blHtkn-DCMnh0nU.js} +1 -1
  210. package/dist/assets/{TransactionDetailRoutes-CG9Ya3UI.js → TransactionDetailRoutes-Ct3Dbt4h.js} +1 -1
  211. package/dist/assets/{TransactionDetailScreen-DG1rRYuu.js → TransactionDetailScreen-BI8wXwWu.js} +1 -1
  212. package/dist/assets/{TransactionList-FQvTXSzy-oI0UZGJM.js → TransactionList-FQvTXSzy-B5IF52jl.js} +1 -1
  213. package/dist/assets/{TransactionListBig-CNDw7zRw-DTLpPxaS.js → TransactionListBig-CNDw7zRw-TaxjiJ28.js} +1 -1
  214. package/dist/assets/{TransactionListPage-BkZLtwmQ-DzH0F7Wk.js → TransactionListPage-BkZLtwmQ-DMj8aMnI.js} +1 -1
  215. package/dist/assets/{TransactionListRoutes-BbWNwfVS.js → TransactionListRoutes-B3byuAak.js} +1 -1
  216. package/dist/assets/{TransactionVendorDetailPage-Ch2UUF1f-DGdjSa3g.js → TransactionVendorDetailPage-Ch2UUF1f-BrGjAHyI.js} +1 -1
  217. package/dist/assets/{TransferDrawerPage-C1Ly_xKj-DX3atlS9.js → TransferDrawerPage-C1Ly_xKj-fiBb4oDE.js} +1 -1
  218. package/dist/assets/{TreasuryOverviewPage-Zt5w8zfp-CedvlZd9.js → TreasuryOverviewPage-Zt5w8zfp-Ch3HnWvf.js} +1 -1
  219. package/dist/assets/{TreasuryPromoPage-BsP73kf7-etf9xlFS.js → TreasuryPromoPage-BsP73kf7-CL2gh8Up.js} +1 -1
  220. package/dist/assets/{TreasuryRoutes-CuQ3uJ15.js → TreasuryRoutes-CiZ9sTKP.js} +1 -1
  221. package/dist/assets/{TreasuryStatementsPage-DhXESeOi-uJElEPeD.js → TreasuryStatementsPage-DhXESeOi-D1GmDTaA.js} +1 -1
  222. package/dist/assets/{TreasuryTaxLetterPage-tHkQvX2V-pYxXn6xj.js → TreasuryTaxLetterPage-tHkQvX2V-DC4DIUK0.js} +1 -1
  223. package/dist/assets/{TrendChart-B7Pox_TQ-7BkibFBY.js → TrendChart-B7Pox_TQ-CaG-s4IC.js} +1 -1
  224. package/dist/assets/{TrendWithTransactions-DP1jZL1i-2bOe0VtV.js → TrendWithTransactions-DP1jZL1i-DLC5jL9Q.js} +1 -1
  225. package/dist/assets/{UncategorizedAccountsMappingPage-4mHyt2P6-BwcucbSK.js → UncategorizedAccountsMappingPage-4mHyt2P6-CaPpF27u.js} +1 -1
  226. package/dist/assets/{UnitIntegrationPage-BymmWe1G-DFsBuiFb.js → UnitIntegrationPage-BymmWe1G-c3FxOZsw.js} +1 -1
  227. package/dist/assets/{UploadAdditionalDocumentOverlay-DUO2ZoU--ozi0LNFT.js → UploadAdditionalDocumentOverlay-DUO2ZoU--C5vn0EeB.js} +1 -1
  228. package/dist/assets/{Vendor2FAPopup-8kpMx5RI-CGazITGN.js → Vendor2FAPopup-8kpMx5RI-B6wz9ehO.js} +1 -1
  229. package/dist/assets/{VendorACHDetailsPage-BODHiiUQ-DmAQiimf.js → VendorACHDetailsPage-BODHiiUQ-CbkmGhf7.js} +1 -1
  230. package/dist/assets/{VendorDetailPage-C-JJfR0u-DCJ_f7dN.js → VendorDetailPage-C-JJfR0u-xsJdXYgh.js} +1 -1
  231. package/dist/assets/{VendorDomesticWireDetailsPage-CVfEcUFJ-8ddL7pEj.js → VendorDomesticWireDetailsPage-CVfEcUFJ-Bq6iA8BG.js} +1 -1
  232. package/dist/assets/{VendorFiling1099EditablePage-B4vFgSwb-DDTykyPn.js → VendorFiling1099EditablePage-B4vFgSwb-BhTGj51T.js} +1 -1
  233. package/dist/assets/{VendorFirstReviewPage-CUwdrbjH-DPvTVvHI.js → VendorFirstReviewPage-CUwdrbjH-C8NXBWTw.js} +1 -1
  234. package/dist/assets/{VendorInternationalWireDetailsPage-BzP1zqhw-CAXXQP5N.js → VendorInternationalWireDetailsPage-BzP1zqhw-BApkoCPp.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dgz0TPoZ-CYv9JR1l.js → VendorInternationalWireSwiftDetailsPage-Dgz0TPoZ-CIw7ERg3.js} +1 -1
  236. package/dist/assets/{VendorsAccountsSection-Drue-Lvz-DQRReXtk.js → VendorsAccountsSection-Drue-Lvz-BCNmsP23.js} +1 -1
  237. package/dist/assets/{VendorsRoutes-Buw6G1yr.js → VendorsRoutes-CKhkv2e_.js} +1 -1
  238. package/dist/assets/{VerifyDevice-B_NNzkjT-BkggAu3P.js → VerifyDevice-B_NNzkjT-DssvqA1v.js} +1 -1
  239. package/dist/assets/{VideoPlayer-Bc4tAd79-Crbsq9LQ.js → VideoPlayer-Bc4tAd79-1S5ggZVm.js} +1 -1
  240. package/dist/assets/{VideoPopup-BYo5bzpU-BthyvsgQ.js → VideoPopup-BYo5bzpU-DUVlPGQp.js} +1 -1
  241. package/dist/assets/{WiseConfirmationScreen-CEIT9jMF.js → WiseConfirmationScreen-DJuJvNzv.js} +1 -1
  242. package/dist/assets/{ZeniAccountDetailPage-BW6G2voE-DBU5fQds.js → ZeniAccountDetailPage-BW6G2voE-DG228Rrt.js} +1 -1
  243. package/dist/assets/{ZeniAccountListViewPage-gNszI2XV-BLZmP_oZ.js → ZeniAccountListViewPage-gNszI2XV-vz3h67sw.js} +1 -1
  244. package/dist/assets/{ZeniAccountNavBarPieces-BP1IxZ18-ABeEpX-y.js → ZeniAccountNavBarPieces-BP1IxZ18-D8VlWC64.js} +1 -1
  245. package/dist/assets/{ZeniAccountPromoPage-LsZxIdX9-D62PvtLZ.js → ZeniAccountPromoPage-LsZxIdX9-BS_EkGM_.js} +1 -1
  246. package/dist/assets/{ZeniAccountRoutes-Bp_1In61.js → ZeniAccountRoutes-1i5H0-IW.js} +1 -1
  247. package/dist/assets/{ZeniAccountSetupPage-BExQA9Cz-D04LOVK1.js → ZeniAccountSetupPage-BExQA9Cz-xecz4xSG.js} +1 -1
  248. package/dist/assets/{ZeniAccountStatementScreen-6LzJoR1o.js → ZeniAccountStatementScreen-YmdFA__8.js} +1 -1
  249. package/dist/assets/{ZeniAvatar-5wP6sb3W-CKgtWCng.js → ZeniAvatar-5wP6sb3W-CwxwTkTA.js} +1 -1
  250. package/dist/assets/{ZeniCopyright-CMjFbDBQ-So_Gi_8l.js → ZeniCopyright-CMjFbDBQ-Ck2DhCCZ.js} +1 -1
  251. package/dist/assets/{ZeniDatePicker-C_YQpGe--CXBBhIwN.js → ZeniDatePicker-C_YQpGe--B6o5NtIP.js} +1 -1
  252. package/dist/assets/{ZeniTransferAmountSlider-CIu35Xz9-BCHS6-b-.js → ZeniTransferAmountSlider-CIu35Xz9-CbkYbuv-.js} +1 -1
  253. package/dist/assets/{analyticsHelper-CBcY8lmv.js → analyticsHelper-BkUpwFP4.js} +1 -1
  254. package/dist/assets/{analyticsHelper-CG-L3dO7-WIHh4rd-.js → analyticsHelper-CG-L3dO7-BuQ3dQan.js} +1 -1
  255. package/dist/assets/{calculateSize-CAxK0dN_-6AyeRPo8.js → calculateSize-CAxK0dN_-CtindZTL.js} +1 -1
  256. package/dist/assets/{chartTypes-_AEkJ5Cg-CVupoc41.js → chartTypes-_AEkJ5Cg-BoLLmK-7.js} +1 -1
  257. package/dist/assets/{common-B74Sb4iG-Ba1Dna3Q.js → common-B74Sb4iG-wPHt407r.js} +1 -1
  258. package/dist/assets/{commonDimensions-_Dpm4Anv-BHT-EeW2.js → commonDimensions-_Dpm4Anv-JKxakvSV.js} +1 -1
  259. package/dist/assets/{commonTypes-C64XobC6-BTobasZR.js → commonTypes-C64XobC6-zWzHHgag.js} +1 -1
  260. package/dist/assets/{downloadPdf-BAZhe2iR-C4ju3Lqh.js → downloadPdf-BAZhe2iR-XXbzTfDj.js} +1 -1
  261. package/dist/assets/{getLocaleForTenant-DZi5Q22y.js → getLocaleForTenant-gFC-Rnfp.js} +1 -1
  262. package/dist/assets/{helper-D3UIpXq7-DCH1HBMI.js → helper-D3UIpXq7-k6HHkxTA.js} +1 -1
  263. package/dist/assets/{index-BHAcVHeH.js → index-ByqexAVU.js} +448 -448
  264. package/dist/assets/{mapLoadingInProgressToTreeNode-C_DjhqLk-Ct7OsbEi.js → mapLoadingInProgressToTreeNode-C_DjhqLk-Cbs7Of5h.js} +1 -1
  265. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B_J7hTEH.js → mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B5H-460G.js} +1 -1
  266. package/dist/assets/{mapSpacerToTreeNode-Dq4CasLR-BKZfs44u.js → mapSpacerToTreeNode-Dq4CasLR-Dqbo2uhz.js} +1 -1
  267. package/dist/assets/{mapTimeframeBalancesToTreeNode--FHVcIix-D7muHBWz.js → mapTimeframeBalancesToTreeNode--FHVcIix-DC7cXapm.js} +1 -1
  268. package/dist/assets/{mapTimeframeBalancesToTreeNode-BP0iF3Of-BZXMdjjY.js → mapTimeframeBalancesToTreeNode-BP0iF3Of-DbCZ7i8N.js} +1 -1
  269. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-DMQQGP6s.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-CPa7R1do.js} +1 -1
  270. package/dist/assets/{routePaths-WWdcktge.js → routePaths-BnaAtOOM.js} +1 -1
  271. package/dist/assets/{toCOABalancesWithID-CuxwOBs0-D4IOrabU.js → toCOABalancesWithID-CuxwOBs0-BNfZJE4p.js} +1 -1
  272. package/dist/assets/{toChartData-BODe4y2V-CHAJ4Jnp.js → toChartData-BODe4y2V-C6JFTy1O.js} +1 -1
  273. package/dist/assets/{uploadAttachment-Dbumcc_g-LXlwbhth.js → uploadAttachment-Dbumcc_g-Dxdg1PHe.js} +1 -1
  274. package/dist/assets/{uploadReceipts-CIgkuVpu-FU2oOS1s.js → uploadReceipts-CIgkuVpu-BX0LuAuH.js} +1 -1
  275. package/dist/assets/{useInitialThreadRequest-DTIHWJqF.js → useInitialThreadRequest-D1CqutXV.js} +1 -1
  276. package/dist/assets/{withTransactionSidePanel-X05Jc0ej.js → withTransactionSidePanel-BzduT6UI.js} +1 -1
  277. package/dist/index.html +1 -1
  278. package/package.json +1 -1
  279. package/dist/assets/CustomerOnboardingContainerPage-DS0-65s7-CeH0I7wN.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as i}from"./pdf-CTJ16aEe.js";import{j as z,i as ne,h as G,l as V,u as B,N as F,k as H,g as Xe,R as Je,m as E}from"./core-oEkj6b51.js";import{ct as N,LO as ae,bE as se,ye as ve,gW as Ye,LP as et,bm as ie,dp as ke,LQ as tt,I9 as nt,Ia as de,Ib as at,fI as st,L4 as it,fX as rt,y2 as ot,pc as mt,fP as lt,yO as Ae,LR as Ce,LS as ct,LT as ut,LU as dt,LV as pt,yr as bt,LW as gt,yy as pe,g1 as ht,Ld as St,ys as yt,yc as ft,LX as It,yb as Rt,LY as vt,yk as be,yC as kt,yB as At,yx as Ct,yq as Et,LZ as Ee,Dr as Bt,bn as xt,yn as Tt,z4 as wt,L_ as Dt,L$ as jt,yK as Lt,yH as ge,Kz as Ft,y9 as Ut,M0 as Be,zt as he,zB as Mt,M1 as Pt,M2 as _,M3 as _t,M4 as xe,M5 as $t,M6 as Te,M7 as we,yW as Y,bq as Nt,G5 as re,bL as oe,cA as De,cy as je,M8 as Ot,eg as Gt,KM as zt,M9 as Ht,Ma as Le,KQ as Zt,Ly as Wt,Mb as Vt,LN as Kt,zy as Se,zx as qt,Mc as Qt,Md as Xt,Me as Jt,Mf as Yt,Mg as en,Lj as tn,zo as nn,zs as an,bt as sn,FX as rn,FY as on,F5 as mn,F4 as ln,Hb as cn,bM as un,bO as dn,bN as pn,bK as bn}from"./zeni-epic-state-cFF_NqwA.js";import{y as K,N as Fe,aE as q,aG as v,js as j,jQ as Z,o as me,bj as Q,jz as k,lA as gn,kv as Ue,jO as $,lB as hn,_ as X,lC as Sn,e as yn,k2 as fn,x as In,J as Me,O as Rn,k9 as vn,l4 as kn,k4 as An,lD as Cn,kc as En}from"./index-BHAcVHeH.js";import{n as Pe,S as Bn}from"./mui-Cni6P-fz.js";import ee from"./NotFoundScreen-SRDW4_mE.js";import{S as ye}from"./SetupPagesScreen-KLzrKq5d.js";import{F as _e}from"./FeaturePreviewScreen-D_cOMPjM.js";import{a as f}from"./sentry-CY6wsJT-.js";import{u as $e}from"./useInitialThreadRequest-DTIHWJqF.js";import{D as xn}from"./DrawerScreen-B7BWNi51.js";import{M as Ne}from"./MobileAppDrawer-CTcTm5tx.js";import{R as Tn}from"./ReimbursementApprovalRoutes-DyX9YlA9.js";import{FallBackRoute as wn}from"./ScreenRoutes-B6WQ9uqs.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./analyticsHelper-CBcY8lmv.js";import"./routePaths-WWdcktge.js";import"./BusinessVerificationPageScreen-B_00ICvM.js";import"./ReimbursementApprovalRuleDetailScreen-BR6Wdj2J.js";import"./getLocaleForTenant-DZi5Q22y.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]="be7e98be-38ba-4610-a70a-6a806e47521a",e._sentryDebugIdIdentifier="sentry-dbid-be7e98be-38ba-4610-a70a-6a806e47521a")}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=ke(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:k,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(kt("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(vt({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(ft({reimbursementId:d,lineId:m,amountPayload:{amount:s.amount,currency_code:s.currencyCode,currency_symbol:s.currencySymbol}}))},onReimbursementDetailsChanged:s=>{e(yt({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&&(k.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 fe(){const e=z(),t=ne(),n=G(),{reimbursementId:o}=V(),l=K(),u=Fe(),{useFeatureGate:c}=q(),{isFeatureEnabled:r}=c(v.isLimitedCategoryForReimbursement),{isFeatureEnabled:a}=c(v.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:s}=c(v.isReimbursementCommentingEnabled),m=G().pathname,d=m.includes("edit"),I=m.includes("reimbursement/new"),[g,x]=f.useState(!1),p=j.getSignedInUser(),A=B(h=>N(h)),b=B(h=>ae(h,o)),y=$e(A?.companyId,{clearParams:b.fetchState==="Completed"}),T=se(A?.userRole??[]);f.useEffect(()=>{(I&&!g||d&&b.fetchState!="Completed"&&b.fetchState!="In-Progress")&&(x(!0),t(ve(!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(F,{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(Q,{analytics:k,onLoad:h=>(D=>{o!=null&&b.deleteStatus.fetchState!=="Completed"&&D.trackReimbursementEditReimbursement(o)})(h)}),i.jsx(Dn,{initialOpenThreadRequest:y??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(Ft({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:()=>{k.trackReimbursementDeleteReimbursement(n),e(Ae(n))},cancelAndDeleteReport:a=>{a===!0?k.trackReimbursementCancelAndDeleteReimbursement(n):k.trackReimbursementCancelReimbursement(n),e(Lt(n,a))},handleZeniLogoClick:()=>{c.toggle()}}})(hn);function Ln(){const e=z(),t=ne(),n=G(),o=n.hash.substring(1),l=Fe(),{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(v.isLimitedCategoryForReimbursement),[g,x]=f.useState(!1),[p,A]=f.useState(!1),[b,y]=f.useState(!1),{isFeatureEnabled:T}=d(v.isReimbursementCommentingEnabled),{isFeatureEnabled:R}=d(v.isShowDeletedReimbursementsFeatureEnabled),w=B(C=>ae(C,u??"")),h=K(),D=Bt(r),P=xt(r.userRole),L=a.fetchState;if(f.useEffect(()=>{g||u==null?g==1&&L==="Error"&&e("page-not-found",{replace:!0}):(x(!0),t(Tt(u,!1,R)))},[g,u,t,L]),f.useEffect(()=>{R&&a.remiDetails?.isDeleted===!0||r.isZeni===!0&&c?.userEmailDomain==="zeni.ai"&&D===!1?y(!1):y(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]),f.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(ve(!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(F,{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(Q,{analytics:k,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 Fn=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=X(),l=o?.loggedInUserRole?.includes("admin")===!0;return f.useEffect(()=>{t!=="Completed"&&n.length!==0||e("./")},[t,n.length]),i.jsx(Fn,{navigate:e,analytics:k,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"./pdf-CTJ16aEe.js";import{j as z,i as ne,h as G,l as V,u as B,N as F,k as H,g as Xe,R as Je,m as E}from"./core-oEkj6b51.js";import{ct as N,LO as ae,bE as se,ye as ve,gW as Ye,LP as et,bm as ie,dp as ke,LQ as tt,I9 as nt,Ia as de,Ib as at,fI as st,L4 as it,fX as rt,y2 as ot,pc as mt,fP as lt,yO as Ae,LR as Ce,LS as ct,LT as ut,LU as dt,LV as pt,yr as bt,LW as gt,yy as pe,g1 as ht,Ld as St,ys as yt,yc as ft,LX as It,yb as Rt,LY as vt,yk as be,yC as kt,yB as At,yx as Ct,yq as Et,LZ as Ee,Dr as Bt,bn as xt,yn as Tt,z4 as wt,L_ as Dt,L$ as jt,yK as Lt,yH as ge,Kz as Ft,y9 as Ut,M0 as Be,zt as he,zB as Mt,M1 as Pt,M2 as _,M3 as _t,M4 as xe,M5 as $t,M6 as Te,M7 as we,yW as Y,bq as Nt,G5 as re,bL as oe,cA as De,cy as je,M8 as Ot,eg as Gt,KM as zt,M9 as Ht,Ma as Le,KQ as Zt,Ly as Wt,Mb as Vt,LN as Kt,zy as Se,zx as qt,Mc as Qt,Md as Xt,Me as Jt,Mf as Yt,Mg as en,Lj as tn,zo as nn,zs as an,bt as sn,FX as rn,FY as on,F5 as mn,F4 as ln,Hb as cn,bM as un,bO as dn,bN as pn,bK as bn}from"./zeni-epic-state-cFF_NqwA.js";import{y as K,N as Fe,aE as q,aG as v,js as j,jQ as Z,o as me,bj as Q,jz as k,lA as gn,kv as Ue,jO as $,lB as hn,_ as X,lC as Sn,e as yn,k2 as fn,x as In,J as Me,O as Rn,k9 as vn,l4 as kn,k4 as An,lD as Cn,kc as En}from"./index-ByqexAVU.js";import{n as Pe,S as Bn}from"./mui-Cni6P-fz.js";import ee from"./NotFoundScreen-B8XFlejE.js";import{S as ye}from"./SetupPagesScreen-C8L8QqMz.js";import{F as _e}from"./FeaturePreviewScreen-Bcvg8Bfv.js";import{a as f}from"./sentry-CY6wsJT-.js";import{u as $e}from"./useInitialThreadRequest-D1CqutXV.js";import{D as xn}from"./DrawerScreen-DokbcyFi.js";import{M as Ne}from"./MobileAppDrawer-CVmbFUtl.js";import{R as Tn}from"./ReimbursementApprovalRoutes-CoU_u8MQ.js";import{FallBackRoute as wn}from"./ScreenRoutes-Dbhh2QOI.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./analyticsHelper-BkUpwFP4.js";import"./routePaths-BnaAtOOM.js";import"./BusinessVerificationPageScreen-BSkh5puj.js";import"./ReimbursementApprovalRuleDetailScreen-CPkYjm-o.js";import"./getLocaleForTenant-gFC-Rnfp.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]="be7e98be-38ba-4610-a70a-6a806e47521a",e._sentryDebugIdIdentifier="sentry-dbid-be7e98be-38ba-4610-a70a-6a806e47521a")}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=ke(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:k,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(kt("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(vt({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(ft({reimbursementId:d,lineId:m,amountPayload:{amount:s.amount,currency_code:s.currencyCode,currency_symbol:s.currencySymbol}}))},onReimbursementDetailsChanged:s=>{e(yt({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&&(k.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 fe(){const e=z(),t=ne(),n=G(),{reimbursementId:o}=V(),l=K(),u=Fe(),{useFeatureGate:c}=q(),{isFeatureEnabled:r}=c(v.isLimitedCategoryForReimbursement),{isFeatureEnabled:a}=c(v.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:s}=c(v.isReimbursementCommentingEnabled),m=G().pathname,d=m.includes("edit"),I=m.includes("reimbursement/new"),[g,x]=f.useState(!1),p=j.getSignedInUser(),A=B(h=>N(h)),b=B(h=>ae(h,o)),y=$e(A?.companyId,{clearParams:b.fetchState==="Completed"}),T=se(A?.userRole??[]);f.useEffect(()=>{(I&&!g||d&&b.fetchState!="Completed"&&b.fetchState!="In-Progress")&&(x(!0),t(ve(!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(F,{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(Q,{analytics:k,onLoad:h=>(D=>{o!=null&&b.deleteStatus.fetchState!=="Completed"&&D.trackReimbursementEditReimbursement(o)})(h)}),i.jsx(Dn,{initialOpenThreadRequest:y??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(Ft({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:()=>{k.trackReimbursementDeleteReimbursement(n),e(Ae(n))},cancelAndDeleteReport:a=>{a===!0?k.trackReimbursementCancelAndDeleteReimbursement(n):k.trackReimbursementCancelReimbursement(n),e(Lt(n,a))},handleZeniLogoClick:()=>{c.toggle()}}})(hn);function Ln(){const e=z(),t=ne(),n=G(),o=n.hash.substring(1),l=Fe(),{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(v.isLimitedCategoryForReimbursement),[g,x]=f.useState(!1),[p,A]=f.useState(!1),[b,y]=f.useState(!1),{isFeatureEnabled:T}=d(v.isReimbursementCommentingEnabled),{isFeatureEnabled:R}=d(v.isShowDeletedReimbursementsFeatureEnabled),w=B(C=>ae(C,u??"")),h=K(),D=Bt(r),P=xt(r.userRole),L=a.fetchState;if(f.useEffect(()=>{g||u==null?g==1&&L==="Error"&&e("page-not-found",{replace:!0}):(x(!0),t(Tt(u,!1,R)))},[g,u,t,L]),f.useEffect(()=>{R&&a.remiDetails?.isDeleted===!0||r.isZeni===!0&&c?.userEmailDomain==="zeni.ai"&&D===!1?y(!1):y(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]),f.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(ve(!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(F,{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(Q,{analytics:k,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 Fn=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=X(),l=o?.loggedInUserRole?.includes("admin")===!0;return f.useEffect(()=>{t!=="Completed"&&n.length!==0||e("./")},[t,n.length]),i.jsx(Fn,{navigate:e,analytics:k,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,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je,f as q,x as s,a_ as Xe,L as Ye,A as Ke,eZ as Pe,de as Qe,e_ as ei,aU as ii,d4 as ti,a9 as ni,o as a,f0 as oi,m as n,bH as ai,cc as li,dX as si,f8 as Ae,f9 as je,fH as ri,a as ci,b as Ie,d as De,b8 as di,C as ui,aR as mi}from"./index-BHAcVHeH.js";import{a as o}from"./sentry-CY6wsJT-.js";import{n as t}from"./mui-Cni6P-fz.js";import{cg as pi}from"./zeni-epic-state-cFF_NqwA.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-DUO2ZoU--ozi0LNFT.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="8f0d292c-6d4d-458c-9677-c242def661c3",e._sentryDebugIdIdentifier="sentry-dbid-8f0d292c-6d4d-458c-9677-c242def661c3")}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 De("standardSemiBold","largeSemiBold"),infoLabel:new De("extraSmallRegular","smallRegular")};function fi({companyMileageConfigInfo:e,mileageDetails:m,analytics:$,style:A,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:G}){const l=Ve(),j=Le(),{formState:{errors:Z},trigger:J}=li(),I=xi(P,"mileageAmountInDenomination"),f=si(Z,I),{localData:c,updateStatus:z,mileageStatus:C}=m,R=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Me.getLocalizedStrings(),{reimbursement:K}=Y,[S,D]=o.useState(R),[Q,U]=o.useState(!1);o.useEffect(()=>{f||J(I)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&D(!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:A,isActive:d&&r==null,children:[i.jsxs(Ai,{windowSize:l,children:[x.mileageHeader,d===!1?i.jsx(Di,{children:ee.comingSoon}):null]}),i.jsxs($i,{windowSize:l,children:[i.jsx(ki,{windowSize:l,isDarkMode:j.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(ji,{children:[i.jsxs(Ii,{children:[i.jsx(Si,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),i.jsx(bi,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?i.jsx(Ae,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:je(C.code)}):null]}),i.jsxs(Ci,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?i.jsx(Ae,{style:{width:"max-content"},tagTitle:C.name,textColor:je(C.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:j.colors.background,color:S||f?void 0:j.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:Q,name:I,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":Ie("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":Ie("edit-mileage"),onClick:E=>{E.stopPropagation(),D(!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,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je,f as q,x as s,a_ as Xe,L as Ye,A as Ke,eZ as Pe,de as Qe,e_ as ei,aU as ii,d4 as ti,a9 as ni,o as a,f0 as oi,m as n,bH as ai,cc as li,dX as si,f8 as Ae,f9 as je,fH as ri,a as ci,b as Ie,d as De,b8 as di,C as ui,aR as mi}from"./index-ByqexAVU.js";import{a as o}from"./sentry-CY6wsJT-.js";import{n as t}from"./mui-Cni6P-fz.js";import{cg as pi}from"./zeni-epic-state-cFF_NqwA.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-DUO2ZoU--C5vn0EeB.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="8f0d292c-6d4d-458c-9677-c242def661c3",e._sentryDebugIdIdentifier="sentry-dbid-8f0d292c-6d4d-458c-9677-c242def661c3")}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 De("standardSemiBold","largeSemiBold"),infoLabel:new De("extraSmallRegular","smallRegular")};function fi({companyMileageConfigInfo:e,mileageDetails:m,analytics:$,style:A,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:G}){const l=Ve(),j=Le(),{formState:{errors:Z},trigger:J}=li(),I=xi(P,"mileageAmountInDenomination"),f=si(Z,I),{localData:c,updateStatus:z,mileageStatus:C}=m,R=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Me.getLocalizedStrings(),{reimbursement:K}=Y,[S,D]=o.useState(R),[Q,U]=o.useState(!1);o.useEffect(()=>{f||J(I)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&D(!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:A,isActive:d&&r==null,children:[i.jsxs(Ai,{windowSize:l,children:[x.mileageHeader,d===!1?i.jsx(Di,{children:ee.comingSoon}):null]}),i.jsxs($i,{windowSize:l,children:[i.jsx(ki,{windowSize:l,isDarkMode:j.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(ji,{children:[i.jsxs(Ii,{children:[i.jsx(Si,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),i.jsx(bi,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?i.jsx(Ae,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:je(C.code)}):null]}),i.jsxs(Ci,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?i.jsx(Ae,{style:{width:"max-content"},tagTitle:C.name,textColor:je(C.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:j.colors.background,color:S||f?void 0:j.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:Q,name:I,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":Ie("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":Ie("edit-mileage"),onClick:E=>{E.stopPropagation(),D(!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{_ as V,fm as M,V as _,bR as W,bS as z,bT as G,iU as K,ag as q,O as H}from"./index-BHAcVHeH.js";import{a as b}from"./sentry-CY6wsJT-.js";import{GK as J}from"./zeni-epic-state-cFF_NqwA.js";import{u as Q}from"./ReviewOverlay-A1OYNSqG-DCeKL3J7.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./mui-Cni6P-fz.js";import"./recharts-LlOU9oLm.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="98541661-6037-469c-882a-ebe9ec0a187f",e._sentryDebugIdIdentifier="sentry-dbid-98541661-6037-469c-882a-ebe9ec0a187f")}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,y=!1,T=V(),p=M(T),[v,u]=b.useState(!1),[h,A]=b.useState(P(e,y,o,p)),[w,D]=b.useState(y),[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,y,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:U}=Y(i,x,$,w),C=e.fetchState==="Completed"&&x===0,L=()=>{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:[v?_.jsx(W,{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(Q,{title:O,description:{content:U,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:L,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=K(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:y}=a.texts,T=o>1,p=s>1;let v="",u="";return e!=="Completed"||m?(v=n.reviewPage.reportsReviewing.title.replace("__report__",p?l:i),u=n.reviewPage.reportsReviewing.description.replace("__report__",p?l:i)):(v=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:y):`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?l:i).replace("<_is_>",T?r:f)}`),{title:v,description:u}};export{_e as default};
1
+ import{_ as V,fm as M,V as _,bR as W,bS as z,bT as G,iU as K,ag as q,O as H}from"./index-ByqexAVU.js";import{a as b}from"./sentry-CY6wsJT-.js";import{GK as J}from"./zeni-epic-state-cFF_NqwA.js";import{u as Q}from"./ReviewOverlay-A1OYNSqG-9s_1ZdtP.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./mui-Cni6P-fz.js";import"./recharts-LlOU9oLm.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="98541661-6037-469c-882a-ebe9ec0a187f",e._sentryDebugIdIdentifier="sentry-dbid-98541661-6037-469c-882a-ebe9ec0a187f")}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,y=!1,T=V(),p=M(T),[v,u]=b.useState(!1),[h,A]=b.useState(P(e,y,o,p)),[w,D]=b.useState(y),[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,y,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:U}=Y(i,x,$,w),C=e.fetchState==="Completed"&&x===0,L=()=>{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:[v?_.jsx(W,{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(Q,{title:O,description:{content:U,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:L,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=K(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:y}=a.texts,T=o>1,p=s>1;let v="",u="";return e!=="Completed"||m?(v=n.reviewPage.reportsReviewing.title.replace("__report__",p?l:i),u=n.reviewPage.reportsReviewing.description.replace("__report__",p?l:i)):(v=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:y):`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?l:i).replace("<_is_>",T?r:f)}`),{title:v,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,b as j,aa as l,b0 as g,C as u,o as c}from"./index-BHAcVHeH.js";import{n as s}from"./mui-Cni6P-fz.js";import{a as d}from"./sentry-CY6wsJT-.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]="db413ffe-96a3-45e6-a289-13f06584e962",e._sentryDebugIdIdentifier="sentry-dbid-db413ffe-96a3-45e6-a289-13f06584e962")}catch{}})();function w({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 p({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,b as j,aa as l,b0 as g,C as u,o as c}from"./index-ByqexAVU.js";import{n as s}from"./mui-Cni6P-fz.js";import{a as d}from"./sentry-CY6wsJT-.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]="db413ffe-96a3-45e6-a289-13f06584e962",e._sentryDebugIdIdentifier="sentry-dbid-db413ffe-96a3-45e6-a289-13f06584e962")}catch{}})();function w({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 p({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 E({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{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(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const C=s(l)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{y as X,e as de,bF as fe,T as be,V as t,k as xe,bG as te,A 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 Q,b0 as ke,m,ad as Ce,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-BHAcVHeH.js";import{a as u,b as ue}from"./sentry-CY6wsJT-.js";import{n as h}from"./mui-Cni6P-fz.js";import{t as O,n as De}from"./CollapsableReportTable-D7zD4-h0-CdsTnLhf.js";import{t as Pe}from"./filter-cZIFUNvj-Cn5LR_-W.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]="3be4da45-5636-440e-855f-4115816e8348",e._sentryDebugIdIdentifier="sentry-dbid-3be4da45-5636-440e-855f-4115816e8348")}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 X,e as de,bF as fe,T as be,V as t,k as xe,bG as te,A 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 Q,b0 as ke,m,ad as Ce,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-ByqexAVU.js";import{a as u,b as ue}from"./sentry-CY6wsJT-.js";import{n as h}from"./mui-Cni6P-fz.js";import{t as O,n as De}from"./CollapsableReportTable-D7zD4-h0-CXEJdn3k.js";import{t as Pe}from"./filter-cZIFUNvj-Cn5LR_-W.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]="3be4da45-5636-440e-855f-4115816e8348",e._sentryDebugIdIdentifier="sentry-dbid-3be4da45-5636-440e-855f-4115816e8348")}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{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt,b as I,a$ as ft,aM as ut,a_ as gt,be as bt,o as C,ab as _t,L as yt,bf as xt,x as Y,bg as wt,m as L,k as ye,J as z,bh as xe,C as ue,bi as $e,S as Ie,bj as St,ad as Ct,l as Fe,r as Rt,b7 as Ot}from"./index-BHAcVHeH.js";import{a as v,b as Pe}from"./sentry-CY6wsJT-.js";import{n as b}from"./mui-Cni6P-fz.js";import{_ as vt}from"./liveblocks-Ia5FU_Xu.js";import{bt as we,F6 as Tt,Ff as At,Fg as Bt,Fh as K,Fi as kt,Fj as Lt,Fk as jt,Fl as Nt,Fm as Mt,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-cFF_NqwA.js";import{j as $t,z as ce}from"./mapTimeframeBalancesToTreeNode-BP0iF3Of-BZXMdjjY.js";import{m as Q,l as de}from"./analyticsHelper-CG-L3dO7-WIHh4rd-.js";import{b as It}from"./ReportTableViewSelector-CUG4hVI9-Bjuyu4DH.js";import{S as oe,y as Ft,M as Pt,$ as Et,v as Vt}from"./TimeRangeSwitcher-B1Wx03tG-Br6TSwpo.js";import{X as zt}from"./TimeframeSwitcherWithToggle-P5CfgTUd-DXOPf3Bj.js";import{DownloadOverlayButton as Dt}from"./DownloadOverlay-SLvxfa6B-CQ7BxjF9.js";import{Z as Ut,n as Yt,t as P,j as Ce}from"./CollapsableReportTable-D7zD4-h0-CdsTnLhf.js";import{D as Re,T as Oe,C as te,L as Wt,g as Ee}from"./mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B_J7hTEH.js";import{d as Gt,l as Ht}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-DMQQGP6s.js";import{d as Zt}from"./mapLoadingInProgressToTreeNode-C_DjhqLk-Ct7OsbEi.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./recharts-LlOU9oLm.js";import"./utils-ChLimP28.js";import"./filter-cZIFUNvj-Cn5LR_-W.js";import"./TimeframeSwitcher-Dmtsdwi9-Ce3iuH6w.js";import"./page-detail-CWX5S47F-B9qcUnuN.js";import"./page-summary-D7_VQHwN-ZSqDN0WI.js";import"./AccountRow-B3Sz6a-V-GlNhkavB.js";import"./clock-CJkylEKt-CBVPxBka.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]="25eea7ae-d5d6-4045-9cd9-2f6775057b23",e._sentryDebugIdIdentifier="sentry-dbid-25eea7ae-d5d6-4045-9cd9-2f6775057b23")}catch{}})();const qt=b.div`
1
+ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt,b as I,a$ as ft,aM as ut,a_ as gt,be as bt,o as C,ab as _t,L as yt,bf as xt,x as Y,bg as wt,m as L,k as ye,J as z,bh as xe,C as ue,bi as $e,S as Ie,bj as St,ad as Ct,l as Fe,r as Rt,b7 as Ot}from"./index-ByqexAVU.js";import{a as v,b as Pe}from"./sentry-CY6wsJT-.js";import{n as b}from"./mui-Cni6P-fz.js";import{_ as vt}from"./liveblocks-Ia5FU_Xu.js";import{bt as we,F6 as Tt,Ff as At,Fg as Bt,Fh as K,Fi as kt,Fj as Lt,Fk as jt,Fl as Nt,Fm as Mt,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-cFF_NqwA.js";import{j as $t,z as ce}from"./mapTimeframeBalancesToTreeNode-BP0iF3Of-DbCZ7i8N.js";import{m as Q,l as de}from"./analyticsHelper-CG-L3dO7-BuQ3dQan.js";import{b as It}from"./ReportTableViewSelector-CUG4hVI9-BizHpKUG.js";import{S as oe,y as Ft,M as Pt,$ as Et,v as Vt}from"./TimeRangeSwitcher-B1Wx03tG-BWIrI-Q6.js";import{X as zt}from"./TimeframeSwitcherWithToggle-P5CfgTUd-Dktx47QV.js";import{DownloadOverlayButton as Dt}from"./DownloadOverlay-SLvxfa6B-BbI1muq1.js";import{Z as Ut,n as Yt,t as P,j as Ce}from"./CollapsableReportTable-D7zD4-h0-CXEJdn3k.js";import{D as Re,T as Oe,C as te,L as Wt,g as Ee}from"./mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B5H-460G.js";import{d as Gt,l as Ht}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-CPa7R1do.js";import{d as Zt}from"./mapLoadingInProgressToTreeNode-C_DjhqLk-Cbs7Of5h.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./recharts-LlOU9oLm.js";import"./utils-ChLimP28.js";import"./filter-cZIFUNvj-Cn5LR_-W.js";import"./TimeframeSwitcher-Dmtsdwi9-Cw7Bi58F.js";import"./page-detail-CWX5S47F-B9qcUnuN.js";import"./page-summary-D7_VQHwN-ZSqDN0WI.js";import"./AccountRow-B3Sz6a-V-CTAgoDt8.js";import"./clock-CJkylEKt-CBVPxBka.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]="25eea7ae-d5d6-4045-9cd9-2f6775057b23",e._sentryDebugIdIdentifier="sentry-dbid-25eea7ae-d5d6-4045-9cd9-2f6775057b23")}catch{}})();const qt=b.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  `,Xt=b.div`
@@ -1 +1 @@
1
- import{j as c}from"./pdf-CTJ16aEe.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-oEkj6b51.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as D,HK as k,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as De,cy as ke}from"./zeni-epic-state-cFF_NqwA.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bj as Le,jz as E,J as Me,k3 as Pe,k4 as Be,jO as je}from"./index-BHAcVHeH.js";import"./mui-Cni6P-fz.js";import ve from"./NotFoundScreen-SRDW4_mE.js";import{F as Ue}from"./FeaturePreviewScreen-D_cOMPjM.js";import{a as y}from"./sentry-CY6wsJT-.js";import{u as Ve}from"./useInitialThreadRequest-DTIHWJqF.js";import{t as z,a as q}from"./routePaths-WWdcktge.js";import{M as xe}from"./MobileAppDrawer-CTcTm5tx.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="ccfd1f53-7a41-4c0d-8487-f8a5f4de7751",e._sentryDebugIdIdentifier="sentry-dbid-ccfd1f53-7a41-4c0d-8487-f8a5f4de7751")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(D({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??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,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,s,t)=>{if(e(we(a)),s){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(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.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(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.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=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(D({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));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=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(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,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),J=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),Z=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=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(),Q=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:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:Z,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:J.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,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(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=De(i,e),a=ke(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
1
+ import{j as c}from"./pdf-CTJ16aEe.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-oEkj6b51.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as D,HK as k,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as De,cy as ke}from"./zeni-epic-state-cFF_NqwA.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bj as Le,jz as E,J as Me,k3 as Pe,k4 as Be,jO as je}from"./index-ByqexAVU.js";import"./mui-Cni6P-fz.js";import ve from"./NotFoundScreen-B8XFlejE.js";import{F as Ue}from"./FeaturePreviewScreen-Bcvg8Bfv.js";import{a as y}from"./sentry-CY6wsJT-.js";import{u as Ve}from"./useInitialThreadRequest-D1CqutXV.js";import{t as z,a as q}from"./routePaths-BnaAtOOM.js";import{M as xe}from"./MobileAppDrawer-CVmbFUtl.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="ccfd1f53-7a41-4c0d-8487-f8a5f4de7751",e._sentryDebugIdIdentifier="sentry-dbid-ccfd1f53-7a41-4c0d-8487-f8a5f4de7751")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(D({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??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,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,s,t)=>{if(e(we(a)),s){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(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.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(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.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=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(D({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));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=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(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,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),J=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),Z=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=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(),Q=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:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:Z,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:J.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,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(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=De(i,e),a=ke(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
@@ -1,4 +1,4 @@
1
- import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-BHAcVHeH.js";import{a as z,b as ee}from"./sentry-CY6wsJT-.js";import{n as f}from"./mui-Cni6P-fz.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-_AEkJ5Cg-CVupoc41.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-CuxwOBs0-D4IOrabU.js";import{V as J}from"./toChartData-BODe4y2V-CHAJ4Jnp.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-LlOU9oLm.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]="914b91ea-0983-4f37-8023-48097005c719",e._sentryDebugIdIdentifier="sentry-dbid-914b91ea-0983-4f37-8023-48097005c719")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
1
+ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-ByqexAVU.js";import{a as z,b as ee}from"./sentry-CY6wsJT-.js";import{n as f}from"./mui-Cni6P-fz.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-_AEkJ5Cg-BoLLmK-7.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-CuxwOBs0-BNfZJE4p.js";import{V as J}from"./toChartData-BODe4y2V-C6JFTy1O.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-LlOU9oLm.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]="914b91ea-0983-4f37-8023-48097005c719",e._sentryDebugIdIdentifier="sentry-dbid-914b91ea-0983-4f37-8023-48097005c719")}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{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as H,c$ as O,f as j,eP as At,eQ as E,d5 as V,eR as Bt,eS as Ft,bn as Le,o as n,a9 as Rt,m as d,O as Lt,u as zt,bw as Nt,d as Ot,M as Et,eT as Vt,bH as Zt,l as ce,H as me,eU as Gt,eV as Yt,aD as _t,n as Ut,at as qt,eW as Ht,D as tt,b6 as Kt,C as nt,aR as Wt,eX as Qt}from"./index-BHAcVHeH.js";import{a as G}from"./sentry-CY6wsJT-.js";import{n as a}from"./mui-Cni6P-fz.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-cFF_NqwA.js";import{t as tn,o as nn}from"./LowBalancePopup-Bl_PaIUx-yOClgIGf.js";import{S as Z}from"./LabeledText-Bo7B-LrF-DECCi3EJ.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="f1abcbc8-7b6e-4fe7-b5e0-204fa47004b8",e._sentryDebugIdIdentifier="sentry-dbid-f1abcbc8-7b6e-4fe7-b5e0-204fa47004b8")}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,Ze=({attachment:e})=>{const[y,x]=G.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(Gt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Yt,{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:X,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,J=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},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=G.useState(!1),[te,be]=G.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);G.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Y?.code?Y:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&Y?.code?Y:N,ae=()=>{pe()},$e=()=>{pe()},_=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=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ge(h,U,e.isBillMarkedForRetry),le=st&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&q(!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=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Qt(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=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=G.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:()=>{q(!1),ae()},onClickAway:()=>{q(!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:_?.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:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{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(qe,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(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(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(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(Je,{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(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(He,{children:o.pay}),t.jsx(Ke,{children:t.jsx(Re,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(He,{children:o.to}),t.jsx(Ke,{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(Z,{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(K,{})]}),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(Z,{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?Ht(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(K,{}),f||_==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(Z,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:_.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(_.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(K,{})]}),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(Z,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),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(Z,{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(_e,{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-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(de,{children:Ve.transactionFee}),t.jsx(se,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.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:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.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:Ye(!1,C,h,U,s)}},primaryBtn:{label:Ge(h,U,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?q(!0):Ce()},style:{width:Ye(!0,C,h,U,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Zn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Yn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Gn,{})})})}):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})]})},Ge=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ye=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(Kt)`
1
+ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as H,c$ as O,f as j,eP as At,eQ as E,d5 as V,eR as Bt,eS as Ft,bn as Le,o as n,a9 as Rt,m as d,O as Lt,u as zt,bw as Nt,d as Ot,M as Et,eT as Vt,bH as Zt,l as ce,H as me,eU as Gt,eV as Yt,aD as _t,n as Ut,at as qt,eW as Ht,D as tt,b6 as Kt,C as nt,aR as Wt,eX as Qt}from"./index-ByqexAVU.js";import{a as G}from"./sentry-CY6wsJT-.js";import{n as a}from"./mui-Cni6P-fz.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-cFF_NqwA.js";import{t as tn,o as nn}from"./LowBalancePopup-Bl_PaIUx-Cz8COji5.js";import{S as Z}from"./LabeledText-Bo7B-LrF-XkdNglCy.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="f1abcbc8-7b6e-4fe7-b5e0-204fa47004b8",e._sentryDebugIdIdentifier="sentry-dbid-f1abcbc8-7b6e-4fe7-b5e0-204fa47004b8")}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,Ze=({attachment:e})=>{const[y,x]=G.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(Gt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Yt,{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:X,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,J=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},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=G.useState(!1),[te,be]=G.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);G.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Y?.code?Y:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&Y?.code?Y:N,ae=()=>{pe()},$e=()=>{pe()},_=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=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ge(h,U,e.isBillMarkedForRetry),le=st&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&q(!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=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Qt(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=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=G.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:()=>{q(!1),ae()},onClickAway:()=>{q(!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:_?.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:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{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(qe,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(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(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(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(Je,{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(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(He,{children:o.pay}),t.jsx(Ke,{children:t.jsx(Re,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(He,{children:o.to}),t.jsx(Ke,{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(Z,{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(K,{})]}),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(Z,{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?Ht(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(K,{}),f||_==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(Z,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:_.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(_.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(K,{})]}),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(Z,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),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(Z,{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(_e,{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-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(de,{children:Ve.transactionFee}),t.jsx(se,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.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:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.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:Ye(!1,C,h,U,s)}},primaryBtn:{label:Ge(h,U,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?q(!0):Ce()},style:{width:Ye(!0,C,h,U,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Zn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Yn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Gn,{})})})}):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})]})},Ge=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ye=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(Kt)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-BHAcVHeH.js";import{n as t}from"./mui-Cni6P-fz.js";import{a as w}from"./sentry-CY6wsJT-.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]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}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")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.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":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(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:T,showCancel:!E}):null]})},O=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{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-ByqexAVU.js";import{n as t}from"./mui-Cni6P-fz.js";import{a as w}from"./sentry-CY6wsJT-.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]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}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")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.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":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(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:T,showCancel:!E}):null]})},O=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 a}from"./pdf-CTJ16aEe.js";import{aE as x,js as w,aF as b,bj as I,jz as p,J as F,mj as L,aG as P}from"./index-BHAcVHeH.js";import"./mui-Cni6P-fz.js";import m from"./NotFoundScreen-SRDW4_mE.js";import{a as d}from"./sentry-CY6wsJT-.js";import{i as R,u as y,j as T,h as V,k as O,R as U,m as u}from"./core-oEkj6b51.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-cFF_NqwA.js";import{R as j}from"./ReferralListScreen-DPkRtA1r.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./MobileAppDrawer-CTcTm5tx.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]="754cbeee-0102-40b4-9745-982d78d44d2b",e._sentryDebugIdIdentifier="sentry-dbid-754cbeee-0102-40b4-9745-982d78d44d2b")}catch{}})();const K=O(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{e(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)}e(J())},onUpdateInviteFormLocalData:s=>{e(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const e=R(),[t,n]=d.useState(!1),[o,s]=d.useState(!1),r=y(i=>z(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=y(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:v}=g(b.zeniAccountsConfig),E=A(v);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(G()),s(!0))},[]),d.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(q(!0)))},[l.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.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 le(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(P.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(j,{}):a.jsx(m,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(m,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(Z,{}):a.jsx(m,{})}),a.jsx(u,{path:"*",element:a.jsx(m,{})})]})}export{le as default};
1
+ import{j as a}from"./pdf-CTJ16aEe.js";import{aE as x,js as w,aF as b,bj as I,jz as p,J as F,mj as L,aG as P}from"./index-ByqexAVU.js";import"./mui-Cni6P-fz.js";import m from"./NotFoundScreen-B8XFlejE.js";import{a as d}from"./sentry-CY6wsJT-.js";import{i as R,u as y,j as T,h as V,k as O,R as U,m as u}from"./core-oEkj6b51.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-cFF_NqwA.js";import{R as j}from"./ReferralListScreen-OXcIgRf5.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./MobileAppDrawer-CVmbFUtl.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]="754cbeee-0102-40b4-9745-982d78d44d2b",e._sentryDebugIdIdentifier="sentry-dbid-754cbeee-0102-40b4-9745-982d78d44d2b")}catch{}})();const K=O(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{e(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)}e(J())},onUpdateInviteFormLocalData:s=>{e(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const e=R(),[t,n]=d.useState(!1),[o,s]=d.useState(!1),r=y(i=>z(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=y(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:v}=g(b.zeniAccountsConfig),E=A(v);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(G()),s(!0))},[]),d.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(q(!0)))},[l.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.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 le(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(P.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(j,{}):a.jsx(m,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(m,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(Z,{}):a.jsx(m,{})}),a.jsx(u,{path:"*",element:a.jsx(m,{})})]})}export{le as default};
@@ -1,4 +1,4 @@
1
- import{eg as c,eh as f,V as s,bn as h,o as d,b as l,O as g,j as x,C as p}from"./index-BHAcVHeH.js";import{n}from"./mui-Cni6P-fz.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]="015e2f1f-770c-4da9-973f-41a1274d167f",e._sentryDebugIdIdentifier="sentry-dbid-015e2f1f-770c-4da9-973f-41a1274d167f")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,m=n.div``,y=n.div`
1
+ import{eg as c,eh as f,V as s,bn as h,o as d,b as l,O as g,j as x,C as p}from"./index-ByqexAVU.js";import{n}from"./mui-Cni6P-fz.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]="015e2f1f-770c-4da9-973f-41a1274d167f",e._sentryDebugIdIdentifier="sentry-dbid-015e2f1f-770c-4da9-973f-41a1274d167f")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,m=n.div``,y=n.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,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 as Ve,V as a,A as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hL as Re,hM as Be,O as xe,E as ue,hN as Se,hO as We,cc as Ue,e as ze,h$ as He,ga as ie,m as q,f as De,x as ye,cd as Ke,hP as Ge,hQ as Qe,hR as Ye,o as V}from"./index-BHAcVHeH.js";import{a as D}from"./sentry-CY6wsJT-.js";import{n as B}from"./mui-Cni6P-fz.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-cFF_NqwA.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-Dv831gVJ-OIQZXWKl.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="89d2975d-12f9-49db-97ee-26c371652e9d",e._sentryDebugIdIdentifier="sentry-dbid-89d2975d-12f9-49db-97ee-26c371652e9d")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
1
+ import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 as Ve,V as a,A as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hL as Re,hM as Be,O as xe,E as ue,hN as Se,hO as We,cc as Ue,e as ze,h$ as He,ga as ie,m as q,f as De,x as ye,cd as Ke,hP as Ge,hQ as Qe,hR as Ye,o as V}from"./index-ByqexAVU.js";import{a as D}from"./sentry-CY6wsJT-.js";import{n as B}from"./mui-Cni6P-fz.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-cFF_NqwA.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-Dv831gVJ-DAMs3BZ5.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="89d2975d-12f9-49db-97ee-26c371652e9d",e._sentryDebugIdIdentifier="sentry-dbid-89d2975d-12f9-49db-97ee-26c371652e9d")}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,hI as Y,g4 as ke,e3 as Ae,hJ as Ie,T as Je,hK as we,c8 as Le,c9 as Me,V as a,A as Ve,bR as Pe,bS as _e,bT as $e,a9 as Fe,hL as Ne,hM as Be,O as De,E as ce,hN as pe,hO as Re,cc as Ue,e as qe,ga as me,m as X,f as ze,x as We,hP as Ke,hQ as Ge,hR as He,o as A}from"./index-BHAcVHeH.js";import{a as D}from"./sentry-CY6wsJT-.js";import{n as M}from"./mui-Cni6P-fz.js";import{bH as Qe,bI as Ye,bG as Xe}from"./zeni-epic-state-cFF_NqwA.js";import{l as Ze,a as et,s as tt,r as lt}from"./ScheduleSequenceTable-Dv831gVJ-OIQZXWKl.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="6c890fc1-8ca9-4a73-bf1a-42015d21124b",e._sentryDebugIdIdentifier="sentry-dbid-6c890fc1-8ca9-4a73-bf1a-42015d21124b")}catch{}})();const N={labelWidth:new We(160,160,160)},at=M.div`
1
+ import{a7 as P,hI as Y,g4 as ke,e3 as Ae,hJ as Ie,T as Je,hK as we,c8 as Le,c9 as Me,V as a,A as Ve,bR as Pe,bS as _e,bT as $e,a9 as Fe,hL as Ne,hM as Be,O as De,E as ce,hN as pe,hO as Re,cc as Ue,e as qe,ga as me,m as X,f as ze,x as We,hP as Ke,hQ as Ge,hR as He,o as A}from"./index-ByqexAVU.js";import{a as D}from"./sentry-CY6wsJT-.js";import{n as M}from"./mui-Cni6P-fz.js";import{bH as Qe,bI as Ye,bG as Xe}from"./zeni-epic-state-cFF_NqwA.js";import{l as Ze,a as et,s as tt,r as lt}from"./ScheduleSequenceTable-Dv831gVJ-DAMs3BZ5.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="6c890fc1-8ca9-4a73-bf1a-42015d21124b",e._sentryDebugIdIdentifier="sentry-dbid-6c890fc1-8ca9-4a73-bf1a-42015d21124b")}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{e as T,y as Q,V as i,hS as le,d3 as ne,d as se,hT as we,dh as fe,eO as be,w as I,O as N,hU as $e,hR as je,o as t,x as j,f as S,n as Se,b as H,E as re,dc as ke,bR as ve,bT as De,cc as ee,dX as ie,c6 as Ce,hV as X,hW as ze,an as Me,hX as Ee,bV as Le,hY as Oe,m as p,l as M,at as Ie,bS as Te,k as ge,e4 as Ae,al as ae,dS as Ve,a9 as Fe,hZ as V,fH as Je,a5 as Be,h_ as Pe,ad as G,cq as Re,aC as Ne}from"./index-BHAcVHeH.js";import{n as l,c as P}from"./mui-Cni6P-fz.js";import{a as D}from"./sentry-CY6wsJT-.js";import{bs as U,Gq as We}from"./zeni-epic-state-cFF_NqwA.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]="752e4e08-90d8-4812-91cc-3b0f3d8e9144",e._sentryDebugIdIdentifier="sentry-dbid-752e4e08-90d8-4812-91cc-3b0f3d8e9144")}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(Ze,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),i.jsx(qe,{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:He(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(Ke,{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 qe({defaultValue:e,onClick:o}){return i.jsxs(ei,{children:[i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+1;return i.jsx(q,{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(q,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+15;return i.jsx(q,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+22;return i.jsx(q,{isSelected:n===e,onClick:()=>o(n),children:n},n)})})]})}const He=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ge=l.div`
1
+ import{e as T,y as Q,V as i,hS as le,d3 as ne,d as se,hT as we,dh as fe,eO as be,w as I,O as N,hU as $e,hR as je,o as t,x as j,f as S,n as Se,b as H,E as re,dc as ke,bR as ve,bT as De,cc as ee,dX as ie,c6 as Ce,hV as X,hW as ze,an as Me,hX as Ee,bV as Le,hY as Oe,m as p,l as M,at as Ie,bS as Te,k as ge,e4 as Ae,al as ae,dS as Ve,a9 as Fe,hZ as V,fH as Je,a5 as Be,h_ as Pe,ad as G,cq as Re,aC as Ne}from"./index-ByqexAVU.js";import{n as l,c as P}from"./mui-Cni6P-fz.js";import{a as D}from"./sentry-CY6wsJT-.js";import{bs as U,Gq as We}from"./zeni-epic-state-cFF_NqwA.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]="752e4e08-90d8-4812-91cc-3b0f3d8e9144",e._sentryDebugIdIdentifier="sentry-dbid-752e4e08-90d8-4812-91cc-3b0f3d8e9144")}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(Ze,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),i.jsx(qe,{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:He(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(Ke,{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 qe({defaultValue:e,onClick:o}){return i.jsxs(ei,{children:[i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+1;return i.jsx(q,{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(q,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+15;return i.jsx(q,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+22;return i.jsx(q,{isSelected:n===e,onClick:()=>o(n),children:n},n)})})]})}const He=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;