@zeniai/web-cockpit-ui 1.15.2-prod → 1.15.3-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/dist/assets/{ACHDetailsPage-DQqbcrtQ-CCMDBGCH.js → ACHDetailsPage-BTeL5y4g-DmxfsRQJ.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-C-s0Z84w-BaiKs086.js → AIPerformancePage-DbUM6qs6-D5l8F8OE.js} +103 -103
  3. package/dist/assets/AccountInfoPage-C-UvpjYp-BfDokQ_n.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DRhE__FT-DEYYF2py.js → AccountInfoPageContent-BwD3P36S-cR_aO4lg.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Ck5k4sN0-CLd28X38.js → AccountLockedInfoModal-CLssvxib-S2XQajFi.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CinniH8P-BVAyvgSR.js → AccountReconDetailsDrawerPage-BB1W1GCn-JBvb4AkG.js} +1 -1
  7. package/dist/assets/{AccountRow-DqfBv7EN-BeG8cAK8.js → AccountRow-Dqp3eLws-CZ01ryFZ.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-ClhDPo8Z-B3Z11wzv.js → AccountsPromoCardStack-NTUKe73a-CsNkhdvj.js} +3 -3
  9. package/dist/assets/{AddAddressForCardDrawer-Bp7X9u3M-BHvIIcm_.js → AddAddressForCardDrawer-BRWhfaUV-Ba-99nxY.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BUltXgk9-Ccv-2ess.js → AddToWalletPage-eU9RlrX2-FgU8i9Mj.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-C1CpbCow-DK-fRyj8.js → AgingReportsPage-Dbj75D7L-xth3ocr5.js} +3 -3
  12. package/dist/assets/{AllUserItems-CpiUni9v-BFPn5iHP.js → AllUserItems-C8o0ftGM-CFaZIEbK.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-ByNn2ALz-COBQe3iE.js → ApAgingDetailPage-oU_NMgYv-CGquB6FE.js} +4 -4
  14. package/dist/assets/{AppBasePage-DmW3KQcg-_8j72A2D.js → AppBasePage-Bb2EfHmS-CLmciAgt.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-B1y_D31O-DTvWEupK.js → AppDrawerContent-UxABc1Xq-D4RK1ZMx.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-GxAZWP7M-BfXge6dd.js → ApprovalRulesSettingsPage-ITDu42uI-DNwfvvz-.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BNoQoaPh-lRsQmeKM.js → ArAgingChart-BxAOsEvx-CZANIJr6.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CMcAarbW-B_hjxKGG.js → ArAgingDetailPage-DhHW1GHw-D9pgqngA.js} +5 -5
  19. package/dist/assets/{AttachmentView-BixDE2EA-DRjInPsi.js → AttachmentView-BnFvMAGW--ld7Hx8c.js} +1 -1
  20. package/dist/assets/{BankAccountSection-D85EMzvD-Cy9wR090.js → BankAccountSection-C0ZBcrDN-Bfiopxim.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection--CI3tctJ-BN8p7sJD.js → BankAccountWarningSection-BAMjtbnn-BO47Vh4w.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BAPo9xu--BnXgc_io.js → BankConnectionsSettingsPage-Ckpo_VYA-DevmalQL.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DdJoziKf-CEcecUT8.js → BillDetailPage-D3lgSK4F-CqZ5opRC.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CdoDPSYo-kYyXr5Ez.js → BillPayApprovalRuleDetailPage--UxMsaII-9Mon0_XY.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-Cfo4L2hk-B6BOyHQN.js → BillPayApprovalRulesPage-BgokSweY-Baf5ik-5.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-cK5O7lqH-DQQb6UlM.js → BillPayPromoPage-Cmfp8aZE-BV2y4Y7C.js} +10 -10
  27. package/dist/assets/{BillPaySetUpPage-BuF8vy9q-D10ERzdT.js → BillPaySetUpPage-BmtV-Zr2-665ldgAn.js} +3 -3
  28. package/dist/assets/{BillingSettingsPage-B_l_z9VO-LX90nb8v.js → BillingSettingsPage-BRJELj5Y-DfZDJ2vZ.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CoKwrfed-WCFfwJgS.js → BillsBulkReviewDrawerPage-D0HYL5UR-CgxN2BYX.js} +1 -1
  30. package/dist/assets/{BoxItem-CWj-NRo_-DfImv0N2.js → BoxItem-BO8CYlnI-cifRan7C.js} +3 -3
  31. package/dist/assets/{BusinessVerificationPage-Jl0yhiLd-u27H_ro_.js → BusinessVerificationPage-DNOBs_OD-DQqvz7MY.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CYyCmwah-N3ZNpNXF.js → CardNumberSubText-BgxVtjBP-C0H_h-nK.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-VVXYftFo-DA5biums.js → CashbackDetailPage-uVqHfc3a-BNj1YqmX.js} +8 -8
  34. package/dist/assets/{ChargeCardDetailPage-C-KKQCQP-BvJs0WVX.js → ChargeCardDetailPage-urxX5Ksv-CZSy2_VU.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage--SIQ7a3u-DirVuIxK.js → ChargeCardListPage-uyLpvqZN-4MDug-O6.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-ddk5IppO-DD5fphHx.js → ChargeCardListTable-CWBqYx4D-DrYCM4wp.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-mA_IVVFy-D_SODbGx.js → ChargeCardPaymentHistoryPage-CrJRk1Yl-BocNQqlU.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-BCb2xl-m-DtbvGaQc.js → ChargeCardPromoPage-8p2rEuSL-n08-aUHH.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-DAVM2czH-CCWCL3Ai.js → ChargeCardSetupPage-Dk3kFOe8-wkX2oTY9.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-Cgl7DfV2-DsomBIg7.js → ChargeCardStatementsPage-BgVV9glv-DMljO5w-.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DIDXNWS--DQSFQls6.js → CheckDepositDrawerPage-D-yLGTdP-EWK8cQRH.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-BnxJMwQF-CwLzNnoE.js → CollapsableReportTable-9GyG9N_I-1n67583b.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-CtFvma7e-MbXW-_Vp.js → CompanyOfficerDetailsSection-CTO9aR2f-zjfI2eeq.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-If9-KFRF-CaC0Y-8J.js → CompanyPassportCard-DRMGgEym-D6sxAXgE.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-ByLL4IdN-CnI3nq95.js → CompanyPassportPage-CgEtnvFs-DChKfhd7.js} +1 -1
  46. package/dist/assets/{CompleteProfile-D39MG_aE-B41MC9Ea.js → CompleteProfile-B8B0WHlc-DH-VSsuX.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-CqS9iRS--ROj6h0-y.js → ConfettiBurst-Cf9tVPaI-BM2huSXV.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-C0lTJ9RB-FcmrSgRF.js → CreateOrEditVendorPage-BRoA1J_e-CzBBu5Bw.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BMlE0JgE-CihYUP6F.js → CreditCardPaymentDrawerPage-DfLgUaL5-DfR_IJlY.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-Cqh1PAAW-4WT7C3hx.js → CurrencySelectField-P0hAgQCu-CY3e6U6t.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-CExJcqXe-CagjWug8.js → CustomerOnboardingActivationPage-B8Q88AWZ-CPF7lzvF.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-YGCksJfr-DfNXfn85.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-zHDAnR9J-BC7B-JwU.js → CustomerOnboardingDetailPageSkeleton-CHfRyWDx-D-MRkSd0.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-CgblGoOL-CjZnNYEq.js → CustomerOnboardingNoStepsPage-AHaRcpU7-BdpSp0P9.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-DSGfwtw5-RfiXPD7J.js → CustomerOnboardingPage-M-yohbX--BjV2j59I.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-C2YlsXt9-DY_N6QvQ.js → CustomerOnboardingProductSuitePage-DqQ7Lcwq-Bc6ND6Bx.js} +1 -1
  57. package/dist/assets/{Dashboard-C52yIGy8-DOJmJQIR.js → Dashboard-BG4b-9G4-sAqrpBJG.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-iZVhpQQc-BBhEF-Qy.js → DashboardReportPage-BzRypSME-jjHWrXwM.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-mksYvmzi-_taEN-ko.js → DashboardSidebarBackgroundAnimation-iToqk56B-BtLraFPT.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-Ct9UKq01-CEMKAJXr.js → DepositAccTransactionItem-LqdXkh9A-hSRnCvZB.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-Q-rYYEAZ-DW0SGlGF.js → DepositAccTransactionListPage-CdvLbfLi-Cn9opxkq.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-D8MlbitH-BTP6uT40.js → DomesticWireDetailsPage-B42h6sda-DX1LXutY.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-DooSRB2s-BF2uTdHp.js → DownloadOverlay-BaDe2oAY-D9mRkHN7.js} +1 -1
  64. package/dist/assets/{DrawerPage-COB3hDS_-Bvd864ff.js → DrawerPage-CstJJdfo-VidMxfx9.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-BLRAgjPa-CawDu4Ct.js → EditPeoplePage-DnOwrdDz-BaklMVpc.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-D1d8qzXB-Bgb-cnHl.js → EditReimbursementDetailPage-CibEtPqY-CoDSnx1m.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-BDqbedFw-CSRgOFGM.js → EntityDetailPage-DkdoV8Td-C0bI9nzr.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-DOkXIw-J-YofxAv_T.js → EntitySummarySection-mA5rFNgr-DuPTnXno.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-BSXCkfKT-CO_qIZgD.js → ExpenseAutomationOverviewPage-Cdb_ye_U-j_owJ_aN.js} +9 -9
  70. package/dist/assets/{ExpenseAutomationPage-Di3n8DMk-B2jagxZP.js → ExpenseAutomationPage-C8BdII8_-DimJYcUA.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-B-SwvM4I-DZUgODco.js → ExpressPayPage-D-q6m2Sl-DvfkMqPz.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-Dz42ojYl-dlyXXVzt.js → FeaturePreviewPage-Brmih5xQ-TclSPSN_.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-BS4M36H4-VbTMLw8c.js → FollowStepsSection-C0R9691z-CJI6UuPB.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-C1Tn5Cwx-1V9BYJcq.js → GlobalReviewListPage-wZ4Kv7Km-DjGHeOHK.js} +1 -1
  75. package/dist/assets/{InformationCardStack-DTWUPxhs-BACtP104.js → InformationCardStack-C_Vo9lw4-BJdE4aZQ.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-CklTB6N7-D4H9Re1R.js → InsightsCardStack-B18tApRg-CDcqQ9iZ.js} +2 -2
  77. package/dist/assets/{InsightsSection-g58q0fm4-CEq2Ig_3.js → InsightsSection-BT1h9fEy-BRfU7zNX.js} +5 -5
  78. package/dist/assets/{IntegrationsSettingsPage-Bs3ZvOVJ-BHG9Ua2i.js → IntegrationsSettingsPage-BXihQUgf-Ca4kyKn3.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-CC0aZ_Ht-Bwxskut8.js → InternationalWireSwiftDetailsPage-s2KDdELd-DCL_N0b1.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-Bb8q9_XZ-CLNY8DKz.js → InternationalWireVerificationPage-seQdCIHj-B9N63yTL.js} +3 -3
  81. package/dist/assets/{InviteFormPage-Bh9zpIMu-Bu3B9PuZ.js → InviteFormPage-DORYlkDF-C-UyiOzw.js} +1 -1
  82. package/dist/assets/{InvitePageListView-Da5n8FWG-B6stlVcN.js → InvitePageListView-__0_bfoj-C56A_BTa.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-B1jmVXj9-D2WPRn0N.js → InvitePeoplePage-BPU0cUoJ-C_9RmlUy.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-DN31nPpE-D9eKp_cR.js → InvoiceUploadSection-Cf_VG6ou-BXiqeaLr.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-Ev17uGYx-ChYFdDJP.js → IssueChargeCardPage-Ak_ZYHLC-Brr4uJLW.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-CZvcCn7x-DlgPS4BM.js → LabeledAddressValue-Dv_iNmJ1-CSsnKiIv.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-CJel6ymq-CuDyNJEA.js → LabeledAddressValueField-BOu3phtO-DUC2jENU.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-COHS18nA-C3gA822t.js → LabeledControlledCheckBoxField-CPIKQ-CK-jxS0CHZ_.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-CcJheGwX-Yh_Rso5A.js → LabeledCountryMultiSelectField-BfXHGTpW-vM7yZBRT.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-C9p8xRkh-YLSUm9Dy.js → LabeledCreatableSingleSelectField-xk2HC5O8-CvpcCD48.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-DC4TbHE8-BjpcX3fs.js → LabeledDocumentField-D8RhxYIe-DAnLkE2V.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BcSAJy2I-2PBpSsNP.js → LabeledDropDownFormattedTextField-ClNFgUx5-Bx0rybn1.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-D-N343dq-DyYnCM_P.js → LabeledMultiSelectField-BpLilatj-DTbTUWW6.js} +1 -1
  94. package/dist/assets/{LabeledText-DHLOUxK_-DDl0PsGQ.js → LabeledText-Xnlcoee7-DQVISFOu.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BOM4OGJn-D98ERW9T.js → LabeledUserSingleSelectWithSubtitlesField-DSu4gVyZ-CJXT3-Sj.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CqZGfBlk-CWwKC4j_.js → LabeledZeniRolesDropDownField-Dm6FC_X5-CKRgwBOq.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-BLleyJg_-Dicf3kDd.js → LinkJETransactionPage-D0tsT5TK-D-eEZv6m.js} +2 -2
  98. package/dist/assets/{LockCardPage-dHmjahEB-C2QZpy-5.js → LockCardPage-DYNFfr7G-CPZbfc9t.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-D5xx56fY-CazatBff.js → LowBalancePopup-BHUFtl2y-rf0GZ141.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-D1Yrf6I3-xn828nNY.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-DF4qlmsy-DJfJXSHY.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-BNeI6INt-yjK2JJED.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-De4m7E-W-DcLxM1zk.js → MagicLinkSuccessPage-B-8mtcQ5-C3o9YJHE.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-Bka3Yd1_-C6aP8e1t.js → MagicLinkTitleSection-DHU7VtF2-Bedubn59.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-BbWfR6ob-D7W1tLXO.js → MailingDetailsSection-B-bODwAg-DzrWy-jk.js} +1 -1
  106. package/dist/assets/{Menu-CCfXjS2S-C9ZoSEn7.js → Menu-BumlrBWb-DpVhZSGr.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-NwFd4S7O-CC9eVha_.js → MyBankConnectionsSettingsPage-BP8ahgjX-5saVRqtp.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-B2fGNuM2-B1XcoEjv.js → MyPendingActivationChargeCardListPage-DL6ZI6yW-BoGJ1TyM.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-C2xgzfZf-DsRcxwZ8.js → MyProfileSettingsPage-D0t4K8ns-Bm-ItkSW.js} +2 -2
  110. package/dist/assets/{NavBarWithPicker-DUqVkR_y-BknqAH_u.js → NavBarWithPicker-BtWbUncS-DB3n1R3v.js} +1 -1
  111. package/dist/assets/{NavigationArrow-Ctt_H8KP-E_uIkHaf.js → NavigationArrow-CxgIRSy6-CugP8MA7.js} +1 -1
  112. package/dist/assets/{NavigationDots-Dgudddqx-C4orZ-yB.js → NavigationDots-B3pcllxp-BTtZpldx.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-D1hNFzTS-Ub29Nbxg.js → NewGlobalMerchantPage-cvM5npvx-Cu4rYaF2.js} +1 -1
  114. package/dist/assets/{NoDataChart-DbLSGWgH-B8Qyn34z.js → NoDataChart-CkbRqqmB-BdaQaq20.js} +1 -1
  115. package/dist/assets/{NoDataTable-BYLV7sLq-DdPuChf3.js → NoDataTable-D5uU7rww-DMI3TCce.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CIeF09o9-DmVTU-Tc.js → NotFoundPage-CQ43hKOe-Cdrz4d6W.js} +8 -8
  117. package/dist/assets/{NotificationSettingsPage-CEhFnaxj-lxhMeLrR.js → NotificationSettingsPage-B1Lup2VT-Mysd9rJj.js} +3 -3
  118. package/dist/assets/{NotificationsListConfig-PHESCv2f-CV_5a971.js → NotificationsListConfig-DbMLqAOq-BbLTIknO.js} +1 -1
  119. package/dist/assets/{NotificationsPage-hIohQ7En-CSeli1Ds.js → NotificationsPage-AB3KsQi7-CsoOAVaW.js} +18 -18
  120. package/dist/assets/{OpExByVendorPage-C1RcJ4Q3-Dg382B2-.js → OpExByVendorPage-SzuZwalp-E6WJ2wnK.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-DPuKVI4d.js → OverlayContainerPage-Daz3A7cI-Dgh3TUuK.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-B-uQyVwQ-3UdMsNqp.js → PandLWithForecastPage-SYjTIobN-BFTSUg2z.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CGqYs83b-C-2L3l6N.js → PaymentAccountSetupBillingAddressSection-Bsx0mGaZ-E4w6U3C0.js} +7 -7
  124. package/dist/assets/{PeoplePage-Db0MhBko-BMsQRy7R.js → PeoplePage-B5JrcDNI-oFYxDkBG.js} +1 -1
  125. package/dist/assets/{Preview-DMjeJjnA.js → Preview-DA-xbr8A.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CYwIm8nQ-B5mle3Vr.js → ProductsCarousel-CVoL_xl4-DEZsKrdB.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-B2ZC8OUT-BVAvKfhQ.js → PromoBaseCards-C8qSUCzq-dm6HKZ5W.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-B0E1xE9I-DgBSSzHh.js → QBOConnectionDialog-QFZbkFOA-CuMPgrHC.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-IGV1sm9x-CNjIjXKF.js → QBOSetupSection-B2qiAlYU-CibzVKaP.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CwJkaZqa-CFNkMVya.js → ReimbursementApprovalRuleDetailPage-iqzN8yeY-ChbC4qky.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-C0D2DYVf-D_WeUtGn.js → ReimbursementApprovalRulesPage-BWFxJ80S-PIGBQETH.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-DV7eDd9t-DbTKQbSm.js → ReimbursementDetailPage-Cb9BOq4R-Dl--S5zY.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-DNM2mNbV-HkmfuMOc.js → ReimbursementPromoPage-D-NSe4nk-Ceb4vSNq.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-CVuQyfku-DngAhgwz.js → ReimbursementSetUpPage-zUHUxId8-C_2E6m1y.js} +5 -5
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DAvUmNKc-CnHe92Kc.js → ReimbursementsBulkReviewDrawerPage-CMupP_NB-lhVpZhwT.js} +1 -1
  136. package/dist/assets/{ReloadCard-BsOjPgsc-D5DLDKDR.js → ReloadCard-Dh0SYKvO-BfN50eLc.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-BJNFsOJq-DR4jF5iW.js → ReportTableViewSelector-0H1aO3_G-By7dUXRW.js} +1 -1
  138. package/dist/assets/{ReportsPage-GYEaSw4z-DT0i_pp7.js → ReportsPage-DsFJrJ9D-DvSCX2Ph.js} +5 -5
  139. package/dist/assets/{RevenueChart-DXgZ34NU-D4IStz6f.js → RevenueChart-BlQnByKx-DXS5eLR_.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-VBCKACNQ-DeDwYpai.js → ReviewDetailsPage-CV-J7_FZ-DEsUSLNK.js} +2 -2
  141. package/dist/assets/{ReviewOverlay-D1dHNrqu-DXfCDLdz.js → ReviewOverlay-CwyShttD-COz1RonR.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-BE5aZQ2g-DYLY92hX.js → RoleWithToolTip-CeOpT_6v-DAXLsTDF.js} +5 -5
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-p2jwjhfb-19YgTPE7.js → ScheduleDetailsFixedAssetsPage-G0FPNF5V-CzalI8zM.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-CuGgAAlk-BtosIJ_j.js → ScheduleDetailsPage-D3WXeMzk-putFQ_Xj.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-DS5xyWPM-CEwFuV1B.js → ScheduleSequenceTable-DdrN0kHc-HFF16mEy.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-DrNdYiWh.js → ScreenRoutes-B3_PwFlc.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-CgV-DpbH-BEL6ML_h.js → SetUpAccountSection-DjGIyGqz-2NoSMGYE.js} +1 -1
  148. package/dist/assets/SignIn-KN2wUeWN-DjuNGmXD.js +448 -0
  149. package/dist/assets/{SignInScreen-Ci3Hds-p.js → SignInScreen-DPHbD9R0.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-7hmUDsTR-CH6VUHE7.js → SpendManagementListViewPage-DA0yJkNS-i-QGqalr.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-r4Ivr4ml-zJ5DEEjw.js → SpendManagementPerTabPage-CIiwcTHn-k-WByauQ.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-4bPNXnAu-Dgr9HP7J.js → SpendManagementSection-BLZOU6Ll--jqjSwJn.js} +7 -7
  153. package/dist/assets/{StatementItem-D7MXVGEy-B_tCrpyB.js → StatementItem-DfbvINGt-gujVkFyU.js} +5 -5
  154. package/dist/assets/{StatementsPage-mK9b-oez-oTY-nOXX.js → StatementsPage-DCjD7tSA-C1eD0_4q.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-VeYkrDM7-DvOZ5Ysl.js → StatusSwitcher-CiOSpmnA-COfWLIsO.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-j2oEcPev-DhKmASxl.js → SubTabSwitcher-CfxBS2oi-DCjTTD4N.js} +4 -4
  157. package/dist/assets/SummaryCard-YakCHMD--BAgjII8U.js +1 -0
  158. package/dist/assets/{TaskManagementPage-Cmx-Dg-h-D0nmr1b9.js → TaskManagementPage-q5-Uh7TS-DB2W1_cZ.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-DIM1SPbu-D-AL5YUb.js → TimeRangeSwitcher-B7_2Hok--aUvRF5BX.js} +2 -2
  160. package/dist/assets/{TimeframeSwitcher-DKqN8iPa-BKKOAU8T.js → TimeframeSwitcher-nC3rnif3-C0iP6Cu3.js} +5 -5
  161. package/dist/assets/TimeframeSwitcherWithToggle-DkOcWDwA-C8Z8JOD-.js +31 -0
  162. package/dist/assets/{TopExCard-Bng5AuNw-Dpc0LAx-.js → TopExCard-aqOoqjT0-BhL7e5nv.js} +10 -10
  163. package/dist/assets/{TopExDetailPage-C1UAPRay-C1udWpXC.js → TopExDetailPage-DIzdQ0cx-BfhcN7Ik.js} +6 -6
  164. package/dist/assets/{TransactionDetailPage-Ds7V1qr_-Chm5sLA8.js → TransactionDetailPage-B_hEEP8t-BqDk_xjH.js} +1 -1
  165. package/dist/assets/{TransactionList-Dq2orY9N-BLkQ0KnQ.js → TransactionList-UYBDB4bd-k1_T5uTi.js} +1 -1
  166. package/dist/assets/{TransactionListBig-BrDxcbHJ-D8A5Nn60.js → TransactionListBig-OdFVjIup-CPvP7HbH.js} +5 -5
  167. package/dist/assets/{TransactionListPage-D5v8TxYx-BGUL-pIU.js → TransactionListPage-BXYB5l79-SOItiSWS.js} +1 -1
  168. package/dist/assets/{TransactionVendorDetailPage-DnZGwCbw-DsBLVtQF.js → TransactionVendorDetailPage-kDn1yhpe-C9RYtS0M.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-DUdjOy9R-DGehrtgC.js → TransferDrawerPage-CtSQvv-q-CE0jnW7Y.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-XYkCDBio-CTs1ZQ8b.js → TreasuryOverviewPage-Dwp-RAwa-C3dvsu51.js} +9 -9
  171. package/dist/assets/{TreasuryPromoPage-CWtp3S9L-BeAE7yNb.js → TreasuryPromoPage-CqiGJJb1-BglMmMxR.js} +1 -1
  172. package/dist/assets/TreasuryStatementsPage-BvjfEhwz-D396YqJA.js +58 -0
  173. package/dist/assets/{TreasuryTaxLetterPage-CNogHL4A-8kkb3Y5P.js → TreasuryTaxLetterPage-C3B6iff1-D2ZzHU1R.js} +2 -2
  174. package/dist/assets/{TrendChart-DBRT1lZ3-B-htJoWB.js → TrendChart-DwPnEwyO-DPu-_Br2.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-CcjPNeY8-C7YkJfgr.js → TrendWithTransactions-B3oV0JPi-BgM9tzOd.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-BuMm5-pm-BPh026s-.js → UncategorizedAccountsMappingPage-bGvTx0Pv-0iP9QJ85.js} +5 -5
  177. package/dist/assets/{UnitIntegrationPage-Dxb00NtN-fbPG5NNa.js → UnitIntegrationPage-CGqGix7l-ZI3ie0F3.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-H6nIiMo6-DVOWJHOy.js → UploadAdditionalDocumentOverlay-DYbC57rE-BoJPSMM7.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-Opk2NgSs-B-SNFntT.js → Vendor2FAPopup-CF5GvGtl-Ged496hn.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-CKmq7yOU-BUMI9M8T.js +1 -0
  181. package/dist/assets/{VendorDetailPage-YUk-g7t--DTiwK45D.js → VendorDetailPage-LmgMG0tb-CmIxBGR9.js} +86 -86
  182. package/dist/assets/VendorDomesticWireDetailsPage-CBYW97OY-YsMZuav5.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-Ctx-C6OL-B72kAMzP.js → VendorFiling1099EditablePage-DZYtpPRR-C1LB-Vko.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-Biy4xcIs-Cwt7UxLk.js → VendorFirstReviewPage-DDj-Rw2b-Ce9lcxSE.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-B-ZKvwGN-Ba5mGEBL.js → VendorInternationalWireDetailsPage-VBJ-6ETL-DZn4-Y6u.js} +1 -1
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-dc3xswld-nEGzd21C.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-DztKh7dz-CknhPsMt.js → VendorsAccountsSection-CAygTvfU-jdUssBVa.js} +3 -3
  188. package/dist/assets/{VerifyDevice-fvWfQQnC-BxOk1Krp.js → VerifyDevice-CxLFy5GU-DSfbtygH.js} +7 -7
  189. package/dist/assets/{VideoPlayer-CfLdj-r8-DJCIDiIM.js → VideoPlayer-DKj4Ii21-D-xRLeKX.js} +2 -2
  190. package/dist/assets/{VideoPopup-B-N0Wv9f-Y7nOShlZ.js → VideoPopup-CFvt5o_3-4FAYuh93.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-UpSDjRDQ-C9YZ_3Aj.js → WarningsDrawerPage-BiBeB75Y-9pKl7aHf.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-Bd_RNPxh-DtJlC9fu.js → ZeniAccountDetailPage-CTrz5iPv-Cs9Kmo8Y.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-CE5BfFah-95q1Xa77.js → ZeniAccountListViewPage-DUfa9C7y-C3uPLkwI.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-C0ydgImW-ZKAEeCQS.js → ZeniAccountNavBarPieces-knHeWdLO-hJFDQ77K.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-EX9sTaQM-CQbWpaum.js → ZeniAccountPromoPage-BnGvEYqf-CP4Dtvvd.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-DX2DvcQa-DF8n-dgt.js → ZeniAccountSetupPage-JnPZalVG-Q5c0Jn7k.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-8vmkzP8u-BisYtvhc.js → ZeniCopyright-B4Tk2oOq-ZFjf_F4z.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-BgIOeOee-B3Obr-jz.js → ZeniTransferAmountSlider-bXoRbaVx-CfzHPGE8.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-eNY_OCBo.js → add-to-wallet-DgdBD8_G-CDAinlR9.js} +1 -1
  200. package/dist/assets/{analytics-BUFSKutl.js → analytics-ko5civJt.js} +1 -1
  201. package/dist/assets/{analyticsHelper-NyCKStTJ.js → analyticsHelper-BaDAJS_h.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DePSHzJ2-nrjGc1oj.js → analyticsHelper-Bow8lzQJ-BWC8GDGb.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-V8I-0M1B.js → arrow-south-east-round-PEovUgvH-8jzV931-.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-mF5BQZHi.js → auto-transfer-rule-mbafm5D3-CWH5b5CM.js} +1 -1
  205. package/dist/assets/{chartTypes-9YOqgm9X-Clxi05XW.js → chartTypes-C6j6oBoS-9mwDDGJP.js} +1 -1
  206. package/dist/assets/{commonDimensions-DMXq3s0u-BADLWz6W.js → commonDimensions-Dw7YNTQN-P35Kp_kM.js} +1 -1
  207. package/dist/assets/{commonTypes-BquPusaw-DLtkLlpr.js → commonTypes-Bq0C5-39-CLeN3lEf.js} +1 -1
  208. package/dist/assets/{constants-BrWPxO9h.js → constants-DMtNz7l9.js} +1 -1
  209. package/dist/assets/{core-Cxz4HUbn.js → core-BkA0GZqz.js} +1 -1
  210. package/dist/assets/{dash.all.min-DWlNcwdp.js → dash.all.min-BK4XJrTW.js} +1 -1
  211. package/dist/assets/{detailCommon-OHV8uIJY-CLMsoPHB.js → detailCommon-DaTlK7zO-DaqNQHzz.js} +5 -5
  212. package/dist/assets/{downloadPdf-AQqdv24M-C9YmEEAG.js → downloadPdf-CF50NGDy-B6sZII-t.js} +1 -1
  213. package/dist/assets/{empty-Cl_QN3bw.js → empty-CId982SJ.js} +1 -1
  214. package/dist/assets/{empty-C9a2QmXB.js → empty-D2MN7f91.js} +1 -1
  215. package/dist/assets/{epic-DhwNBWxm.js → epic-CaoEyh-G.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-C_LKLdav.js → gift-box-Cmt9OgIZ-PYBKomZ_.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B_d4-WeO.js → graphic-no-data-l-DU4J8fDt-UswSWtT8.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BkdEDcDD.js → graphic-no-data-net-burn-l-CzmycA0m-CaXeE4do.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-BvcxsP-R.js → handshake-BPg58FML-07xDz1It.js} +1 -1
  220. package/dist/assets/{index-CmQkfogd.js → index-BBDWUZKM.js} +1 -1
  221. package/dist/assets/{index-DLZhfXcT.js → index-BMluH1lc.js} +1 -1
  222. package/dist/assets/{index-BE73Kh7z.js → index-BN936vRr.js} +9 -9
  223. package/dist/assets/{index-DgerQhY-.js → index-BqsvcEQ2.js} +1 -1
  224. package/dist/assets/{index-Dil46tET.js → index-DHmXVUBw.js} +1 -1
  225. package/dist/assets/{index-DOVLHzE1.js → index-D_oDAIsa.js} +1 -1
  226. package/dist/assets/{index-Cs902Hx1.js → index-bGtXIeZp.js} +1 -1
  227. package/dist/assets/{lexical-Bnz9O97W.js → lexical-NKD2Ns4v.js} +1 -1
  228. package/dist/assets/{liveblocks-BUxiobW7.js → liveblocks-CUzvdZes.js} +1 -1
  229. package/dist/assets/{lottie-DskIkVJY.js → lottie-BXNphAUg.js} +1 -1
  230. package/dist/assets/{mapLoadingInProgressToTreeNode-bnjefl-h-D04rm9wP.js → mapLoadingInProgressToTreeNode-BogZGPG9-BAboISSk.js} +1 -1
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DlHnT2so-T_NOrfhE.js → mapSectionWithAcOnlyToTreeNode-DioWEF-R-B1XLCEKS.js} +1 -1
  232. package/dist/assets/mapSpacerToTreeNode-pvGPhRLA-C7p9AjQP.js +1 -0
  233. package/dist/assets/{mapTimeframeBalancesToTreeNode-Z_evAkYB-r22eIMId.js → mapTimeframeBalancesToTreeNode-BNu8T9PW-DDSfuQEg.js} +1 -1
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-CiB5iztB-CYCRkQV8.js +1 -0
  235. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CKpBoKTl-CuAe97gu.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DwGOxYFm-o3iB9CR0.js} +1 -1
  236. package/dist/assets/{mui-fuwOYnWD.js → mui-DQOtlcvt.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-CgvUKYzu.js → page-detail-CWX5S47F-TWXd7PAw.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-BF8Z5Rr4.js → radio-default-CiSgisfh-ZZNrqHqY.js} +1 -1
  239. package/dist/assets/{react-C01TZsN0.js → react-B0_FOKjj.js} +1 -1
  240. package/dist/assets/{react-DRg89qJU.js → react-CbZrw9iN.js} +1 -1
  241. package/dist/assets/{react-CvsbHuxq.js → react-D6ScaBnu.js} +1 -1
  242. package/dist/assets/{react-Q8SqCqQm.js → react-DjFHDY9f.js} +1 -1
  243. package/dist/assets/{react-BeLesOs2.js → react-GFMAp5sF.js} +1 -1
  244. package/dist/assets/{react-COhEtpa2.js → react-cPDaL2yO.js} +2 -2
  245. package/dist/assets/{react-B8BZPej1.js → react-etsPKK59.js} +1 -1
  246. package/dist/assets/{react-DdgtCQpc.js → react-w6MNCIg-.js} +1 -1
  247. package/dist/assets/{recharts-BnEZevRO.js → recharts-DEFzfhhe.js} +1 -1
  248. package/dist/assets/{sentry-CtwtDFb0.js → sentry-BCzFscbx.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-CGMi0dES.js → shield-DOlUxcFf-BS_yEuW2.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-BxzNBK9u-CqDKc9Mj.js +1 -0
  251. package/dist/assets/{toChartData-BtwV0Kpo-Bw-R2Ick.js → toChartData-CnjrCi9i-CYxTVX3t.js} +1 -1
  252. package/dist/assets/{uploadAttachment-C69IP2HG-CBGzZBnZ.js → uploadAttachment-Ce0sdSDo-C1OEaf5S.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-BBwPaFJK.js → uploadReceipts-CPw64UYa-BgLSr3Wu.js} +1 -1
  254. package/dist/assets/{url-DOK-7QZR.js → url-A8j0yL_0.js} +1 -1
  255. package/dist/assets/{url-LaALb5Vd.js → url-DyyJ-K5V.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-BXkmgMAX.js → useLongPress-GCK2COYQ-DdGlrNjq.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-C7lUdbbj.js → usp-line-BBd1wKwW-DeyJTd7u.js} +1 -1
  258. package/dist/assets/{utils-BZ73yfDv.js → utils-CGlY-GM2.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-BFhqH0Xa.js → zeni-epic-state-DIO-8j7m.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +2 -2
  262. package/dist/assets/AccountInfoPage-EW5OCEW3-BFt5mDaH.js +0 -18
  263. package/dist/assets/CustomerOnboardingContainerPage-E5XX6tJL-BRihrOCX.js +0 -1
  264. package/dist/assets/MagicLinkACHDetailsPage-DHIsrr2U-CqO-QM0k.js +0 -1
  265. package/dist/assets/MagicLinkDomesticWireDetailsPage-B1ehlPCP-BlzVLj9c.js +0 -1
  266. package/dist/assets/MagicLinkInternationalWireDetailsPage-C-Tv413E-CmD9gw7I.js +0 -1
  267. package/dist/assets/SignIn-BVICuIxS-C1aohJbi.js +0 -491
  268. package/dist/assets/SummaryCard-Bn8n64F6-CxBQi9ch.js +0 -1
  269. package/dist/assets/TimeframeSwitcherWithToggle-DcrnzLoy-Cakj6_nd.js +0 -31
  270. package/dist/assets/TreasuryStatementsPage-C1-iJ5X--9jbYN5Kx.js +0 -58
  271. package/dist/assets/VendorACHDetailsPage-C-uyGtu7-DV_EHBKQ.js +0 -1
  272. package/dist/assets/VendorDomesticWireDetailsPage-D0Vd0jjO-zZeOQP49.js +0 -1
  273. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Bg26p8FH-BidrIKR3.js +0 -1
  274. package/dist/assets/mapSpacerToTreeNode-UVFWXY4N-BMStPnCG.js +0 -1
  275. package/dist/assets/mapTimeframeBalancesToTreeNode-BQXXyttX-DRqc7NUb.js +0 -1
  276. package/dist/assets/toCOABalancesWithID-DcgESHck-DVS2fTFp.js +0 -1
@@ -1,5 +1,5 @@
1
- import{B as ue,aO as Ne,b as ee,o as u,p as q,q as ce,V as s,bQ as Ue,d as je,cP as Me,aT as ne,F as ke,y as oe,bv as Fe,bT as Ve,al as Ae,aP as qe,ae as de,c as He,gR as Ke,am as Je,R as Ge}from"./index-BE73Kh7z.js";import{S as l,a as L}from"./sentry-CtwtDFb0.js";import{n as y}from"./mui-fuwOYnWD.js";import{P as d}from"./core-Cxz4HUbn.js";import{n as ae}from"./commonTypes-BquPusaw-DLtkLlpr.js";import{F as Ye}from"./SetUpAccountSection-CgV-DpbH-BEL6ML_h.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="40de768c-106e-44cb-a7f5-745652c87d22",t._sentryDebugIdIdentifier="sentry-dbid-40de768c-106e-44cb-a7f5-745652c87d22")}catch{}})();function pe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function fe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pe(Object(r),!0).forEach(function(n){Ie(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function te(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(e){return typeof e}:te=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(t)}function Ie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Ze(t)||Xe(t,e)||Qe(t,e)||et()}function Ze(t){if(Array.isArray(t))return t}function Xe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],o=!0,i=!1,c,p;try{for(r=r.call(t);!(o=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));o=!0);}catch(a){i=!0,p=a}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw p}}return n}}function Qe(t,e){if(t){if(typeof t=="string")return me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return me(t,e)}}function me(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=function(e,r,n){var o=!!n,i=l.useRef(n);l.useEffect(function(){i.current=n},[n]),l.useEffect(function(){if(!o||!e)return function(){};var c=function(){i.current&&i.current.apply(i,arguments)};return e.on(r,c),function(){e.off(r,c)}},[o,r,e,i])},ie=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},H=function(e){return e!==null&&te(e)==="object"},tt=function(e){return H(e)&&typeof e.then=="function"},rt=function(e){return H(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},he="[object Object]",nt=function t(e,r){if(!H(e)||!H(r))return e===r;var n=Array.isArray(e),o=Array.isArray(r);if(n!==o)return!1;var i=Object.prototype.toString.call(e)===he,c=Object.prototype.toString.call(r)===he;if(i!==c)return!1;if(!i&&!n)return e===r;var p=Object.keys(e),a=Object.keys(r);if(p.length!==a.length)return!1;for(var h={},f=0;f<p.length;f+=1)h[p[f]]=!0;for(var x=0;x<a.length;x+=1)h[a[x]]=!0;var m=Object.keys(h);if(m.length!==p.length)return!1;var P=e,b=r,S=function(I){return t(P[I],b[I])};return m.every(S)},Oe=function(e,r,n){return H(e)?Object.keys(e).reduce(function(o,i){var c=!H(r)||!nt(e[i],r[i]);return n.includes(i)?(c&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),o):c?fe(fe({},o||{}),{},Ie({},i,e[i])):o},null):null},Le="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ge=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(e===null||rt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(tt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(o){return ge(o,r)})};var n=ge(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},at=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},re=l.createContext(null);re.displayName="ElementsContext";var Re=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},Te=function(e){var r=e.stripe,n=e.options,o=e.children,i=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:i.tag==="sync"?i.stripe:null,elements:i.tag==="sync"?i.stripe.elements(n):null}}),p=$e(c,2),a=p[0],h=p[1];l.useEffect(function(){var m=!0,P=function(S){h(function(E){return E.stripe?E:{stripe:S,elements:S.elements(n)}})};return i.tag==="async"&&!a.stripe?i.stripePromise.then(function(b){b&&m&&P(b)}):i.tag==="sync"&&!a.stripe&&P(i.stripe),function(){m=!1}},[i,a,n]);var f=ie(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var x=ie(n);return l.useEffect(function(){if(a.elements){var m=Oe(n,x,["clientSecret","fonts"]);m&&a.elements.update(m)}},[n,x,a.elements]),l.useEffect(function(){at(a.stripe)},[a.stripe]),l.createElement(re.Provider,{value:a},o)};Te.propTypes={stripe:d.any,options:d.object};var it=function(e){var r=l.useContext(re);return Re(r,e)},st=function(){var e=it("calls useElements()"),r=e.elements;return r};d.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var ct=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},lt=l.createContext(null);lt.displayName="CustomCheckoutContext";d.any,d.shape({clientSecret:d.string.isRequired,elementsOptions:d.object}).isRequired;var se=function(e){var r=l.useContext(_e),n=l.useContext(re);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?ct(r,e):Re(n,e)},ut=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},v=function(e,r){var n="".concat(ut(e),"Element"),o=function(a){var h=a.id,f=a.className,x=a.options,m=x===void 0?{}:x,P=a.onBlur,b=a.onFocus,S=a.onReady,E=a.onChange,I=a.onEscape,U=a.onClick,M=a.onLoadError,F=a.onLoaderStart,z=a.onNetworksChange,$=a.onConfirm,K=a.onCancel,B=a.onShippingAddressChange,N=a.onShippingRateChange,R=se("mounts <".concat(n,">")),_="elements"in R?R.elements:null,w="customCheckoutSdk"in R?R.customCheckoutSdk:null,T=l.useState(null),D=$e(T,2),g=D[0],W=D[1],j=l.useRef(null),V=l.useRef(null);k(g,"blur",P),k(g,"focus",b),k(g,"escape",I),k(g,"click",U),k(g,"loaderror",M),k(g,"loaderstart",F),k(g,"networkschange",z),k(g,"confirm",$),k(g,"cancel",K),k(g,"shippingaddresschange",B),k(g,"shippingratechange",N),k(g,"change",E);var J;S&&(e==="expressCheckout"?J=S:J=function(){S(g)}),k(g,"ready",J),l.useLayoutEffect(function(){if(j.current===null&&V.current!==null&&(_||w)){var O=null;w?O=w.createElement(e,m):_&&(O=_.create(e,m)),j.current=O,W(O),O&&O.mount(V.current)}},[_,w,m]);var le=ie(m);return l.useEffect(function(){if(j.current){var O=Oe(m,le,["paymentRequest"]);O&&j.current.update(O)}},[m,le]),l.useLayoutEffect(function(){return function(){if(j.current&&typeof j.current.destroy=="function")try{j.current.destroy(),j.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:V})},i=function(a){se("mounts <".concat(n,">"));var h=a.id,f=a.className;return l.createElement("div",{id:h,className:f})},c=r?i:o;return c.propTypes={id:d.string,className:d.string,onChange:d.func,onBlur:d.func,onFocus:d.func,onReady:d.func,onEscape:d.func,onClick:d.func,onLoadError:d.func,onLoaderStart:d.func,onNetworksChange:d.func,onConfirm:d.func,onCancel:d.func,onShippingAddressChange:d.func,onShippingRateChange:d.func,options:d.object},c.displayName=n,c.__elementType=e,c},C=typeof window>"u",dt=l.createContext(null);dt.displayName="EmbeddedCheckoutProviderContext";var pt=function(){var e=se("calls useStripe()"),r=e.stripe;return r};v("auBankAccount",C);v("card",C);var ye=v("cardNumber",C),Se=v("cardExpiry",C),ve=v("cardCvc",C);v("fpxBank",C);v("iban",C);v("idealBank",C);v("p24Bank",C);v("epsBank",C);v("payment",C);v("expressCheckout",C);v("paymentRequestButton",C);v("linkAuthentication",C);v("address",C);v("shippingAddress",C);v("paymentMethodMessaging",C);v("affirmMessage",C);v("afterpayClearpayMessage",C);var De="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var mt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(De,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},Ce=function(e){var r="",n=document.createElement("script");n.src="".concat(De).concat(r);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},G=null,X=null,Q=null,gt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},yt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return G!==null?G:(G=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var o=mt();if(!(o&&e)){if(!o)o=Ce(e);else if(o&&Q!==null&&X!==null){var i;o.removeEventListener("load",Q),o.removeEventListener("error",X),(i=o.parentNode)===null||i===void 0||i.removeChild(o),o=Ce(e)}}Q=yt(r,n),X=gt(n),o.addEventListener("load",Q),o.addEventListener("error",X)}catch(c){n(c);return}}),G.catch(function(r){return G=null,Promise.reject(r)}))},vt=function(e,r,n){if(e===null)return null;var o=e.apply(void 0,r);return ht(o,n),o},Y,We=!1,ze=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return ze()}).catch(function(t){We||console.warn(t)});var Ct=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];We=!0;var o=Date.now();return ze().then(function(i){return vt(i,r,o)})};const xt={containerHeight:new oe(656,720)},bt=y.div`
1
+ import{B as ue,aO as Ne,b as ee,o as u,p as q,q as ce,V as s,bQ as Ue,d as je,cP as Me,aT as ne,F as ke,y as oe,bv as Fe,bT as Ve,al as Ae,aP as qe,ae as de,c as He,gR as Ke,am as Je,R as Ge}from"./index-BN936vRr.js";import{S as l,a as L}from"./sentry-BCzFscbx.js";import{n as y}from"./mui-DQOtlcvt.js";import{P as d}from"./core-BkA0GZqz.js";import{n as ae}from"./commonTypes-Bq0C5-39-CLeN3lEf.js";import{F as Ye}from"./SetUpAccountSection-DjGIyGqz-2NoSMGYE.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="99beb397-e82f-4610-984a-84c76b35e750",t._sentryDebugIdIdentifier="sentry-dbid-99beb397-e82f-4610-984a-84c76b35e750")}catch{}})();function pe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function fe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pe(Object(r),!0).forEach(function(n){Ie(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function te(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(e){return typeof e}:te=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(t)}function Ie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Ze(t)||Xe(t,e)||Qe(t,e)||et()}function Ze(t){if(Array.isArray(t))return t}function Xe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],o=!0,i=!1,c,p;try{for(r=r.call(t);!(o=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));o=!0);}catch(a){i=!0,p=a}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw p}}return n}}function Qe(t,e){if(t){if(typeof t=="string")return me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return me(t,e)}}function me(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=function(e,r,n){var o=!!n,i=l.useRef(n);l.useEffect(function(){i.current=n},[n]),l.useEffect(function(){if(!o||!e)return function(){};var c=function(){i.current&&i.current.apply(i,arguments)};return e.on(r,c),function(){e.off(r,c)}},[o,r,e,i])},ie=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},H=function(e){return e!==null&&te(e)==="object"},tt=function(e){return H(e)&&typeof e.then=="function"},rt=function(e){return H(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},he="[object Object]",nt=function t(e,r){if(!H(e)||!H(r))return e===r;var n=Array.isArray(e),o=Array.isArray(r);if(n!==o)return!1;var i=Object.prototype.toString.call(e)===he,c=Object.prototype.toString.call(r)===he;if(i!==c)return!1;if(!i&&!n)return e===r;var p=Object.keys(e),a=Object.keys(r);if(p.length!==a.length)return!1;for(var h={},f=0;f<p.length;f+=1)h[p[f]]=!0;for(var b=0;b<a.length;b+=1)h[a[b]]=!0;var m=Object.keys(h);if(m.length!==p.length)return!1;var P=e,x=r,S=function(I){return t(P[I],x[I])};return m.every(S)},Oe=function(e,r,n){return H(e)?Object.keys(e).reduce(function(o,i){var c=!H(r)||!nt(e[i],r[i]);return n.includes(i)?(c&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),o):c?fe(fe({},o||{}),{},Ie({},i,e[i])):o},null):null},Le="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ge=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(e===null||rt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(tt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(o){return ge(o,r)})};var n=ge(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},at=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},re=l.createContext(null);re.displayName="ElementsContext";var Re=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},Te=function(e){var r=e.stripe,n=e.options,o=e.children,i=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:i.tag==="sync"?i.stripe:null,elements:i.tag==="sync"?i.stripe.elements(n):null}}),p=$e(c,2),a=p[0],h=p[1];l.useEffect(function(){var m=!0,P=function(S){h(function(E){return E.stripe?E:{stripe:S,elements:S.elements(n)}})};return i.tag==="async"&&!a.stripe?i.stripePromise.then(function(x){x&&m&&P(x)}):i.tag==="sync"&&!a.stripe&&P(i.stripe),function(){m=!1}},[i,a,n]);var f=ie(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var b=ie(n);return l.useEffect(function(){if(a.elements){var m=Oe(n,b,["clientSecret","fonts"]);m&&a.elements.update(m)}},[n,b,a.elements]),l.useEffect(function(){at(a.stripe)},[a.stripe]),l.createElement(re.Provider,{value:a},o)};Te.propTypes={stripe:d.any,options:d.object};var it=function(e){var r=l.useContext(re);return Re(r,e)},st=function(){var e=it("calls useElements()"),r=e.elements;return r};d.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var ct=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},lt=l.createContext(null);lt.displayName="CustomCheckoutContext";d.any,d.shape({clientSecret:d.string.isRequired,elementsOptions:d.object}).isRequired;var se=function(e){var r=l.useContext(_e),n=l.useContext(re);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?ct(r,e):Re(n,e)},ut=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},v=function(e,r){var n="".concat(ut(e),"Element"),o=function(a){var h=a.id,f=a.className,b=a.options,m=b===void 0?{}:b,P=a.onBlur,x=a.onFocus,S=a.onReady,E=a.onChange,I=a.onEscape,U=a.onClick,M=a.onLoadError,F=a.onLoaderStart,z=a.onNetworksChange,$=a.onConfirm,K=a.onCancel,B=a.onShippingAddressChange,N=a.onShippingRateChange,R=se("mounts <".concat(n,">")),_="elements"in R?R.elements:null,w="customCheckoutSdk"in R?R.customCheckoutSdk:null,T=l.useState(null),D=$e(T,2),g=D[0],W=D[1],j=l.useRef(null),V=l.useRef(null);k(g,"blur",P),k(g,"focus",x),k(g,"escape",I),k(g,"click",U),k(g,"loaderror",M),k(g,"loaderstart",F),k(g,"networkschange",z),k(g,"confirm",$),k(g,"cancel",K),k(g,"shippingaddresschange",B),k(g,"shippingratechange",N),k(g,"change",E);var J;S&&(e==="expressCheckout"?J=S:J=function(){S(g)}),k(g,"ready",J),l.useLayoutEffect(function(){if(j.current===null&&V.current!==null&&(_||w)){var O=null;w?O=w.createElement(e,m):_&&(O=_.create(e,m)),j.current=O,W(O),O&&O.mount(V.current)}},[_,w,m]);var le=ie(m);return l.useEffect(function(){if(j.current){var O=Oe(m,le,["paymentRequest"]);O&&j.current.update(O)}},[m,le]),l.useLayoutEffect(function(){return function(){if(j.current&&typeof j.current.destroy=="function")try{j.current.destroy(),j.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:V})},i=function(a){se("mounts <".concat(n,">"));var h=a.id,f=a.className;return l.createElement("div",{id:h,className:f})},c=r?i:o;return c.propTypes={id:d.string,className:d.string,onChange:d.func,onBlur:d.func,onFocus:d.func,onReady:d.func,onEscape:d.func,onClick:d.func,onLoadError:d.func,onLoaderStart:d.func,onNetworksChange:d.func,onConfirm:d.func,onCancel:d.func,onShippingAddressChange:d.func,onShippingRateChange:d.func,options:d.object},c.displayName=n,c.__elementType=e,c},C=typeof window>"u",dt=l.createContext(null);dt.displayName="EmbeddedCheckoutProviderContext";var pt=function(){var e=se("calls useStripe()"),r=e.stripe;return r};v("auBankAccount",C);v("card",C);var ye=v("cardNumber",C),Se=v("cardExpiry",C),ve=v("cardCvc",C);v("fpxBank",C);v("iban",C);v("idealBank",C);v("p24Bank",C);v("epsBank",C);v("payment",C);v("expressCheckout",C);v("paymentRequestButton",C);v("linkAuthentication",C);v("address",C);v("shippingAddress",C);v("paymentMethodMessaging",C);v("affirmMessage",C);v("afterpayClearpayMessage",C);var De="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var mt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(De,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},Ce=function(e){var r="",n=document.createElement("script");n.src="".concat(De).concat(r);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},G=null,X=null,Q=null,gt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},yt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return G!==null?G:(G=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var o=mt();if(!(o&&e)){if(!o)o=Ce(e);else if(o&&Q!==null&&X!==null){var i;o.removeEventListener("load",Q),o.removeEventListener("error",X),(i=o.parentNode)===null||i===void 0||i.removeChild(o),o=Ce(e)}}Q=yt(r,n),X=gt(n),o.addEventListener("load",Q),o.addEventListener("error",X)}catch(c){n(c);return}}),G.catch(function(r){return G=null,Promise.reject(r)}))},vt=function(e,r,n){if(e===null)return null;var o=e.apply(void 0,r);return ht(o,n),o},Y,We=!1,ze=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return ze()}).catch(function(t){We||console.warn(t)});var Ct=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];We=!0;var o=Date.now();return ze().then(function(i){return vt(i,r,o)})};const bt={containerHeight:new oe(656,720)},xt=y.div`
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  gap: 20px;
@@ -24,7 +24,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24
24
  flex-direction: row;
25
25
  align-items: flex-start;
26
26
  justify-content: center;
27
- max-height: ${t=>xt.containerHeight.valuePx(t.windowSize)};
27
+ max-height: ${t=>bt.containerHeight.valuePx(t.windowSize)};
28
28
  width: ${t=>t.windowSize==="small"?"90%":"544px"};
29
29
 
30
30
  .InputContainer input {
@@ -71,7 +71,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
71
71
  flex-direction: column;
72
72
  align-items: flex-start;
73
73
  height: ${u.sp8};
74
- `,xe=y.span`
74
+ `,be=y.span`
75
75
  height: ${u.sp8};
76
76
  display: none;
77
77
  `,Be=y(Ae)`
@@ -82,14 +82,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
82
82
  color: ${q.important};
83
83
  width: 434px;
84
84
  text-align: center;
85
- `,{cardPayment:A,common:{footer:be}}=ke.getLocalizedStrings(),Tt=y(Je)`
85
+ `,{cardPayment:A,common:{footer:xe}}=ke.getLocalizedStrings(),Tt=y(Je)`
86
86
  color: ${t=>t.theme.colors.hero};
87
87
  text-align: center;
88
88
  margin-top: ${u.sp2};
89
- `,Pe=t=>`${t}_form`,we="CardPaymentPaymentForm",_t=({cardPaymentView:t,clientSecret:e,cardSetupInProgress:r,handleConfirmCardSetupIntent:n,updateCardPaymentModalState:o,handleAddCardPaymentSource:i,setCardSetupInProgress:c})=>{const p=pt(),a=st(),[h,f]=L.useState(!1),[x,m]=L.useState(!1),[P,b]=L.useState(!1),[S,E]=L.useState(!1),I=ce(),U=t.cardSetupConfirmStatus.fetchState,M=t.addCardPaymentSourceStatus.fetchState,F=t.cardSetupIntentStatus.fetchState,[z,$]=L.useState(!1),K=async w=>{if(w.preventDefault(),!p||!a)return;const T=a.getElement(ye),D=a.getElement(Se),g=a.getElement(ve);(!T||!D||!g)&&$(!0),E(!0),c(!0),T!=null&&D!=null&&g!=null&&p.confirmCardSetup(e,{payment_method:{card:T}}).then(W=>{E(!1),n(W),W.setupIntent?.id!=null&&i("card","payment_intent",W.setupIntent?.id)}).catch(()=>{E(!1),setTimeout(()=>{c(!1)},2e3)})},B=je(),N={showIcon:!0,style:{base:{...ee.standardRegular.cssObject,color:B.colors.primary,"::placeholder":{color:B.colors.grey2}},invalid:{color:q.important,iconColor:q.important}}},R=U==="In-Progress"||M==="In-Progress"||F==="In-Progress"||S===!0||r===!0,_=h||x||P||U==="In-Progress"||M==="In-Progress"||F==="In-Progress"||S===!0||r===!0;return s.jsx(jt,{windowSize:I,children:s.jsxs(Pt,{onSubmit:K,id:Pe(we),children:[s.jsxs(It,{children:[s.jsx($t,{children:s.jsx(Ot,{children:s.jsx(ye,{options:N,onChange:w=>f(!!w.error)})})}),s.jsx(Lt,{children:s.jsxs(kt,{children:[s.jsx(xe,{children:A.cardNumber}),s.jsx(Se,{options:N,onChange:w=>m(!!w.error)})]})}),s.jsx(Rt,{children:s.jsxs(At,{children:[s.jsx(xe,{children:A.CVC}),s.jsx(ve,{options:N,onChange:w=>b(!!w.error)})]})})]}),t.cardSetupConfirmStatus.error||z?s.jsx(Be,{children:A.errorMsg}):null,s.jsx(qe,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:Pe(we),primaryBtn:{label:be.linkCard,style:{width:"104px",height:u.sp6},isLoading:R,isDisabled:_,type:"submit"},cancelBtn:{label:be.cancel,style:{width:"104px",height:u.sp6},onClick:()=>{o(!1)}}}),s.jsxs(Tt,{windowSize:I,children:[A.terms.term1,s.jsx(de,{href:A.terms.term2Link,linkText:A.terms.term2}),A.terms.term3,s.jsx(de,{href:A.terms.term4Link,linkText:A.terms.term4})]})]})})},Yt=({isCardPaymentOpen:t,cardPaymentView:e,stripeKey:r,cardSetupInProgress:n,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:p,handleResetCardPaymentErrorStatuses:a,setCardSetupInProgress:h})=>{const[f,x]=L.useState(""),m=Ct(r),P=Ne(e.addCardPaymentSourceStatus.fetchState),b=e.addCardPaymentSourceStatus.fetchState;L.useEffect(()=>(c(["card"]),()=>{i(!1),x(""),a()}),[]),L.useEffect(()=>{a()},[t]),L.useEffect(()=>{P==="In-Progress"&&b==="Error"?(h(!1),setTimeout(()=>{i(!1)},2e3)):P==="In-Progress"&&b==="Completed"&&(c(["card"]),setTimeout(()=>{i(!1),h(!1)},2e3))},[P,b]),L.useEffect(()=>{(e.cardSetupConfirmStatus.error||e.addCardPaymentSourceStatus.error)&&(c(["card"]),setTimeout(()=>{h(!1)},2e3))},[e.cardSetupConfirmStatus.error,e.addCardPaymentSourceStatus.error]),L.useEffect(()=>{e.clientSecret!=null&&x(e.clientSecret)},[e.clientSecret]);const S={theme:"stripe",variables:{borderRadius:u.sp1,fontSizeBase:ee.standardRegular.fontSize,fontFamily:ee.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${q.neutralGrey3Light}`,borderRadius:u.sp1,padding:"10px",fontSize:ee.standardRegular.fontSize}}},E={clientSecret:f,appearance:S},I=ce();return s.jsx(Ue,{open:t,children:s.jsxs(bt,{windowSize:I,isError:!!e.cardSetupConfirmStatus.error,children:[s.jsx(wt,{children:A.title}),s.jsx(Et,{children:A.subtitle}),f&&m!=null?s.jsx(Te,{options:E,stripe:m,children:s.jsx(_t,{clientSecret:f,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleAddCardPaymentSource:p,cardPaymentView:e,cardSetupInProgress:n,setCardSetupInProgress:h})}):s.jsx(Be,{children:A.errorMsg})]})})},Z={sectionWidth:new oe(343,580,726),iconWidthHeight:new oe(20,He[4])},Dt={title:new Ge("standardSemiBold","largeSemiBold")},Ee=t=>t?ae[t]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Wt=(t,e,r,n)=>({header:t,title:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${e}`,subtitle:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${r} ${n.cardsList[0]?.last4}`,status:n.cardsList[0]?.status}),zt=y.img`
89
+ `,Pe=t=>`${t}_form`,we="CardPaymentPaymentForm",_t=({cardPaymentView:t,clientSecret:e,cardSetupInProgress:r,handleConfirmCardSetupIntent:n,updateCardPaymentModalState:o,handleAddCardPaymentSource:i,setCardSetupInProgress:c})=>{const p=pt(),a=st(),[h,f]=L.useState(!1),[b,m]=L.useState(!1),[P,x]=L.useState(!1),[S,E]=L.useState(!1),I=ce(),U=t.cardSetupConfirmStatus.fetchState,M=t.addCardPaymentSourceStatus.fetchState,F=t.cardSetupIntentStatus.fetchState,[z,$]=L.useState(!1),K=async w=>{if(w.preventDefault(),!p||!a)return;const T=a.getElement(ye),D=a.getElement(Se),g=a.getElement(ve);(!T||!D||!g)&&$(!0),E(!0),c(!0),T!=null&&D!=null&&g!=null&&p.confirmCardSetup(e,{payment_method:{card:T}}).then(W=>{E(!1),n(W),W.setupIntent?.id!=null&&i("card","payment_intent",W.setupIntent?.id)}).catch(()=>{E(!1),setTimeout(()=>{c(!1)},2e3)})},B=je(),N={showIcon:!0,style:{base:{...ee.standardRegular.cssObject,color:B.colors.primary,"::placeholder":{color:B.colors.grey2}},invalid:{color:q.important,iconColor:q.important}}},R=U==="In-Progress"||M==="In-Progress"||F==="In-Progress"||S===!0||r===!0,_=h||b||P||U==="In-Progress"||M==="In-Progress"||F==="In-Progress"||S===!0||r===!0;return s.jsx(jt,{windowSize:I,children:s.jsxs(Pt,{onSubmit:K,id:Pe(we),children:[s.jsxs(It,{children:[s.jsx($t,{children:s.jsx(Ot,{children:s.jsx(ye,{options:N,onChange:w=>f(!!w.error)})})}),s.jsx(Lt,{children:s.jsxs(kt,{children:[s.jsx(be,{children:A.cardNumber}),s.jsx(Se,{options:N,onChange:w=>m(!!w.error)})]})}),s.jsx(Rt,{children:s.jsxs(At,{children:[s.jsx(be,{children:A.CVC}),s.jsx(ve,{options:N,onChange:w=>x(!!w.error)})]})})]}),t.cardSetupConfirmStatus.error||z?s.jsx(Be,{children:A.errorMsg}):null,s.jsx(qe,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:Pe(we),primaryBtn:{label:xe.linkCard,style:{width:"104px",height:u.sp6},isLoading:R,isDisabled:_,type:"submit"},cancelBtn:{label:xe.cancel,style:{width:"104px",height:u.sp6},onClick:()=>{o(!1)}}}),s.jsxs(Tt,{windowSize:I,children:[A.terms.term1,s.jsx(de,{href:A.terms.term2Link,linkText:A.terms.term2}),A.terms.term3,s.jsx(de,{href:A.terms.term4Link,linkText:A.terms.term4})]})]})})},Yt=({isCardPaymentOpen:t,cardPaymentView:e,stripeKey:r,cardSetupInProgress:n,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:p,handleResetCardPaymentErrorStatuses:a,setCardSetupInProgress:h})=>{const[f,b]=L.useState(""),m=Ct(r),P=Ne(e.addCardPaymentSourceStatus.fetchState),x=e.addCardPaymentSourceStatus.fetchState;L.useEffect(()=>(c(["card"]),()=>{i(!1),b(""),a()}),[]),L.useEffect(()=>{a()},[t]),L.useEffect(()=>{P==="In-Progress"&&x==="Error"?(h(!1),setTimeout(()=>{i(!1)},2e3)):P==="In-Progress"&&x==="Completed"&&(c(["card"]),setTimeout(()=>{i(!1),h(!1)},2e3))},[P,x]),L.useEffect(()=>{(e.cardSetupConfirmStatus.error||e.addCardPaymentSourceStatus.error)&&(c(["card"]),setTimeout(()=>{h(!1)},2e3))},[e.cardSetupConfirmStatus.error,e.addCardPaymentSourceStatus.error]),L.useEffect(()=>{e.clientSecret!=null&&b(e.clientSecret)},[e.clientSecret]);const S={theme:"stripe",variables:{borderRadius:u.sp1,fontSizeBase:ee.standardRegular.fontSize,fontFamily:ee.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${q.neutralGrey3Light}`,borderRadius:u.sp1,padding:"10px",fontSize:ee.standardRegular.fontSize}}},E={clientSecret:f,appearance:S},I=ce();return s.jsx(Ue,{open:t,children:s.jsxs(xt,{windowSize:I,isError:!!e.cardSetupConfirmStatus.error,children:[s.jsx(wt,{children:A.title}),s.jsx(Et,{children:A.subtitle}),f&&m!=null?s.jsx(Te,{options:E,stripe:m,children:s.jsx(_t,{clientSecret:f,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleAddCardPaymentSource:p,cardPaymentView:e,cardSetupInProgress:n,setCardSetupInProgress:h})}):s.jsx(Be,{children:A.errorMsg})]})})},Z={sectionWidth:new oe(343,580,726),iconWidthHeight:new oe(20,He[4])},Dt={title:new Ge("standardSemiBold","largeSemiBold")},Ee=t=>t?ae[t]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Wt=(t,e,r,n)=>({header:t,title:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${e}`,subtitle:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${r} ${n.cardsList[0]?.last4}`,status:n.cardsList[0]?.status}),zt=y.img`
90
90
  width: ${t=>t.width}px;
91
91
  height: ${t=>t.height}px;
92
- `,Zt=({paymentAccount:t,plaidConnectionDetails:e,connectedAccountProvider:r,sectionId:n,isDisabled:o,hasError:i=!1,isValid:c,style:p,analytics:a,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:P,updateCardPaymentModalState:b,cardPaymentView:S,resetCardPaymentViewState:E,cardSetupInProgress:I=!1,googleAPIKey:U,subscriptionBillingAddress:M,subscriptionBillingAddressSectionId:F})=>{const z=je(),$=ce(),{register:K}=Me(),B=z.mode==="light"?new ne(z.colors.brandColorJadeLight):new ne(z.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:R,text:_,subText:w},card_payment_method:T}}}=ke.getLocalizedStrings(),D=S.cardsList.length>0,g=S.cardsList[0]?.brand??"other",W=S.addCardPaymentSourceStatus.fetchState,j=Wt(T.header,T.titleText,T.protectedCardNo,S);let V;return D&&(V={header:j.header,title:j.title,subtitle:j.subtitle,status:j.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:D===!0,icon:{element:s.jsx(zt,{src:Ee(g).iconURL,width:Z.iconWidthHeight.valuePx($),height:Z.iconWidthHeight.valuePx($),alt:Ee(g).name,loading:"lazy"}),color:new ne(B)},showCompletedIcon:!1,isError:W==="Error",isLoading:W==="In-Progress",isCompleted:!0,showRightArrow:!1}),s.jsxs(Nt,{windowSize:$,children:[s.jsx(Ut,{type:"hidden",...K(`${n}.connected`,{validate:J=>i?J==="true":!0}),value:c?"true":"false"}),s.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:R,sectionTitle:R,defaultSectionTitle:_,defaultSectionSubTitle:w,sectionId:n,isDisabled:o,hasError:i,showZeniAccountSection:!1,isCompleted:t?.providerVerificationStatus?.code?.includes("verified")===!0&&t?.isLoginRequired===!1,showCompletedIcon:$==="small",onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:P,style:p,icon:{element:s.jsx(Fe,{width:Z.iconWidthHeight.valuePx($),height:Z.iconWidthHeight.valuePx($)}),color:B},analytics:a,productType:"onboarding",resetCardPaymentViewState:E,cardPaymentSectionValues:V,cardPaymentView:S,updateCardPaymentModalState:b,referrer:"Onboarding",cardSetupInProgress:I}),Bt($,N.headers.billingAddress,F,a,M,U,o)]})},Bt=(t,e,r,n,o,i,c)=>{const p={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return s.jsxs(Ft,{children:[s.jsx(Mt,{windowSize:t,isDisabled:c==="disabled",children:e}),s.jsx(Ke,{googleAPIKey:i??"",addressToEdit:o,sectionId:`${r}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:a=>{if(a.target instanceof HTMLInputElement){const{placeholder:h}=a.target;if(h){const f=p[h];f&&n.trackOnboardingBillingAddress(f)}}}})]})},Nt=y.div`
92
+ `,Zt=({paymentAccount:t,plaidConnectionDetails:e,connectedAccountProvider:r,sectionId:n,isDisabled:o,hasError:i=!1,isValid:c,style:p,analytics:a,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:b,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:P,updateCardPaymentModalState:x,cardPaymentView:S,resetCardPaymentViewState:E,cardSetupInProgress:I=!1,googleAPIKey:U,subscriptionBillingAddress:M,subscriptionBillingAddressSectionId:F})=>{const z=je(),$=ce(),{register:K}=Me(),B=z.mode==="light"?new ne(z.colors.brandColorJadeLight):new ne(z.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:R,text:_,subText:w},card_payment_method:T}}}=ke.getLocalizedStrings(),D=S.cardsList.length>0,g=S.cardsList[0]?.brand??"other",W=S.addCardPaymentSourceStatus.fetchState,j=Wt(T.header,T.titleText,T.protectedCardNo,S);let V;return D&&(V={header:j.header,title:j.title,subtitle:j.subtitle,status:j.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:D===!0,icon:{element:s.jsx(zt,{src:Ee(g).iconURL,width:Z.iconWidthHeight.valuePx($),height:Z.iconWidthHeight.valuePx($),alt:Ee(g).name,loading:"lazy"}),color:new ne(B)},showCompletedIcon:!1,isError:W==="Error",isLoading:W==="In-Progress",isCompleted:!0,showRightArrow:!1}),s.jsxs(Nt,{windowSize:$,children:[s.jsx(Ut,{type:"hidden",...K(`${n}.connected`,{validate:J=>i?J==="true":!0}),value:c?"true":"false"}),s.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:R,sectionTitle:R,defaultSectionTitle:_,defaultSectionSubTitle:w,sectionId:n,isDisabled:o,hasError:i,showZeniAccountSection:!1,isCompleted:t?.providerVerificationStatus?.code?.includes("verified")===!0&&t?.isLoginRequired===!1,showCompletedIcon:$==="small",onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:b,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:P,style:p,icon:{element:s.jsx(Fe,{width:Z.iconWidthHeight.valuePx($),height:Z.iconWidthHeight.valuePx($)}),color:B},analytics:a,productType:"onboarding",resetCardPaymentViewState:E,cardPaymentSectionValues:V,cardPaymentView:S,updateCardPaymentModalState:x,referrer:"Onboarding",cardSetupInProgress:I}),Bt($,N.headers.billingAddress,F,a,M,U,o)]})},Bt=(t,e,r,n,o,i,c)=>{const p={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return s.jsxs(Ft,{children:[s.jsx(Mt,{windowSize:t,isDisabled:c==="disabled",children:e}),s.jsx(Ke,{googleAPIKey:i??"",addressToEdit:o,sectionId:`${r}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:a=>{if(a.target instanceof HTMLInputElement){const{placeholder:h}=a.target;if(h){const f=p[h];f&&n.trackOnboardingBillingAddress(f)}}}})]})},Nt=y.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
95
  width: ${t=>Z.sectionWidth.valuePx(t.windowSize)};
@@ -1,4 +1,4 @@
1
- import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck as _e,k as U,aR as Y,cl as we,n as Le,b as be,cm as Ae,aO as Ve,cn as Me,ap as We,co as He,cp as Be,b2 as Ue,aB as H,cq as Ee,y as $,cr as Fe,cs as je,c as b,ct as ee,cc as N,a9 as Ke,ac as Ze,cu as qe,cv as Xe,aH as Ge,ai as D,cw as Qe,al as O,am as te,p as A,cx as Je,cg as Se,b9 as ie,cy as ke,bK as Ye,cz as et}from"./index-BE73Kh7z.js";import{S as ce,a as v}from"./sentry-CtwtDFb0.js";import{n as i}from"./mui-fuwOYnWD.js";import{oV as Ie,bg as Q}from"./zeni-epic-state-BFhqH0Xa.js";import{P as Ce}from"./Menu-CCfXjS2S-C9ZoSEn7.js";import{T as Re}from"./RoleWithToolTip-BE5aZQ2g-DYLY92hX.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.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]="f5a72f29-696f-49af-b277-e150998934ee",e._sentryDebugIdIdentifier="sentry-dbid-f5a72f29-696f-49af-b277-e150998934ee")}catch{}})();const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],B=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Ge(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:o.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:o.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
1
+ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck as _e,k as U,aR as Y,cl as we,n as Le,b as be,cm as Ae,aO as Ve,cn as Me,ap as We,co as He,cp as Be,b2 as Ue,aB as H,cq as Ee,y as $,cr as Fe,cs as je,c as b,ct as ee,cc as N,a9 as Ke,ac as Ze,cu as qe,cv as Xe,aH as Ge,ah as D,cw as Qe,al as O,am as te,p as A,cx as Je,cg as Se,b9 as ie,cy as ke,bK as Ye,cz as et}from"./index-BN936vRr.js";import{S as ce,a as v}from"./sentry-BCzFscbx.js";import{n as i}from"./mui-DQOtlcvt.js";import{oV as Ie,bg as Q}from"./zeni-epic-state-DIO-8j7m.js";import{P as Ce}from"./Menu-BumlrBWb-DpVhZSGr.js";import{T as Re}from"./RoleWithToolTip-CeOpT_6v-DAXLsTDF.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="75ee9a99-8f08-4a9c-b784-6b99f6554689",e._sentryDebugIdIdentifier="sentry-dbid-75ee9a99-8f08-4a9c-b784-6b99f6554689")}catch{}})();const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],B=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Ge(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:o.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:o.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
@@ -1 +1 @@
1
- import{a as h,S as n}from"./sentry-CtwtDFb0.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f93b8fea-342f-46af-9294-f75d3b119450",t._sentryDebugIdIdentifier="sentry-dbid-f93b8fea-342f-46af-9294-f75d3b119450")}catch{}})();const c="64px",f={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),y={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:p&&!l?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:d.shadow,className:"react-player__shadow"},n.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...u?{"aria-label":u}:{}},l?a:null,m||x)};var N=k;export{N as default};
1
+ import{a as h,S as n}from"./sentry-BCzFscbx.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f93b8fea-342f-46af-9294-f75d3b119450",t._sentryDebugIdIdentifier="sentry-dbid-f93b8fea-342f-46af-9294-f75d3b119450")}catch{}})();const c="64px",f={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),y={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:p&&!l?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:d.shadow,className:"react-player__shadow"},n.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...u?{"aria-label":u}:{}},l?a:null,m||x)};var N=k;export{N as default};
@@ -1,4 +1,4 @@
1
- import{F as D,V as t,a8 as B,o as c,c0 as N,a_ as U,c as V,d3 as q,aq as G,al as T,d4 as H,p as v}from"./index-BE73Kh7z.js";import{a as y}from"./sentry-CtwtDFb0.js";import{n as i}from"./mui-fuwOYnWD.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]="b4e2ce74-f95a-451c-af4b-7339e91ae3f4",e._sentryDebugIdIdentifier="sentry-dbid-b4e2ce74-f95a-451c-af4b-7339e91ae3f4")}catch{}})();const u=D.getLocalizedStrings(),w={large:{labelComp:q,title:G,subtitle:T,seeMoreLink:T}},J={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=J.large,Y=i.div`
1
+ import{F as D,V as t,a8 as B,o as c,c0 as N,a_ as U,c as V,d3 as q,aq as G,al as T,d4 as H,p as v}from"./index-BN936vRr.js";import{a as y}from"./sentry-BCzFscbx.js";import{n as i}from"./mui-DQOtlcvt.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]="b4e2ce74-f95a-451c-af4b-7339e91ae3f4",e._sentryDebugIdIdentifier="sentry-dbid-b4e2ce74-f95a-451c-af4b-7339e91ae3f4")}catch{}})();const u=D.getLocalizedStrings(),w={large:{labelComp:q,title:G,subtitle:T,seeMoreLink:T}},J={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=J.large,Y=i.div`
2
2
  width: ${e=>e.scale*r.width}px;
3
3
  height: ${e=>e.scale*r.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{q as m,V as r,d8 as b,d9 as v,da as y,bw as z,o as e,p as d,y as a,R as c,c as p}from"./index-BE73Kh7z.js";import{c as i,n as g,k as f}from"./mui-fuwOYnWD.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="2010a941-22e1-451f-99a6-b070eac5889f",o._sentryDebugIdIdentifier="sentry-dbid-2010a941-22e1-451f-99a6-b070eac5889f")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(B,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(k,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
1
+ import{q as m,V as r,d8 as b,d9 as v,da as y,bw as z,o as e,p as d,y as a,R as c,c as p}from"./index-BN936vRr.js";import{c as i,n as g,k as f}from"./mui-DQOtlcvt.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="2010a941-22e1-451f-99a6-b070eac5889f",o._sentryDebugIdIdentifier="sentry-dbid-2010a941-22e1-451f-99a6-b070eac5889f")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(B,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(k,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,4 +1,4 @@
1
- import{q as b,F as r,V as n,bQ as y,n as l,y as c,o as i,aq as w,al as $,af as j,bu as P,eJ as v,c as a}from"./index-BE73Kh7z.js";import{n as o}from"./mui-fuwOYnWD.js";import"./sentry-CtwtDFb0.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./zeni-epic-state-BFhqH0Xa.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.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]="f5caace9-687f-489b-ae09-b90fd143defe",e._sentryDebugIdIdentifier="sentry-dbid-f5caace9-687f-489b-ae09-b90fd143defe")}catch{}})();const s={containerPaddingTop:new c(a[5],a[7]),containerPaddingBottom:new c(a[5],a[5]),containerPaddingLeftRight:new c(a[6],a[11])},_=o.div`
1
+ import{q as b,F as r,V as n,bQ as y,n as l,y as c,o as i,aq as w,al as $,af as j,bu as P,eJ as v,c as a}from"./index-BN936vRr.js";import{n as o}from"./mui-DQOtlcvt.js";import"./sentry-BCzFscbx.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./zeni-epic-state-DIO-8j7m.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="f5caace9-687f-489b-ae09-b90fd143defe",e._sentryDebugIdIdentifier="sentry-dbid-f5caace9-687f-489b-ae09-b90fd143defe")}catch{}})();const s={containerPaddingTop:new c(a[5],a[7]),containerPaddingBottom:new c(a[5],a[5]),containerPaddingLeftRight:new c(a[6],a[11])},_=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{q as O,F as u,V as i,n as k,o,y as a,p as c,fL as I,R as T,af as D,bu as E,eJ as W,fC as _,aT as h,ai as f,c as r}from"./index-BE73Kh7z.js";import{n}from"./mui-fuwOYnWD.js";import q from"./QBOConnectionDialog-B0E1xE9I-DgBSSzHh.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]="0b607267-b9e6-4267-881a-c7b8eedf9c40",e._sentryDebugIdIdentifier="sentry-dbid-0b607267-b9e6-4267-881a-c7b8eedf9c40")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},B={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=O(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(J,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(N,{windowSize:s,children:[i.jsxs(R,{children:[i.jsx(V,{}),i.jsx(L,{windowSize:s}),i.jsx(M,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(Q,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(q,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(_,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
1
+ import{q as O,F as u,V as i,n as k,o,y as a,p as c,fL as I,R as T,af as D,bu as E,eJ as W,fC as _,aT as w,ah as f,c as r}from"./index-BN936vRr.js";import{n}from"./mui-DQOtlcvt.js";import q from"./QBOConnectionDialog-QFZbkFOA-CuMPgrHC.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]="824a49c6-511e-45ea-9f4e-2dacc626da3d",e._sentryDebugIdIdentifier="sentry-dbid-824a49c6-511e-45ea-9f4e-2dacc626da3d")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},B={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:h,handleOnConnectClick:b})=>{const s=O(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(J,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(N,{windowSize:s,children:[i.jsxs(R,{children:[i.jsx(V,{}),i.jsx(L,{windowSize:s}),i.jsx(M,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(Q,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(q,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(_,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new w(c.successDark),borderColor:new w(c.successDark)}})},G=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as W,c as L,d as M,q as G,F as U,a9 as H,aO as X,aH as J,cC as K,V as r,bA as Q,ac as Y,aP as Z,o as b,g3 as ee}from"./index-BE73Kh7z.js";import{a as T}from"./sentry-CtwtDFb0.js";import{n as c}from"./mui-fuwOYnWD.js";import{b as ae,f as te,o as k,l as B}from"./FollowStepsSection-BS4M36H4-VbTMLw8c.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./zeni-epic-state-BFhqH0Xa.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.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]="8a158a0c-80fd-452c-acfd-4bf89ace8416",e._sentryDebugIdIdentifier="sentry-dbid-8a158a0c-80fd-452c-acfd-4bf89ace8416")}catch{}})();const C="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",A="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:I}){const F=M(),w=G(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:R}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return T.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=J(d);K(()=>z(D,O))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&I()},[P,u?.fetchState,I]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(C),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:A,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[A],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[A]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),k(e.allAttributes),k(e.filteredAttributes),o??[])??[],[$]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:B},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),_=e=>`${e}_form`,Re=e=>`${e}`,ie=c.div`
1
+ import{y as W,c as L,d as M,q as G,F as U,a9 as H,aO as X,aH as J,cC as K,V as r,bA as Q,ac as Y,aP as Z,o as b,g3 as ee}from"./index-BN936vRr.js";import{a as T}from"./sentry-BCzFscbx.js";import{n as c}from"./mui-DQOtlcvt.js";import{b as ae,f as te,o as k,l as B}from"./FollowStepsSection-C0R9691z-CJI6UuPB.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./zeni-epic-state-DIO-8j7m.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="6479f85d-a425-4a97-9c4a-cd7989a584ea",e._sentryDebugIdIdentifier="sentry-dbid-6479f85d-a425-4a97-9c4a-cd7989a584ea")}catch{}})();const C="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",A="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:I}){const F=M(),w=G(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:R}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return T.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=J(d);K(()=>z(D,O))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&I()},[P,u?.fetchState,I]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(C),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:A,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[A],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[A]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),k(e.allAttributes),k(e.filteredAttributes),o??[])??[],[$]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:B},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),_=e=>`${e}_form`,Re=e=>`${e}`,ie=c.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as _,q as W,F as S,V as t,bA as M,k as E,aN as j,o,y as r,al as z,aL as P,cn as H,co as V,cp as G,cX as U,c as l,b8 as q,R as T,b7 as F,p as k,cW as J,bs as K,b as O}from"./index-BE73Kh7z.js";import{n as i}from"./mui-fuwOYnWD.js";import{a as Q}from"./sentry-CtwtDFb0.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./zeni-epic-state-BFhqH0Xa.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.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]="7f94a5bd-c7c7-44b9-8332-0d818d241bcc",e._sentryDebugIdIdentifier="sentry-dbid-7f94a5bd-c7c7-44b9-8332-0d818d241bcc")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},X=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[x,c]=Q.useState(!1),a=W(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:w}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(w)},onCancelClick:()=>{c(!1)}};return t.jsxs(Y,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",w),children:[t.jsxs(Z,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(L,{windowSize:a,children:[n.from," ",P("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(R,{}),t.jsx(te,{}),t.jsx(R,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(L,{windowSize:a,children:P("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(w)},"data-testid":j("edit-approval-rule",w)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(B,{children:[t.jsx(I,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${N}`)),h.actors.map(p=>t.jsxs(B,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),x?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},Y=i.div`
1
+ import{d as _,q as W,F as S,V as t,bA as M,k as E,aN as j,o,y as r,al as z,aL as P,cn as H,co as V,cp as G,cX as U,c as l,b8 as q,R as T,b7 as F,p as k,cW as J,bs as K,b as O}from"./index-BN936vRr.js";import{n as i}from"./mui-DQOtlcvt.js";import{a as Q}from"./sentry-BCzFscbx.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./zeni-epic-state-DIO-8j7m.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="7f94a5bd-c7c7-44b9-8332-0d818d241bcc",e._sentryDebugIdIdentifier="sentry-dbid-7f94a5bd-c7c7-44b9-8332-0d818d241bcc")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},X=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[x,c]=Q.useState(!1),a=W(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:w}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(w)},onCancelClick:()=>{c(!1)}};return t.jsxs(Y,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",w),children:[t.jsxs(Z,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(L,{windowSize:a,children:[n.from," ",P("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(R,{}),t.jsx(te,{}),t.jsx(R,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(L,{windowSize:a,children:P("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(w)},"data-testid":j("edit-approval-rule",w)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(B,{children:[t.jsx(I,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${N}`)),h.actors.map(p=>t.jsxs(B,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),x?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},Y=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{aw as Mt,a8 as Rt,q as Pt,d as Bt,cb as Nt,y as m,F as et,gf as Lt,gh as _t,gi as Ot,V as t,cn as Ae,co as Me,cp as Re,bA as Pe,aN as y,bn as Wt,dq as Et,gj as Ft,gu as Be,o as a,gk as Ne,fe as b,gn as w,fh as x,aL as Le,fd as _e,b as V,gp as Oe,aP as Kt,ao as Ut,gq as Vt,gr as re,bw as Gt,gs as Ht,L as qt,R as Yt,M as Jt,al as tt,b8 as it,p as G,am as Qt,bT as Zt,ai as Xt,gL as ei,gH as ti,c,cg as ii,cU as ai}from"./index-BE73Kh7z.js";import{a as p}from"./sentry-CtwtDFb0.js";import{n as r}from"./mui-fuwOYnWD.js";import{a as ri}from"./liveblocks-BUxiobW7.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-BFhqH0Xa.js";import si from"./InvoiceUploadSection-DN31nPpE-D9eKp_cR.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-Cxz4HUbn.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./recharts-BnEZevRO.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.js";import"./AttachmentView-BixDE2EA-DRjInPsi.js";import"./uploadReceipts-CPw64UYa-BBwPaFJK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="29f74304-4456-4191-8cb6-7246b4a5f4cd",e._sentryDebugIdIdentifier="sentry-dbid-29f74304-4456-4191-8cb6-7246b4a5f4cd")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new Yt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[q,Y]=p.useState(!1),[ct,J]=p.useState(!1),[Q,Z]=p.useState("approved"),N=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ye,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(qe,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),q===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&q?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>Y(!q),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
1
+ import{aw as Mt,a8 as Rt,q as Pt,d as Bt,cb as Nt,y as m,F as et,gf as Lt,gh as _t,gi as Ot,V as t,cn as Ae,co as Me,cp as Re,bA as Pe,aN as y,bn as Wt,dq as Et,gj as Ft,gu as Be,o as a,gk as Ne,fe as b,gn as w,fh as x,aL as Le,fd as _e,b as V,gp as Oe,aP as Kt,ao as Ut,gq as Vt,gr as re,bw as Gt,gs as Ht,L as qt,R as Yt,M as Jt,al as tt,b8 as it,p as G,am as Qt,bT as Zt,ah as Xt,gL as ei,gH as ti,c,cg as ii,cU as ai}from"./index-BN936vRr.js";import{a as p}from"./sentry-BCzFscbx.js";import{n as r}from"./mui-DQOtlcvt.js";import{a as ri}from"./liveblocks-CUzvdZes.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-DIO-8j7m.js";import si from"./InvoiceUploadSection-Cf_VG6ou-BXiqeaLr.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-BkA0GZqz.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./recharts-DEFzfhhe.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./AttachmentView-BnFvMAGW--ld7Hx8c.js";import"./uploadReceipts-CPw64UYa-BgLSr3Wu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="9d73af32-4290-4f7e-b06f-35e99f704797",e._sentryDebugIdIdentifier="sentry-dbid-9d73af32-4290-4f7e-b06f-35e99f704797")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new Yt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[q,Y]=p.useState(!1),[ct,J]=p.useState(!1),[Q,Z]=p.useState("approved"),N=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ye,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(qe,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),q===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&q?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>Y(!q),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{aw as ne,d as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,ae as d,F,o as s,aq as ce,a as me,aR as E,am as pe,y as xe,p as z,cB as he,aS as ue,b9 as ge,c as we}from"./index-BE73Kh7z.js";import{a as j}from"./sentry-CtwtDFb0.js";import{n as r}from"./mui-fuwOYnWD.js";import{FG as je,bT as be}from"./zeni-epic-state-BFhqH0Xa.js";import{f as fe}from"./VideoPopup-B-N0Wv9f-Y7nOShlZ.js";import{M as v}from"./usp-line-BBd1wKwW-C7lUdbbj.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.js";import"./VideoPlayer-CfLdj-r8-DJCIDiIM.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="5b05c987-0ded-45cc-a1f8-6eeedf6b18eb",i._sentryDebugIdIdentifier="sentry-dbid-5b05c987-0ded-45cc-a1f8-6eeedf6b18eb")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
1
+ import{aw as ne,d as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,ae as d,F,o as s,aq as ce,a as me,aR as E,am as pe,y as xe,p as z,cB as he,aS as ue,b9 as ge,c as we}from"./index-BN936vRr.js";import{a as j}from"./sentry-BCzFscbx.js";import{n as r}from"./mui-DQOtlcvt.js";import{FG as je,bT as be}from"./zeni-epic-state-DIO-8j7m.js";import{f as fe}from"./VideoPopup-CFvt5o_3-4FAYuh93.js";import{M as v}from"./usp-line-BBd1wKwW-DeyJTd7u.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./VideoPlayer-DKj4Ii21-D-xRLeKX.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="96727a8c-0b0a-485e-ba2c-9b2aedb029fe",i._sentryDebugIdIdentifier="sentry-dbid-96727a8c-0b0a-485e-ba2c-9b2aedb029fe")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as Je,p as J,y as s,bA as Ze,k as Ye,ac as Ke,fq as ve,dL as Xe,fr as Qe,bv as et,dB as tt,aP as it,o as a,ft as nt,c as n,cg as ot,cP as at,eo as lt,fC as ke,fD as $e,ge as st,n as rt,aN as Pe,R as Ae,bK as ct,ai as dt,bs as ut}from"./index-BE73Kh7z.js";import{a as o}from"./sentry-CtwtDFb0.js";import{n as i}from"./mui-fuwOYnWD.js";import{bJ as mt}from"./zeni-epic-state-BFhqH0Xa.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-H6nIiMo6-DVOWJHOy.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="61a9fb53-06af-4c8e-93d6-5163f379ce51",e._sentryDebugIdIdentifier="sentry-dbid-61a9fb53-06af-4c8e-93d6-5163f379ce51")}catch{}})();const gt=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])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ee(),D=Te(),{formState:{errors:Y},trigger:K}=at(),T=ht(P,"mileageAmountInDenomination"),x=lt(Y,T),{localData:c,updateStatus:F,mileageStatus:b}=p,W=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ie.getLocalizedStrings(),{reimbursement:ee}=Q,[C,E]=o.useState(W),[te,U]=o.useState(!1);o.useEffect(()=>{x||K(T)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&E(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||U(C)},[C]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=C===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(Ct,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(St,{})]})]}),t.jsxs(Tt,{children:[t.jsxs(Et,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:C||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:T,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:C?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&W&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),E(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(It,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as Je,p as J,y as s,bA as Ze,k as Ye,ac as Ke,fq as ve,dL as Xe,fr as Qe,bv as et,dB as tt,aP as it,o as a,ft as nt,c as n,cg as ot,cP as at,eo as lt,fC as ke,fD as $e,ge as st,n as rt,aN as Pe,R as Ae,bK as dt,ah as ct,bs as ut}from"./index-BN936vRr.js";import{a as o}from"./sentry-BCzFscbx.js";import{n as i}from"./mui-DQOtlcvt.js";import{bJ as mt}from"./zeni-epic-state-DIO-8j7m.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DYbC57rE-BoJPSMM7.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="8d3e2ef5-aeb8-4aaf-9e90-a1957a575c2a",e._sentryDebugIdIdentifier="sentry-dbid-8d3e2ef5-aeb8-4aaf-9e90-a1957a575c2a")}catch{}})();const gt=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])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ee(),D=Te(),{formState:{errors:Y},trigger:K}=at(),T=ht(P,"mileageAmountInDenomination"),x=lt(Y,T),{localData:d,updateStatus:F,mileageStatus:b}=p,W=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ie.getLocalizedStrings(),{reimbursement:ee}=Q,[C,E]=o.useState(W),[te,U]=o.useState(!1);o.useEffect(()=>{x||K(T)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&E(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||U(C)},[C]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=C===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(Ct,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(St,{})]})]}),t.jsxs(Tt,{children:[t.jsxs(Et,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:C||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:T,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:C?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&W&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),E(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(It,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -14,7 +14,7 @@ import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as J
14
14
  `,bt=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
16
16
  color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
17
- `,Ct=i(dt)`
17
+ `,Ct=i(ct)`
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-start;
@@ -68,7 +68,7 @@ import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as J
68
68
  `,At=i.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
- `,jt=i.div``,Dt=i(ct)`
71
+ `,jt=i.div``,Dt=i(dt)`
72
72
  color: ${e=>e.theme.colors.comingSoon};
73
73
  margin-left: ${a.sp3};
74
74
  `,Tt=i.div`
@@ -103,7 +103,7 @@ import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as J
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:T,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:b,onUpdateAccountClick:W,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:E,onSaveMileageClick:te,onClickMenuIcon:U,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:I})=>{const H=Te(),u=Ee(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:S,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:he,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),we=N(se.fetchState),be=N(re.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||we==="In-Progress"&&se.fetchState==="Completed"||be==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,we,se.fetchState,be,re.fetchState]);const We=z.handleSubmit(A=>{l.trackEnableReimbursement(),C()}),Ue=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&S?.id!=m.fundingAccount.selectedOption){const w=fe.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&S?.id!=null&&S?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),W(m.account.selectedOption,S.id,S.accType)}}else if(A.includes(G)){const w=R[G];b(w)}};o.useEffect(()=>{const A=z.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>Ue(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&E()},[E,ye,L.fetchState]);const{commonSetUp:Ce,spendManagement:He}=Ie.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=he?.isBusinessVerified===!0&&(S?.accType==="depositAccount"||mt(S?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Se(H.colors.brandColorJadeLight):new Se(H.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:U,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...z,children:t.jsx("form",{id:De(je),onSubmit:We,children:t.jsxs(Wt,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:S,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:I,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:T,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
106
+ `,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:c,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:T,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onEstablishConnectionSuccess:F,updateMileageDetails:b,onUpdateAccountClick:W,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:E,onSaveMileageClick:te,onClickMenuIcon:U,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:I})=>{const H=Te(),u=Ee(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:S,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:he,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),we=N(se.fetchState),be=N(re.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||we==="In-Progress"&&se.fetchState==="Completed"||be==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,we,se.fetchState,be,re.fetchState]);const We=z.handleSubmit(A=>{l.trackEnableReimbursement(),C()}),Ue=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&S?.id!=m.fundingAccount.selectedOption){const w=fe.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&S?.id!=null&&S?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),W(m.account.selectedOption,S.id,S.accType)}}else if(A.includes(G)){const w=R[G];b(w)}};o.useEffect(()=>{const A=z.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>Ue(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&E()},[E,ye,L.fetchState]);const{commonSetUp:Ce,spendManagement:He}=Ie.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:M}=Be,{setUp:k}=Ce,de=he?.isBusinessVerified===!0&&(S?.accType==="depositAccount"||mt(S?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,ce=ze?.isReimbursementEnabled===!0,Oe=de?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Se(H.colors.brandColorJadeLight):new Se(H.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:c,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!ce&&(u==="medium-compact"||u==="small"),onClickMenuIcon:U,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...z,children:t.jsx("form",{id:De(je),onSubmit:We,children:t.jsxs(Wt,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:S,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:I,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:T,status:O.length>0?Fe:void 0})]})})})]}),de&&!ce&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:de&&!ce,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -137,4 +137,4 @@ import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as J
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  row-gap: ${e=>g.sectionRowGap.valuePx(e.windowSize)};
140
- `,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:d}=j;return{[q]:{fundingAccount:{selectedOption:P?.id,allOptions:$.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:P?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Xt as default,De as uniqueName};
140
+ `,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:c}=j;return{[q]:{fundingAccount:{selectedOption:P?.id,allOptions:$.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:P?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[G]:{mileageAmount:c?.mileageUnitAmount?.amount,mileageCurrencyCode:c?.mileageCurrencyCode??"USD",mileageCurrencySymbol:c?.mileageCurrencySymbol??"$",mileageUnit:c?.mileageUnit??"",description:c?.description??"",mileageAmountInDenomination:c?.mileageAmountInDenomination,denomination:c?.denomination??"dollars",denominationSymbol:c?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Xt as default,De as uniqueName};
@@ -1 +1 @@
1
- import{V as b,cn as V,co as M,cp as W,k6 as q,aW as z,F as G}from"./index-BE73Kh7z.js";import{a as f}from"./sentry-CtwtDFb0.js";import{Ge as K}from"./zeni-epic-state-BFhqH0Xa.js";import{u as Q}from"./ReviewOverlay-D1dHNrqu-DXfCDLdz.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./mui-fuwOYnWD.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.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]="3fa5ab64-bacd-4ce7-8a47-653cc6bc2b53",e._sentryDebugIdIdentifier="sentry-dbid-3fa5ab64-bacd-4ce7-8a47-653cc6bc2b53")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=f.useState(!1),[m,_]=f.useState(P(e,v,o)),[h,R]=f.useState(v),[B,H]=f.useState(0),[w,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:C}=X(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},N=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[x?b.jsx(V,{titleComponent:b.jsx(W,{children:w.title}),descriptionComponent:b.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
1
+ import{V as b,cn as V,co as M,cp as W,k6 as q,aW as z,F as G}from"./index-BN936vRr.js";import{a as f}from"./sentry-BCzFscbx.js";import{Ge as K}from"./zeni-epic-state-DIO-8j7m.js";import{u as Q}from"./ReviewOverlay-CwyShttD-COz1RonR.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./mui-DQOtlcvt.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="135ec161-ae85-4223-bcb4-cb2e586dacd7",e._sentryDebugIdIdentifier="sentry-dbid-135ec161-ae85-4223-bcb4-cb2e586dacd7")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=f.useState(!1),[d,_]=f.useState(P(e,v,o)),[h,R]=f.useState(v),[B,H]=f.useState(0),[w,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=X(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[x?b.jsx(V,{titleComponent:b.jsx(W,{children:w.title}),descriptionComponent:b.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};