@zeniai/web-cockpit-ui 1.14.7-dev → 1.14.8-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 (230) hide show
  1. package/dist/assets/{ACHDetailsPage-CYMIIaPh-C8Zl6MLV.js → ACHDetailsPage-HYH4LhGK-DEBeThZX.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-DpQIi2ZW-BO0NE_2F.js → AIPerformancePage-BnHyhoNh-lxWX9fyZ.js} +35 -35
  3. package/dist/assets/{AccountInfoPage-Sh-82JXU-CKtI4bnL.js → AccountInfoPage-ehy9LEs3-DQuaJuQC.js} +5 -5
  4. package/dist/assets/{AccountInfoPageContent-CsHvwqHd-BlW8CgcU.js → AccountInfoPageContent-BpNoLQEh-DUUWW7P_.js} +13 -13
  5. package/dist/assets/{AccountReconDetailsDrawerPage-DlKlKwh2-DpdK7fsT.js → AccountReconDetailsDrawerPage-KuO_6NjT-BhkhqQIK.js} +16 -16
  6. package/dist/assets/{AccountRow-CtIoeB6x-B01gigKX.js → AccountRow-CKtmIbKO-BzBAql1b.js} +17 -17
  7. package/dist/assets/{AccountsPromoCardStack-XGoMEJWB-ClZD8Pkf.js → AccountsPromoCardStack-BKVvUpdv-BiLayNkQ.js} +15 -15
  8. package/dist/assets/{AddAddressForCardDrawer-C6Sfh784-BO6CLNaD.js → AddAddressForCardDrawer-BebYNJoP-DW01HmxA.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-CzD2AhWP-GEi12jel.js → AddToWalletPage-BQfPsknz-CM3di5Tf.js} +13 -13
  10. package/dist/assets/{AgingReportsPage-D9YcQ7A--jEVrKNWY.js → AgingReportsPage-DkCyQw18-D1u9Upzc.js} +7 -7
  11. package/dist/assets/{AllUserItems-BtS-YtE0-oBJempiY.js → AllUserItems-D-FQ96gE-DS0pdT0L.js} +7 -7
  12. package/dist/assets/{ApAgingDetailPage-BTJqRp9j-CVJ5DZ9g.js → ApAgingDetailPage-EI4Kx_Xo-DJ1F7n27.js} +4 -4
  13. package/dist/assets/{AppBasePage-B5fgkJHL-nKspGTEB.js → AppBasePage-D4QmiB4N-Cv0_LA55.js} +4 -4
  14. package/dist/assets/{AppDrawerContent-C1lzepXw-Dt703jdK.js → AppDrawerContent-BF8Abz2Y-C4CgYwFq.js} +6 -6
  15. package/dist/assets/{ApprovalRulesSettingsPage-Bqt15rR_-CJ2-js2Y.js → ApprovalRulesSettingsPage-tsucbdIk-BvetjtCF.js} +7 -7
  16. package/dist/assets/{ArAgingChart-BGVvhkR5-CfmO25FB.js → ArAgingChart-CIZs2s3O-DsHvPG7Q.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-Ddp7z3e8-BWaOoITE.js → ArAgingDetailPage-cC50pBdB-DAxa4kv_.js} +2 -2
  18. package/dist/assets/{AttachmentView-pcpYs-s8-D808dzO5.js → AttachmentView-Bpla0aBf-CEmozm2v.js} +5 -5
  19. package/dist/assets/{BankAccountSection-CmXQQBck-BXf6w0tF.js → BankAccountSection-DhDiqg0D-C1fQqXil.js} +4 -4
  20. package/dist/assets/{BankAccountWarningSection-Dp7qMaI2-DCN96rsg.js → BankAccountWarningSection-_BSb8rEd-lAbGdxcF.js} +5 -5
  21. package/dist/assets/{BankConnectionsSettingsPage-ldzD1a4O-CXgyrIw4.js → BankConnectionsSettingsPage-ovzOgVIi-D87I9OOK.js} +38 -38
  22. package/dist/assets/{BillDetailPage-CBubcYMe-BO_dFsg-.js → BillDetailPage-C6NJGbua-D_fc-7GH.js} +11 -11
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-BxiRr1tP-COYx8jcO.js → BillPayApprovalRuleDetailPage-DK34f2_B-CSwpjVbx.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-CLBGuxUe-fnAlfa5X.js → BillPayApprovalRulesPage-uT7vadIp-DX4vmU2u.js} +8 -8
  25. package/dist/assets/{BillPayPromoPage-C3takK8D-DwgwIjWq.js → BillPayPromoPage-DyvWrXiT-3xQsLUHe.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-CweOkcc2-D46-_5BW.js → BillPaySetUpPage-DQUGXwzL-Dnj5yaWm.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-BQSZ6DMP-DRARmVD3.js → BillingSettingsPage-zTBJHq7Y-BV6Ca01p.js} +7 -7
  28. package/dist/assets/{BillsBulkReviewDrawerPage-3trPH78u-CF22gH7n.js → BillsBulkReviewDrawerPage-qYfFPFRf-BHVDK8xO.js} +1 -1
  29. package/dist/assets/{BoxItem-Bf7JemSM-D8tvXCvN.js → BoxItem-CTPuYGrU-DYtDSgqa.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-DXODyk9C-B5e28vsE.js → BusinessVerificationPage-BFJpNsiW-DInJr7ZP.js} +8 -8
  31. package/dist/assets/{CardNumberSubText-ByVXSDZX-CD-Gw7wf.js → CardNumberSubText-LPyLf3pY-CxLdtzot.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-9RLOXq5b-DSEoSjiZ.js → CashbackDetailPage-ByJDF7cH-jwINHAlE.js} +23 -23
  33. package/dist/assets/{ChargeCardDetailPage-lkNsxEdO-e-8D7tkI.js → ChargeCardDetailPage-DjbwN3eA-BLSeog5S.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-DV25pQMP-BgesY_b4.js → ChargeCardListPage-BcFdegbn-DKuu9f6F.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-CSWl05jK-CRlk7PbR.js → ChargeCardListTable-BIOmPiWw-D8SfaL8P.js} +25 -25
  36. package/dist/assets/ChargeCardPromoPage-D7WfGZCc-DqWg0bDn.js +219 -0
  37. package/dist/assets/{ChargeCardSetupPage-7mEdImT--BWhFbFIQ.js → ChargeCardSetupPage-DCjJd2bu-DLt9KXzY.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-D_rKdZ5c-DUDd82r_.js → ChargeCardStatementsPage-YZLslSfM-DTP8_5Q0.js} +3 -3
  39. package/dist/assets/{ChargeCardUtils-BB7l65Bf-DfL6sW6K.js → ChargeCardUtils-Bj-TvntU-Dg5OHLzk.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-hsrWeA5X-B3bQwtbG.js → ChaseOverlay-D5CGgOY9-B_78AAMx.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-CZNH4rCm-CxSsvi_m.js → CheckDepositDrawerPage-CGicBOjt-D-PwWbfO.js} +19 -19
  42. package/dist/assets/{CollapsableReportTable-C73RBmaZ-A1Br721z.js → CollapsableReportTable-UQFDb8XE-4tPDRPlF.js} +46 -46
  43. package/dist/assets/{CompanyOfficerDetailsSection-CZWTSWyp-BOVUWJjT.js → CompanyOfficerDetailsSection-CHSL02sQ-B9TP8k6M.js} +34 -34
  44. package/dist/assets/{CompanyPassportCard-D-hYeDRN-Bo9rwkQb.js → CompanyPassportCard-Byoyj6z--BlTpOAaU.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-fQ60DR7u-DD7YvAPU.js → CompanyPassportPage-CJzVGPMf-CO-upSIX.js} +12 -12
  46. package/dist/assets/CompleteProfile-CGaFSQZ5-D40jt5XK.js +36 -0
  47. package/dist/assets/{ConfettiBurst-D5XTvsuG-Dl2X4lye.js → ConfettiBurst-C6in2R-G-B86Veyix.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-7KdDJirx--0K-JjCB.js → CreateOrEditVendorPage-HV8sXBZp-MEsDNOD9.js} +10 -10
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BNJLUnlH-D5HY42Lo.js → CreditCardPaymentDrawerPage-CcN3B0mF-C-aA8CxZ.js} +15 -15
  50. package/dist/assets/{CreditCardPaymentPlgSection-BwqznNRc-DXBqgi-A.js → CreditCardPaymentPlgSection-dBWHuBiS-md7FwEbI.js} +10 -10
  51. package/dist/assets/{CurrencySelectField-PwurThUn-qsqObS4L.js → CurrencySelectField-DLqb-9fp-mhS9VcnO.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CHJLyOyf-vC6AUxAJ.js → CustomerOnboardingActivationPage-Bf64O2cX-OUwG2YXT.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-ILwY2ADL-DIj_DN1o.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BqdhqyL7-D5d_8a27.js → CustomerOnboardingDetailPageSkeleton-DbbrMwW5-CFydRVir.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DDio10hZ-Bwj4xg2w.js → CustomerOnboardingNoStepsPage-DZGpH4MZ-T0P42e-W.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-k2OYvIqe-DW9-8aDi.js → CustomerOnboardingPage-BfJlxXNX-CUa70VM1.js} +9 -9
  57. package/dist/assets/CustomerOnboardingProductSuitePage-BJIVmVlG-CgGO5C2r.js +202 -0
  58. package/dist/assets/{Dashboard-DhMPjLVy-BPpidTU7.js → Dashboard-fGyiceKA-BzN0eOpe.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-C9YvD_24-CnK8XRxa.js → DashboardReportPage-DL5dB1SI-DEQ-kpwn.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-BYFOUvho-D1tjwPkv.js → DepositAccTransactionItem-Dyfob6gX-CX7faNLY.js} +4 -4
  61. package/dist/assets/{DepositAccTransactionListPage-DeN4-lBP-CBJVTEU-.js → DepositAccTransactionListPage-DrEbXdWa-BNgdFMXM.js} +7 -7
  62. package/dist/assets/{DocumentSecurityBanner-6cQ2cW7e-Bf5Osic5.js → DocumentSecurityBanner-rDtPu8vH-D4_h4X4u.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-BmMEth4c-Duh2OS1c.js → DomesticWireDetailsPage-BVmsi9ei-CUemBchq.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-D0_pmb7k-BhK-Q9wQ.js → DownloadOverlay-Dk9PoZlP-D3imuRfO.js} +6 -6
  65. package/dist/assets/{DrawerPage-C5u676VK-BwyTjOJX.js → DrawerPage-BSa6DJZr-D9NnCvxY.js} +1 -1
  66. package/dist/assets/EditPeoplePage-Ci4ys6zZ-CrrNlTmS.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-BxjNoyj8-mj8ySbuq.js → EditReimbursementDetailPage-DemIPGJ5-B9757Dmu.js} +43 -43
  68. package/dist/assets/{EntityDetailPage-BfscGvkI-DlE98_0K.js → EntityDetailPage-C_luSjQJ-Cu-KPSDu.js} +3 -3
  69. package/dist/assets/{EntitySummarySection-BCkLY2Py-lpTrhfnW.js → EntitySummarySection-BjoUr41l-NV66C_A4.js} +5 -5
  70. package/dist/assets/{ExpenseAutomationOverviewPage-C4SCxViu-BAakN-WZ.js → ExpenseAutomationOverviewPage-DwRzHbCN-D7MDDzPf.js} +18 -18
  71. package/dist/assets/{ExpenseAutomationPage-DF1-Q4X5-DubLusUH.js → ExpenseAutomationPage-CxTfHxhm-BvLBK1eA.js} +33 -33
  72. package/dist/assets/{ExpressPayPage-Cdtx03yB-BxTU3id1.js → ExpressPayPage-B9teVxc8-CO2jiwXu.js} +10 -10
  73. package/dist/assets/{FeaturePreviewPage-nQYT4moR-CobwvrFz.js → FeaturePreviewPage-LAldEIqF-C8tcud8u.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-CRBm3eL9-Bz_q7qOo.js → FollowStepsSection-ICp_6TcX-Do7FY4O7.js} +8 -8
  75. package/dist/assets/{GlobalReviewListPage-3iXmpaXt-BpdqjyXr.js → GlobalReviewListPage-CaSIQgOY-CLXlBnhP.js} +1 -1
  76. package/dist/assets/{HelpButton-Cv7-d_qL-CciztHgu.js → HelpButton-C-GTHvg5-DHe5_hb9.js} +1 -1
  77. package/dist/assets/{InformationCardStack-JCre21xs-BlkeDU23.js → InformationCardStack-B3zlnZE6-BXUPOzl0.js} +3 -3
  78. package/dist/assets/{InsightsCardStack-Dekfw94R-VqCo_XNV.js → InsightsCardStack-Czo2phfa-CVjFCXX9.js} +8 -8
  79. package/dist/assets/{InsightsSection-CLqfyvOO-CKwkK2Sj.js → InsightsSection-BF65nVDk-Ck5eCytH.js} +4 -4
  80. package/dist/assets/{IntegrationsSettingsPage-o9w1-WIT-BCMJ43n5.js → IntegrationsSettingsPage-CfOJp2rR-DnJqSbGe.js} +5 -5
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-DBG1ni7g-DMTAsaCM.js → InternationalWireSwiftDetailsPage-BPckWTQy-C_9kzKUy.js} +18 -18
  82. package/dist/assets/{InternationalWireVerificationPage-BLU4F--p-BFU2uuwn.js → InternationalWireVerificationPage-IyDI0e1n-DHyr06eY.js} +19 -19
  83. package/dist/assets/{InviteFormPage-Bf8Mqb7S-BtjdSecG.js → InviteFormPage-GPQ5eSD8-CiDxRX8h.js} +13 -13
  84. package/dist/assets/{InvitePageListView-6oeT1vaB-Bpmua81S.js → InvitePageListView-BD4bJtvG-B0K74gtE.js} +52 -52
  85. package/dist/assets/InvitePeoplePage-DhGjKKsO-D5tOqF8-.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-BiIfE0Mk-DzhUPeCE.js → InvoiceUploadSection-DzOByrtE-BE32q3YT.js} +7 -7
  87. package/dist/assets/{IssueChargeCardPage-Dd312Qu7-BymELIm-.js → IssueChargeCardPage-U5Z_OXsd-CLDaQ415.js} +20 -20
  88. package/dist/assets/{LabeledAddressValue-BplX--OG-BBD4K47a.js → LabeledAddressValue-DaabTZGG-CWQotmwk.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-DkhJs5ky-DLdSr7t1.js → LabeledAddressValueField-B2TfgAjp-BsfDNIIE.js} +4 -4
  90. package/dist/assets/{LabeledControlledCheckBoxField-SJfjkDzA-q46TDnxw.js → LabeledControlledCheckBoxField-Cb9kJIyY-DlHFWICr.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CPwrvNjy-C-LowpML.js → LabeledCreatableSingleSelectField-BtboN2bE-DF3GueZh.js} +3 -3
  92. package/dist/assets/LabeledDocumentField-BKVHT_ih-cMXijjYr.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-D70GX0HR-7dIEmO5F.js → LabeledDropDownFormattedTextField-CLUZVQCI-BVMu_guX.js} +7 -7
  94. package/dist/assets/{LabeledText-mTAE2dvH-e6RXkC8i.js → LabeledText-DXlb_cAu-B1j2xF1t.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dx8TfHuB-hRPyJuOY.js → LabeledUserSingleSelectWithSubtitlesField-CqC0Fbjb-DTDFjdt3.js} +10 -10
  96. package/dist/assets/{LabeledZeniRolesDropDownField-ZGHinaTy-14IF6Cak.js → LabeledZeniRolesDropDownField-Dbyg4yxA-W4VJHBJD.js} +12 -12
  97. package/dist/assets/{LinkJETransactionPage-CNYQO-AQ-BO9clNns.js → LinkJETransactionPage-D8sX4v-7-CsOS0tUv.js} +8 -8
  98. package/dist/assets/{LowBalancePopup-hdwaJezh-B0CYMe4t.js → LowBalancePopup-fUydozi0-DD4cdD_C.js} +5 -5
  99. package/dist/assets/{MagicLinkACHDetailsPage--DRHcaKz-BBtLo6wh.js → MagicLinkACHDetailsPage-BiZxVBT2-o-Rk17-1.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B5hbI4dU-0vD7L8pJ.js → MagicLinkDomesticWireDetailsPage-BO-mlqRp-Clxahb02.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BdwVZCRt-BzFpmTJD.js → MagicLinkInternationalWireDetailsPage-BSwmG-gt-CwiZ0Ksn.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DOUrPdD--h771bDUh.js → MagicLinkSuccessPage-BA_B_aML-C9hrpm-L.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-Bb27jU2a-DQOPYd-Z.js → MagicLinkTitleSection-hjUfjUKg-BSNiuVs0.js} +3 -3
  104. package/dist/assets/{MailingDetailsSection-CdKFQB_8-K5G0AaPG.js → MailingDetailsSection-zYhyH_Di-D4yENJST.js} +2 -2
  105. package/dist/assets/{MeetingCalenderPopup-B3sIZU3d-DuEMLObz.js → MeetingCalenderPopup-BbCahdTF-CVjb8WtP.js} +3 -3
  106. package/dist/assets/{Menu-Bsk58l8k-kRDchKev.js → Menu-gdxz6nzv-BWb1NISh.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-P1Zh6SFD-C4DvQ61H.js → MyBankConnectionsSettingsPage-B-kZp6kY-DGgRFgSz.js} +12 -12
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-Cs7rVAdh-B9AXkK-5.js → MyPendingActivationChargeCardListPage-Cux0Zc6M-C_85HTeN.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-Cc4XfbBQ-C9qNtbAb.js → MyProfileSettingsPage-DlPCGOud-CJbICNU7.js} +6 -6
  110. package/dist/assets/{NavBarWithPicker-DFD5LZ4o-CjFvYGu-.js → NavBarWithPicker-DgFXO4Py-B8a2N5H7.js} +3 -3
  111. package/dist/assets/{NavigationArrow-mL8dVddD-CApZjvsF.js → NavigationArrow-DfB1s0Kl-dP_dOcYr.js} +5 -5
  112. package/dist/assets/{NavigationDots-MPqPjbnr-gK408Eu4.js → NavigationDots-B12u1DHV-wGjE6ymi.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-QTvziNPs-DJ7dMRKm.js → NewGlobalMerchantPage-C4ljSG4I-CpKXjRxq.js} +6 -6
  114. package/dist/assets/{NoDataChart-C1BY1riw-DoqrJEIG.js → NoDataChart-C86cs81n-BI6hUCyS.js} +1 -1
  115. package/dist/assets/{NoDataTable-C_4AqyDp-cxOm3TqL.js → NoDataTable-BsEI7aoI-uEd_WfDe.js} +1 -1
  116. package/dist/assets/{NotFoundPage-U8Zqpzgy-DGacTch6.js → NotFoundPage-CQVgfvr8-DylBkQRK.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-2A4Pahmq-ugOY8DfW.js → NotificationSettingsPage-CamY-jUK-CVgplVyL.js} +13 -13
  118. package/dist/assets/NotificationsListConfig-Cj32T7Hz-BOzef_mv.js +1 -0
  119. package/dist/assets/{NotificationsPage-B6yKJmGI-ABrq9lsr.js → NotificationsPage-Cq5siAeE-7OwFZiNL.js} +36 -36
  120. package/dist/assets/{OpExByVendorPage-BnTlBXeu-CtQ9Rudi.js → OpExByVendorPage-D08wBmkx-kSlP6mnA.js} +4 -4
  121. package/dist/assets/{OverlayContainerPage-BxBOhoib-0U2mSFzb.js → OverlayContainerPage-GWXnlbZH-CEl9U8x8.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-CKW73tr8-DQuvWZ35.js → PandLWithForecastPage-DD43rPhW-A1TZHqgl.js} +5 -5
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CSEVISAI-Bq0DuZcX.js → PaymentAccountSetupBillingAddressSection-C7GoqHot-DAesV6Ej.js} +6 -6
  124. package/dist/assets/{PeoplePage-BJxZJT-l-FSQqwOWI.js → PeoplePage-BwWeuQq0-CESGkAiN.js} +16 -16
  125. package/dist/assets/{PortfolioAllocationFormPage-C4pRhyet-Wf_11Z3Y.js → PortfolioAllocationFormPage-QLO1aksn-C4Nd_3VN.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-4fbkArz6-0_-lQYOm.js → PortfolioDetails-EbWPeH4e-BydNByff.js} +7 -7
  127. package/dist/assets/{ProductsCarousel-gGbLzHle-BYrndM43.js → ProductsCarousel-VTApOnqN-CMfc9ylB.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-DUlZEg5E-CbxyeszU.js → PromoBaseCards-B0BCeySU-wfb5DzjJ.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-C_Z2lvUz-DLhuJ1u0.js → QBOConnectionDialog-CKOkxTzr-DKeUf173.js} +6 -6
  130. package/dist/assets/{QBOSetupSection-DqWiwHwl-DIb9XM9r.js → QBOSetupSection-DycavdKb-CT5F0n4h.js} +11 -11
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-JWdrVgqW-CFvIiw2A.js → ReimbursementApprovalRuleDetailPage-PHWY-z0e-FKRZB_Ja.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-BnBNwFzM-C_gjNu0y.js → ReimbursementApprovalRulesPage-B6po7mmX-BMDEIvFm.js} +33 -33
  133. package/dist/assets/{ReimbursementDetailPage-Dyjb0qZE-BT9Piz6e.js → ReimbursementDetailPage-Dt6DhlL1-CYLKdFSl.js} +7 -7
  134. package/dist/assets/{ReimbursementPromoPage-D1EqiXEa-DCne6gHN.js → ReimbursementPromoPage-DjcsW1Av-Dq9BuWdd.js} +3 -3
  135. package/dist/assets/{ReimbursementSetUpPage-ClJ_4WMp-Rk-zjJTF.js → ReimbursementSetUpPage-DQpxCs8Z-BKnPNPnJ.js} +5 -5
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-uGRv6i-04ZwLpFl.js → ReimbursementsBulkReviewDrawerPage-4foPx3A--CPio49Pu.js} +1 -1
  137. package/dist/assets/{ReloadCard-DVYCtjFP-BRGDk89Q.js → ReloadCard-CaPpBGJK-BQahT5RP.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-BTu2hum1-C1Mbyqo-.js → ReportTableViewSelector-D-blv3pI-NEqAb2d0.js} +7 -7
  139. package/dist/assets/{ReportsPage-BJEqtDDR-D_PksdU9.js → ReportsPage-BZj7Tec8-ByPzZ3Mi.js} +5 -5
  140. package/dist/assets/{RevenueChart-BFS-A4qa-BBXnyto4.js → RevenueChart-CwhdG15z-Ossw9Srn.js} +13 -13
  141. package/dist/assets/{ReviewDetailsPage-C6qSCmDQ-B2yUNAOk.js → ReviewDetailsPage-CuO3d_n4-DDpHJibb.js} +13 -13
  142. package/dist/assets/{ReviewOverlay-DItEmr7f-J3VxEX04.js → ReviewOverlay-DdM4zwoh-BrpeA22_.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-CqtMdboJ-Do2co-59.js → RoleWithToolTip-BNc9Cjys-BflhBmMa.js} +6 -6
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CKcDbns8-CVYGhsoz.js → ScheduleDetailsFixedAssetsPage-DgwGten3-CzNnfEIV.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-CYqYYvix-CdBl7QS5.js → ScheduleDetailsPage-C4UMK1HB-2qYXZBGt.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-DUYFGZvc-B-XLebxH.js → ScheduleSequenceTable-n_lV13zp-DSggYkAR.js} +18 -18
  147. package/dist/assets/{ScreenRoutes-BFh5xZjd.js → ScreenRoutes-Cu_ZW3C2.js} +35 -35
  148. package/dist/assets/{SetUpAccountSection-DfuZHlL6-sva6HoSx.js → SetUpAccountSection-CGBdEw5o-BsHNDPBm.js} +21 -21
  149. package/dist/assets/{SetUpDefaultSection-Jl4dtzx3-CDDnDgUz.js → SetUpDefaultSection-5H7JgUVZ-3gB6LAnP.js} +10 -10
  150. package/dist/assets/{SignIn-OTT_6lLp-4uioYcss.js → SignIn-DpOLibjy-B1O6Z7z5.js} +4 -4
  151. package/dist/assets/{SignInScreen-VsVK9Vz1.js → SignInScreen-CqoaPSYP.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-BkL-3WNh-DhY9QPd5.js → SpendManagementListViewPage-C0IA6cdd-BUq3yiJp.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-Buppd61y-KX81e_1p.js → SpendManagementPerTabPage-B727RQUp-BpiIJwHE.js} +14 -14
  154. package/dist/assets/{SpendManagementSection-BGcBRKGN-CG3uT_ZE.js → SpendManagementSection-B8xyYfKM-Xch0MBI4.js} +10 -10
  155. package/dist/assets/{SpendMgmtSetupAccountSection-Cswh297O-5u1iK010.js → SpendMgmtSetupAccountSection-BHH-PFxf-BEhEOBT5.js} +13 -13
  156. package/dist/assets/{StatementItem-C3tUNT5A-D9LIbCmi.js → StatementItem-CTOdgetS-ud-kOkz9.js} +4 -4
  157. package/dist/assets/{StatementsPage-DGryRE6z-C-mT3zfT.js → StatementsPage-d9G6kH-f-DgcEkZX-.js} +3 -3
  158. package/dist/assets/{StatusSwitcher-BgWlxay9-Mp4PEzEM.js → StatusSwitcher-BA7VjpgX-AJZc15_H.js} +2 -2
  159. package/dist/assets/{SubTabSwitcher-DwwAqq_R-DBNFWy_6.js → SubTabSwitcher-DDJSCY6V-DongKB4y.js} +1 -1
  160. package/dist/assets/{SummaryCard-Dm0Tx9is-BV25EA5P.js → SummaryCard-bczJjOLG-CjdZn_iI.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-59XAl_cs-BbyBf_KE.js → TaskManagementPage-C99UjrT4-CmD3QiB_.js} +31 -31
  162. package/dist/assets/{TimeRangeSwitcher-D7-Jph-G-Cn7zeCi8.js → TimeRangeSwitcher-DgpRdFEz-UpNf9Pio.js} +3 -3
  163. package/dist/assets/{TimeframeSwitcher-CWYQWFLF-B37Mzr7G.js → TimeframeSwitcher-D7Ebofq5-DCuWRjmL.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-QOhQ3sac-BtE_j2V5.js → TimeframeSwitcherWithToggle-BxG4mfwZ-hDOmM0BL.js} +1 -1
  165. package/dist/assets/{TopExCard-CTlizsDD-CdK-gYL3.js → TopExCard-Bl1HEvJK-DYu_Snz8.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-Df3JbgcF-BUIhSfiv.js → TopExDetailPage-RVGSdHNI-B2tvvcdJ.js} +2 -2
  167. package/dist/assets/{TransactionDetailPage-DvNpTjAp-3mOQ99vo.js → TransactionDetailPage-2pU2-JVz-DvzDNfcu.js} +30 -30
  168. package/dist/assets/{TransactionList-SkSPfIsE-CE8kQBAe.js → TransactionList-DnERXw-A-C5LRJytL.js} +8 -8
  169. package/dist/assets/{TransactionListBig-CZCV_kmJ-DVUvA7le.js → TransactionListBig-vCTvXh5y-DLaLiFSC.js} +9 -9
  170. package/dist/assets/{TransactionListPage-CBbyagWp-Da8WpQzF.js → TransactionListPage-DVtqlCMZ-B-nHFVQj.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-BXnlFdHR-DkKO-vTr.js → TransactionVendorDetailPage-0FE-k35E-D5OPfVkl.js} +3 -3
  172. package/dist/assets/{TransferDrawerPage-CxXLyKwW-pf6KUagR.js → TransferDrawerPage-C17-lHVH-DqBTA_eG.js} +29 -29
  173. package/dist/assets/{TreasuryOverviewPage-3JlXZfCV-Dx_gGX5K.js → TreasuryOverviewPage-DSRk9Ojd-8t6OoxPf.js} +16 -16
  174. package/dist/assets/{TreasuryPromoPage-BhAicq7r-CWtB-Ior.js → TreasuryPromoPage-C-8SuUVF-CFc9jz_k.js} +15 -15
  175. package/dist/assets/{TreasurySetupPage-BQG_Wd5U-DotUWNKW.js → TreasurySetupPage-CBN3MDev-DhwdW1pF.js} +2 -2
  176. package/dist/assets/{TreasuryStatementsPage-dCAtvvZk-CQC0pKh5.js → TreasuryStatementsPage-CYcFki_F-BBDbwRs0.js} +5 -5
  177. package/dist/assets/{TreasuryTaxLetterPage-irA0Cgkj-CtL9UaTH.js → TreasuryTaxLetterPage-D_yfrqyw-DbMRXPvP.js} +5 -5
  178. package/dist/assets/{TreasuryTransferOrReviewPage-Dd1oLBma-BqeITAG-.js → TreasuryTransferOrReviewPage-fm-w_JUE-C98U-Z9e.js} +36 -36
  179. package/dist/assets/{TrendChart-Ctquh3qH-BiYWLM8X.js → TrendChart-C6zZmjPl-pFeewMTm.js} +2 -2
  180. package/dist/assets/{TrendWithTransactions-CoXTnQK7-BLlEO5rp.js → TrendWithTransactions-DYpTdT3--CpsGst0w.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-Cq49D6V9-TgKDL_ek.js → UncategorizedAccountsMappingPage-BP5b7SLK-CwqyQ37l.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-CR0nZ7NM-R_gwAwZ8.js → UnitIntegrationPage-CEdW3T2--Dubmotz7.js} +4 -4
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-B_DFEIlC-D-vyB1J1.js → UploadAdditionalDocumentOverlay-DEJxFgaz-UhYjFUhJ.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-KsRgKz_Z-j8koIFf4.js → Vendor2FAPopup-DKQXhPGa-C-1Y3b9X.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-MRaehbhm-DmI12dQp.js → VendorACHDetailsPage-CYVg93tk-NwYypD-G.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-Cji21PBc-B3adWyVF.js → VendorDetailPage-CQptl370-FNWm9uTn.js} +18 -18
  187. package/dist/assets/{VendorDomesticWireDetailsPage-DhUIW9g--qdYZ8d9x.js → VendorDomesticWireDetailsPage-VAGgBKEt-CNg4m5oN.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-BWFbXLhQ-C5qvIENm.js → VendorFiling1099EditablePage-DT3_7-pU-BiogUCwK.js} +11 -11
  189. package/dist/assets/{VendorFirstReviewPage-tvh5pcvQ-B2Kk7Crs.js → VendorFirstReviewPage-CTu8QLSu-C9pea9HN.js} +26 -26
  190. package/dist/assets/{VendorInternationalWireDetailsPage-CfmZSb8O-B-ILWyNn.js → VendorInternationalWireDetailsPage-DETN5xQf-u-FhFEQH.js} +11 -11
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-V_1s9mWi-hnkkHj00.js → VendorInternationalWireSwiftDetailsPage-CoFSDse_-CMz5sXIT.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-b9s5nqGq-DfS13Vrv.js → VendorsAccountsSection-B0atBQRf-DwN1P5ST.js} +6 -6
  193. package/dist/assets/{WarningsDrawerPage-CB4mJGTB-fzxOGtfc.js → WarningsDrawerPage-C8sUYwZn-ChnBWAPn.js} +9 -9
  194. package/dist/assets/{ZeniAccountDetailPage-CgSyyen1-PEjv41n1.js → ZeniAccountDetailPage-D8uZ-seh-BOZmI_Dm.js} +33 -33
  195. package/dist/assets/{ZeniAccountListViewPage-DjGZpdh_-BsFv0aAo.js → ZeniAccountListViewPage-BuwG7e20-B-7yXRaY.js} +14 -14
  196. package/dist/assets/{ZeniAccountNavBarPieces-BJC4d2Iu-BjaYs6wQ.js → ZeniAccountNavBarPieces-uukfD44t-C94Q1ycz.js} +2 -2
  197. package/dist/assets/{ZeniAccountPromoPage-D3Yt6FIj-ypiLoIIl.js → ZeniAccountPromoPage-3t3vzAGh-DdQrchgw.js} +9 -9
  198. package/dist/assets/{ZeniAccountSetupPage-BeCPekI4-BoIQB_8y.js → ZeniAccountSetupPage-BVzvcRnV-c8DsQZjx.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-Dhdl9kqY-CRu5oNtE.js → ZeniCopyright-DcAcIGRB-BE_hgGDM.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-B8VFb2l--enqH4TrQ.js → ZeniTransferAmountSlider-RA4Pva57-B-TGxP0B.js} +1 -1
  201. package/dist/assets/{analyticsHelper-DBiIeSgZ.js → analyticsHelper-Cbfklysr.js} +1 -1
  202. package/dist/assets/{analyticsHelper-Cawv3PXO-DqLgneHd.js → analyticsHelper-D2Tw-gFs-CfilQYvq.js} +1 -1
  203. package/dist/assets/{chartTypes-5p7NWUHx-6R9pye-p.js → chartTypes-DX9eCHdW-B7oDG2yB.js} +1 -1
  204. package/dist/assets/{commonDimensions-CQlLUBWG-C3nTCVjo.js → commonDimensions-C417LkG3-Cr4GHwJ7.js} +1 -1
  205. package/dist/assets/{detailCommon-CoAmJ6pY-B0Qu3snC.js → detailCommon-DMILWpBc--U3Fq460.js} +4 -4
  206. package/dist/assets/{downloadPdf-CCJjnfCZ-ODxWAPRh.js → downloadPdf-TtzJSlkj-CYWEy00G.js} +1 -1
  207. package/dist/assets/{index-C2JVdK9x.js → index-rGMXK0Rc.js} +2579 -2597
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-CwyU1xs5-DTtIWEnS.js → mapLoadingInProgressToTreeNode-BuX84Fl8-C9VszrPq.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-IKJYFM7_-BiH-dZ1q.js → mapSectionWithAcOnlyToTreeNode-CuqkYL_a-D2dufnQP.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-D5XTLzM7-CZeCl2Hx.js → mapSpacerToTreeNode-CkoeX_hU-B3Tt6fDl.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-CJMbtmIl-DGh10zzw.js → mapTimeframeBalancesToTreeNode-CbddU0ga-B0ctGM7F.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-SX6fBp6e-DSWmrMTg.js → mapTimeframeBalancesToTreeNode-Dz-UvEDI-BLldSj9r.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ts5lOZtX-DZNSlCJx.js → mapTimeframeHeaderLoadingInProgressToTreeNode-C_cGYrFN-DbJ2zuiX.js} +1 -1
  214. package/dist/assets/{play-icon-oQKnPjZi-D1s2fk0_.js → play-icon-DvnIcVvi-BFAe9r1Z.js} +3 -3
  215. package/dist/assets/{toCOABalancesWithID-DwvFse7w-YhdHXdmt.js → toCOABalancesWithID-CEYLTlMK-DfcDAp6p.js} +1 -1
  216. package/dist/assets/{toChartData-BBvMC_VQ-D9RVT7PQ.js → toChartData-DgmHnq7q-B0J27uo6.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-CUDK9KvQ-DUBVC7I-.js → treasuryColorHelper-D6-KrZju-CjJ44MCH.js} +1 -1
  218. package/dist/assets/{uploadAttachment-P4S_2L_v-CgBJ3cvv.js → uploadAttachment-B6HsV49B-Cn4CVOXc.js} +13 -13
  219. package/dist/assets/{uploadReceipts-DhDnr0ap-Dmr6ZzO6.js → uploadReceipts-D80JLNY4-DmW4IrLG.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ChargeCardPromoPage-Cv34m9BS-BmZiFW4y.js +0 -219
  223. package/dist/assets/CompleteProfile-DnBzaAdT-JcsdBGpZ.js +0 -52
  224. package/dist/assets/CustomerOnboardingContainerPage-DyM4sCZd-DLhRqrqJ.js +0 -1
  225. package/dist/assets/CustomerOnboardingProductSuitePage-CxB32dUM-D8l5mASB.js +0 -202
  226. package/dist/assets/EditPeoplePage-DAM71X8m-kukHxW_0.js +0 -55
  227. package/dist/assets/InvitePeoplePage-CLvVDRca-CLtgUYZW.js +0 -12
  228. package/dist/assets/LabeledDocumentField-DLd6UnEn-DtqGgdoi.js +0 -41
  229. package/dist/assets/NotificationsListConfig-BIw5ASx2-BpsD8zMo.js +0 -1
  230. package/dist/assets/VerifyDevice-CJgD3UmO-uodXssPo.js +0 -67
@@ -1,4 +1,4 @@
1
- import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,bR as G,bT as U,bU as q,ct as V,p as l,an as X,Q as P,am as Y,g as j,cq as _,aN as F,q as O}from"./index-C2JVdK9x.js";import{n as i,b as Q}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";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)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=Q.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return t.jsxs(K,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(ae,{children:[t.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),t.jsxs(ee,{children:[t.jsx(k,{}),t.jsx(te,{}),t.jsx(k,{})]}),c.max==null?t.jsx(ce,{}):t.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e?t.jsx(pe,{onClick:$}):null,t.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),t.jsx(oe,{windowSize:n,children:t.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,A)=>t.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(le,{children:a.requireText}):t.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(R,{children:[t.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>t.jsxs(R,{children:[t.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?t.jsx(G,{titleComponent:t.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},K=i.div`
1
+ import{u as D,X as B,M as b,j as o,aV as E,c as H,Y as S,o as t,C as r,s as L,_ as z,bO as G,bQ as U,bR as q,cq as O,m as l,an as Q,Q as P,am as V,g as j,cn as X,aN as Y,p as _}from"./index-rGMXK0Rc.js";import{n as i,b as F}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";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)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=F.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(K,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(Z,{windowSize:n,children:[o.jsxs(ae,{children:[o.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ne,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:n,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,A)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(le,{children:a.requireText}):o.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?o.jsx(G,{titleComponent:o.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},K=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -14,20 +14,20 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
14
14
  border-color: ${e=>e.theme.colors.primary};
15
15
  }
16
16
  }
17
- `,Z=i(X)`
17
+ `,Z=i(Q)`
18
18
  display: flex;
19
19
  position: relative;
20
20
  align-items: center;
21
21
  justify-content: space-between;
22
22
  text-align: center;
23
23
  width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
24
- gap: ${o.sp2};
24
+ gap: ${t.sp2};
25
25
  `,ee=i.div`
26
26
  align-items: center;
27
27
  display: flex;
28
28
  justify-content: center;
29
- `,te=i.div`
30
- width: ${o.sp8};
29
+ `,oe=i.div`
30
+ width: ${t.sp8};
31
31
  height: 2px;
32
32
  background-color: ${e=>e.theme.colors.primary};
33
33
  `,k=i.div`
@@ -35,7 +35,7 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
35
35
  height: 6px;
36
36
  border-radius: 3px;
37
37
  background-color: ${e=>e.theme.colors.primary};
38
- `,oe=i.div`
38
+ `,te=i.div`
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  align-items: flex-start;
@@ -47,8 +47,8 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
47
47
 
48
48
  border: 1px solid ${e=>e.theme.colors.grey3};
49
49
 
50
- box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
51
- border-radius: ${o.sp2};
50
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
51
+ border-radius: ${t.sp2};
52
52
 
53
53
  flex: none;
54
54
  order: 1;
@@ -59,7 +59,7 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
59
59
  `,ie=i.ul`
60
60
  ${e=>`${N.stepper.style(e.windowSize)}`};
61
61
  position: relative;
62
- padding-left: ${o.sp6};
62
+ padding-left: ${t.sp6};
63
63
  list-style: none;
64
64
  box-sizing: initial;
65
65
  margin: 0;
@@ -81,7 +81,7 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
81
81
  justify-content: flex-start;
82
82
  align-items: center;
83
83
  padding-left: ${e=>s.stepperItemPaddingLeft.valuePx(e.windowSize)};
84
- gap: ${o.sp1};
84
+ gap: ${t.sp1};
85
85
 
86
86
  > div:last-of-type > span.operator:last-of-type {
87
87
  visibility: hidden;
@@ -116,8 +116,8 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
116
116
  width: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
117
117
  height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
118
118
  top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
119
- left: -${o.sp6};
120
- ${O.standardMedium.css};
119
+ left: -${t.sp6};
120
+ ${_.standardMedium.css};
121
121
  text-align: center;
122
122
  color: ${e=>e.theme.colors.grey1};
123
123
  border: 2px solid ${e=>e.theme.colors.grey1};
@@ -137,29 +137,29 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
137
137
  `,ae=i.div`
138
138
  display: flex;
139
139
  align-items: center;
140
- gap: ${o.sp2};
140
+ gap: ${t.sp2};
141
141
  `,ne=i.div`
142
142
  display: flex;
143
- gap: ${o.sp5};
144
- `,pe=i(_)`
145
- width: ${o.sp3};
146
- height: ${o.sp3};
143
+ gap: ${t.sp5};
144
+ `,pe=i(X)`
145
+ width: ${t.sp3};
146
+ height: ${t.sp3};
147
147
  cursor: pointer;
148
148
  color: ${e=>e.theme.colors.hero};
149
149
  &:hover {
150
150
  color: ${j.important};
151
151
  }
152
- `,de=i(F)`
153
- width: ${o.sp3};
154
- height: ${o.sp3};
152
+ `,de=i(Y)`
153
+ width: ${t.sp3};
154
+ height: ${t.sp3};
155
155
  cursor: pointer;
156
156
  color: ${e=>e.theme.colors.hero};
157
157
  &:hover {
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  }
160
- `,ce=i(Y)`
161
- width: ${o.sp4};
162
- height: ${o.sp4};
160
+ `,ce=i(V)`
161
+ width: ${t.sp4};
162
+ height: ${t.sp4};
163
163
  color: ${e=>e.theme.colors.hero};
164
164
  `,C=i.span`
165
165
  color: ${e=>e.theme.colors.hero};
@@ -170,13 +170,13 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
170
170
  ${e=>`${N.amount.style(e.windowSize)}`};
171
171
  color: ${e=>e.theme.colors.primary};
172
172
  word-break: break-word;
173
- `,u={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Te=({approvalView:e,onBackClick:f,onEditRuleClick:x,onDeleteRuleClick:v})=>{const y=D(),g=B(),{fetchState:d,deleteStatus:n}=e,c=b.getLocalizedStrings().commonSetUp.approval,w=b.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,m=n.fetchState;return t.jsxs(he,{children:[t.jsx(E,{title:c.approvalPageHeader,backgroundColor:y.colors.grey4,style:{zIndex:4},onBackClick:()=>{f()},source:"ReimbursementApprovalRulesPage"}),t.jsxs(me,{children:[t.jsx(we,{windowSize:g,children:w.approvalPageSubTitle}),d==="In-Progress"||d==="Not-Started"||m==="In-Progress"?t.jsx(xe,{children:t.jsx(H,{size:"ExtraLarge",start:!0})}):d==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((a,$)=>t.jsx(J,{showDeleteBtn:$!==0,approvalRule:a,isLastSection:$===e.allApprovalRules.length-1,onEditRuleClick:x,onDeleteRuleClick:v},a.approvalRuleId)),t.jsxs(ue,{windowSize:g,onClick:()=>{x()},"data-testid":S("add-approval-rule"),children:[t.jsx(ge,{}),t.jsx($e,{children:c.addApprovalText})]})]}):null]})]})},he=i.div`
173
+ `,u={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Te=({approvalView:e,onBackClick:f,onEditRuleClick:x,onDeleteRuleClick:v})=>{const y=D(),g=B(),{fetchState:d,deleteStatus:n}=e,c=b.getLocalizedStrings().commonSetUp.approval,w=b.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,m=n.fetchState;return o.jsxs(he,{children:[o.jsx(E,{title:c.approvalPageHeader,backgroundColor:y.colors.grey4,style:{zIndex:4},onBackClick:()=>{f()},source:"ReimbursementApprovalRulesPage"}),o.jsxs(me,{children:[o.jsx(we,{windowSize:g,children:w.approvalPageSubTitle}),d==="In-Progress"||d==="Not-Started"||m==="In-Progress"?o.jsx(xe,{children:o.jsx(H,{size:"ExtraLarge",start:!0})}):d==="Completed"?o.jsxs(o.Fragment,{children:[e.allApprovalRules.map((a,$)=>o.jsx(J,{showDeleteBtn:$!==0,approvalRule:a,isLastSection:$===e.allApprovalRules.length-1,onEditRuleClick:x,onDeleteRuleClick:v},a.approvalRuleId)),o.jsxs(ue,{windowSize:g,onClick:()=>{x()},"data-testid":S("add-approval-rule"),children:[o.jsx(ge,{}),o.jsx($e,{children:c.addApprovalText})]})]}):null]})]})},he=i.div`
174
174
  display: flex;
175
175
  min-height: 100%;
176
176
  flex-direction: column;
177
177
  width: 100%;
178
178
  background-color: ${e=>e.theme.colors.grey4};
179
- box-shadow: ${e=>`${o.sp0} 2px ${o.sp1}
179
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1}
180
180
  ${e.theme.colors.dropShadowNormal}`};
181
181
  `,me=i.div`
182
182
  display: flex;
@@ -206,19 +206,19 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
206
206
  flex-direction: row;
207
207
  justify-content: center;
208
208
  align-items: center;
209
- padding: ${o.sp3} ${o.sp4};
209
+ padding: ${t.sp3} ${t.sp4};
210
210
  gap: ${e=>u.addApprovalGap.valuePx(e.windowSize)};
211
211
 
212
212
  width: ${e=>u.width.valuePx(e.windowSize)};
213
- height: ${o.sp8};
213
+ height: ${t.sp8};
214
214
 
215
215
  background: ${e=>e.theme.colors.grey5};
216
216
 
217
217
  border: 1px solid ${e=>e.theme.colors.grey3};
218
218
 
219
- box-shadow: ${e=>`${o.sp0} 2px ${o.sp1}
219
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1}
220
220
  ${e.theme.colors.dropShadowNormal}`};
221
- border-radius: ${o.sp2};
221
+ border-radius: ${t.sp2};
222
222
  color: ${e=>e.theme.colors.hero};
223
223
  box-sizing: border-box;
224
224
  &:hover {
@@ -228,10 +228,10 @@ import{u as D,X as B,M as b,j as t,aV as E,d as H,Y as S,o,C as r,s as L,_ as z,
228
228
  color: ${e=>e.theme.colors.primary};
229
229
  border-color: ${e=>e.theme.colors.primary};
230
230
  }
231
- margin-bottom: ${o.sp6};
232
- `,ge=i(V)`
233
- width: ${o.sp3};
234
- height: ${o.sp3};
231
+ margin-bottom: ${t.sp6};
232
+ `,ge=i(O)`
233
+ width: ${t.sp3};
234
+ height: ${t.sp3};
235
235
  `,$e=i.div`
236
236
  color: ${e=>e.theme.colors.hero};
237
237
  `;export{Te as default};
@@ -1,4 +1,4 @@
1
- import{V as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,M as Qe,l as ie,fK as Nt,fM as Lt,fN as Ot,j as t,bR as ke,bT as Ae,bU as Me,Y as y,aV as Re,aI as _t,dt as Wt,fO as Et,fZ as Pe,o as a,fP as Be,cS as b,cU as x,fS as w,_ as Ne,cR as Le,q as K,fU as Oe,a3 as Kt,m as Ft,fV as Ut,fW as ae,aR as Vt,fX as Yt,a2 as Gt,Q as Ht,h as qt,s as et,an as tt,g as F,f as Jt,bp as Xt,v as Zt,gc as Qt,g8 as ei,p as c,bK as ti,co as ii}from"./index-C2JVdK9x.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-BiIfE0Mk-DzhUPeCE.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-pcpYs-s8-D808dzO5.js";import"./uploadReceipts-DhDnr0ap-Dmr6ZzO6.js";const l={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])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),xe=Qe.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,Z=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Se()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Q=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Z??we,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:Z})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Q,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Q,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Ze,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:Z}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Q,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`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:s.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,s.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:k},text:s.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,{}),s.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:k},text:s.transactionDate?.format(fe.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:k},text:s.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:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.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:s.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:s.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:k},text:s.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:k},text:s.transactionDate?.format(fe.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:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.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:s.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:s.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:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(xi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Ft,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(wi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Qe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
1
+ import{w as At,d2 as Mt,X as Rt,u as Pt,bC as Bt,C as m,M as Ze,l as ie,fI as Nt,fK as Lt,fL as Ot,j as t,bO as ke,bQ as Ae,bR as Me,Y as y,aV as Re,aI as _t,dq as Wt,fM as Et,fX as Pe,o as a,fN as Be,cP as b,cR as w,fQ as x,_ as Ne,cO as Le,p as K,fS as Oe,a3 as Kt,f as Ft,fT as Ut,fU as ae,aR as Vt,fV as Yt,a2 as Gt,Q as Ht,h as qt,s as et,an as tt,g as F,e as Jt,eW as Qt,v as Xt,ga as Zt,g6 as ei,m as c,bH as ti,cl as ii}from"./index-rGMXK0Rc.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-DzOByrtE-BE32q3YT.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-Bpla0aBf-CEmozm2v.js";import"./uploadReceipts-D80JLNY4-DmW4IrLG.js";const l={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])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[j,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Se()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`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:w({type:"details",key:s.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,s.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(x,{label:{label:i.reimbursementType,width:k},text:s.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,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.department,width:I},text:s.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:w({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(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Ft,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -63,9 +63,9 @@ import{V as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,M as Qe,l as ie,fK as Nt
63
63
  `,bi=r.div`
64
64
  display: flex;
65
65
  justify-content: flex-end;
66
- `,xi=r.div`
66
+ `,wi=r.div`
67
67
  width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
68
- `,wi=r(ei)`
68
+ `,xi=r(ei)`
69
69
  cursor: pointer;
70
70
  color: ${e=>e.theme.colors.hero};
71
71
  width: ${a.sp5};
@@ -81,7 +81,7 @@ import{V as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,M as Qe,l as ie,fK as Nt
81
81
  &:hover {
82
82
  color: ${e=>e.theme.colors.primary};
83
83
  }
84
- `,$i=r(Qt)`
84
+ `,$i=r(Zt)`
85
85
  cursor: pointer;
86
86
  color: ${e=>e.theme.colors.hero};
87
87
  width: ${a.sp5};
@@ -147,7 +147,7 @@ import{V as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,M as Qe,l as ie,fK as Nt
147
147
  right: ${e=>l.actionsContainerRight.valuePx(e.windowSize)};
148
148
  height: 100%;
149
149
  display: flex;
150
- `,re=r(Zt)`
150
+ `,re=r(Xt)`
151
151
  display: flex;
152
152
  align-items: center;
153
153
  width: 100%;
@@ -283,7 +283,7 @@ import{V as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,M as Qe,l as ie,fK as Nt
283
283
  color: ${e=>e.theme.colors.hero};
284
284
  margin-bottom: ${e=>l.totalBottomMargin.valuePx(e.windowSize)};
285
285
  justify-content: space-between;
286
- `,Xe=r(Xt)`
286
+ `,Qe=r(Qt)`
287
287
  display: flex;
288
288
  width: 176px;
289
289
  color: ${e=>e.theme.colors.primary};
@@ -291,7 +291,7 @@ import{V as At,d5 as Mt,X as Rt,u as Pt,bF as Bt,C as m,M as Qe,l as ie,fK as Nt
291
291
  display: flex;
292
292
  flex-direction: column;
293
293
  width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
294
- `,Ze=r.div`
294
+ `,Xe=r.div`
295
295
  display: flex;
296
296
  width: 100%;
297
297
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
@@ -1,4 +1,4 @@
1
- import{V as me,u as z,X as v,a1 as de,l as D,M as K,j as e,Y as c,aV as pe,K as g,i as m,o as s,Z as xe,c3 as he,a5 as F,f as ue,C as ge,g as j,c5 as we,a6 as je,ao as fe,p as be}from"./index-C2JVdK9x.js";import{b,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-B3sIZU3d-DuEMLObz.js";import{f as ke,C as N}from"./play-icon-oQKnPjZi-D1s2fk0_.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",X="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(be[5],44)},ze=t.div`
1
+ import{w as me,u as z,X as v,a1 as de,l as D,M as K,j as e,Y as c,aV as pe,K as g,i as m,o as s,Z as xe,c0 as he,a5 as F,e as ue,C as ge,g as j,c2 as we,a6 as je,ao as be,m as fe}from"./index-rGMXK0Rc.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-BbCahdTF-CVjb8WtP.js";import{f as ke,C as N}from"./play-icon-DvnIcVvi-BFAe9r1Z.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",X="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(fe[5],44)},ze=t.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -86,7 +86,7 @@ import{V as me,u as z,X as v,a1 as de,l as D,M as K,j as e,Y as c,aV as pe,K as
86
86
  align-items: center;
87
87
  text-align: start;
88
88
  box-sizing: border-box;
89
- `,$=t(fe)`
89
+ `,$=t(be)`
90
90
  color: ${i=>i.theme.colors.champion};
91
91
  `,y=t(je)`
92
92
  color: ${i=>i.theme.colors.champion};
@@ -109,4 +109,4 @@ import{V as me,u as z,X as v,a1 as de,l as D,M as K,j as e,Y as c,aV as pe,K as
109
109
  margin: ${s.sp3} auto;
110
110
  max-width: 772px;
111
111
  color: ${i=>i.theme.colors.hero};
112
- `,r=K.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=K.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(W,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(k,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(k,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(k,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(W,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.simplestText.bold}),e.jsx($,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx($,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx($,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},Xe=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:re,onBackClick:se,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=b.useState(!1),[ne,I]=b.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),f=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=f?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;b.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:r.title,backgroundColor:le.colors.grey4,onBackClick:se,showBackButton:!f,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:f?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:re,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{Xe as default};
112
+ `,r=K.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=K.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(W,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(k,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(k,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(k,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(W,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.simplestText.bold}),e.jsx($,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx($,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx($,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},Xe=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:re,onBackClick:se,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=f.useState(!1),[ne,I]=f.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),b=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=b?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;f.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:r.title,backgroundColor:le.colors.grey4,onBackClick:se,showBackButton:!b,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:b?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:re,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{Xe as default};
@@ -1,4 +1,4 @@
1
- import{u as Ee,X as Ve,a1 as N,a as Ge,c6 as qe,M as Te,l as Ke,a7 as be,j as t,cL as Je,g as K,C as r,aV as Ze,d as Qe,F as Ye,d1 as Xe,aQ as et,d2 as tt,a3 as it,o as a,p as n,bK as nt,cj as ot,cr as at,e_ as ve,e$ as ke,fJ as lt,K as rt,Y as $e,Q as Pe,bc as st,v as ct,aN as dt}from"./index-C2JVdK9x.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{F as ut}from"./HelpButton-Cv7-d_qL-CciztHgu.js";import{K as je}from"./SetUpDefaultSection-Jl4dtzx3-CDDnDgUz.js";import{f as mt}from"./SpendMgmtSetupAccountSection-Cswh297O-5u1iK010.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-B_DFEIlC-D-vyB1J1.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-B3sIZU3d-DuEMLObz.js";import"./ChargeCardUtils-BB7l65Bf-DfL6sW6K.js";import"./CreditCardPaymentPlgSection-BwqznNRc-DXBqgi-A.js";import"./ChaseOverlay-hsrWeA5X-B3bQwtbG.js";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 r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:J}){const l=Ve(),D=Ee(),{formState:{errors:Z},trigger:Q}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:R,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,V]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{f||Q(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=Y,ne=S===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.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(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Lt,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&J?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),W(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
1
+ import{u as Ee,X as Ve,a1 as N,a as qe,c3 as Ge,M as Te,l as Ke,a7 as be,j as t,cI as Ze,g as K,C as r,aV as Je,c as Ye,F as Qe,c_ as Xe,aQ as et,c$ as tt,a3 as it,o as a,m as n,bH as nt,cg as ot,co as at,eY as ve,eZ as ke,fH as lt,K as rt,Y as $e,Q as Pe,bc as st,v as ct,aN as dt}from"./index-rGMXK0Rc.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{F as ut}from"./HelpButton-C-GTHvg5-DHe5_hb9.js";import{K as je}from"./SetUpDefaultSection-5H7JgUVZ-3gB6LAnP.js";import{f as mt}from"./SpendMgmtSetupAccountSection-BHH-PFxf-BEhEOBT5.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DEJxFgaz-UhYjFUhJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-BbCahdTF-CVjb8WtP.js";import"./ChargeCardUtils-Bj-TvntU-Dg5OHLzk.js";import"./CreditCardPaymentPlgSection-dBWHuBiS-md7FwEbI.js";import"./ChaseOverlay-D5CGgOY9-B_78AAMx.js";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 r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:J},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(J,E),{localData:c,updateStatus:R,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||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:x}=ee,{setUp:ie}=Q,ne=S===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.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(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,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"};
@@ -88,13 +88,13 @@ import{u as Ee,X as Ve,a1 as N,a as Ge,c6 as qe,M as Te,l as Ke,a7 as be,j as t,
88
88
  color: ${e=>e.hasError===!0?K.important:e.additionalInfoTextColor??e.theme.colors.hero};
89
89
  ${e=>`${ge.infoLabel.style(e.size)}`};
90
90
  margin-top: ${a.sp1};
91
- `,Lt=i.div`
91
+ `,It=i.div`
92
92
  display: flex;
93
93
  position: absolute;
94
94
  top: 50%;
95
95
  transform: translateY(-50%);
96
96
  right: ${a.sp3};
97
- `,It=i(dt)`
97
+ `,Lt=i(dt)`
98
98
  width: ${a.sp3};
99
99
  height: ${a.sp3};
100
100
  cursor: ${e=>e.isDisabled==null?"pointer":"default"};
@@ -103,7 +103,7 @@ import{u as Ee,X as Ve,a1 as N,a as Ge,c6 as qe,M as Te,l as Ke,a7 as be,j as t,
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",G="remiAccount",q="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:J,analytics:l,accountsPromoConfig:D,onBackClick:Z,onBusinessVerificationSectionClick:Q,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ee(),u=Ve(),[O,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:I,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:Ie,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:B,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(I.fetchState),ye=N(re.fetchState),Ce=N(se.fetchState),z=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!O&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&L(!0),O&&_==="In-Progress"&&v==="Completed"&&L(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Ce==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Ce,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),S()}),We=async(P,F)=>{const m=F[G];if(P.includes(G)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&Y(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.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,b.id,b.accType)}}else if(P.includes(q)){const w=F[q];C(w)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&qe(()=>We(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&I.fetchState==="Completed"&&V()},[V,we,I.fetchState]);const{commonSetUp:Se,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Oe}=He,{reimbursementSetup:M}=Oe,{setUp:k}=Se,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Ke.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Be=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new be(H.colors.brandColorJadeLight):new be(H.colors.brandColorJadeDark),Ne=()=>{!O&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?L(!0):Q?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:O,onClose:()=>L(!1),style:{backgroundColor:K.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:I,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Ft,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Be}),_e?t.jsx(Rt,{children:t.jsx(Qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ye,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Ie,allFundingAccounts:he,sectionId:G,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:q,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:B.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:B.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:B.length>0?Re:void 0})]})})})]}),ce&&!de&&B.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:I.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:J,analytics:l,productType:"reimbursement"})]})},zt=i.div`
106
+ `,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:J,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Q,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(L.fetchState),ye=N(re.fetchState),Ce=N(se.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Ce==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Ce,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),S()}),He=async(P,F)=>{const m=F[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&Q(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.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,b.id,b.accType)}}else if(P.includes(G)){const w=F[G];C(w)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&Ge(()=>He(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,we,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Se,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Ke.isVerifiedPaymentAccountProviderStatusCode(b?.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 be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?I(!0):Y?.()};return t.jsxs(zt,{children:[t.jsx(Ze,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:K.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Je,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:J,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Ft,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Rt,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Qe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(je,{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:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Re:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{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;
@@ -137,4 +137,4 @@ import{u as Ee,X as Ve,a1 as N,a as Ge,c6 as qe,M as Te,l as Ke,a7 as be,j as t,
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  row-gap: ${e=>p.sectionRowGap.valuePx(e.windowSize)};
140
- `,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[G]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(s=>({label:s.accountName,value:s.accountId}))}},[q]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{ni as default,De as uniqueName};
140
+ `,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[q]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(s=>({label:s.accountName,value:s.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{ni as default,De as uniqueName};
@@ -1 +1 @@
1
- import{M as O,j as b,bR as z,bT as V,bU as W,jo as q,aa as G,l as X}from"./index-C2JVdK9x.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as Y}from"./ReviewOverlay-DItEmr7f-J3VxEX04.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=O.getLocalizedStrings(),o=k.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(R(e,h,a)),[x,P]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:C}=Z(S);A({type:"reject",title:u,description:C,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},U={onOkClick:u=>{l(!1);const C=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,X.getRemiListUniqueType(C.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=H(p,S,E,x),T=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},M=()=>{let u=n.footer.approve;return T?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(z,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:U,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:M(),cancelButton:N,hideCancel:T}})]})},R=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:G("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
1
+ import{M as N,j as b,bO as z,bQ as V,bR as W,jl as q,aa as G,l as Q}from"./index-rGMXK0Rc.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-DdM4zwoh-BrpeA22_.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=N.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,h,l)),[x,P]=f.useState(h),[B,H]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Q.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Z(p,S,E,x),C=e.fetchState==="Completed"&&S===0,O=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:O,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(z,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:G("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
@@ -1,4 +1,4 @@
1
- import{u as h,j as r,W as a,Y as m,ah as j,M as C,a4 as l,aY as x,v as g,o as c,ai as f}from"./index-C2JVdK9x.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{u as h,j as r,W as a,Y as m,ah as j,M as C,a4 as l,aY as x,v as g,o as c,ai as f}from"./index-rGMXK0Rc.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;