@zeniai/web-cockpit-ui 1.15.12-dev → 1.15.13-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 (274) hide show
  1. package/dist/assets/{ACHDetailsPage-BY65AQjO-Cl2Tlmft.js → ACHDetailsPage-BlujuoRH-D3z2m9vf.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-B0a7EX_p-BepCOVvT.js → AIPerformancePage-DfgPUakC-C7_4KJtd.js} +12 -12
  3. package/dist/assets/AccountInfoPage-BYwGsz6J-ilS3p_4u.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BsSGhNw9-Bhg40nPQ.js → AccountInfoPageContent-CTvsml8u-HiMO1t4f.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-uPOYP0OH-gMh9hb_c.js → AccountLockedInfoModal-DeYVMh3B-Dec8Ripp.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BgPmbG_g-9wGOY4BN.js → AccountReconDetailsDrawerPage-D6WT5Co_-Boi6JvlJ.js} +1 -1
  7. package/dist/assets/{AccountRow-B9ZIzZy7-C9nPv4rY.js → AccountRow-FmhkZVL4-BiCaU5gp.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BLcpWU3T-CV6K5Y9x.js → AccountsPromoCardStack-B5Mri6qW-C55uOtTG.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-B1oucxyM-I6biD8O7.js → AddAddressForCardDrawer-Bs4dQyRL-ChMzAqlj.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B1GVnxRf-CndQH9vq.js → AddToWalletPage-fBplELoj-BbSWfj-_.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Bpp4te8m-HodwoOcT.js → AgingReportsPage-CgeLN6Su-mjdbj-V7.js} +1 -1
  12. package/dist/assets/{AllUserItems-CzugF5fn-8WnbDsqH.js → AllUserItems-vOFCgjs7-BawEw1bw.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-CyUQeZY0-DHH2Dilv.js → ApAgingDetailPage-CF5WKuOc-DwzZ4J6w.js} +4 -4
  14. package/dist/assets/{AppBasePage-Di7hObbX-uZJvqLhK.js → AppBasePage-DrIjva6e-BEoSV9em.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-KdrUuifo-DcEK8qwb.js → AppDrawerContent-Co1DpiWD-BseTWq0X.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BRIgTh7x-CF-Pagn9.js → ApprovalRulesSettingsPage-tYbxBThK-Cp_BZtLr.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DeE5uhiT-BcI5cuvH.js → ArAgingChart-B2zTJJgb-BW-4V4KX.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CFiIUBWl-BXhWrXr_.js → ArAgingDetailPage-0nCr6crv-CVAwjIoB.js} +5 -5
  19. package/dist/assets/{AttachmentView-CfacSLcU-gwYezuYM.js → AttachmentView-vlVaH4YF-DjHAa-jm.js} +1 -1
  20. package/dist/assets/{BankAccountSection-Bm8vdxFd-DKKdvH8R.js → BankAccountSection-CDKiTWgn-CtT_fqlj.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-M3w6kP33-ChP5wvhC.js → BankAccountWarningSection-tSnRJm3S-Xh7INFxm.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Dfrp0CKz-Dc4Qac0T.js → BankConnectionsSettingsPage-O_L8CHJf-Lbkg03Kb.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BA1D1bO3-Ofkt6QPd.js → BillDetailPage-DR3JefXf-CT_vRh92.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DR8YzZt1-CQcbdF34.js → BillPayApprovalRuleDetailPage-2w8HO-NU-BrDPRKpx.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CfZ4aSPM-C6nI7yKc.js → BillPayApprovalRulesPage-yFoEpHK8-mn4XE1DW.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-CP9Nvd2Q-CSZ8mSrV.js → BillPayPromoPage-DZkA_0AV-wh6M-Qtv.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BwEONKu_-DARv5ESb.js → BillPaySetUpPage-B2j-es9G-Cgscrq-x.js} +7 -7
  28. package/dist/assets/{BillingSettingsPage-DicGyWCt-DwbmjVcE.js → BillingSettingsPage-ayQNGWSW-BH36NbEd.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-fS3-YEdi-DKZKHDla.js → BillsBulkReviewDrawerPage-B2LDJ9-N-Bz6yNrUs.js} +1 -1
  30. package/dist/assets/{BoxItem-Cr0Y9YBV-C2AawtqJ.js → BoxItem-B0bHU_KA-CwJAi_XO.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CvL9cdJm-Drj-tMQU.js → BusinessVerificationPage-DZ27apcr-60B1XBNo.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CXBKzGK5-CCtn2y_n.js → CardNumberSubText-CpqumrS--C5H93W0D.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DOdPOiws-CAJxdhJ3.js → CashbackDetailPage-C3oNmfln-Cjfl1QQU.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DfhAyysD-Cgd92Yem.js → ChargeCardDetailPage-C9XhHqSo-C6G4QIZB.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Bnnu4TVk-DFZAYaNm.js → ChargeCardListPage-B_PxtkQX-D4XUj6S4.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-D7zGM8uo-70otSDDQ.js → ChargeCardListTable-kp0WwIZo-C7S3-nFL.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-U00GbINt-BIwIfF30.js → ChargeCardPaymentHistoryPage-D1l3Qgr_-CcXK8zox.js} +8 -8
  38. package/dist/assets/{ChargeCardPromoPage-BpBiwjfr-DWB9eQGN.js → ChargeCardPromoPage-DcmgTF8u-uElL894v.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-Duj6901M-CIASuReJ.js → ChargeCardSetupPage-BX9fPIf_-CJBf2z8R.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-IkU86L31-ClrDQTtP.js → ChargeCardStatementsPage-a5u9wGDg-CReuXYls.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-fHeTkRJF-CdLdCkIH.js → CheckDepositDrawerPage-_DvlXSse-DhB3lKOy.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-DUo-9gOh-B_gwOhYJ.js → CollapsableReportTable-DgteU0nB-DwU6xqcB.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DzDZe6MU-DWguMF6d.js → CompanyOfficerDetailsSection-DG1ZQ-UL-BWPYN3Ux.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BwiwJ82k-WRVY9XX8.js → CompanyPassportCard-JfMVwFHV-DIdzwTm1.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-Bz3rzG9k-e3d2ccIM.js → CompanyPassportPage-2j8z-oge-D6U4VneL.js} +1 -1
  46. package/dist/assets/{CompleteProfile-CRXV-nNq-DpRL426l.js → CompleteProfile-Cm8XlcS3-h3qANDX9.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-CapRdPno-Dlg4XvfD.js → ConfettiBurst-BtmMysff-DXW2t6JP.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BjPotKnf-De1W0m4N.js → CreateOrEditVendorPage-BxSAnKo6-BT1rzueh.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BTZ2Lph6-DMwCUXwV.js → CreditCardPaymentDrawerPage-a2j9Vyid-B5YbQ1Qy.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-DY0HeU0G-CSYPXeIb.js → CurrencySelectField-CbBlYqRB-D1pLCzjN.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-BIKXkkcY-IFMHYYO1.js → CustomerOnboardingActivationPage-CG508vOx-CLWU-GVx.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-CuP19GYc-BdzG4LPd.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYiAmFsM-C0-Ot9Uw.js → CustomerOnboardingDetailPageSkeleton-BszHZi0e-DON_7YLk.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-gssFllMT-DT9hupvU.js → CustomerOnboardingNoStepsPage-Cg8ti5NY-DlxEJtW7.js} +9 -9
  55. package/dist/assets/{CustomerOnboardingPage-CBJHj8BH-KUidrPxI.js → CustomerOnboardingPage-DM-gDkp1-rcTTcpJq.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-BryLMJRG-DDfHjs9L.js +202 -0
  57. package/dist/assets/{Dashboard-BVvkfPf9-hp4sQi7A.js → Dashboard-BRm1rkFD-sRJsQcvd.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-DHQ79h9V-C3FgTbgA.js → DashboardReportPage-rtbUwJSW-Cfsk6TQp.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-B8Q-YA_s-DLXiBeQj.js → DashboardSidebarBackgroundAnimation-DVTdlTEZ-LE3GU0DJ.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-DZnqI7IQ-DR0NgZ86.js → DepositAccTransactionItem-BbKLxsPR-Dpo7wVCS.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-BMNdp-3Q-CyOUea8P.js → DepositAccTransactionListPage-0AV-fx2Z-BFJB16zN.js} +2 -2
  62. package/dist/assets/{DomesticWireDetailsPage-CCP6xoW_-BlmZjbpt.js → DomesticWireDetailsPage-BKumlfKE-Cqz9aujw.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-B2bK30rG-B-m5Mv2I.js → DownloadOverlay-C6GFjg2N-DrkN4pip.js} +1 -1
  64. package/dist/assets/{DrawerPage-BRJDrBlv-D28-uO54.js → DrawerPage-BjfQ_wvz-BRg4aJBc.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-I8E1Rs3x-DbyrgA_C.js → EditPeoplePage-59PeI1Ul-cMTnU9vy.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-C7BPmFMR-DTPMhwLH.js → EditReimbursementDetailPage-D5cPRveU--6MVI5yI.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-BraBJ2k1-Wq1E4JPl.js → EntityDetailPage-CiO1dOzo-BB1u6uOD.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-DPmL3Bnf-CHA6TrKp.js → EntitySummarySection-DBQxz0Ak-YgKNz1nX.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-CDaO_5Vj-gZyomnai.js → ExpenseAutomationOverviewPage-D9JnRKeQ-bE2V-UEo.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-DUenmMQD-Yh_8CeIf.js → ExpenseAutomationPage-isWf-Yjm-BEj6GzxJ.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-DxO1mXNE-DeRja-sm.js → ExpressPayPage-iL1BYLic-BqUwfpLY.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-BWPNZcYs-CdJLxzVS.js → FeaturePreviewPage-CFz7RpI6-DbRQaCew.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-DhVGeocZ-Ddk_z58q.js → FollowStepsSection-Crd9GwnW-RQu2gQ-V.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-8eiQXg7N-pPWYTyKl.js → GlobalReviewListPage-xUatsnwu-Dx9d2TTm.js} +1 -1
  75. package/dist/assets/{InformationCardStack-CHVjIv01-Y1Eih__r.js → InformationCardStack-CgSYiHdK-Cf9Cjw1k.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-x_tohY2Z-DNptH2Sv.js → InsightsCardStack-dkuf5D9A-Duqx5-xn.js} +2 -2
  77. package/dist/assets/{InsightsSection-D7g00fg7-Bl1k6KMG.js → InsightsSection-CUk29Ace-BKDJK0uo.js} +2 -2
  78. package/dist/assets/{IntegrationsSettingsPage-DVRtPRi9-ig1iJJpM.js → IntegrationsSettingsPage-As-313jz-BWoXfvd2.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-DnWbUuiD-CIWMoecY.js → InternationalWireSwiftDetailsPage-CqMsBHlO-CbK2_2UB.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-CHvUYgd8-B9TQJM22.js → InternationalWireVerificationPage-BJ9-Rvqo-C5xNuG17.js} +1 -1
  81. package/dist/assets/{InviteFormPage-Cw0TIkwc-D0dTmTLg.js → InviteFormPage-D7yOmbjN-B6cNY2j6.js} +1 -1
  82. package/dist/assets/{InvitePageListView-B4gEzFp2-1aqNeIHc.js → InvitePageListView-CUeSQD7S-BB-ili2p.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-Bnsqv_IY-DhNBoZS8.js → InvitePeoplePage-BY6iz4UW-16zeXtyQ.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-CW4hHmAi-DKFSw8te.js → InvoiceUploadSection-fjn4uF_l-DBvp2GNb.js} +20 -20
  85. package/dist/assets/{IssueChargeCardPage-sM826Uvu-DMhbp0aa.js → IssueChargeCardPage-B30u11O2-BHXfiwVd.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-AuzW29LK-99vdzqZR.js → LabeledAddressValue-CJZ_1zh1-dIyC1ckB.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-C_KatgTA-ByiPbJgm.js → LabeledAddressValueField-3BEuHr_a-BAXHOnek.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-CEd7DSmU-mOU-S2fp.js → LabeledControlledCheckBoxField-DqtbWhaH-Ct8s61sn.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-CffMX6f1-C44H-4q3.js → LabeledCountryMultiSelectField-t7lnpz15-B8MvgThW.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CoS6DIi_-DTDCa09f.js → LabeledCreatableSingleSelectField-DSrFEwMO-BtK2wHhP.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-CVBhbPHv-9665D02s.js → LabeledDocumentField-CYvUm3Rk-DLfE-kKo.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-CNru68eT-GPSUv36b.js → LabeledDropDownFormattedTextField-IohlqRi7-BoY6bhCM.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-CTqXa2Rh-Cxu9DNT8.js → LabeledMultiSelectField-CveBXp8L-BAd1gTI4.js} +1 -1
  94. package/dist/assets/{LabeledText-Da0Yn6u8-CFgd90E4.js → LabeledText-C9CoADG4-BsL6jbJB.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CE332GjA-BafYQ_Pm.js → LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-BWHNFjm5.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DU4-ho4X-DQBIg45w.js → LabeledZeniRolesDropDownField-B-0ZfQFs-BLpCJZWp.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-Dx4OE1-O-HLvvvZHd.js → LinkJETransactionPage-CLo-jbfZ-CgODjcQ0.js} +2 -2
  98. package/dist/assets/{LockCardPage-B3P6wcK_-Ckpg2eew.js → LockCardPage-CmWzTH0n-B_X-TwZ4.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-Dp1vEYQQ-DIw_NRSy.js → LowBalancePopup-BUAKDPHL-BfDsvGUL.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-v539jeyl-sH7kLHfx.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-CU9g_d2_-gcBn5f-G.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-CYupqopA-BhBR0cCB.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-Iva17nX0-DhK2jGAZ.js → MagicLinkSuccessPage-BGSpNBaK-DRZ7k8D2.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-B726bP_P-CoT1ZO_f.js → MagicLinkTitleSection-BKIOmha4-ChpstG69.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-BwgWy_VZ-Do6nH1qr.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-Ad6xGN08-JjXBlik9.js → MyBankConnectionsSettingsPage-B3HEwRST-BMNPEzRQ.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-BYZ61huS-YKZjMs5X.js → MyPendingActivationChargeCardListPage-Cy_JIUO5-CXr2StVT.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-bEru4GQJ-Cj303JTH.js → MyProfileSettingsPage-D4XR8lj4-Cx77Yc0W.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-BAKrtv3g-BXBcsUFZ.js → NavBarWithPicker-Brxnh3kz-BBzh1_Q6.js} +1 -1
  110. package/dist/assets/{NavigationArrow-CKvBs9-h-DGD1r2EE.js → NavigationArrow-C1HvrCIx-DFOmLMLf.js} +1 -1
  111. package/dist/assets/{NavigationDots-BdcVrwsL-D_WEvn6f.js → NavigationDots-Ttv3r4BR-v2ws1TaA.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-Cx38uQAS-BBICE4OG.js → NewGlobalMerchantPage-rrVa4Iiv-lDEd0itd.js} +1 -1
  113. package/dist/assets/{NoDataChart-BbyxZE2g-CtN5BYbf.js → NoDataChart--T7v827k-zXeqjU35.js} +1 -1
  114. package/dist/assets/{NoDataTable-BNZWGvtm-S9Fe9Ovx.js → NoDataTable-cJmfr934-D57XH4Vn.js} +1 -1
  115. package/dist/assets/{NotFoundPage-CssnEz-k-ccXdF3op.js → NotFoundPage-C-RS1j9W-DH4NAkkX.js} +9 -9
  116. package/dist/assets/{NotificationSettingsPage-DmgxnO9I-BH2rOJH7.js → NotificationSettingsPage-Bt94GV9--r7sgcB96.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-DdMKLqFI-DwvXMwFg.js → NotificationsListConfig-CbWdzORJ-BsmAt2Aw.js} +1 -1
  118. package/dist/assets/{NotificationsPage-B9XIE39J-CejudHUF.js → NotificationsPage-kZGgGVaC-BAHmfRGl.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-5wnFvYXt-D6A9jnRY.js → OpExByVendorPage-BSoM5hsv-8kUubW4x.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-IDTUbuAC-dv-sDcTQ.js → OverlayContainerPage-IDTUbuAC-C05m2YxE.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-CrtKdSaD-CYng6puq.js → PandLWithForecastPage-C181kEf--CfV2ma5M.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CQki5l4P-CuMomXeK.js → PaymentAccountSetupBillingAddressSection-DqDvhQwH-C-RxqOsn.js} +7 -7
  123. package/dist/assets/{PeoplePage-BCjxJl1y-JBCpiTMQ.js → PeoplePage-ByvK4lsu-B40YfrBC.js} +1 -1
  124. package/dist/assets/{Preview-DMKZka6j.js → Preview-B0RnB2Yn.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-BYvlY6Jl-BJ6Pqq3q.js → ProductsCarousel-CCLEQfr4-D3JLfCUB.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-6vRaZnUg-CBqkAept.js → PromoBaseCards-BESaQCrl-gKsHUW_9.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-C-v9bhUW-CtiRv4Zj.js → QBOConnectionDialog-BhmH5aji-CM5T8oTr.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-DPhwp1AB-DxJDpMHr.js → QBOSetupSection-BevEEFTb-Jbk-oPo7.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Crz8RArL-DQzyot-2.js → ReimbursementApprovalRuleDetailPage-Dklp8fND-C3LBVHUX.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-CHrPVveg-DDlyKkun.js → ReimbursementApprovalRulesPage-CCo730ny-q5c8fyV0.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-BlfifQuc-DXXQTfQu.js → ReimbursementDetailPage-D8G3Aoci-DIVONTh0.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-B6rhhOye-CmIRL-Wr.js → ReimbursementPromoPage-B8BSm0-k-Bt9GjQuu.js} +4 -4
  133. package/dist/assets/{ReimbursementSetUpPage-BQwRjKZ5-CWVOKlly.js → ReimbursementSetUpPage-KRQIL0VK-DR0ER4Yx.js} +4 -4
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BTaFn0Mh-DXx1vhRK.js → ReimbursementsBulkReviewDrawerPage-B77ypxnc-BkObb0RE.js} +1 -1
  135. package/dist/assets/{ReloadCard-DETUOoLJ-Dww2RtAQ.js → ReloadCard-0KQtayY--Cg4JfrF6.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-DSDclygb-CPmwPKtZ.js → ReportTableViewSelector-wrUJSIfk-Dns-QQbX.js} +26 -26
  137. package/dist/assets/{ReportsPage-BrmMmYET-qm3o80ge.js → ReportsPage-D-r0S90r-CtLOp9ey.js} +1 -1
  138. package/dist/assets/{RevenueChart-B711QWTX-ztc9NA65.js → RevenueChart-4kIDtnAc-WBQ50ylJ.js} +14 -14
  139. package/dist/assets/{ReviewDetailsPage-Bkw0FfE--BL2mmyys.js → ReviewDetailsPage-BqIBTewY-C8DdFF_e.js} +1 -1
  140. package/dist/assets/{ReviewOverlay-CkB3Z8hH-CX5FMXRQ.js → ReviewOverlay-DjazNKfI-D9LHGfoS.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-CkpqxMzB-CgYpd1vG.js → RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-C-4zVu03-B-3H4CNH.js → ScheduleDetailsFixedAssetsPage-DBfwlnR1-bCnucyiC.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-D4mYRUnv-CIK0kUkx.js → ScheduleDetailsPage-CLEKOymC-B3NLZeIV.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-q-031a_C-Cl6g3k1V.js → ScheduleSequenceTable-Dnapx3YK-Be50KNDE.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-D9-sd0S3.js → ScreenRoutes-S2WD5yPN.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-Mm8JelXc-DJkSxyLc.js → SetUpAccountSection-D7Nf4cYj-UGNHCsDO.js} +1 -1
  147. package/dist/assets/{SignIn-faWXqi7o-BVPJ-uzq.js → SignIn-Cl1If8Mq-CvFGHXZ8.js} +15 -15
  148. package/dist/assets/{SignInScreen-DTTr8TvQ.js → SignInScreen-CFwIVPDY.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-BLWEPKWO-zjDi64vH.js → SpendManagementListViewPage-B8AdQD7w-DscL1E8I.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-vZNK6DuA-DHQi0ok2.js → SpendManagementPerTabPage-BJxGbUNp-CTR6zi4P.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-CeDmloNd-CJQVf2yR.js → SpendManagementSection-CJ-vMwcf-DAIvaE36.js} +1 -1
  152. package/dist/assets/{StatementItem-CJShifEl-gXZiawe9.js → StatementItem-CCXoBC0x-B0aqg_M_.js} +2 -2
  153. package/dist/assets/StatementsPage-BaDmSL9L-t79Ai808.js +58 -0
  154. package/dist/assets/{StatusSwitcher-CPuONMOx-IUewbXcR.js → StatusSwitcher-BZ2svcz0-BTZEKNgF.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-ibTbIxr5-87SzITqK.js → SubTabSwitcher-C3216C6m-CK-Qtqj3.js} +1 -1
  156. package/dist/assets/{SummaryCard-vWpHXMPE-j4-YbXA_.js → SummaryCard-CSkw4qa9-i9KCkyV3.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-COs5ebo9-LStJ5YyB.js → TaskManagementPage-BO9Fcar1-BB1pU97E.js} +8 -8
  158. package/dist/assets/{TimeRangeSwitcher-fD5vvYGO-Cg6AHBEd.js → TimeRangeSwitcher-C9jo91ZR-BexBx71o.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcher-BYXKRKtc-BTNUudrw.js → TimeframeSwitcher-453JT8qD-dl4gBr1v.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-f92qNjEk-CshyNxhp.js → TimeframeSwitcherWithToggle-CkiICrjF-BzFnMJO-.js} +2 -2
  161. package/dist/assets/{TopExCard-Bs4nI9Q9-C9Jpq9jc.js → TopExCard-Qae08TpE-B5FSxtbi.js} +10 -10
  162. package/dist/assets/{TopExDetailPage-B0kS11k0-IiO7dIt-.js → TopExDetailPage-BpwMO-8K-qWr97Eft.js} +4 -4
  163. package/dist/assets/{TransactionDetailPage-BXl6y7sy-B_wNV2dF.js → TransactionDetailPage-CF5tZCkv-ND1Ih8Rd.js} +1 -1
  164. package/dist/assets/{TransactionList-BYXPQXN1-C2WkgSOj.js → TransactionList-BuFcrTEd-Pd5NkKsR.js} +1 -1
  165. package/dist/assets/{TransactionListBig-lrbHUS38-D0fzERPt.js → TransactionListBig-B6-3iOkU-brDnQ-dC.js} +1 -1
  166. package/dist/assets/{TransactionListPage-OOLJzsmw-Dmoozb9S.js → TransactionListPage-cSSv81G2-C84Nagsy.js} +1 -1
  167. package/dist/assets/{TransactionVendorDetailPage-CmjrngD2-DvxXX996.js → TransactionVendorDetailPage-BJzVtpnF-BD1O-dJA.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-CnFrzA_M-C6390hZV.js → TransferDrawerPage-DCxNnGwu-R8tXJhB-.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-CGxccIcU-CgXb0qH5.js → TreasuryOverviewPage-DfIkj3v1-DGzCSt8t.js} +9 -9
  170. package/dist/assets/{TreasuryPromoPage-BmMVa8cX-BOYWbSX7.js → TreasuryPromoPage-BBdOyiO--DBYyvSzX.js} +1 -1
  171. package/dist/assets/{TreasuryStatementsPage-DL94A9mN-DZ6yoZ74.js → TreasuryStatementsPage-NgiurO36-wIt2qVvF.js} +2 -2
  172. package/dist/assets/{TreasuryTaxLetterPage-BJ9-ZsCQ-DnDmd1Op.js → TreasuryTaxLetterPage-DcI8sKk8-CiTg5Fth.js} +2 -2
  173. package/dist/assets/{TrendChart-ClyJQTBF-TLthRW_O.js → TrendChart-DVp0Led--C8WSZxuE.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-D4m4sVkf-DJ-5Yugx.js → TrendWithTransactions-C5Zfe4RN-BXIMOZup.js} +1 -1
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BLwx8CVj-dhOY5qHO.js → UncategorizedAccountsMappingPage-DKQj6Y2Z-CJmiPan8.js} +5 -5
  176. package/dist/assets/{UnitIntegrationPage-CgbOyIBt-nz_B7FQx.js → UnitIntegrationPage-DzP4Z8GG-Dy6PuJhN.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-CmVwCxA2-BL_6rNZZ.js → UploadAdditionalDocumentOverlay-BGFTh8Ed-BM9KBkkU.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-DQtP0bm--CecMTi1i.js → Vendor2FAPopup-CyeLsWVA-Bvm0fc8m.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-Ch6V5aiE-C8mQ2zAb.js +1 -0
  180. package/dist/assets/{VendorDetailPage-CFkDOdUe-B1GqtBiD.js → VendorDetailPage-CrEIBnBt-BV5_7SzR.js} +1 -1
  181. package/dist/assets/VendorDomesticWireDetailsPage-GMtYv721-BHj1SZ-2.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-Bkn9p2Sf-xXTYWhq9.js → VendorFiling1099EditablePage-Bw_Igktf-DBjJgjbY.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-CKvnB4Q7-wJi46XXQ.js → VendorFirstReviewPage-CCCVS8n7-E428xFy1.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage--B2XU_hP-CbzsnIo2.js → VendorInternationalWireDetailsPage-DsBGMjtN-CQvN_vWC.js} +1 -1
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BeXxE9Qn-ym6eVDNw.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-DJP1yZx7-OlnsbsSP.js → VendorsAccountsSection-Bd1rg5Tw-DRUi6jIP.js} +1 -1
  187. package/dist/assets/{VerifyDevice-dFsnt44d-C1LsKxM_.js → VerifyDevice-B52Vuja4-0E_pm_dD.js} +7 -7
  188. package/dist/assets/{VideoPlayer-Dy6rImBJ-QOYygi-i.js → VideoPlayer-Cfh9VY-B-CLXI1KSM.js} +2 -2
  189. package/dist/assets/{VideoPopup-DM5Buf4j-CFLugl6n.js → VideoPopup-BLRMOVnP-CAsXJ3um.js} +3 -3
  190. package/dist/assets/{WarningsDrawerPage-C8i8v3rq-BqkJBNMa.js → WarningsDrawerPage-CnUUMlFZ-C2O6kI2F.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-CI7znfzM-Vqgai5nW.js → ZeniAccountDetailPage-DrBVs3G5-BGnEJzEM.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-CBnYQpc8-Dv81IpSI.js → ZeniAccountListViewPage-C3WwakQr-CVBB5Etq.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-sMjtAlej-CO7nbf-u.js → ZeniAccountNavBarPieces-CP2pkywN-CGbioXtu.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-B_NJMHHV-DWsuBCOP.js → ZeniAccountPromoPage-DYAVwX1I-CACWm6_J.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-C9cJ0F8e-BF5g947U.js → ZeniAccountSetupPage-D4y3RRC0-VwyN8R98.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-DzWFQiAt-07AcK5yb.js → ZeniCopyright-DxhdQ6XJ-DxZgbZ2B.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-B424bcSV-CHepSJQx.js → ZeniTransferAmountSlider-COT3DDGF-CcOgiNdg.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-pWZi41H8.js → add-to-wallet-DgdBD8_G-DsgRUVgA.js} +1 -1
  199. package/dist/assets/{analytics-BvXI56dE.js → analytics-CSlaNB19.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DP-LgJhR.js → analyticsHelper-BSMq6Y2P.js} +1 -1
  201. package/dist/assets/{analyticsHelper-CzevEN9D-BUYGstD0.js → analyticsHelper-C35dM-yG-D6b8wU4U.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-B9_UwdI_.js → arrow-south-east-round-PEovUgvH-yHNADvS4.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-CRwly3T1.js → auto-transfer-rule-mbafm5D3-Ccdjr6D8.js} +1 -1
  204. package/dist/assets/{chartTypes-n3TS0IBf-DRx7aLxA.js → chartTypes-BDwrrz9S-CO6_cPbC.js} +1 -1
  205. package/dist/assets/{commonDimensions-6BcP8EhU-CPpjZ-C4.js → commonDimensions-Pu55v5lV-fIykEmeD.js} +1 -1
  206. package/dist/assets/{commonTypes-Q1WP-Ym3-Cmq2uCPt.js → commonTypes-BElGElM--Bg_ac7b3.js} +1 -1
  207. package/dist/assets/{constants-B97TsRRb.js → constants-D-PeI_mM.js} +1 -1
  208. package/dist/assets/{core-CIefpDlV.js → core-CqdPXR9B.js} +1 -1
  209. package/dist/assets/{dash.all.min-RUznf6Xj.js → dash.all.min-DbcV3v7u.js} +1 -1
  210. package/dist/assets/{detailCommon-D3YbmSu3-CiTGsaNF.js → detailCommon-CM8F8nQy-BjrXwaKv.js} +3 -3
  211. package/dist/assets/{downloadPdf-Bf11NXjY-DUwuSlsF.js → downloadPdf-BF8--IAB-lQpphdcn.js} +1 -1
  212. package/dist/assets/{empty-BQQX0XD1.js → empty-DPq645sP.js} +1 -1
  213. package/dist/assets/{empty-DJIJO66a.js → empty-DTh_Ij2M.js} +1 -1
  214. package/dist/assets/{epic-C6ygjjdM.js → epic-96Yt9tV8.js} +1 -1
  215. package/dist/assets/{gift-box-Cmt9OgIZ-BWCTqneo.js → gift-box-Cmt9OgIZ-Bn-y1hvl.js} +1 -1
  216. package/dist/assets/{graphic-no-data-l-DU4J8fDt-C8GXOUxr.js → graphic-no-data-l-DU4J8fDt-a_iKaRv1.js} +1 -1
  217. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BQAFQuCs.js → graphic-no-data-net-burn-l-CzmycA0m-C9dTXMJH.js} +1 -1
  218. package/dist/assets/{handshake-BPg58FML-BCnezDN8.js → handshake-BPg58FML-DqlUuE7u.js} +1 -1
  219. package/dist/assets/{index-smQbM7l5.js → index-BTSZX0gU.js} +1 -1
  220. package/dist/assets/{index-BzA0Xv0P.js → index-Bs6vtzGR.js} +1 -1
  221. package/dist/assets/{index-WEj6FS32.js → index-D4DdpT1f.js} +7 -7
  222. package/dist/assets/{index-rikpsdq-.js → index-DQJyhSzl.js} +1 -1
  223. package/dist/assets/{index-CQs92n2L.js → index-DeNk0spl.js} +1 -1
  224. package/dist/assets/{index-DAj0zPwk.js → index-DfNzwEf5.js} +1 -1
  225. package/dist/assets/{index-DtRGsySN.js → index-DzUx431K.js} +1 -1
  226. package/dist/assets/{lexical-Dp1JhPKz.js → lexical-D6mU3oV8.js} +1 -1
  227. package/dist/assets/{liveblocks-CrODURpx.js → liveblocks-DXNKZvWw.js} +1 -1
  228. package/dist/assets/{lottie-hIwSKdQS.js → lottie-BGCmjFH9.js} +1 -1
  229. package/dist/assets/{mapLoadingInProgressToTreeNode-BArKDqgr-Ce9uxfyP.js → mapLoadingInProgressToTreeNode-4ruPPd2Y-CXJTu75z.js} +1 -1
  230. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BCmFQbuz-BJl1ilV_.js → mapSectionWithAcOnlyToTreeNode-B77EOrVX-heqCPLrc.js} +1 -1
  231. package/dist/assets/mapSpacerToTreeNode-DbVBrfUp-DCvPMvjH.js +1 -0
  232. package/dist/assets/{mapTimeframeBalancesToTreeNode-ClmNRrTo-Covijrhn.js → mapTimeframeBalancesToTreeNode-DA60r528-sldeiWG8.js} +1 -1
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-IkKV62Jb-JqYi47LI.js +1 -0
  234. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DT4LUXl9-COTrRRrU.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BxEY8256.js} +1 -1
  235. package/dist/assets/{mui-BTtN6lbG.js → mui-CooLgaJO.js} +1 -1
  236. package/dist/assets/{page-detail-CWX5S47F-vL4oE1Hd.js → page-detail-CWX5S47F-D0SYshoo.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-CzTG_UVX.js → radio-default-CiSgisfh-aKay5Aup.js} +1 -1
  238. package/dist/assets/{react-DTawl0rf.js → react-B3adtom7.js} +1 -1
  239. package/dist/assets/{react-RUf-G1wy.js → react-BBgs2Til.js} +1 -1
  240. package/dist/assets/{react-dGc0O2tO.js → react-BOYN8kx1.js} +1 -1
  241. package/dist/assets/{react-D8h_J9ua.js → react-CEyM_Slo.js} +1 -1
  242. package/dist/assets/{react-yNxKnTJa.js → react-CrELMTJL.js} +1 -1
  243. package/dist/assets/{react-BZDhaeWn.js → react-DHuOianZ.js} +1 -1
  244. package/dist/assets/{react-FdUpWGdd.js → react-MtwZeeNV.js} +2 -2
  245. package/dist/assets/{react-CZT8R2xg.js → react-_XrYtXDi.js} +1 -1
  246. package/dist/assets/{recharts-BfU_srYC.js → recharts-DHPcYqKb.js} +1 -1
  247. package/dist/assets/{sentry-B0WgNUxa.js → sentry-Dlcq8VjX.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-Z1Xg2OMK.js → shield-DOlUxcFf-D8h0VGFI.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js +1 -0
  250. package/dist/assets/{toChartData-Bl-lEYbQ-Cv_10vbn.js → toChartData-CTG-a8va-B2RC0Eyi.js} +1 -1
  251. package/dist/assets/{uploadAttachment-B_0cN84g-C7pQHANb.js → uploadAttachment-n14_2p7o-3Yaegacg.js} +1 -1
  252. package/dist/assets/{uploadReceipts-DJRtId-4-B1jpX457.js → uploadReceipts-DJRtId-4-D8fSq3Gx.js} +1 -1
  253. package/dist/assets/{url-D-l_68oE.js → url-CfIahVCp.js} +1 -1
  254. package/dist/assets/{url-CHEcUoer.js → url-d3WjAGv6.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-BysG3lqG.js → useLongPress-GCK2COYQ-B0lPuhDh.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-ZROsAmzr.js → usp-line-BBd1wKwW-CZ22OQAj.js} +1 -1
  257. package/dist/assets/{utils-DZQMbqmw.js → utils-CXbV7y1T.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DnAAAEmj.js → zeni-epic-state-pmiItBju.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/AccountInfoPage-DUYpaV3v-CL9yEZEk.js +0 -18
  262. package/dist/assets/CustomerOnboardingContainerPage-DZfFYnVw-BG6Jz35S.js +0 -1
  263. package/dist/assets/CustomerOnboardingProductSuitePage-2V3vSjB8-BYRuju-o.js +0 -202
  264. package/dist/assets/MagicLinkACHDetailsPage-BeRQFYX3-CrMUHXPB.js +0 -1
  265. package/dist/assets/MagicLinkDomesticWireDetailsPage-C1DDZC2_-CWTR8m-D.js +0 -1
  266. package/dist/assets/MagicLinkInternationalWireDetailsPage-DyDp04Vn-UtoyLAup.js +0 -1
  267. package/dist/assets/MailingDetailsSection-IQJY4Yl0-C_b76P8R.js +0 -21
  268. package/dist/assets/StatementsPage-BRxP-Jwn-CibgKP9E.js +0 -58
  269. package/dist/assets/VendorACHDetailsPage-CuCteqbL-CrfAmoz7.js +0 -1
  270. package/dist/assets/VendorDomesticWireDetailsPage-Cr1fyB0u-N7obKAAe.js +0 -1
  271. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJFB7SEO-BecYrM5_.js +0 -1
  272. package/dist/assets/mapSpacerToTreeNode-DdwRxjlP-Bw1NwZTY.js +0 -1
  273. package/dist/assets/mapTimeframeBalancesToTreeNode-CR-gDA51-Dr9tcN9g.js +0 -1
  274. package/dist/assets/toCOABalancesWithID-BzzH0Io4-q6KiTxht.js +0 -1
@@ -1,5 +1,5 @@
1
- import{B as ue,aQ as Ne,b as ee,o as u,p as q,J as ce,V as s,bR as Ue,g as je,cI as Me,aV as ne,F as ke,y as oe,bw as Ve,bU as Fe,al as Ae,aR as qe,ae as de,u as He,gT as Je,am as Ke,a as Ge}from"./index-WEj6FS32.js";import{P as l,a as L}from"./sentry-B0WgNUxa.js";import{n as y}from"./mui-BTtN6lbG.js";import{P as d}from"./core-CIefpDlV.js";import{n as ae}from"./commonTypes-Q1WP-Ym3-Cmq2uCPt.js";import{F as Ye}from"./SetUpAccountSection-Mm8JelXc-DJkSxyLc.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]="5fd8bdb7-7ed9-4850-816f-d42415a7f83b",t._sentryDebugIdIdentifier="sentry-dbid-5fd8bdb7-7ed9-4850-816f-d42415a7f83b")}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)||Qe(t,e)||Xe(t,e)||et()}function Ze(t){if(Array.isArray(t))return t}function Qe(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 Xe(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 w=e,x=r,S=function(I){return t(w[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,w=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&&w(x)}):i.tag==="sync"&&!a.stripe&&w(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,w=a.onBlur,x=a.onFocus,S=a.onReady,E=a.onChange,I=a.onEscape,U=a.onClick,M=a.onLoadError,V=a.onLoaderStart,D=a.onNetworksChange,$=a.onConfirm,J=a.onCancel,B=a.onShippingAddressChange,N=a.onShippingRateChange,R=se("mounts <".concat(n,">")),_="elements"in R?R.elements:null,P="customCheckoutSdk"in R?R.customCheckoutSdk:null,T=l.useState(null),z=$e(T,2),g=z[0],W=z[1],j=l.useRef(null),F=l.useRef(null);k(g,"blur",w),k(g,"focus",x),k(g,"escape",I),k(g,"click",U),k(g,"loaderror",M),k(g,"loaderstart",V),k(g,"networkschange",D),k(g,"confirm",$),k(g,"cancel",J),k(g,"shippingaddresschange",B),k(g,"shippingratechange",N),k(g,"change",E);var K;S&&(e==="expressCheckout"?K=S:K=function(){S(g)}),k(g,"ready",K),l.useLayoutEffect(function(){if(j.current===null&&F.current!==null&&(_||P)){var O=null;P?O=P.createElement(e,m):_&&(O=_.create(e,m)),j.current=O,W(O),O&&O.mount(F.current)}},[_,P,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:F})},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 ze="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var mt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(ze,'"]')),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(ze).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,Q=null,X=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&&X!==null&&Q!==null){var i;o.removeEventListener("load",X),o.removeEventListener("error",Q),(i=o.parentNode)===null||i===void 0||i.removeChild(o),o=Ce(e)}}X=yt(r,n),Q=gt(n),o.addEventListener("load",X),o.addEventListener("error",Q)}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,De=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return De()}).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 De().then(function(i){return vt(i,r,o)})};const bt={containerHeight:new oe(656,720)},xt=y.div`
1
+ import{B as ue,aQ as Ne,b as ee,o as u,p as q,J as ce,V as s,bR as Ue,g as je,cI as Me,aV as ne,F as ke,y as oe,bw as Ve,bU as Fe,al as Ae,aR as qe,ae as de,u as He,gT as Je,am as Ke,a as Ge}from"./index-D4DdpT1f.js";import{P as l,a as L}from"./sentry-Dlcq8VjX.js";import{n as y}from"./mui-CooLgaJO.js";import{P as d}from"./core-CqdPXR9B.js";import{n as ae}from"./commonTypes-BElGElM--Bg_ac7b3.js";import{F as Ye}from"./SetUpAccountSection-D7Nf4cYj-UGNHCsDO.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]="9cae3ff1-861d-4fc3-8ff3-f2346897bc7e",t._sentryDebugIdIdentifier="sentry-dbid-9cae3ff1-861d-4fc3-8ff3-f2346897bc7e")}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)||Qe(t,e)||Xe(t,e)||et()}function Ze(t){if(Array.isArray(t))return t}function Qe(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 Xe(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 w=e,b=r,S=function(I){return t(w[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,w=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&&w(b)}):i.tag==="sync"&&!a.stripe&&w(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,w=a.onBlur,b=a.onFocus,S=a.onReady,E=a.onChange,I=a.onEscape,U=a.onClick,M=a.onLoadError,V=a.onLoaderStart,D=a.onNetworksChange,$=a.onConfirm,J=a.onCancel,B=a.onShippingAddressChange,N=a.onShippingRateChange,R=se("mounts <".concat(n,">")),_="elements"in R?R.elements:null,P="customCheckoutSdk"in R?R.customCheckoutSdk:null,T=l.useState(null),z=$e(T,2),g=z[0],W=z[1],j=l.useRef(null),F=l.useRef(null);k(g,"blur",w),k(g,"focus",b),k(g,"escape",I),k(g,"click",U),k(g,"loaderror",M),k(g,"loaderstart",V),k(g,"networkschange",D),k(g,"confirm",$),k(g,"cancel",J),k(g,"shippingaddresschange",B),k(g,"shippingratechange",N),k(g,"change",E);var K;S&&(e==="expressCheckout"?K=S:K=function(){S(g)}),k(g,"ready",K),l.useLayoutEffect(function(){if(j.current===null&&F.current!==null&&(_||P)){var O=null;P?O=P.createElement(e,m):_&&(O=_.create(e,m)),j.current=O,W(O),O&&O.mount(F.current)}},[_,P,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:F})},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 ze="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var mt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(ze,'"]')),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(ze).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,Q=null,X=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&&X!==null&&Q!==null){var i;o.removeEventListener("load",X),o.removeEventListener("error",Q),(i=o.parentNode)===null||i===void 0||i.removeChild(o),o=Ce(e)}}X=yt(r,n),Q=gt(n),o.addEventListener("load",X),o.addEventListener("error",Q)}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,De=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return De()}).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 De().then(function(i){return vt(i,r,o)})};const xt={containerHeight:new oe(656,720)},bt=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=>bt.containerHeight.valuePx(t.windowSize)};
27
+ max-height: ${t=>xt.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
- `,be=y.span`
74
+ `,xe=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:xe}}=ke.getLocalizedStrings(),Tt=y(Ke)`
85
+ `,{cardPayment:A,common:{footer:be}}=ke.getLocalizedStrings(),Tt=y(Ke)`
86
86
  color: ${t=>t.theme.colors.hero};
87
87
  text-align: center;
88
88
  margin-top: ${u.sp2};
89
- `,we=t=>`${t}_form`,Pe="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),[w,x]=L.useState(!1),[S,E]=L.useState(!1),I=ce(),U=t.cardSetupConfirmStatus.fetchState,M=t.addCardPaymentSourceStatus.fetchState,V=t.cardSetupIntentStatus.fetchState,[D,$]=L.useState(!1),J=async P=>{if(P.preventDefault(),!p||!a)return;const T=a.getElement(ye),z=a.getElement(Se),g=a.getElement(ve);(!T||!z||!g)&&$(!0),E(!0),c(!0),T!=null&&z!=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"||V==="In-Progress"||S===!0||r===!0,_=h||b||w||U==="In-Progress"||M==="In-Progress"||V==="In-Progress"||S===!0||r===!0;return s.jsx(jt,{windowSize:I,children:s.jsxs(wt,{onSubmit:J,id:we(Pe),children:[s.jsxs(It,{children:[s.jsx($t,{children:s.jsx(Ot,{children:s.jsx(ye,{options:N,onChange:P=>f(!!P.error)})})}),s.jsx(Lt,{children:s.jsxs(kt,{children:[s.jsx(be,{children:A.cardNumber}),s.jsx(Se,{options:N,onChange:P=>m(!!P.error)})]})}),s.jsx(Rt,{children:s.jsxs(At,{children:[s.jsx(be,{children:A.CVC}),s.jsx(ve,{options:N,onChange:P=>x(!!P.error)})]})})]}),t.cardSetupConfirmStatus.error||D?s.jsx(Be,{children:A.errorMsg}):null,s.jsx(qe,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:we(Pe),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),w=Ne(e.addCardPaymentSourceStatus.fetchState),x=e.addCardPaymentSourceStatus.fetchState;L.useEffect(()=>(c(["card"]),()=>{i(!1),b(""),a()}),[]),L.useEffect(()=>{a()},[t]),L.useEffect(()=>{w==="In-Progress"&&x==="Error"?(h(!1),setTimeout(()=>{i(!1)},2e3)):w==="In-Progress"&&x==="Completed"&&(c(["card"]),setTimeout(()=>{i(!1),h(!1)},2e3))},[w,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(Pt,{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])},zt={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}),Dt=y.img`
89
+ `,we=t=>`${t}_form`,Pe="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),[w,b]=L.useState(!1),[S,E]=L.useState(!1),I=ce(),U=t.cardSetupConfirmStatus.fetchState,M=t.addCardPaymentSourceStatus.fetchState,V=t.cardSetupIntentStatus.fetchState,[D,$]=L.useState(!1),J=async P=>{if(P.preventDefault(),!p||!a)return;const T=a.getElement(ye),z=a.getElement(Se),g=a.getElement(ve);(!T||!z||!g)&&$(!0),E(!0),c(!0),T!=null&&z!=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"||V==="In-Progress"||S===!0||r===!0,_=h||x||w||U==="In-Progress"||M==="In-Progress"||V==="In-Progress"||S===!0||r===!0;return s.jsx(jt,{windowSize:I,children:s.jsxs(wt,{onSubmit:J,id:we(Pe),children:[s.jsxs(It,{children:[s.jsx($t,{children:s.jsx(Ot,{children:s.jsx(ye,{options:N,onChange:P=>f(!!P.error)})})}),s.jsx(Lt,{children:s.jsxs(kt,{children:[s.jsx(xe,{children:A.cardNumber}),s.jsx(Se,{options:N,onChange:P=>m(!!P.error)})]})}),s.jsx(Rt,{children:s.jsxs(At,{children:[s.jsx(xe,{children:A.CVC}),s.jsx(ve,{options:N,onChange:P=>b(!!P.error)})]})})]}),t.cardSetupConfirmStatus.error||D?s.jsx(Be,{children:A.errorMsg}):null,s.jsx(qe,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:we(Pe),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),w=Ne(e.addCardPaymentSourceStatus.fetchState),b=e.addCardPaymentSourceStatus.fetchState;L.useEffect(()=>(c(["card"]),()=>{i(!1),x(""),a()}),[]),L.useEffect(()=>{a()},[t]),L.useEffect(()=>{w==="In-Progress"&&b==="Error"?(h(!1),setTimeout(()=>{i(!1)},2e3)):w==="In-Progress"&&b==="Completed"&&(c(["card"]),setTimeout(()=>{i(!1),h(!1)},2e3))},[w,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(Pt,{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])},zt={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}),Dt=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:b,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:w,updateCardPaymentModalState:x,cardPaymentView:S,resetCardPaymentViewState:E,cardSetupInProgress:I=!1,googleAPIKey:U,subscriptionBillingAddress:M,subscriptionBillingAddressSectionId:V})=>{const D=je(),$=ce(),{register:J}=Me(),B=D.mode==="light"?new ne(D.colors.brandColorJadeLight):new ne(D.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:R,text:_,subText:P},card_payment_method:T}}}=ke.getLocalizedStrings(),z=S.cardsList.length>0,g=S.cardsList[0]?.brand??"other",W=S.addCardPaymentSourceStatus.fetchState,j=Wt(T.header,T.titleText,T.protectedCardNo,S);let F;return z&&(F={header:j.header,title:j.title,subtitle:j.subtitle,status:j.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:s.jsx(Dt,{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",...J(`${n}.connected`,{validate:K=>i?K==="true":!0}),value:c?"true":"false"}),s.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:R,sectionTitle:R,defaultSectionTitle:_,defaultSectionSubTitle:P,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:w,style:p,icon:{element:s.jsx(Ve,{width:Z.iconWidthHeight.valuePx($),height:Z.iconWidthHeight.valuePx($)}),color:B},analytics:a,productType:"onboarding",resetCardPaymentViewState:E,cardPaymentSectionValues:F,cardPaymentView:S,updateCardPaymentModalState:x,referrer:"Onboarding",cardSetupInProgress:I}),Bt($,N.headers.billingAddress,V,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(Vt,{children:[s.jsx(Mt,{windowSize:t,isDisabled:c==="disabled",children:e}),s.jsx(Je,{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:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:w,updateCardPaymentModalState:b,cardPaymentView:S,resetCardPaymentViewState:E,cardSetupInProgress:I=!1,googleAPIKey:U,subscriptionBillingAddress:M,subscriptionBillingAddressSectionId:V})=>{const D=je(),$=ce(),{register:J}=Me(),B=D.mode==="light"?new ne(D.colors.brandColorJadeLight):new ne(D.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:R,text:_,subText:P},card_payment_method:T}}}=ke.getLocalizedStrings(),z=S.cardsList.length>0,g=S.cardsList[0]?.brand??"other",W=S.addCardPaymentSourceStatus.fetchState,j=Wt(T.header,T.titleText,T.protectedCardNo,S);let F;return z&&(F={header:j.header,title:j.title,subtitle:j.subtitle,status:j.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:s.jsx(Dt,{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",...J(`${n}.connected`,{validate:K=>i?K==="true":!0}),value:c?"true":"false"}),s.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:R,sectionTitle:R,defaultSectionTitle:_,defaultSectionSubTitle:P,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:w,style:p,icon:{element:s.jsx(Ve,{width:Z.iconWidthHeight.valuePx($),height:Z.iconWidthHeight.valuePx($)}),color:B},analytics:a,productType:"onboarding",resetCardPaymentViewState:E,cardPaymentSectionValues:F,cardPaymentView:S,updateCardPaymentModalState:b,referrer:"Onboarding",cardSetupInProgress:I}),Bt($,N.headers.billingAddress,V,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(Vt,{children:[s.jsx(Mt,{windowSize:t,isDisabled:c==="disabled",children:e}),s.jsx(Je,{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{g as $e,J as I,F as y,V as t,bB as le,aP as a,bN as De,o as s,ck as Oe,cl as _e,T as U,aT as Y,cm as we,r as Le,b as be,cn as Ae,aQ as Ve,co as Me,ap as We,cp as Be,cq as He,b3 as Ue,aD as B,cr as Ke,y as $,cs as Ee,ct as je,u as b,cu as ee,cd as N,cv as Se,a9 as Fe,ac as Ze,cw as qe,cx as Je,aJ as Qe,ai as D,cy as Xe,al as O,am as te,p as A,cz as Ge,ch as ke,ba as ie,cA as Ie,bL as Ye,cB as et}from"./index-WEj6FS32.js";import{P as ce,a as v}from"./sentry-B0WgNUxa.js";import{n as i}from"./mui-BTtN6lbG.js";import{oV as Ce,bg as X}from"./zeni-epic-state-DnAAAEmj.js";import{T as Re}from"./RoleWithToolTip-CkpqxMzB-CgYpd1vG.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.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]="48168aef-4053-4327-a2e7-6af3738ac0fe",e._sentryDebugIdIdentifier="sentry-dbid-48168aef-4053-4327-a2e7-6af3738ac0fe")}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)}],H=[{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(Qe(d==="off"?S:H));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(Xe,{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{g as $e,J as I,F as y,V as t,bB as le,aP as a,bN as De,o as s,ck as Oe,cl as _e,T as U,aT as Y,cm as we,r as Le,b as be,cn as Ae,aQ as Ve,co as Me,ap as We,cp as Be,cq as He,b3 as Ue,aD as B,cr as Ke,y as $,cs as Ee,ct as je,u as b,cu as ee,cd as N,cv as Se,a9 as Fe,ac as Ze,cw as qe,cx as Je,aJ as Qe,ai as D,cy as Xe,al as O,am as te,p as A,cz as Ge,ch as ke,ba as ie,cA as Ie,bL as Ye,cB as et}from"./index-D4DdpT1f.js";import{P as ce,a as v}from"./sentry-Dlcq8VjX.js";import{n as i}from"./mui-CooLgaJO.js";import{oV as Ce,bg as X}from"./zeni-epic-state-pmiItBju.js";import{T as Re}from"./RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.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]="5df233f7-e587-41dc-a665-6c74bed915db",e._sentryDebugIdIdentifier="sentry-dbid-5df233f7-e587-41dc-a665-6c74bed915db")}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)}],H=[{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(Qe(d==="off"?S:H));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(Xe,{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,P as n}from"./sentry-B0WgNUxa.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]="1e21bcae-92bc-4f72-b3b7-b9f34ad2806c",t._sentryDebugIdIdentifier="sentry-dbid-1e21bcae-92bc-4f72-b3b7-b9f34ad2806c")}catch{}})();const c="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,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(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},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,...p},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,...f?{"aria-label":f}:{}},l?a:null,m||x)};var P=k;export{P as default};
1
+ import{a as h,P as n}from"./sentry-Dlcq8VjX.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]="1e21bcae-92bc-4f72-b3b7-b9f34ad2806c",t._sentryDebugIdIdentifier="sentry-dbid-1e21bcae-92bc-4f72-b3b7-b9f34ad2806c")}catch{}})();const c="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,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(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},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,...p},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,...f?{"aria-label":f}:{}},l?a:null,m||x)};var P=k;export{P as default};
@@ -1,4 +1,4 @@
1
- import{F as D,V as t,a8 as B,o as c,c1 as N,a$ as U,u as V,d6 as q,aq as G,al as T,d7 as H,p as v}from"./index-WEj6FS32.js";import{a as $}from"./sentry-B0WgNUxa.js";import{n as i}from"./mui-BTtN6lbG.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]="6eb667d4-6ca6-4cfd-a53e-986f8c15c143",e._sentryDebugIdIdentifier="sentry-dbid-6eb667d4-6ca6-4cfd-a53e-986f8c15c143")}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,c1 as N,a$ as U,u as V,d6 as q,aq as G,al as T,d7 as H,p as v}from"./index-D4DdpT1f.js";import{a as $}from"./sentry-Dlcq8VjX.js";import{n as i}from"./mui-CooLgaJO.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]="6eb667d4-6ca6-4cfd-a53e-986f8c15c143",e._sentryDebugIdIdentifier="sentry-dbid-6eb667d4-6ca6-4cfd-a53e-986f8c15c143")}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{J as m,V as r,db as b,dc as v,dd as y,bx as z,o as e,p as n,y as a,a as c,u as p}from"./index-WEj6FS32.js";import{c as i,n as g,k as f}from"./mui-BTtN6lbG.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]="05eb52d8-c30a-4d1e-8c89-2ccaf9de7ddf",o._sentryDebugIdIdentifier="sentry-dbid-05eb52d8-c30a-4d1e-8c89-2ccaf9de7ddf")}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")},R=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const d=m();return r.jsxs(B,{cardPromoType:$,windowSize:d,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:d,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:d,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:d,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:d,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const d=m();return r.jsxs(W,{cardPromoType:$,windowSize:d,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:d,forDashboard:s,children:r.jsx(b,{})}),r.jsx(k,{windowSize:d,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:d,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:d,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
1
+ import{J as m,V as r,db as b,dc as v,dd as y,bx as z,o as e,p as n,y as a,a as c,u as p}from"./index-D4DdpT1f.js";import{c as i,n as g,k as f}from"./mui-CooLgaJO.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]="05eb52d8-c30a-4d1e-8c89-2ccaf9de7ddf",o._sentryDebugIdIdentifier="sentry-dbid-05eb52d8-c30a-4d1e-8c89-2ccaf9de7ddf")}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")},R=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const d=m();return r.jsxs(B,{cardPromoType:$,windowSize:d,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:d,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:d,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:d,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:d,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const d=m();return r.jsxs(W,{cardPromoType:$,windowSize:d,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:d,forDashboard:s,children:r.jsx(b,{})}),r.jsx(k,{windowSize:d,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:d,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:d,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{J as f,F as r,V as n,bR as y,r as l,y as c,o as i,aq as w,al as $,af as j,bv as P,eM as v,u as t}from"./index-WEj6FS32.js";import{n as o}from"./mui-BTtN6lbG.js";import"./sentry-B0WgNUxa.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e463b98b-9fce-4463-92cf-5a5da0ca8bb8",e._sentryDebugIdIdentifier="sentry-dbid-e463b98b-9fce-4463-92cf-5a5da0ca8bb8")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},_=o.div`
1
+ import{J as f,F as r,V as n,bR as y,r as l,y as c,o as i,aq as w,al as $,af as j,bv as P,eM as v,u as t}from"./index-D4DdpT1f.js";import{n as o}from"./mui-CooLgaJO.js";import"./sentry-Dlcq8VjX.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e463b98b-9fce-4463-92cf-5a5da0ca8bb8",e._sentryDebugIdIdentifier="sentry-dbid-e463b98b-9fce-4463-92cf-5a5da0ca8bb8")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},_=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{J as O,F as u,V as i,r as k,o,y as a,p as c,fN as I,a as T,af as E,bv as B,eM as D,fE as W,aV as h,ai as f,u as r}from"./index-WEj6FS32.js";import{n}from"./mui-BTtN6lbG.js";import _ from"./QBOConnectionDialog-C-v9bhUW-CtiRv4Zj.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]="94d27169-4942-4c0f-9a0f-dfd54fbf44e1",e._sentryDebugIdIdentifier="sentry-dbid-94d27169-4942-4c0f-9a0f-dfd54fbf44e1")}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])},F={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(N,{windowSize:s,children:[s==="small"?i.jsx(R,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(V,{windowSize:s,children:S})]}),i.jsxs(A,{windowSize:s,children:[i.jsxs(H,{windowSize:s,children:[i.jsxs(Q,{children:[i.jsx(q,{}),i.jsx(J,{windowSize:s}),i.jsx(L,{})]}),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(M,{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(_,{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(W,{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{J as O,F as u,V as i,r as k,o,y as a,p as c,fN as I,a as T,af as E,bv as B,eM as D,fE as W,aV as h,ai as f,u as r}from"./index-D4DdpT1f.js";import{n}from"./mui-CooLgaJO.js";import _ from"./QBOConnectionDialog-BhmH5aji-CM5T8oTr.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]="45dab9da-8e60-404d-a567-808323b2bb34",e._sentryDebugIdIdentifier="sentry-dbid-45dab9da-8e60-404d-a567-808323b2bb34")}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])},F={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(N,{windowSize:s,children:[s==="small"?i.jsx(R,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(V,{windowSize:s,children:S})]}),i.jsxs(A,{windowSize:s,children:[i.jsxs(H,{windowSize:s,children:[i.jsxs(Q,{children:[i.jsx(q,{}),i.jsx(J,{windowSize:s}),i.jsx(L,{})]}),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(M,{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(_,{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(W,{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`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as W,u as L,g as M,J as G,F as T,a9 as J,aQ as Q,aJ as X,cE as H,V as r,bB as K,ac as Y,aR as Z,o as b,g5 as ee}from"./index-WEj6FS32.js";import{a as U}from"./sentry-B0WgNUxa.js";import{n as c}from"./mui-BTtN6lbG.js";import{b as ae,f as te,o as B,l as $}from"./FollowStepsSection-DhVGeocZ-Ddk_z58q.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.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]="10834090-b4dc-465d-a540-b30f6b37836a",e._sentryDebugIdIdentifier="sentry-dbid-10834090-b4dc-465d-a540-b30f6b37836a")}catch{}})();const _="reimbursementApprovalRuleDetailPage",C="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const V=M(),S=G(),l=T.getLocalizedStrings().commonSetUp.approval,w=T.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=J({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=Q(u?.fetchState),{upperBound:P}=x,{allApprovalRules:i,allAccountingClasses:F,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 U.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=X(d);H(()=>z(D,O))}});return()=>{n.unsubscribe()}}),U.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&A()},[R,u?.fetchState,A]),r.jsxs(ie,{children:[r.jsx(K,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:V.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:k(_),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?w.amountPerRemiGreaterLabel:w.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-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:I,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:F,stepsInfo:x[I],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:k(_),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:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[C]: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:$},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},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),k=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
1
+ import{y as W,u as L,g as M,J as G,F as T,a9 as J,aQ as Q,aJ as X,cE as H,V as r,bB as K,ac as Y,aR as Z,o as b,g5 as ee}from"./index-D4DdpT1f.js";import{a as U}from"./sentry-Dlcq8VjX.js";import{n as c}from"./mui-CooLgaJO.js";import{b as ae,f as te,o as B,l as $}from"./FollowStepsSection-Crd9GwnW-RQu2gQ-V.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.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]="b52ac675-d275-4142-8dee-8fd71cbc761e",e._sentryDebugIdIdentifier="sentry-dbid-b52ac675-d275-4142-8dee-8fd71cbc761e")}catch{}})();const _="reimbursementApprovalRuleDetailPage",C="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const V=M(),S=G(),l=T.getLocalizedStrings().commonSetUp.approval,w=T.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=J({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=Q(u?.fetchState),{upperBound:P}=x,{allApprovalRules:i,allAccountingClasses:F,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 U.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=X(d);H(()=>z(D,O))}});return()=>{n.unsubscribe()}}),U.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&A()},[R,u?.fetchState,A]),r.jsxs(ie,{children:[r.jsx(K,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:V.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:k(_),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?w.amountPerRemiGreaterLabel:w.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-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:I,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:F,stepsInfo:x[I],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:k(_),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:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[C]: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:$},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},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),k=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{g as F,J as N,F as j,V as t,bB as G,T as V,aP as m,o,y as r,al as M,aN as P,bS as T,co as q,cp as J,cq as K,c_ as O,u as l,b9 as Z,a as k,b8 as Q,p as z,cZ as X,bt as Y,b as ee}from"./index-WEj6FS32.js";import{n as i}from"./mui-BTtN6lbG.js";import{a as te}from"./sentry-B0WgNUxa.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.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]="5911d475-f371-4749-b1c5-aa44c5da3f7e",e._sentryDebugIdIdentifier="sentry-dbid-5911d475-f371-4749-b1c5-aa44c5da3f7e")}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)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:g=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[x,w]=te.useState(!1),n=N(),{range:u}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(he,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(le,{children:[t.jsx(D,{}),t.jsx(se,{}),t.jsx(D,{})]}),u.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),h.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(R,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},`${d.subType}_${_}`)),h.actors.map(d=>t.jsxs(A,{children:[t.jsxs(R,{children:[d.firstName," ",d.lastName]}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},d.userId))]},H))})}),x?t.jsx(q,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(J,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
1
+ import{g as F,J as N,F as j,V as t,bB as G,T as V,aP as m,o,y as r,al as M,aN as P,bS as T,co as q,cp as J,cq as K,c_ as O,u as l,b9 as Z,a as k,b8 as Q,p as z,cZ as X,bt as Y,b as ee}from"./index-D4DdpT1f.js";import{n as i}from"./mui-CooLgaJO.js";import{a as te}from"./sentry-Dlcq8VjX.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.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]="5911d475-f371-4749-b1c5-aa44c5da3f7e",e._sentryDebugIdIdentifier="sentry-dbid-5911d475-f371-4749-b1c5-aa44c5da3f7e")}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)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:g=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[x,w]=te.useState(!1),n=N(),{range:u}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(he,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(le,{children:[t.jsx(D,{}),t.jsx(se,{}),t.jsx(D,{})]}),u.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),h.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(R,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},`${d.subType}_${_}`)),h.actors.map(d=>t.jsxs(A,{children:[t.jsxs(R,{children:[d.firstName," ",d.lastName]}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},d.userId))]},H))})}),x?t.jsx(q,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(J,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=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,J as Pt,g as Bt,cc as Nt,y as m,F as et,gg as Lt,gi as _t,gj as Ot,V as t,co as Ae,cp as Me,cq as Re,bB as Pe,aP as y,bo as Wt,dt as Et,gk as Ft,gv as Be,o as a,gl as Ne,fg as b,go as w,fj as x,aN as Le,ff as _e,b as V,gq as Oe,aR as Kt,ao as Ut,gr as Vt,gs as re,bx as Gt,gt as Ht,x as Yt,a as Jt,d as qt,al as tt,b9 as it,p as G,am as Zt,bU as Qt,ai as Xt,gN as ei,gJ as ti,u as c,ch as ii,cY as ai}from"./index-WEj6FS32.js";import{a as p}from"./sentry-B0WgNUxa.js";import{n as r}from"./mui-BTtN6lbG.js";import{a as ri}from"./liveblocks-CrODURpx.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-DnAAAEmj.js";import si from"./InvoiceUploadSection-CW4hHmAi-DKFSw8te.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CIefpDlV.js";import"./lottie-hIwSKdQS.js";import"./recharts-BfU_srYC.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./AttachmentView-CfacSLcU-gwYezuYM.js";import"./uploadReceipts-DJRtId-4-B1jpX457.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]="5cad9895-49fc-4f43-a6d9-a59d72624a7d",e._sentryDebugIdIdentifier="sentry-dbid-5cad9895-49fc-4f43-a6d9-a59d72624a7d")}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 Jt("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:k})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[Z,Q]=p.useState("approved"),N=p.useRef(null),[S,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[z,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),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ye?.():S.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,j=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,je=e.remiDetails?.amount,Se=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=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),q(!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,zt=di(e.duplicateLineByLineId),ze=e.duplicateReimbursementStatus.fetchState==="Completed"&&zt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{k?.threadId!=null&&k?.companyId!=null&&k?.entityType!=null&&K(k)},[k,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=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:S.title}),descriptionComponent:t.jsx(Me,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.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(zi,{}):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:kt,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(Je,{windowSize:o,children:t.jsx(qe,{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}):ze?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(Ye,{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,j.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:j.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:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.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(Je,{windowSize:o,children:[t.jsx(qe,{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(Ye,{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}):ze?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:ke=>{ke!=null&&(we.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:j.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}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,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)}),j.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(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:Se,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(),Y===!0&&J(!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:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,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:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(ki,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>J(!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(Si,{})}):null,!B&&Ct===!0?t.jsx(ji,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>J(!Y),"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:z?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:z?{companyName:z.companyName,companyId:z.companyId,entityId:z.entityId,entityType:z.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,J as Pt,g as Bt,cc as Nt,y as m,F as et,gg as Lt,gi as _t,gj as Ot,V as t,co as Ae,cp as Me,cq as Re,bB as Pe,aP as y,bo as Wt,dt as Et,gk as Ft,gv as Be,o as a,gl as Ne,fg as b,go as w,fj as x,aN as Le,ff as _e,b as V,gq as Oe,aR as Kt,ao as Ut,gr as Vt,gs as re,bx as Gt,gt as Ht,x as Yt,a as Jt,d as qt,al as tt,b9 as it,p as G,am as Zt,bU as Qt,ai as Xt,gN as ei,gJ as ti,u as c,ch as ii,cY as ai}from"./index-D4DdpT1f.js";import{a as p}from"./sentry-Dlcq8VjX.js";import{n as r}from"./mui-CooLgaJO.js";import{a as ri}from"./liveblocks-DXNKZvWw.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-pmiItBju.js";import si from"./InvoiceUploadSection-fjn4uF_l-DBvp2GNb.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CqdPXR9B.js";import"./lottie-BGCmjFH9.js";import"./recharts-DHPcYqKb.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./AttachmentView-vlVaH4YF-DjHAa-jm.js";import"./uploadReceipts-DJRtId-4-D8fSq3Gx.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]="9a535ffd-b937-4c2f-867b-f62f0160f90a",e._sentryDebugIdIdentifier="sentry-dbid-9a535ffd-b937-4c2f-867b-f62f0160f90a")}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 Jt("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:k})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[Z,Q]=p.useState("approved"),N=p.useRef(null),[S,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[z,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),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ye?.():S.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,j=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,je=e.remiDetails?.amount,Se=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=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),q(!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,zt=di(e.duplicateLineByLineId),ze=e.duplicateReimbursementStatus.fetchState==="Completed"&&zt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{k?.threadId!=null&&k?.companyId!=null&&k?.entityType!=null&&K(k)},[k,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=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:S.title}),descriptionComponent:t.jsx(Me,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.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(zi,{}):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:kt,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(Je,{windowSize:o,children:t.jsx(qe,{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}):ze?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(Ye,{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,j.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:j.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:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.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(Je,{windowSize:o,children:[t.jsx(qe,{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(Ye,{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}):ze?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:ke=>{ke!=null&&(we.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:j.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}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,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)}),j.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(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:Se,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(),Y===!0&&J(!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:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,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:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(ki,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>J(!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(Si,{})}):null,!B&&Ct===!0?t.jsx(ji,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>J(!Y),"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:z?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:z?{companyName:z.companyName,companyId:z.companyId,entityId:z.entityId,entityType:z.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,g as S,J as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,ae as d,F,o as t,aq as ce,M as me,aT as E,am as pe,y as xe,p as z,cD as he,aU as ue,ba as ge,u as we}from"./index-WEj6FS32.js";import{a as j}from"./sentry-B0WgNUxa.js";import{n as s}from"./mui-BTtN6lbG.js";import{FG as je,bT as be}from"./zeni-epic-state-DnAAAEmj.js";import{f as fe}from"./VideoPopup-DM5Buf4j-CFLugl6n.js";import{M as v}from"./usp-line-BBd1wKwW-ZROsAmzr.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./VideoPlayer-Dy6rImBJ-QOYygi-i.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]="c0476835-e8ac-4f20-9392-8ba2574ebf6b",i._sentryDebugIdIdentifier="sentry-dbid-c0476835-e8ac-4f20-9392-8ba2574ebf6b")}catch{}})();const V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
1
+ import{aw as ne,g as S,J as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,ae as d,F,o as t,aq as ce,M as me,aT as E,am as pe,y as xe,p as z,cD as he,aU as ue,ba as ge,u as we}from"./index-D4DdpT1f.js";import{a as j}from"./sentry-Dlcq8VjX.js";import{n as s}from"./mui-CooLgaJO.js";import{FG as je,bT as fe}from"./zeni-epic-state-pmiItBju.js";import{f as be}from"./VideoPopup-BLRMOVnP-CAsXJ3um.js";import{M as v}from"./usp-line-BBd1wKwW-CZ22OQAj.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./VideoPlayer-Cfh9VY-B-CLXI1KSM.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]="01c811ff-ad3f-4cb2-9529-38f492dcd4c2",i._sentryDebugIdIdentifier="sentry-dbid-01c811ff-ad3f-4cb2-9529-38f492dcd4c2")}catch{}})();const V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -58,9 +58,9 @@ import{aw as ne,g as S,J as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,a
58
58
  align-items: center;
59
59
  text-align: start;
60
60
  box-sizing: border-box;
61
- `,b=s(ge)`
61
+ `,f=s(ge)`
62
62
  color: ${i=>i.theme.colors.champion};
63
- `,f=s(ue)`
63
+ `,b=s(ue)`
64
64
  color: ${i=>i.theme.colors.champion};
65
65
  `,y=s(E)`
66
66
  color: ${i=>i.theme.colors.champion};
@@ -81,4 +81,4 @@ import{aw as ne,g as S,J as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,a
81
81
  margin: ${t.sp3} auto;
82
82
  max-width: 772px;
83
83
  color: ${i=>i.theme.colors.hero};
84
- `,r=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(N,{windowSize:o,children:e.jsx(q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(H,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(H,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.simplestText.bold}),e.jsx(b,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.aiPoweredText.bold}),e.jsx(b,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.multiLevelApprovalText.bold}),e.jsx(b,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(N,{windowSize:o,children:e.jsx(q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},He=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:Q,analytics:x,onSetupButtonClick:W,onCreateNewRemiButtonClick:X,onBackClick:K,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[re,R]=j.useState(!1),te=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),se=je(P.loggedInUserRoleMap),w=be(P.loggedInUserRoleMap)&&!se,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,B=w?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const A=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(fe,{onCancelClick:()=>{ie(!1)},videoUrl:Q,"data-testid":a("remi-promo-page-video-popup")}):null,re===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:r.title,backgroundColor:te.colors.grey4,onBackClick:K,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:B}):e.jsx(ke,{children:B}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:U&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:A,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:X,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[r.terms.createTerms1,e.jsx(d,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(d,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:A,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:W,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[r.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{He as default};
84
+ `,r=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(N,{windowSize:o,children:e.jsx(q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(H,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(H,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(b,{children:r.simplestText.bold}),e.jsx(f,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx(b,{children:r.aiPoweredText.bold}),e.jsx(f,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx(b,{children:r.multiLevelApprovalText.bold}),e.jsx(f,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(N,{windowSize:o,children:e.jsx(q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},He=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:Q,analytics:x,onSetupButtonClick:W,onCreateNewRemiButtonClick:X,onBackClick:K,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[re,R]=j.useState(!1),te=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),se=je(P.loggedInUserRoleMap),w=fe(P.loggedInUserRoleMap)&&!se,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,B=w?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const A=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(be,{onCancelClick:()=>{ie(!1)},videoUrl:Q,"data-testid":a("remi-promo-page-video-popup")}):null,re===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:r.title,backgroundColor:te.colors.grey4,onBackClick:K,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:B}):e.jsx(ke,{children:B}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:U&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:A,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:X,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[r.terms.createTerms1,e.jsx(d,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(d,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:A,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:W,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[r.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{He as default};
@@ -1,4 +1,4 @@
1
- import{g as Ee,J as Ve,aQ as N,a9 as qe,cE as Ge,F as Te,aV as Ce,V as t,f9 as Je,p as J,y as s,bB as Ze,T as Qe,ac as Ye,fs as ve,dO as Ke,ft as Xe,bw as et,dE as tt,aR as it,o as a,fv as nt,u as n,ch as ot,cI as at,er as lt,fE as ke,fF as $e,gf as st,r as rt,aP as Pe,a as Ae,bL as ct,ai as dt,bt as ut}from"./index-WEj6FS32.js";import{a as o}from"./sentry-B0WgNUxa.js";import{n as i}from"./mui-BTtN6lbG.js";import{bJ as mt}from"./zeni-epic-state-DnAAAEmj.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CmVwCxA2-BL_6rNZZ.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.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]="99593310-cdc0-4c33-93a6-cc7dac36b1b3",e._sentryDebugIdIdentifier="sentry-dbid-99593310-cdc0-4c33-93a6-cc7dac36b1b3")}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=Ve(),D=Ee(),{formState:{errors:Q},trigger:Y}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!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(St,{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(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!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:T=>{T.stopPropagation(),V(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{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{g as Ee,J as Ve,aQ as N,a9 as qe,cE as Ge,F as Te,aV as Ce,V as t,f9 as Je,p as J,y as s,bB as Ze,T as Qe,ac as Ye,fs as ve,dO as Ke,ft as Xe,bw as et,dE as tt,aR as it,o as a,fv as nt,u as n,ch as ot,cI as at,er as lt,fE as ke,fF as $e,gf as st,r as rt,aP as Pe,a as Ae,bL as ct,ai as dt,bt as ut}from"./index-D4DdpT1f.js";import{a as o}from"./sentry-Dlcq8VjX.js";import{n as i}from"./mui-CooLgaJO.js";import{bJ as mt}from"./zeni-epic-state-pmiItBju.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BGFTh8Ed-BM9KBkkU.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.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]="a930c1c3-fca8-4c3b-bb51-93389729385d",e._sentryDebugIdIdentifier="sentry-dbid-a930c1c3-fca8-4c3b-bb51-93389729385d")}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=Ve(),D=Ee(),{formState:{errors:Q},trigger:Y}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!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(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!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:T=>{T.stopPropagation(),V(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{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`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -9,9 +9,9 @@ import{g as Ee,J as Ve,aQ as N,a9 as qe,cE as Ge,F as Te,aV as Ce,V as t,f9 as J
9
9
  width: 100%;
10
10
  flex-direction: column;
11
11
  justify-content: flex-start;
12
- `,wt=i.div`
13
- display: flex;
14
12
  `,bt=i.div`
13
+ display: flex;
14
+ `,wt=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
16
16
  color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
17
17
  `,St=i(dt)`
@@ -103,7 +103,7 @@ import{g as Ee,J as Ve,aQ as N,a9 as qe,cE as Ge,F as Te,aV as Ce,V as t,f9 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",Kt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Q,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:b,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:K,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ie,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"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!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 Ue=z.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),He=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const w=fe.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&K(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.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"),U(m.account.selectedOption,C.id,C.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(()=>He(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Se,ce=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new Ce(W.colors.brandColorJadeLight):new Ce(W.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?I(!0):Y?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!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:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Q,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ye,{...z,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Xe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,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:E,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"||Ie.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",Kt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Q,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:w,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:K,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ie,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),be=N(se.fetchState),we=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"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||be==="In-Progress"&&se.fetchState==="Completed"||we==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,be,se.fetchState,we,re.fetchState]);const Ue=z.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),He=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const b=fe.find(me=>me.id===m.fundingAccount.selectedOption);b!=null&&K(m.fundingAccount.selectedOption,b.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const b=m.account.allOptions.find(me=>me.value===m.account.selectedOption);b!=null&&typeof b.label=="string"&&l.trackConnectBankLink(b.value,b.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(G)){const b=R[G];w(b)}};o.useEffect(()=>{const A=z.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>He(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Se,ce=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new Ce(W.colors.brandColorJadeLight):new Ce(W.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?I(!0):Y?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!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:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Q,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ye,{...z,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Xe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,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:E,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"||Ie.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`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;