@zeniai/web-cockpit-ui 1.14.78-dev → 1.14.78-prod

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 (214) hide show
  1. package/dist/assets/{ACHDetailsPage-BBr3hjKe-DmwgQwoi.js → ACHDetailsPage-BBr3hjKe-NSWFHyOF.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-B-vYofxm-CueAgSWH.js → AIPerformancePage-B-vYofxm-DGtfeloS.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Cz3aGZOP-FJwBVSNw.js → AccountInfoPage-Cz3aGZOP-r3aIhyVt.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BhIHvb1W-Bi6sO2UU.js → AccountInfoPageContent-BhIHvb1W-GR7CXDjz.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DVj5pK2w-Btc_Aa5g.js → AccountLockedInfoModal-DVj5pK2w-BQ3VJfln.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CgOvOCsd-BuSAT9zG.js → AccountReconDetailsDrawerPage-CgOvOCsd-Blw2xHeh.js} +1 -1
  7. package/dist/assets/{AccountRow-BL5koYgc-Bpp_-jHh.js → AccountRow-BL5koYgc-DUOggy9P.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BU8h97bJ-D3nglOwm.js → AccountsPromoCardStack-BU8h97bJ-B_ikkjf8.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-DVZMh4b0-DDGq-0bk.js → AddAddressForCardDrawer-DVZMh4b0-vofExEkf.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-D5-phSVU-B90KFaVw.js → AddToWalletPage-D5-phSVU-gi7Jdeup.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-DO2vxSPF-BUs92F8j.js → AgingReportsPage-DO2vxSPF-BQPWhMTq.js} +1 -1
  12. package/dist/assets/{AllUserItems-Bj10fUCN-qGukLaqT.js → AllUserItems-Bj10fUCN-CIsl0s45.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-C94W-Km1-BXTwzcdq.js → ApAgingDetailPage-C94W-Km1-DwXOGHy6.js} +1 -1
  14. package/dist/assets/{AppBasePage-NJuErq7s-DIeVoSim.js → AppBasePage-NJuErq7s-CXR815nQ.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DCMF1Jd6-CJVMxrPb.js → AppDrawerContent-DCMF1Jd6-Bdn1uTR2.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DEqUEc5k-Cf46Z1DA.js → ApprovalRulesSettingsPage-DEqUEc5k-DyGaf_B5.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CwIX1AQg-BcJlv0pA.js → ArAgingChart-CwIX1AQg-TvuIMnBI.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BnVT2zeq-B--ayw4P.js → ArAgingDetailPage-BnVT2zeq-OTiXUSws.js} +1 -1
  19. package/dist/assets/{AttachmentView-C7P-Qoub-CDnUIgK_.js → AttachmentView-C7P-Qoub-D3-ENN1j.js} +1 -1
  20. package/dist/assets/{BankAccountSection-E80ZBAai-B1OPKgYv.js → BankAccountSection-E80ZBAai-BcmBYNzX.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CztvYd12-Dd_IuFMa.js → BankAccountWarningSection-CztvYd12-dzXZJROP.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CyJ4kVQ0-D3T4wVxu.js → BankConnectionsSettingsPage-CyJ4kVQ0-Ctfk1Zo5.js} +1 -1
  23. package/dist/assets/{BillDetailPage-CZFQXWJm-CxPL4aQD.js → BillDetailPage-CZFQXWJm-3js_0lbU.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-B3akEM1B-CaMhGK44.js → BillPayApprovalRuleDetailPage-B3akEM1B-UKI-_Nne.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CVCYQOAl-B3gc8W6n.js → BillPayApprovalRulesPage-CVCYQOAl-zI5LXwbf.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-CBDs8wIP-d9FWJLH1.js → BillPayPromoPage-CBDs8wIP-b-H9BLXg.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-QnIsNFDl-BMqpQ1or.js → BillPaySetUpPage-QnIsNFDl-BxZQquhB.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-DwEDJO53-CkI8EjUF.js → BillingSettingsPage-DwEDJO53-CkjAJp3t.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Dx5gsUBe-C5MR9QSa.js → BillsBulkReviewDrawerPage-Dx5gsUBe-X-XYtvhz.js} +1 -1
  30. package/dist/assets/{BoxItem-Cmm6_sNo-jBXKL1fn.js → BoxItem-Cmm6_sNo-D9iVzGZm.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-FnZN5SVF-DgfNuHA6.js → BusinessVerificationPage-FnZN5SVF-D_koNJ8x.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BWqNeBhp-DwG1MbkN.js → CardNumberSubText-BWqNeBhp-Bekz6bvy.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-6tp15mNj-pPE7tSFZ.js → CashbackDetailPage-6tp15mNj-BxBDbR9r.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DvT8GPmj-B488fqhb.js → ChargeCardDetailPage-DvT8GPmj-Dy1oLWtw.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CcolSO9a-B54fDiMP.js → ChargeCardListPage-CcolSO9a-DHBSKE-q.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-3WcSb2vU-Bsq73eiv.js → ChargeCardListTable-3WcSb2vU-BZojvpaf.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-C6Fq87Lk-z9cFna3d.js → ChargeCardPromoPage-C6Fq87Lk-B_cbt_BY.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-CfL5Cfh5-Bk5scRHc.js → ChargeCardSetupPage-CfL5Cfh5-Bq4Fc5FU.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-Dgl3uOoL-DYw26EN_.js → ChargeCardStatementsPage-Dgl3uOoL-CnwrQyLa.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-DO7f1vLd-DWXHiqvw.js → CheckDepositDrawerPage-DO7f1vLd-CkM-7BBp.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-CtL_gFPp-Dg6T6XvY.js → CollapsableReportTable-CtL_gFPp-vUytIlZJ.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-DhtqyLX4-8RWV-4yZ.js → CompanyOfficerDetailsSection-DhtqyLX4-Chd9nwjY.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-DQk1WcK--C4eODASw.js → CompanyPassportCard-DQk1WcK--DZ4lpEpS.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-BMWNDGSb-BlKD4WUs.js → CompanyPassportPage-BMWNDGSb-Dsf2-9n3.js} +1 -1
  45. package/dist/assets/{CompleteProfile-D80H4Rzf-CugRJ2ab.js → CompleteProfile-D80H4Rzf-B6oJQwra.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-yJiBV372-D2z1FK8D.js → ConfettiBurst-yJiBV372-DeNb7CrV.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-rHMje8ez-otONcw2O.js → CreateOrEditVendorPage-rHMje8ez-2Whimmdt.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-4OU7Lhdi-B8u5r9vf.js → CreditCardPaymentDrawerPage-4OU7Lhdi-BYVDN_fg.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-COHkbTPk-BQ2JMMs4.js → CurrencySelectField-COHkbTPk-_Q_zjBgA.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-CJPKW9XR-B_VtYc4q.js → CustomerOnboardingActivationPage-CJPKW9XR-kYG8lYXC.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-BaxDMttb--D92ifi1.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cc2tiqfe-LOlDo6YW.js → CustomerOnboardingDetailPageSkeleton-Cc2tiqfe-B2YOGriy.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-DC588ynj-BuQ5PP-4.js → CustomerOnboardingNoStepsPage-DC588ynj-CR2d2GiR.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-TZNAbEGl-BigMHAQ3.js → CustomerOnboardingPage-TZNAbEGl-iHRbAuLV.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DBwiHpQh-BDemt4nT.js → CustomerOnboardingProductSuitePage-DBwiHpQh-i5-lqU_e.js} +1 -1
  56. package/dist/assets/{Dashboard-pJczkSFT-BjDVnova.js → Dashboard-pJczkSFT-BPn8Uqo8.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-8hlyFHVx-D-kGlzYw.js → DashboardReportPage-8hlyFHVx-Ztf8h8yn.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-CUljkJMW-BbliQtGT.js → DashboardSidebarBackgroundAnimation-CUljkJMW-CbCJjz4A.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-CRbSf5Q4-CjxvITzw.js → DepositAccTransactionItem-CRbSf5Q4-B6vYeyGF.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-vfY6wjIt-BGd8XasM.js → DepositAccTransactionListPage-vfY6wjIt-DnrebM4U.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-CT0V_5n--BgSez3SD.js → DomesticWireDetailsPage-CT0V_5n--BJwJQxtl.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-RhapSbyy-CcDhwAvC.js → DownloadOverlay-RhapSbyy-DXKUU_7q.js} +1 -1
  63. package/dist/assets/{DrawerPage-BGxCMICq-BEnhBXba.js → DrawerPage-BGxCMICq-BYx_Bc6R.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-zkGpgy0E-DiNnwKdz.js → EditPeoplePage-zkGpgy0E-CPR4scDc.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-YNr7t4uO-cycc5Vxl.js → EditReimbursementDetailPage-YNr7t4uO-DCkZ8wm5.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-CvHVRPti-CTPZRN3l.js → EntityDetailPage-CvHVRPti-Et8a-NAy.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BL4KXUKt-D0m_-MYB.js → EntitySummarySection-BL4KXUKt-De0RYUnu.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-cfIfBAdG-CwVBP631.js → ExpenseAutomationOverviewPage-cfIfBAdG-Cdwh_L3P.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-w5KBIkzX-DNEr1zFf.js → ExpenseAutomationPage-w5KBIkzX-CvVLAmT7.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-C0BRzjKh-CGOi26bB.js → ExpressPayPage-C0BRzjKh-DrenvMT9.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-CvXMDwqC-D2nsqOAa.js → FeaturePreviewPage-CvXMDwqC-zytFvTUq.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-BhicFBJC-BnfxYZnB.js → FollowStepsSection-BhicFBJC-DhMBLhqL.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-NWw4VpLx-DimgtLRx.js → GlobalReviewListPage-NWw4VpLx-Bh7A2xZ4.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DPF-q0NU-BGbDelrw.js → InformationCardStack-DPF-q0NU-b90a3tFj.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-DqXScToX-BP-E2NoY.js → InsightsCardStack-DqXScToX-Kuwagg2L.js} +1 -1
  76. package/dist/assets/{InsightsSection-89tqblCE-ryDAJki1.js → InsightsSection-89tqblCE-DtAhgG6S.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-TqeoKF96-DjFgrTC9.js → IntegrationsSettingsPage-TqeoKF96-hXxKBdvw.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-B539-ETc-BJYLkHkm.js → InternationalWireSwiftDetailsPage-B539-ETc-ymc0m1YU.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-de0B053v-Da5BAs0m.js → InternationalWireVerificationPage-de0B053v-vVTtKJhO.js} +1 -1
  80. package/dist/assets/{InviteFormPage-DAvP-Mqn-DH_W3jek.js → InviteFormPage-DAvP-Mqn-C-rkh4Ht.js} +1 -1
  81. package/dist/assets/{InvitePageListView-1fpa5DiR-Duty8Drj.js → InvitePageListView-1fpa5DiR-C1SLM3c2.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-Dty9Mavy-Cg-gVOow.js → InvitePeoplePage-Dty9Mavy-j8LWD47D.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-cqqlOUmi-DLEVVu7D.js → InvoiceUploadSection-cqqlOUmi-nRB6EEDc.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-B8QKtUJX-B7vAjThm.js → IssueChargeCardPage-B8QKtUJX-azz85VUZ.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-XDIk4yMe-CJyAzzU2.js → LabeledAddressValue-XDIk4yMe-CHMsPBaO.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-wQ3ZPcTl-DNcT7ZwQ.js → LabeledAddressValueField-wQ3ZPcTl-B5_-0ZQu.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-CXbrD37F-H_9_5PIU.js → LabeledControlledCheckBoxField-CXbrD37F-BVs1RkwH.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-DYSTwuBo-Bsd4eNN1.js → LabeledCreatableSingleSelectField-DYSTwuBo-ibRrU-Xc.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-DqyIwz8V-Bzx4zsD_.js → LabeledDocumentField-DqyIwz8V-DHZMadqH.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-CY8863G0-Bkq0hwt5.js → LabeledDropDownFormattedTextField-CY8863G0-RqB__v7m.js} +1 -1
  91. package/dist/assets/{LabeledText-BwCD1YQu-Dnz64xNR.js → LabeledText-BwCD1YQu-C02nkilw.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dx_h7UNS-DIhFjHJX.js → LabeledUserSingleSelectWithSubtitlesField-Dx_h7UNS-D4Cvzn53.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-CV7z94YU-Co56sLUc.js → LabeledZeniRolesDropDownField-CV7z94YU-CREvWFSy.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-D1y5q5Wg-BCM3URA3.js → LinkJETransactionPage-D1y5q5Wg-BxthPoeh.js} +1 -1
  95. package/dist/assets/{LockCardPage-Bh3qAiju-BAUaH8uW.js → LockCardPage-Bh3qAiju-QRISAqjK.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BnLcsJ93-DQb9af0_.js → LowBalancePopup-BnLcsJ93-C4lORPYU.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-BZ2OEqOP-BO-M2hPx.js → MagicLinkACHDetailsPage-BZ2OEqOP-DFM-CNIY.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-V_TzduIL-YMgVYU0E.js → MagicLinkDomesticWireDetailsPage-V_TzduIL-BRLXGLqS.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-Z-ssCodH-BMKh3rhe.js → MagicLinkInternationalWireDetailsPage-Z-ssCodH-BI-n0ZM1.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-h-3JwH0l-D-x6rG6N.js → MagicLinkSuccessPage-h-3JwH0l-M57kte7E.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-BvFcpyWQ-Ctzp_qom.js → MagicLinkTitleSection-BvFcpyWQ-B9CzNMDk.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-BvORwvuJ-Cd8besCn.js → MailingDetailsSection-BvORwvuJ-DLOwut9X.js} +1 -1
  103. package/dist/assets/{Menu-Be5LGB2P-CY6k6YNk.js → Menu-Be5LGB2P-DxJo2iR8.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CpUST0yD-CmwjSncm.js → MyBankConnectionsSettingsPage-CpUST0yD-BNXdhy5b.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-FwhUaTr1-DLJn8rxm.js → MyPendingActivationChargeCardListPage-FwhUaTr1-lSD7flD4.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BssE8V9S-CkDMste5.js → MyProfileSettingsPage-BssE8V9S-DJklc1K7.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-DcLSQEDR-D-B1uB5d.js → NavBarWithPicker-DcLSQEDR-O7GsMW7s.js} +1 -1
  108. package/dist/assets/{NavigationArrow-BGfn2Qeo-BONpvrR8.js → NavigationArrow-BGfn2Qeo-BB-v1PKM.js} +1 -1
  109. package/dist/assets/{NavigationDots-Du9pIMPO-CLHhrXU0.js → NavigationDots-Du9pIMPO-C3a5TONz.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-oxKXaotj-D5xy9dWr.js → NewGlobalMerchantPage-oxKXaotj-CjP7UtC8.js} +1 -1
  111. package/dist/assets/{NoDataChart-rSvTjDyU-DQQLbTol.js → NoDataChart-rSvTjDyU-B-OHK5mu.js} +1 -1
  112. package/dist/assets/{NoDataTable-D-FagLTd-CarE1NA4.js → NoDataTable-D-FagLTd-Djg3Sxbv.js} +1 -1
  113. package/dist/assets/{NotFoundPage-Bjlp3h5o-BNqVD4co.js → NotFoundPage-Bjlp3h5o-CDKIpNdm.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-DLdHPA7P-BZOLK1Qb.js → NotificationSettingsPage-DLdHPA7P-CRoMGFzv.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-61mZY8cq-DLiCun9F.js → NotificationsListConfig-61mZY8cq-DIvx6_W1.js} +1 -1
  116. package/dist/assets/{NotificationsPage-BV6UT90B-DVI13tX7.js → NotificationsPage-BV6UT90B-BeQ9l-VG.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-C2uIYLJE-DFWs8V6z.js → OpExByVendorPage-C2uIYLJE-CNQJTZlK.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-BKHs_4eI-LY1o0G26.js → OverlayContainerPage-BKHs_4eI-DK722mXL.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-011GoPMW-QgazKKL3.js → PandLWithForecastPage-011GoPMW-DfF_xVau.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-FIKucVHC-CKfxBiCA.js → PaymentAccountSetupBillingAddressSection-FIKucVHC-C9tzqpu-.js} +1 -1
  121. package/dist/assets/{PeoplePage-D73jfjjL-DH7xyfFs.js → PeoplePage-D73jfjjL-DQ5DODyr.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-B2I3MkC--B24RD0jf.js → ProductsCarousel-B2I3MkC--BWOn65L_.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-K94TnRI--8YuYiWbK.js → PromoBaseCards-K94TnRI--bAIvGOOh.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-BElkJYqc-CMHpBrQ7.js → QBOConnectionDialog-BElkJYqc-CKE6u00F.js} +1 -1
  125. package/dist/assets/{QBOSetupSection-BM1ND3Rh-D7ZnyPew.js → QBOSetupSection-BM1ND3Rh-C2EdZeCv.js} +1 -1
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CTK_6r1g-DIQfqQG8.js → ReimbursementApprovalRuleDetailPage-CTK_6r1g-BzFi44hZ.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-2BX5dPNw-DFdrMNyB.js → ReimbursementApprovalRulesPage-2BX5dPNw-r3lIkfuB.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-DCt2BBxN-CE0p8p3R.js → ReimbursementDetailPage-DCt2BBxN-DLlDYvqL.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-BFhBDfxP-SCkb1hCR.js → ReimbursementPromoPage-BFhBDfxP-BBOxBhNg.js} +1 -1
  130. package/dist/assets/{ReimbursementSetUpPage-CtuEiJUp-D0GXD8e2.js → ReimbursementSetUpPage-CtuEiJUp-DiFVKRl3.js} +1 -1
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DLAi8-G--RlDocKGe.js → ReimbursementsBulkReviewDrawerPage-DLAi8-G--BmxsA0jc.js} +1 -1
  132. package/dist/assets/{ReloadCard-r88gK1Nl-Cj6LuWAm.js → ReloadCard-r88gK1Nl-e2UeuEs2.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-DfEmPzs8-VvrOK2Wc.js → ReportTableViewSelector-DfEmPzs8-Yg0_3IWu.js} +1 -1
  134. package/dist/assets/{ReportsPage-DKyERqNb-CncdZXHz.js → ReportsPage-DKyERqNb-BMzLb7Ex.js} +1 -1
  135. package/dist/assets/{RevenueChart-Cm8B-tgV-Q8YY96MD.js → RevenueChart-Cm8B-tgV-B-ZcuZO1.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-DCWJANse-mD4kJALB.js → ReviewDetailsPage-DCWJANse-Dy4GkEmc.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-euS8ygX5-TmwkPaQL.js → ReviewOverlay-euS8ygX5-DvuzqZsi.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-DBoLqf02-BSy4p3TF.js → RoleWithToolTip-DBoLqf02-DGfioCUG.js} +1 -1
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ben60pXV-aXNE7Oa2.js → ScheduleDetailsFixedAssetsPage-Ben60pXV-DtL0k98t.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsPage-CoSd_hY0-EO4RGNbr.js → ScheduleDetailsPage-CoSd_hY0-DVIgtla7.js} +1 -1
  141. package/dist/assets/{ScheduleSequenceTable-DNaegdk6-CcoyMFia.js → ScheduleSequenceTable-DNaegdk6-DUER4bQb.js} +1 -1
  142. package/dist/assets/{ScreenRoutes-D4KW_Kl1.js → ScreenRoutes-DhHVWejv.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-r3-A3Qt7-BMiHEXgf.js → SetUpAccountSection-r3-A3Qt7-DtU9_Iuz.js} +1 -1
  144. package/dist/assets/{SignIn-BZiwaRoI-DOcbjUGN.js → SignIn-BZiwaRoI-DzoK_whi.js} +1 -1
  145. package/dist/assets/{SignInScreen-CEi1t656.js → SignInScreen-CGXWMYaI.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-CbIlUHNO-CjKfkEA0.js → SpendManagementListViewPage-CbIlUHNO-BeTtH2Ke.js} +3 -3
  147. package/dist/assets/{SpendManagementPerTabPage-Bzztq_eL-Cr7PhexU.js → SpendManagementPerTabPage-Bzztq_eL-D14npiTt.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-CfZUGMdU-CsD5w1-P.js → SpendManagementSection-CfZUGMdU-CGo9naoc.js} +1 -1
  149. package/dist/assets/{StatementItem-1oYAnZBe-DB3PV1fI.js → StatementItem-1oYAnZBe-B9GGhkkY.js} +1 -1
  150. package/dist/assets/{StatementsPage-Dij9AQNC-BtPV87P1.js → StatementsPage-Dij9AQNC-Ccv6aq7A.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-DkXBTB62-CFNeW9jw.js → StatusSwitcher-DkXBTB62-D0U3mT6Y.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-V4wilVXH-CzhwAGtW.js → SubTabSwitcher-V4wilVXH-CIa3tJav.js} +1 -1
  153. package/dist/assets/{SummaryCard-BL_m-4zh-h3wWysWj.js → SummaryCard-BL_m-4zh-QwOw9kpz.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-BajeQTSZ-oU5PnTQx.js → TaskManagementPage-BajeQTSZ-STsnI5ma.js} +1 -1
  155. package/dist/assets/{TimeRangeSwitcher-CAsAYfkz-B9S7W-fy.js → TimeRangeSwitcher-CAsAYfkz-DpSyVDkA.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-pwO8bqPA-qyPTOgRD.js → TimeframeSwitcher-pwO8bqPA-DHSOb2PJ.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-CylL4Wwl-BGYiQzX6.js → TimeframeSwitcherWithToggle-CylL4Wwl-BEV-k6pt.js} +1 -1
  158. package/dist/assets/{TopExCard-8b4BYDqW-Bim2d0Qx.js → TopExCard-8b4BYDqW-C-uNcN8A.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-BwYkPIGL-CVnPqhCW.js → TopExDetailPage-BwYkPIGL-Dq99CoON.js} +1 -1
  160. package/dist/assets/{TransactionDetailPage-asV0VD04-Dku7lGAG.js → TransactionDetailPage-asV0VD04-DwLlx7ee.js} +1 -1
  161. package/dist/assets/{TransactionList-BTYUuFF0-BuGQJ-J9.js → TransactionList-BTYUuFF0-AfSj2zSz.js} +1 -1
  162. package/dist/assets/{TransactionListBig-EEgwS3bL-CIwl52Hz.js → TransactionListBig-EEgwS3bL-CZsYF5vf.js} +1 -1
  163. package/dist/assets/{TransactionListPage-JcTgXQlG-BteCsgoO.js → TransactionListPage-JcTgXQlG-9UGK3lyc.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-3i4vhXP0-CJ9heHyn.js → TransactionVendorDetailPage-3i4vhXP0-BVJT9NPI.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-lxqmIEDE-BTFpzMFt.js → TransferDrawerPage-lxqmIEDE-CKgOthjI.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-Dtg3XYHp-CCQT-UC5.js → TreasuryOverviewPage-Dtg3XYHp-BBdJisf_.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-9JgpPvwF-DMINdkdp.js → TreasuryPromoPage-9JgpPvwF-DG30ZwAv.js} +1 -1
  168. package/dist/assets/{TreasuryStatementsPage-C_n6todR-PS0jq9KZ.js → TreasuryStatementsPage-C_n6todR-D2aZUhCS.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-BkUuZRBn-I-amf3Wl.js → TreasuryTaxLetterPage-BkUuZRBn-YTT_7Mdp.js} +1 -1
  170. package/dist/assets/{TrendChart-jDPeWiPY-BnzV3ZRK.js → TrendChart-jDPeWiPY-B_1sXdcL.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-Ci3vAGZ6-oc-MZ3OM.js → TrendWithTransactions-Ci3vAGZ6-DW_8QZPN.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-cKYwTc7z-C1i7CQ_v.js → UncategorizedAccountsMappingPage-cKYwTc7z-ysPzYAni.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-CdoyFTUL-BrI6cogt.js → UnitIntegrationPage-CdoyFTUL-DHH-FOoc.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-RzDi2m23-UJEPC3YG.js → UploadAdditionalDocumentOverlay-RzDi2m23-C2Y1I0bO.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-CZQ1MJ_y-594P_oEM.js → Vendor2FAPopup-CZQ1MJ_y-Cbx-gnun.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-D4y31eUn-I4g49nVk.js → VendorACHDetailsPage-D4y31eUn-zkty4LQV.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-BldaRW5A-3THD9kjc.js → VendorDetailPage-BldaRW5A-D8rfTMYC.js} +1 -1
  178. package/dist/assets/{VendorDomesticWireDetailsPage-C12NRy8p-B97Bk30e.js → VendorDomesticWireDetailsPage-C12NRy8p-nCYGwznJ.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-B3y2ImTz-Cp7HifGj.js → VendorFiling1099EditablePage-B3y2ImTz-BLwGmb7l.js} +1 -1
  180. package/dist/assets/{VendorFirstReviewPage-e3aUtVX3-DYYyJDQQ.js → VendorFirstReviewPage-e3aUtVX3-D8WcdsMM.js} +1 -1
  181. package/dist/assets/{VendorInternationalWireDetailsPage-CMPGutjq-DFsWu_Yo.js → VendorInternationalWireDetailsPage-CMPGutjq-Dxaht0vQ.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-OEKIn5Ns-CfEbfNrV.js → VendorInternationalWireSwiftDetailsPage-OEKIn5Ns-Bi0fxbCo.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-BihANnr3-4NcXxJkz.js → VendorsAccountsSection-BihANnr3-Bk0s5MLC.js} +1 -1
  184. package/dist/assets/{VerifyDevice-BTvVtu6y-BAv_Ifby.js → VerifyDevice-BTvVtu6y-CRasyCwS.js} +1 -1
  185. package/dist/assets/{VideoPlayer-DfTUoEz0-B6gHyXB7.js → VideoPlayer-DfTUoEz0-DEo_v7rJ.js} +1 -1
  186. package/dist/assets/{VideoPopup-B0Q_OHQY-CZuLXJYU.js → VideoPopup-B0Q_OHQY-CeLQngtU.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CrqblZGy-c6lT3LQ-.js → WarningsDrawerPage-CrqblZGy-DZvi3bel.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-DlUMJ31l-DiqR28EO.js → ZeniAccountDetailPage-DlUMJ31l-xaXDlbph.js} +1 -1
  189. package/dist/assets/{ZeniAccountListViewPage-B5eFGMk6-BE7J63qD.js → ZeniAccountListViewPage-B5eFGMk6-BchJzpUL.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-DHS4RmYE-DDcjTqab.js → ZeniAccountNavBarPieces-DHS4RmYE-Bq6t6J74.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-BSm60eyo-CCm0IHWc.js → ZeniAccountPromoPage-BSm60eyo-DVmftarj.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-CmW6e4wI-C2eyAbwK.js → ZeniAccountSetupPage-CmW6e4wI-DMoAqlor.js} +1 -1
  193. package/dist/assets/{ZeniCopyright-FdRtkqZd-BaAr1xYE.js → ZeniCopyright-FdRtkqZd-CkpZz8Qy.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-BFufV56Y-D41zguuQ.js → ZeniTransferAmountSlider-BFufV56Y-Bb4Ag9zZ.js} +1 -1
  195. package/dist/assets/{analyticsHelper-Cj-s21r4.js → analyticsHelper-BICwCtas.js} +1 -1
  196. package/dist/assets/{analyticsHelper-Bp-WofY6-1T9Q3X9o.js → analyticsHelper-Bp-WofY6-BYaMxLR_.js} +1 -1
  197. package/dist/assets/{chartTypes-B2M-L_2B-SreV-bCP.js → chartTypes-B2M-L_2B-CE878okY.js} +1 -1
  198. package/dist/assets/{commonDimensions-V7mnkdlI-CWlmDNp9.js → commonDimensions-V7mnkdlI-BHNCZVIR.js} +1 -1
  199. package/dist/assets/{detailCommon-DwrYiaFL-Cfj_XDMA.js → detailCommon-DwrYiaFL-DFnbn0Mz.js} +1 -1
  200. package/dist/assets/{downloadPdf-Byh_NifO-N2Gc_x_k.js → downloadPdf-Byh_NifO-CdmiCGb1.js} +1 -1
  201. package/dist/assets/{index-BjVZjrQv.js → index-BoI2bkaF.js} +4 -4
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-D6GLjoFV-DnVjrkk_.js → mapLoadingInProgressToTreeNode-D6GLjoFV-DTwllzLR.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D-8W8W6B-BX7_EeNM.js → mapSectionWithAcOnlyToTreeNode-D-8W8W6B-CXKgj3-d.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-ByHELHOn-BqjPN0Y-.js → mapSpacerToTreeNode-ByHELHOn-B5v9aqw4.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-B-c4aUT4-_2PZ_vTn.js → mapTimeframeBalancesToTreeNode-B-c4aUT4-5u4uEloP.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-BJ934QgM-CGOvn-ke.js → mapTimeframeBalancesToTreeNode-BJ934QgM-DkBmbqC8.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-pA0oPIQY-C25ssS0K.js → mapTimeframeHeaderLoadingInProgressToTreeNode-pA0oPIQY-CNayDlb8.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-Db8tb9a8-Dmlg7uwX.js → toCOABalancesWithID-Db8tb9a8-AhJa3Plt.js} +1 -1
  209. package/dist/assets/{toChartData-DAKm9HcI-tf17V8KM.js → toChartData-DAKm9HcI-M0iGmyi4.js} +1 -1
  210. package/dist/assets/{uploadAttachment-BEGz93Tv-Cnzo2OiR.js → uploadAttachment-BEGz93Tv-Dex9mHRC.js} +1 -1
  211. package/dist/assets/{uploadReceipts-Dp1dvCjf-Jq1nuUKw.js → uploadReceipts-Dp1dvCjf-BfvShuCp.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +1 -1
  214. package/dist/assets/CustomerOnboardingContainerPage-BaxDMttb-BmNWLnmJ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as ie,g4 as te,d as fe,ax as ge,g5 as be,aa as ye,aC as xe,l as A,cU as we,cT as Pe,F as re,j as l,g6 as ve,bG as $e,ad as De,aQ as Se,o as s,g7 as ne,g8 as de,g9 as ce,cP as ue,y as L,an as me,b as je,B as Re,aJ as le,d3 as Oe,cW as Ce,ga as E,d0 as Le,c_ as Te,gb as Ie,a$ as Be,u as U}from"./index-BjVZjrQv.js";import{b as v,n as m}from"./vendor-Bs1fkIUX.js";import{W as Ve}from"./LabeledAddressValueField-wQ3ZPcTl-DNcT7ZwQ.js";import{Y as Fe}from"./LabeledUserSingleSelectWithSubtitlesField-Dx_h7UNS-DIhFjHJX.js";import{C as ze,j as Ae}from"./LabeledZeniRolesDropDownField-CV7z94YU-Co56sLUc.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./RoleWithToolTip-DBoLqf02-BSy4p3TF.js";const b=(e,t)=>`${e}.${t}`,z={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(U[2],U[3]),toolTipWidth:new L(215,237),notePadding:new L(U[3],U[4]),noteGap:new L(U[0],6)},{peoplePage:a,common:{settings:se,labels:q,placeholder:F,errorMessage:ke},dateFormat:Ne}=re.getLocalizedStrings(),We=({myProfileView:e,isZeniFinopsRolesUser:t,sectionId:i,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:$,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:x})=>{const n=ie(),{person:r,managersList:k,classList:N,manager:H,department:g,controllersList:W,myProfileLocalData:M,addressData:J}=e,Q=e.person.user?.birthday!=null?"readonly":void 0,D=z.largeLabelWidth.value(n),I=z.largeLabelWidth.value(n),Y=v.useMemo(()=>te(y,p,o,f,$,T,h),[y,p,o,f,$,T,h]),{firstController:w,restControllerEmailsStr:S}=v.useMemo(()=>{const c=le(W),j=c.splice(0,1),R=c.reduce((B,V)=>B.concat(`${V.email},`),"");return{firstController:j,restControllerEmailsStr:R}},[W]),K=v.useMemo(()=>le(ue.roles),[]),d=A.hasInvestorBankerLevelAccess(r.userRole!=null?r.userRole.userRoles:[]),Z=v.useMemo(()=>N.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[N]);return l.jsxs(_e,{windowSize:n,children:[l.jsx(Oe,{isDisabled:u,label:{label:q.name,width:I},nameField:{name:b(i,"name"),placeHolder:{firstName:F.firstNamePlaceholder,lastName:F.lastNamePlaceholder,name:F.namePlaceholder},showFullNameError:!0},errorInfoLabel:ke.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(C,{}),l.jsx(Ce,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(i,"email"),placeholder:E(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${z.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Le,{label:{label:q.dateOfBirth,width:I},style:{width:"auto"},isDisabled:Q,dateField:{name:b(i,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:M.dateOfBirth,dateFormat:Ne.visual.defaultInput,autoComplete:"off",maxDate:A.dateNow().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(Ve,{label:{label:q.mailingAddress,width:I},addressValueField:{name:b(i,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:J?.addressToCreate,onClick:()=>{x("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Te,{label:{label:q.phone,width:I},text:{name:b(i,"phone"),placeholder:F.phonePlaceholder,defaultValue:M.phone,autoComplete:"off"},showVerified:M.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),t?l.jsx(ze,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(i,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:K},registerOptions:{required:!0},placeholderLabel:E(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(Ae,{label:{label:a.invitePage.role,width:D},rolesDropDownField:{name:b(i,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,$)},productsByUserRole:ne(r.userRole?.userRoles??[],Y)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Fe,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:z.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(Me,{}),userSingleSelectWithSubTitlesField:{name:b(i,"manager"),value:{allUsers:d?[]:k,selectedUser:d?void 0:H?.userId},valueToSubtitle:c=>{const j=k.findIndex(R=>R.userId===c);if(j!==-1){const R=k[j],B=N.find(X=>X.classId===R.userRole.accountingClassIDs[0]),V=[];return B!=null&&V.push(B.className),V}else return[]},placeholderLabel:d?a.notApplicable:E(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(C,{}),l.jsx(Ie,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(i,"department"),defaultValue:{allOptions:d?[]:Z,selectedOption:d?void 0:Z.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:E(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),t?null:l.jsxs(Ue,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Ze,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(Ge,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},Me=()=>a.invitePage.managerTooltipText,_e=m.div`
1
+ import{q as ie,g4 as te,d as fe,ax as ge,g5 as be,aa as ye,aC as xe,l as A,cU as we,cT as Pe,F as re,j as l,g6 as ve,bG as $e,ad as De,aQ as Se,o as s,g7 as ne,g8 as de,g9 as ce,cP as ue,y as L,an as me,b as je,B as Re,aJ as le,d3 as Oe,cW as Ce,ga as E,d0 as Le,c_ as Te,gb as Ie,a$ as Be,u as U}from"./index-BoI2bkaF.js";import{b as v,n as m}from"./vendor-Bs1fkIUX.js";import{W as Ve}from"./LabeledAddressValueField-wQ3ZPcTl-B5_-0ZQu.js";import{Y as Fe}from"./LabeledUserSingleSelectWithSubtitlesField-Dx_h7UNS-D4Cvzn53.js";import{C as ze,j as Ae}from"./LabeledZeniRolesDropDownField-CV7z94YU-CREvWFSy.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./RoleWithToolTip-DBoLqf02-DGfioCUG.js";const b=(e,t)=>`${e}.${t}`,z={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(U[2],U[3]),toolTipWidth:new L(215,237),notePadding:new L(U[3],U[4]),noteGap:new L(U[0],6)},{peoplePage:a,common:{settings:se,labels:q,placeholder:F,errorMessage:ke},dateFormat:Ne}=re.getLocalizedStrings(),We=({myProfileView:e,isZeniFinopsRolesUser:t,sectionId:i,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:$,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:x})=>{const n=ie(),{person:r,managersList:k,classList:N,manager:H,department:g,controllersList:W,myProfileLocalData:M,addressData:J}=e,Q=e.person.user?.birthday!=null?"readonly":void 0,D=z.largeLabelWidth.value(n),I=z.largeLabelWidth.value(n),Y=v.useMemo(()=>te(y,p,o,f,$,T,h),[y,p,o,f,$,T,h]),{firstController:w,restControllerEmailsStr:S}=v.useMemo(()=>{const c=le(W),j=c.splice(0,1),R=c.reduce((B,V)=>B.concat(`${V.email},`),"");return{firstController:j,restControllerEmailsStr:R}},[W]),K=v.useMemo(()=>le(ue.roles),[]),d=A.hasInvestorBankerLevelAccess(r.userRole!=null?r.userRole.userRoles:[]),Z=v.useMemo(()=>N.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[N]);return l.jsxs(_e,{windowSize:n,children:[l.jsx(Oe,{isDisabled:u,label:{label:q.name,width:I},nameField:{name:b(i,"name"),placeHolder:{firstName:F.firstNamePlaceholder,lastName:F.lastNamePlaceholder,name:F.namePlaceholder},showFullNameError:!0},errorInfoLabel:ke.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(C,{}),l.jsx(Ce,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(i,"email"),placeholder:E(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${z.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Le,{label:{label:q.dateOfBirth,width:I},style:{width:"auto"},isDisabled:Q,dateField:{name:b(i,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:M.dateOfBirth,dateFormat:Ne.visual.defaultInput,autoComplete:"off",maxDate:A.dateNow().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(Ve,{label:{label:q.mailingAddress,width:I},addressValueField:{name:b(i,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:J?.addressToCreate,onClick:()=>{x("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Te,{label:{label:q.phone,width:I},text:{name:b(i,"phone"),placeholder:F.phonePlaceholder,defaultValue:M.phone,autoComplete:"off"},showVerified:M.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),t?l.jsx(ze,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(i,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:K},registerOptions:{required:!0},placeholderLabel:E(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(Ae,{label:{label:a.invitePage.role,width:D},rolesDropDownField:{name:b(i,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,$)},productsByUserRole:ne(r.userRole?.userRoles??[],Y)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Fe,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:z.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(Me,{}),userSingleSelectWithSubTitlesField:{name:b(i,"manager"),value:{allUsers:d?[]:k,selectedUser:d?void 0:H?.userId},valueToSubtitle:c=>{const j=k.findIndex(R=>R.userId===c);if(j!==-1){const R=k[j],B=N.find(X=>X.classId===R.userRole.accountingClassIDs[0]),V=[];return B!=null&&V.push(B.className),V}else return[]},placeholderLabel:d?a.notApplicable:E(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(C,{}),l.jsx(Ie,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(i,"department"),defaultValue:{allOptions:d?[]:Z,selectedOption:d?void 0:Z.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:E(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),t?null:l.jsxs(Ue,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Ze,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(Ge,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},Me=()=>a.invitePage.managerTooltipText,_e=m.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{d as p,q as m,j as o,aM as u,c6 as g,F as x,o as t,bK as b,f7 as k,ch as y,c4 as C,b as v}from"./index-BjVZjrQv.js";import{n as l}from"./vendor-Bs1fkIUX.js";const j=l.div`
1
+ import{d as p,q as m,j as o,aM as u,c6 as g,F as x,o as t,bK as b,f7 as k,ch as y,c4 as C,b as v}from"./index-BoI2bkaF.js";import{n as l}from"./vendor-Bs1fkIUX.js";const j=l.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  flex: 1 1 auto;
@@ -1,4 +1,4 @@
1
- import{j as e,o as r,a$ as g,ch as c}from"./index-BjVZjrQv.js";import{i as t,n as l}from"./vendor-Bs1fkIUX.js";const $=t`
1
+ import{j as e,o as r,a$ as g,ch as c}from"./index-BoI2bkaF.js";import{i as t,n as l}from"./vendor-Bs1fkIUX.js";const $=t`
2
2
  border-left-style: none;
3
3
  margin-left: -${r.sp3};
4
4
  border-top-right-radius: ${r.sp2};
@@ -1,4 +1,4 @@
1
- import{j as e,aM as v,o as t}from"./index-BjVZjrQv.js";import{n as a}from"./vendor-Bs1fkIUX.js";const C=a.div`
1
+ import{j as e,aM as v,o as t}from"./index-BoI2bkaF.js";import{n as a}from"./vendor-Bs1fkIUX.js";const C=a.div`
2
2
  text-align: center;
3
3
  cursor: pointer;
4
4
  `,y=a.div`
@@ -1,4 +1,4 @@
1
- import{q as F,aa as A,cT as Q,aP as Y,j as t,F as T,ad as Z,aQ as X,y as i,o as a,L as ee,B as _,M as te,h5 as ae,am as le,d4 as O,ir as ne,cY as U,cW as oe,u as l,b9 as re,dc as ie,da as de,dp as se,k as ce,eO as me,dF as he,bm as be,p as D}from"./index-BjVZjrQv.js";import{b as j,n as o,i as ge}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const w={width:new i(343,580,726),height:new i(l[6],l[6]),controlHeight:new i(l[6],l[6]),paddingTopBottom:new i(l[2],l[2]),marginRight:new i(l[2],l[2]),labelMarginLeft:new i(l[3],l[4]),labelMarginRight:new i(l[3],l[4]),labelMarginTop:new i(l[2],l[2])},ue={infoLabel:new _("smallRegular","standardRegular")},pe=T.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:g,style:v,toolTip:M,isOptionalLabel:y}){const s=F(),{formState:{errors:d}}=O(),$=ie(d,n.name);return t.jsxs(fe,{windowSize:s,style:v,isDisabled:n.isDisabled!=null,isError:$,children:[t.jsx(de,{isDisabled:n.isDisabled,label:e.label,style:{marginLeft:w.labelMarginLeft.value(s),marginRight:w.labelMarginRight.value(s),marginTop:w.labelMarginTop.value(s),width:e.width??"auto"},showTooltip:M!=null,tooltipTitle:M?.title,toolTipWidth:M?.width,isOptional:y}),t.jsxs(xe,{labelWidth:e.width,children:[t.jsx(se,{...n,style:{...n.style,display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(s),cursor:"inherit"}}),g?.fetchState==="In-Progress"?t.jsx($e,{children:t.jsx(ce,{size:"Standard",start:!0})}):t.jsxs(Se,{children:[t.jsxs(Me,{windowSize:s,isRecommendationVisible:m.length>0,isError:$,children:[h.icon,h.label]}),m.length>0?m.map((u,p)=>t.jsxs(t.Fragment,{children:[t.jsx(me,{isHighlighted:!0,label:{label:u.label},checkBoxField:u.field,defaultChecked:u.field.defaultChecked,isDisabled:u.field.isDisabled!=null},he()),p<m.length-1?t.jsx(ve,{children:pe.common.texts.or}):null]})):null]})]})]})}const fe=o.div`
1
+ import{q as F,aa as A,cT as Q,aP as Y,j as t,F as T,ad as Z,aQ as X,y as i,o as a,L as ee,B as _,M as te,h5 as ae,am as le,d4 as O,ir as ne,cY as U,cW as oe,u as l,b9 as re,dc as ie,da as de,dp as se,k as ce,eO as me,dF as he,bm as be,p as D}from"./index-BoI2bkaF.js";import{b as j,n as o,i as ge}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const w={width:new i(343,580,726),height:new i(l[6],l[6]),controlHeight:new i(l[6],l[6]),paddingTopBottom:new i(l[2],l[2]),marginRight:new i(l[2],l[2]),labelMarginLeft:new i(l[3],l[4]),labelMarginRight:new i(l[3],l[4]),labelMarginTop:new i(l[2],l[2])},ue={infoLabel:new _("smallRegular","standardRegular")},pe=T.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:g,style:v,toolTip:M,isOptionalLabel:y}){const s=F(),{formState:{errors:d}}=O(),$=ie(d,n.name);return t.jsxs(fe,{windowSize:s,style:v,isDisabled:n.isDisabled!=null,isError:$,children:[t.jsx(de,{isDisabled:n.isDisabled,label:e.label,style:{marginLeft:w.labelMarginLeft.value(s),marginRight:w.labelMarginRight.value(s),marginTop:w.labelMarginTop.value(s),width:e.width??"auto"},showTooltip:M!=null,tooltipTitle:M?.title,toolTipWidth:M?.width,isOptional:y}),t.jsxs(xe,{labelWidth:e.width,children:[t.jsx(se,{...n,style:{...n.style,display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(s),cursor:"inherit"}}),g?.fetchState==="In-Progress"?t.jsx($e,{children:t.jsx(ce,{size:"Standard",start:!0})}):t.jsxs(Se,{children:[t.jsxs(Me,{windowSize:s,isRecommendationVisible:m.length>0,isError:$,children:[h.icon,h.label]}),m.length>0?m.map((u,p)=>t.jsxs(t.Fragment,{children:[t.jsx(me,{isHighlighted:!0,label:{label:u.label},checkBoxField:u.field,defaultChecked:u.field.defaultChecked,isDisabled:u.field.isDisabled!=null},he()),p<m.length-1?t.jsx(ve,{children:pe.common.texts.or}):null]})):null]})]})]})}const fe=o.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{q as l,j as t,p as r,o as a,am as s,y as m,d as o}from"./index-BjVZjrQv.js";import{n as i,b as h}from"./vendor-Bs1fkIUX.js";const v=e=>h.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h.createElement("path",{fill:"#3E4043",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),h.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#3E4043"})),c=e=>h.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h.createElement("path",{fill:"#E9ECF0",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),h.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#E9ECF0"})),d={chartMinHeight:new m(288,360)},z=i.div`
1
+ import{q as l,j as t,p as r,o as a,am as s,y as m,d as o}from"./index-BoI2bkaF.js";import{n as i,b as h}from"./vendor-Bs1fkIUX.js";const v=e=>h.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h.createElement("path",{fill:"#3E4043",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),h.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#3E4043"})),c=e=>h.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},h.createElement("path",{fill:"#E9ECF0",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),h.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#E9ECF0"})),d={chartMinHeight:new m(288,360)},z=i.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{j as e,o as t,d as s}from"./index-BjVZjrQv.js";import{n as i}from"./vendor-Bs1fkIUX.js";import{r as n,o}from"./graphic-no-data-l-DU4J8fDt-DTLZpyxa.js";const r=i.div`
1
+ import{j as e,o as t,d as s}from"./index-BoI2bkaF.js";import{n as i}from"./vendor-Bs1fkIUX.js";import{r as n,o}from"./graphic-no-data-l-DU4J8fDt-DTLZpyxa.js";const r=i.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  padding: ${t.sp8} ${t.sp0} ${t.sp8} ${t.sp0};
@@ -1,4 +1,4 @@
1
- import{j as o,F as i,ce as s,a as l,am as c,p as a,an as d}from"./index-BjVZjrQv.js";import{n as t}from"./vendor-Bs1fkIUX.js";import{i as h}from"./ZeniCopyright-FdRtkqZd-BaAr1xYE.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const x=t.div`
1
+ import{j as o,F as i,ce as s,a as l,am as c,p as a,an as d}from"./index-BoI2bkaF.js";import{n as t}from"./vendor-Bs1fkIUX.js";import{i as h}from"./ZeniCopyright-FdRtkqZd-CkpZz8Qy.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const x=t.div`
2
2
  width: 100%;
3
3
  height: 100vh;
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{j as t,gj as ne,o as i,b_ as se,F as I,aS as re,d as J,q as K,aa as le,cT as ae,l as C,bG as ce,ad as de,ab as w,aQ as pe,y as T,fY as me,gk as ue,e_ as he,gl as ge,gm as fe,a$ as xe,u as S,b9 as Q,ai as W,am as X,an as $e}from"./index-BjVZjrQv.js";import{n as o,b as E}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const{common:be}=I.getLocalizedStrings(),q={notePadding:new T(S[3],S[4]),noteGap:new T(S[0],6)},z=(e,n)=>`${e}.${n}`,ye=o.div`
1
+ import{j as t,gj as ne,o as i,b_ as se,F as I,aS as re,d as J,q as K,aa as le,cT as ae,l as C,bG as ce,ad as de,ab as w,aQ as pe,y as T,fY as me,gk as ue,e_ as he,gl as ge,gm as fe,a$ as xe,u as S,b9 as Q,ai as W,am as X,an as $e}from"./index-BoI2bkaF.js";import{n as o,b as E}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const{common:be}=I.getLocalizedStrings(),q={notePadding:new T(S[3],S[4]),noteGap:new T(S[0],6)},z=(e,n)=>`${e}.${n}`,ye=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${i.sp3};
@@ -1 +1 @@
1
- import{b as t,u as e}from"./index-BjVZjrQv.js";const r=e[5],o=59,i=e[5],l=t.standardRegular.lineHeightValue,n=1,u=1e3;export{l as A,i as E,n as I,u as L,o as a,r as t};
1
+ import{b as t,u as e}from"./index-BoI2bkaF.js";const r=e[5],o=59,i=e[5],l=t.standardRegular.lineHeightValue,n=1,u=1e3;export{l as A,i as E,n as I,u as L,o as a,r as t};
@@ -1,4 +1,4 @@
1
- import{d as Q,q as v,aa as Jt,F as P,cT as qt,j as t,bG as Zt,l as g,ad as Kt,aQ as Qt,o as i,ab as we,hc as Xt,y as R,ii as ei,b as Ne,k as ti,az as et,cB as tt,b3 as it,dH as ot,cI as st,ke as at,u as y,n as ii,kf as oi,dF as ce,a_ as si,B as ai,M as rt,p as S,ai as ri,b$ as z,d4 as ue,gk as he,kg as pe,ax as nt,a9 as lt,dO as E,fF as dt,gu as ni,am as X,ix as li,an as H,fO as di,aU as ye,ba as fe,kh as ci,bY as ct,ki as Ie,bA as ui}from"./index-BjVZjrQv.js";import{b as x,n as r,i as A}from"./vendor-Bs1fkIUX.js";import{k as hi}from"./SubTabSwitcher-V4wilVXH-CzhwAGtW.js";import{d as ut}from"./useLongPress-GCK2COYQ-B0RUPzZV.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-61mZY8cq-DLiCun9F.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";function pi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),p=Q(),m=x.useCallback(b=>{d(b.id)},[d]),f=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(fi,{windowSize:h,children:[t.jsx(ei,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(hi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const fi=r.div`
1
+ import{d as Q,q as v,aa as Jt,F as P,cT as qt,j as t,bG as Zt,l as g,ad as Kt,aQ as Qt,o as i,ab as we,hc as Xt,y as R,ii as ei,b as Ne,k as ti,az as et,cB as tt,b3 as it,dH as ot,cI as st,ke as at,u as y,n as ii,kf as oi,dF as ce,a_ as si,B as ai,M as rt,p as S,ai as ri,b$ as z,d4 as ue,gk as he,kg as pe,ax as nt,a9 as lt,dO as E,fF as dt,gu as ni,am as X,ix as li,an as H,fO as di,aU as ye,ba as fe,kh as ci,bY as ct,ki as Ie,bA as ui}from"./index-BoI2bkaF.js";import{b as x,n as r,i as A}from"./vendor-Bs1fkIUX.js";import{k as hi}from"./SubTabSwitcher-V4wilVXH-CIa3tJav.js";import{d as ut}from"./useLongPress-GCK2COYQ-B0RUPzZV.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-61mZY8cq-DIvx6_W1.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";function pi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),p=Q(),m=x.useCallback(b=>{d(b.id)},[d]),f=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(fi,{windowSize:h,children:[t.jsx(ei,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(hi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const fi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{q as H,ih as xe,F as B,d as q,cs as be,az as _e,j as t,aM as Se,b_ as we,ig as ke,bI as ve,bG as Be,ii as je,ij as Oe,o as u,aS as Pe,k as $e,y as F,b3 as le,aC as ie,aU as Te,u as j,bL as De,cu as Ne,cv as Ee,cw as Ie,p as a,am as ce,bX as Ae,bS as Me,bi as Le,b as Q,bh as Fe,aX as Ve,bT as ze,bV as Re,l as We}from"./index-BjVZjrQv.js";import{b as x,n as m,w as Ke}from"./vendor-Bs1fkIUX.js";import{p as Ye,d as Ge,y as G,b as de,u as ee}from"./chartTypes-B2M-L_2B-SreV-bCP.js";import{V as He}from"./toChartData-DAKm9HcI-tf17V8KM.js";import{m as V}from"./analyticsHelper-Bp-WofY6-1T9Q3X9o.js";import{p as qe}from"./TimeRangeSwitcher-CAsAYfkz-B9S7W-fy.js";import{M as Xe}from"./TimeframeSwitcherWithToggle-CylL4Wwl-BGYiQzX6.js";import{C as Ue}from"./NoDataChart-rSvTjDyU-DQQLbTol.js";import{d as Je}from"./NoDataTable-D-FagLTd-CarE1NA4.js";import{H as Ze,k as oe}from"./detailCommon-DwrYiaFL-Cfj_XDMA.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{I as Qe,R as X}from"./CollapsableReportTable-CtL_gFPp-Dg6T6XvY.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-BJ934QgM-CGOvn-ke.js";import{d as re}from"./mapLoadingInProgressToTreeNode-D6GLjoFV-DnVjrkk_.js";import{l as eo}from"./mapSpacerToTreeNode-ByHELHOn-BqjPN0Y-.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./TimeframeSwitcher-pwO8bqPA-qyPTOgRD.js";import"./graphic-no-data-l-DU4J8fDt-DTLZpyxa.js";import"./AccountRow-BL5koYgc-Bpp_-jHh.js";const oo=m.div`
1
+ import{q as H,ih as xe,F as B,d as q,cs as be,az as _e,j as t,aM as Se,b_ as we,ig as ke,bI as ve,bG as Be,ii as je,ij as Oe,o as u,aS as Pe,k as $e,y as F,b3 as le,aC as ie,aU as Te,u as j,bL as De,cu as Ne,cv as Ee,cw as Ie,p as a,am as ce,bX as Ae,bS as Me,bi as Le,b as Q,bh as Fe,aX as Ve,bT as ze,bV as Re,l as We}from"./index-BoI2bkaF.js";import{b as x,n as m,w as Ke}from"./vendor-Bs1fkIUX.js";import{p as Ye,d as Ge,y as G,b as de,u as ee}from"./chartTypes-B2M-L_2B-CE878okY.js";import{V as He}from"./toChartData-DAKm9HcI-M0iGmyi4.js";import{m as V}from"./analyticsHelper-Bp-WofY6-BYaMxLR_.js";import{p as qe}from"./TimeRangeSwitcher-CAsAYfkz-DpSyVDkA.js";import{M as Xe}from"./TimeframeSwitcherWithToggle-CylL4Wwl-BEV-k6pt.js";import{C as Ue}from"./NoDataChart-rSvTjDyU-B-OHK5mu.js";import{d as Je}from"./NoDataTable-D-FagLTd-Djg3Sxbv.js";import{H as Ze,k as oe}from"./detailCommon-DwrYiaFL-DFnbn0Mz.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{I as Qe,R as X}from"./CollapsableReportTable-CtL_gFPp-vUytIlZJ.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-BJ934QgM-DkBmbqC8.js";import{d as re}from"./mapLoadingInProgressToTreeNode-D6GLjoFV-DTwllzLR.js";import{l as eo}from"./mapSpacerToTreeNode-ByHELHOn-B5v9aqw4.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./TimeframeSwitcher-pwO8bqPA-DHSOb2PJ.js";import"./graphic-no-data-l-DU4J8fDt-DTLZpyxa.js";import"./AccountRow-BL5koYgc-DUOggy9P.js";const oo=m.div`
2
2
  display: flex;
3
3
  `,ro=m.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{d as i,j as r}from"./index-BjVZjrQv.js";import{n}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const p=n.div`
1
+ import{d as i,j as r}from"./index-BoI2bkaF.js";import{n}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const p=n.div`
2
2
  display: ${({isOpen:o})=>o?"block":"none"};
3
3
  position: fixed;
4
4
  top: 0;
@@ -1,4 +1,4 @@
1
- import{j as o,D as M,d as T,q as v,aM as A,bG as re,F as c,n as ie,k as ae,y as U,b as ce,o as s,aC as le,aU as de,a as ge,cR as me,bD as pe,u as C,l as W,bL as he,cS as ue,aS as fe,aT as xe,ba as we}from"./index-BjVZjrQv.js";import{n as r,b as F}from"./vendor-Bs1fkIUX.js";import{R as Se}from"./NavBarWithPicker-DcLSQEDR-D-B1uB5d.js";import{m as je}from"./analyticsHelper-Bp-WofY6-1T9Q3X9o.js";import{M as $e}from"./TimeframeSwitcherWithToggle-CylL4Wwl-BGYiQzX6.js";import{I as be,a as Ce}from"./CollapsableReportTable-CtL_gFPp-Dg6T6XvY.js";import{M as E}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import{T as Pe,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-D-8W8W6B-BX7_EeNM.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-B-c4aUT4-_2PZ_vTn.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./TimeframeSwitcher-pwO8bqPA-qyPTOgRD.js";import"./AccountRow-BL5koYgc-Bpp_-jHh.js";const H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",K="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ze=r.div`
1
+ import{j as o,D as M,d as T,q as v,aM as A,bG as re,F as c,n as ie,k as ae,y as U,b as ce,o as s,aC as le,aU as de,a as ge,cR as me,bD as pe,u as C,l as W,bL as he,cS as ue,aS as fe,aT as xe,ba as we}from"./index-BoI2bkaF.js";import{n as r,b as F}from"./vendor-Bs1fkIUX.js";import{R as Se}from"./NavBarWithPicker-DcLSQEDR-O7GsMW7s.js";import{m as je}from"./analyticsHelper-Bp-WofY6-BYaMxLR_.js";import{M as $e}from"./TimeframeSwitcherWithToggle-CylL4Wwl-BEV-k6pt.js";import{I as be,a as Ce}from"./CollapsableReportTable-CtL_gFPp-vUytIlZJ.js";import{M as E}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import{T as Pe,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-D-8W8W6B-CXKgj3-d.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-B-c4aUT4-5u4uEloP.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./TimeframeSwitcher-pwO8bqPA-DHSOb2PJ.js";import"./AccountRow-BL5koYgc-DUOggy9P.js";const H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",K="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ze=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{A as pe,F as le,aP as Me,b as te,o as u,p as H,q as ue,j as i,c5 as De,d as Re,d4 as Ve,aU as ae,y as oe,bB as qe,c8 as Fe,am as ke,aQ as He,af as me,u as Ke,h3 as Je,an as Ge,B as Ye}from"./index-BjVZjrQv.js";import{w as l,b as U,n as y}from"./vendor-Bs1fkIUX.js";import{P as p}from"./mui-Ty75qFQF.js";import{N as Ze}from"./SetUpAccountSection-r3-A3Qt7-BMiHEXgf.js";function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(n){Ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function re(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(e){return typeof e}:re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Qe(t,e)||et(t,e)||tt()}function Xe(t){if(Array.isArray(t))return t}function Qe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,c,m;try{for(r=r.call(t);!(a=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(o){s=!0,m=o}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw m}}return n}}function et(t,e){if(t){if(typeof t=="string")return he(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(t,e)}}function he(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{A as pe,F as le,aP as Me,b as te,o as u,p as H,q as ue,j as i,c5 as De,d as Re,d4 as Ve,aU as ae,y as oe,bB as qe,c8 as Fe,am as ke,aQ as He,af as me,u as Ke,h3 as Je,an as Ge,B as Ye}from"./index-BoI2bkaF.js";import{w as l,b as U,n as y}from"./vendor-Bs1fkIUX.js";import{P as p}from"./mui-Ty75qFQF.js";import{N as Ze}from"./SetUpAccountSection-r3-A3Qt7-DtU9_Iuz.js";function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(n){Ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function re(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(e){return typeof e}:re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Qe(t,e)||et(t,e)||tt()}function Xe(t){if(Array.isArray(t))return t}function Qe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,c,m;try{for(r=r.call(t);!(a=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(o){s=!0,m=o}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw m}}return n}}function et(t,e){if(t){if(typeof t=="string")return he(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(t,e)}}function he(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=function(e,r,n){var a=!!n,s=l.useRef(n);l.useEffect(function(){s.current=n},[n]),l.useEffect(function(){if(!a||!e)return function(){};var c=function(){s.current&&s.current.apply(s,arguments)};return e.on(r,c),function(){e.off(r,c)}},[a,r,e,s])},se=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},K=function(e){return e!==null&&re(e)==="object"},rt=function(e){return K(e)&&typeof e.then=="function"},nt=function(e){return K(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},ve="[object Object]",at=function t(e,r){if(!K(e)||!K(r))return e===r;var n=Array.isArray(e),a=Array.isArray(r);if(n!==a)return!1;var s=Object.prototype.toString.call(e)===ve,c=Object.prototype.toString.call(r)===ve;if(s!==c)return!1;if(!s&&!n)return e===r;var m=Object.keys(e),o=Object.keys(r);if(m.length!==o.length)return!1;for(var h={},f=0;f<m.length;f+=1)h[m[f]]=!0;for(var x=0;x<o.length;x+=1)h[o[x]]=!0;var g=Object.keys(h);if(g.length!==m.length)return!1;var w=e,P=r,S=function(A){return t(w[A],P[A])};return g.every(S)},Ie=function(e,r,n){return K(e)?Object.keys(e).reduce(function(a,s){var c=!K(r)||!at(e[s],r[s]);return n.includes(s)?(c&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),a):c?ge(ge({},a||{}),{},Ae({},s,e[s])):a},null):null},Ue="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ye=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;if(e===null||nt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;if(rt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(a){return ye(a,r)})};var n=ye(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},st=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},ne=l.createContext(null);ne.displayName="ElementsContext";var Oe=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},ze=function(e){var r=e.stripe,n=e.options,a=e.children,s=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(n):null}}),m=$e(c,2),o=m[0],h=m[1];l.useEffect(function(){var g=!0,w=function(S){h(function(j){return j.stripe?j:{stripe:S,elements:S.elements(n)}})};return s.tag==="async"&&!o.stripe?s.stripePromise.then(function(P){P&&g&&w(P)}):s.tag==="sync"&&!o.stripe&&w(s.stripe),function(){g=!1}},[s,o,n]);var f=se(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var x=se(n);return l.useEffect(function(){if(o.elements){var g=Ie(n,x,["clientSecret","fonts"]);g&&o.elements.update(g)}},[n,x,o.elements]),l.useEffect(function(){st(o.stripe)},[o.stripe]),l.createElement(ne.Provider,{value:o},a)};ze.propTypes={stripe:p.any,options:p.object};var it=function(e){var r=l.useContext(ne);return Oe(r,e)},ct=function(){var e=it("calls useElements()"),r=e.elements;return r};p.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var lt=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},ut=l.createContext(null);ut.displayName="CustomCheckoutContext";p.any,p.shape({clientSecret:p.string.isRequired,elementsOptions:p.object}).isRequired;var ie=function(e){var r=l.useContext(_e),n=l.useContext(ne);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?lt(r,e):Oe(n,e)},dt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},C=function(e,r){var n="".concat(dt(e),"Element"),a=function(o){var h=o.id,f=o.className,x=o.options,g=x===void 0?{}:x,w=o.onBlur,P=o.onFocus,S=o.onReady,j=o.onChange,A=o.onEscape,D=o.onClick,V=o.onLoadError,q=o.onLoaderStart,N=o.onNetworksChange,$=o.onConfirm,J=o.onCancel,W=o.onShippingAddressChange,M=o.onShippingRateChange,O=ie("mounts <".concat(n,">")),_="elements"in O?O.elements:null,E="customCheckoutSdk"in O?O.customCheckoutSdk:null,z=l.useState(null),T=$e(z,2),v=T[0],B=T[1],L=l.useRef(null),F=l.useRef(null);R(v,"blur",w),R(v,"focus",P),R(v,"escape",A),R(v,"click",D),R(v,"loaderror",V),R(v,"loaderstart",q),R(v,"networkschange",N),R(v,"confirm",$),R(v,"cancel",J),R(v,"shippingaddresschange",W),R(v,"shippingratechange",M),R(v,"change",j);var G;S&&(e==="expressCheckout"?G=S:G=function(){S(v)}),R(v,"ready",G),l.useLayoutEffect(function(){if(L.current===null&&F.current!==null&&(_||E)){var I=null;E?I=E.createElement(e,g):_&&(I=_.create(e,g)),L.current=I,B(I),I&&I.mount(F.current)}},[_,E,g]);var de=se(g);return l.useEffect(function(){if(L.current){var I=Ie(g,de,["paymentRequest"]);I&&L.current.update(I)}},[g,de]),l.useLayoutEffect(function(){return function(){if(L.current&&typeof L.current.destroy=="function")try{L.current.destroy(),L.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:F})},s=function(o){ie("mounts <".concat(n,">"));var h=o.id,f=o.className;return l.createElement("div",{id:h,className:f})},c=r?s:a;return c.propTypes={id:p.string,className:p.string,onChange:p.func,onBlur:p.func,onFocus:p.func,onReady:p.func,onEscape:p.func,onClick:p.func,onLoadError:p.func,onLoaderStart:p.func,onNetworksChange:p.func,onConfirm:p.func,onCancel:p.func,onShippingAddressChange:p.func,onShippingRateChange:p.func,options:p.object},c.displayName=n,c.__elementType=e,c},b=typeof window>"u",pt=l.createContext(null);pt.displayName="EmbeddedCheckoutProviderContext";var mt=function(){var e=ie("calls useStripe()"),r=e.stripe;return r};C("auBankAccount",b);C("card",b);var Se=C("cardNumber",b),Ce=C("cardExpiry",b),be=C("cardCvc",b);C("fpxBank",b);C("iban",b);C("idealBank",b);C("p24Bank",b);C("epsBank",b);C("payment",b);C("expressCheckout",b);C("paymentRequestButton",b);C("linkAuthentication",b);C("address",b);C("shippingAddress",b);C("paymentMethodMessaging",b);C("affirmMessage",b);C("afterpayClearpayMessage",b);var Te="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var gt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Te,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},xe=function(e){var r="",n=document.createElement("script");n.src="".concat(Te).concat(r);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},Y=null,Q=null,ee=null,vt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},yt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return Y!==null?Y:(Y=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var a=gt();if(!(a&&e)){if(!a)a=xe(e);else if(a&&ee!==null&&Q!==null){var s;a.removeEventListener("load",ee),a.removeEventListener("error",Q),(s=a.parentNode)===null||s===void 0||s.removeChild(a),a=xe(e)}}ee=yt(r,n),Q=vt(n),a.addEventListener("load",ee),a.addEventListener("error",Q)}catch(c){n(c);return}}),Y.catch(function(r){return Y=null,Promise.reject(r)}))},Ct=function(e,r,n){if(e===null)return null;var a=e.apply(void 0,r);return ht(a,n),a},Z,Be=!1,Ne=function(){return Z||(Z=St(null).catch(function(e){return Z=null,Promise.reject(e)}),Z)};Promise.resolve().then(function(){return Ne()}).catch(function(t){Be||console.warn(t)});var bt=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];Be=!0;var a=Date.now();return Ne().then(function(s){return Ct(s,r,a)})};const xt={containerHeight:new oe(656,720)},Pt=y.div`
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as $e,q as I,F as y,j as t,aM as a,bG as le,b_ as Ne,o as s,cA as De,cB as Oe,k as F,aS as X,cC as we,n as Le,b as be,cD as _e,aP as Ae,cE as Ve,aq as Me,cF as We,cG as Be,b3 as He,aC as H,cH as Ee,y as $,cI as Fe,cJ as je,u as b,l as A,cK as ee,ct as N,aa as Ke,ad as Ue,cL as Ze,cM as qe,aJ as Ge,ai as D,cN as Je,am as O,an as te,p as V,cO as Ye,cx as Se,ba as ie,cP as ke,bY as Qe,cQ as Xe}from"./index-BjVZjrQv.js";import{w as ce,b as v,n as i}from"./vendor-Bs1fkIUX.js";import{P as Ie}from"./Menu-Be5LGB2P-CY6k6YNk.js";import{T as Ce}from"./RoleWithToolTip-DBoLqf02-BSy4p3TF.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],E=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],et=58;function tt({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Ge(d==="off"?S:E));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(ot,{height:et,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(rt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(at,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(st,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(Je,{width:12,height:12})})]}),t.jsx(nt,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(lt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const it=ce.memo(tt),st=i.div`
1
+ import{d as $e,q as I,F as y,j as t,aM as a,bG as le,b_ as Ne,o as s,cA as De,cB as Oe,k as F,aS as X,cC as we,n as Le,b as be,cD as _e,aP as Ae,cE as Ve,aq as Me,cF as We,cG as Be,b3 as He,aC as H,cH as Ee,y as $,cI as Fe,cJ as je,u as b,l as A,cK as ee,ct as N,aa as Ke,ad as Ue,cL as Ze,cM as qe,aJ as Ge,ai as D,cN as Je,am as O,an as te,p as V,cO as Ye,cx as Se,ba as ie,cP as ke,bY as Qe,cQ as Xe}from"./index-BoI2bkaF.js";import{w as ce,b as v,n as i}from"./vendor-Bs1fkIUX.js";import{P as Ie}from"./Menu-Be5LGB2P-DxJo2iR8.js";import{T as Ce}from"./RoleWithToolTip-DBoLqf02-DGfioCUG.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],E=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],et=58;function tt({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Ge(d==="off"?S:E));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(ot,{height:et,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(rt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(at,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(st,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(Je,{width:12,height:12})})]}),t.jsx(nt,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(lt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const it=ce.memo(tt),st=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
@@ -1,4 +1,4 @@
1
- import{F as T,j as t,a9 as A,o as l,ch as B,a$ as N,u as G,dr as H,ar as J,am as _,ds as Y,p as y}from"./index-BjVZjrQv.js";import{b as $,n as i}from"./vendor-Bs1fkIUX.js";const u=T.getLocalizedStrings(),w={large:{labelComp:H,title:J,subtitle:_,seeMoreLink:_}},q={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=q.large,K=i.div`
1
+ import{F as T,j as t,a9 as A,o as l,ch as B,a$ as N,u as G,dr as H,ar as J,am as _,ds as Y,p as y}from"./index-BoI2bkaF.js";import{b as $,n as i}from"./vendor-Bs1fkIUX.js";const u=T.getLocalizedStrings(),w={large:{labelComp:H,title:J,subtitle:_,seeMoreLink:_}},q={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=q.large,K=i.div`
2
2
  width: ${e=>e.scale*o.width}px;
3
3
  height: ${e=>e.scale*o.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{q as c,j as r,dw as b,dx as v,dy as L,bC as z,y as a,o as e,p as d,B as f,u as l}from"./index-BjVZjrQv.js";import{i,n as p,k as m}from"./vendor-Bs1fkIUX.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
1
+ import{q as c,j as r,dw as b,dx as v,dy as L,bC as z,y as a,o as e,p as d,B as f,u as l}from"./index-BoI2bkaF.js";import{i,n as p,k as m}from"./vendor-Bs1fkIUX.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,4 +1,4 @@
1
- import{q as w,F as t,j as n,c5 as j,n as l,y as s,o as i,ar as y,am as P,ag as f,bA as b,f2 as v,u as a}from"./index-BjVZjrQv.js";import{n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
1
+ import{q as w,F as t,j as n,c5 as j,n as l,y as s,o as i,ar as y,am as P,ag as f,bA as b,f2 as v,u as a}from"./index-BoI2bkaF.js";import{n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{q as O,F as u,j as i,n as k,o,y as a,p as d,fR as B,B as E,ag as T,bA as W,f2 as q,fO as A,aU as w,ai as $,u as t}from"./index-BjVZjrQv.js";import{n as s}from"./vendor-Bs1fkIUX.js";import F from"./QBOConnectionDialog-BElkJYqc-CMHpBrQ7.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},G={title:new E("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=O(),{qbo_connection:S}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:b,sucessText:z,button:v,errorText:P,requiredText:C}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(V,{children:l?i.jsx(Z,{}):i.jsx(_,{})}):null,i.jsx(N,{windowSize:n,children:b})]}),i.jsxs(Q,{windowSize:n,children:[i.jsxs(R,{windowSize:n,children:[i.jsxs(M,{children:[i.jsx(J,{}),i.jsx(L,{windowSize:n}),i.jsx(U,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(D,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(F,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(A,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},H=s.div`
1
+ import{q as O,F as u,j as i,n as k,o,y as a,p as d,fR as B,B as E,ag as T,bA as W,f2 as q,fO as A,aU as w,ai as $,u as t}from"./index-BoI2bkaF.js";import{n as s}from"./vendor-Bs1fkIUX.js";import F from"./QBOConnectionDialog-BElkJYqc-CKE6u00F.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},G={title:new E("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=O(),{qbo_connection:S}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:b,sucessText:z,button:v,errorText:P,requiredText:C}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(V,{children:l?i.jsx(Z,{}):i.jsx(_,{})}):null,i.jsx(N,{windowSize:n,children:b})]}),i.jsxs(Q,{windowSize:n,children:[i.jsxs(R,{windowSize:n,children:[i.jsxs(M,{children:[i.jsx(J,{}),i.jsx(L,{windowSize:n}),i.jsx(U,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(D,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(F,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(A,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},H=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as O,u as U,d as G,q as M,F as D,aa as W,aP as J,j as s,aJ as Q,cT as X,bG as H,ad as K,aQ as Y,o as f}from"./index-BjVZjrQv.js";import{b as $,n as h}from"./vendor-Bs1fkIUX.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-BhicFBJC-BnfxYZnB.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const L="reimbursementApprovalRuleDetailPage",C="lowerBound",k="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:N,onSaveRuleClick:_,onSaveRuleSuccess:A}){const E=G(),S=M(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=W({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=J(u?.fetchState),{upperBound:w}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const q=g.handleSubmit(()=>{_()}),V=async(i,p)=>{b(p)};return $.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=Q(p);X(()=>V(R,z))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(H,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:T(L),onSubmit:q,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:w===1/0?Number.MAX_SAFE_INTEGER-1:w-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:T(L),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),l??[])??[],[C]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),T=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
1
+ import{y as O,u as U,d as G,q as M,F as D,aa as W,aP as J,j as s,aJ as Q,cT as X,bG as H,ad as K,aQ as Y,o as f}from"./index-BoI2bkaF.js";import{b as $,n as h}from"./vendor-Bs1fkIUX.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-BhicFBJC-DhMBLhqL.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const L="reimbursementApprovalRuleDetailPage",C="lowerBound",k="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:N,onSaveRuleClick:_,onSaveRuleSuccess:A}){const E=G(),S=M(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=W({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=J(u?.fetchState),{upperBound:w}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const q=g.handleSubmit(()=>{_()}),V=async(i,p)=>{b(p)};return $.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=Q(p);X(()=>V(R,z))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(H,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:T(L),onSubmit:q,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:w===1/0?Number.MAX_SAFE_INTEGER-1:w-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:T(L),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),l??[])??[],[C]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),T=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as D,q as I,F as y,j as o,bG as E,k as G,aM as S,o as t,y as r,am as L,aN as z,cE as H,cF as U,cG as q,de as F,u as l,b9 as V,B as P,b8 as _,p as j,db as J,by as Y,b as O}from"./index-BjVZjrQv.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.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)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},K=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),a=I(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(B,{windowSize:a,children:[n.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(B,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{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:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>o.jsxs(C,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(R,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(C,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(R,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(H,{titleComponent:o.jsx(q,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:A}):null]})},Q=i.div`
1
+ import{d as D,q as I,F as y,j as o,bG as E,k as G,aM as S,o as t,y as r,am as L,aN as z,cE as H,cF as U,cG as q,de as F,u as l,b9 as V,B as P,b8 as _,p as j,db as J,by as Y,b as O}from"./index-BoI2bkaF.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.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)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},K=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),a=I(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(B,{windowSize:a,children:[n.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(B,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{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:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>o.jsxs(C,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(R,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(C,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(R,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(H,{titleComponent:o.jsx(q,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:A}):null]})},Q=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ax as Mt,a9 as Rt,q as Bt,d as Pt,cs as Nt,y as m,F as Xe,l as ie,gu as Lt,gw as _t,gx as Ot,j as t,cE as ze,cF as Ae,cG as Me,aM as y,bG as Re,bt as Wt,dO as Et,gy as Ft,gJ as Be,o as a,gz as Pe,fv as b,fx as x,gC as w,aN as Ne,fu as Le,b as F,gE as _e,aQ as Kt,ap as Ut,gF as Vt,gG as ae,bC as Gt,gH as Yt,L as Ht,B as Jt,M as qt,am as et,b9 as tt,p as K,an as Qt,c8 as Zt,ai as Xt,gZ as ei,gV as ti,u as c,cx as ii,d9 as ai}from"./index-BjVZjrQv.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ri}from"./liveblocks-8ht9CoL5.js";import oi from"./InvoiceUploadSection-cqqlOUmi-DLEVVu7D.js";import{r as ni,h as f,u as li}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-CK1x27Ua.js";import"./AttachmentView-C7P-Qoub-CDnUIgK_.js";import"./uploadReceipts-Dp1dvCjf-Jq1nuUKw.js";const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},si={formTitle:new Jt("h6Regular","h5Regular")},aa=({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=Mt(),st=Rt().analytics,o=Bt(),ye=Pt(),[dt,k]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,P]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>li(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const ut=()=>{V()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},D=s.labelWidth.value(o),z=s.largeLabelWidth.value(o),xe=Xe.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,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=di(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},Se=()=>{rt()},Tt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),je()):(q("rejected"),H(!0))},Dt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??Dt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,De=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!It,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,kt=ni(e.duplicateLineByLineId),Ie=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Lt),{threads:M,isLoading:I}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[M]).length,At=p.useCallback((l,n)=>{E(n),P(!1)},[E,P]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!I&&(E(te.threadId),Ce(null))},[te,M,I,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(Ni,{windowSize:o,ref:B,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{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(ki,{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:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Di,{}):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(Mi,{children:[u?t.jsxs(Ri,{isDisabled:I,onClick:I?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),P(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:I?void 0:zt,isLoading:I,style:{left:"12px"}}),t.jsx(Bi,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ai,{})})]}),scrollableContent:B,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(Je,{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(Ft,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Pe,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Ze,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsx(Ei,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(oi,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{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(Ye,{windowSize:o,children:t.jsx(Pe,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(yi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(hi,{children:t.jsx(gi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(bi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(pi,{children:[i.thisExpenseReview," ",t.jsx(ui,{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:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:z},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:l.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:z},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:z},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:l.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:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:D},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(_i,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{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})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ci,{windowSize:o,children:[t.jsx(Li,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(mi,{windowSize:o,children:t.jsx(_e,{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(Fi,{})]}),$e||W===!0?null:t.jsxs(Ci,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!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:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(xi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&G?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"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(ji,{windowSize:o,children:[!R&&De?t.jsx(Ti,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx(vi,{})}):null,!R&&Ct===!0?t.jsx($i,{windowSize:o,showEditIcon:De,children:t.jsx(fi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:I,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:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>P(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},di=e=>{const U=Xe.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"}},ci=r.div`
1
+ import{ax as Mt,a9 as Rt,q as Bt,d as Pt,cs as Nt,y as m,F as Xe,l as ie,gu as Lt,gw as _t,gx as Ot,j as t,cE as ze,cF as Ae,cG as Me,aM as y,bG as Re,bt as Wt,dO as Et,gy as Ft,gJ as Be,o as a,gz as Pe,fv as b,fx as x,gC as w,aN as Ne,fu as Le,b as F,gE as _e,aQ as Kt,ap as Ut,gF as Vt,gG as ae,bC as Gt,gH as Yt,L as Ht,B as Jt,M as qt,am as et,b9 as tt,p as K,an as Qt,c8 as Zt,ai as Xt,gZ as ei,gV as ti,u as c,cx as ii,d9 as ai}from"./index-BoI2bkaF.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ri}from"./liveblocks-8ht9CoL5.js";import oi from"./InvoiceUploadSection-cqqlOUmi-nRB6EEDc.js";import{r as ni,h as f,u as li}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-CK1x27Ua.js";import"./AttachmentView-C7P-Qoub-D3-ENN1j.js";import"./uploadReceipts-Dp1dvCjf-BfvShuCp.js";const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},si={formTitle:new Jt("h6Regular","h5Regular")},aa=({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=Mt(),st=Rt().analytics,o=Bt(),ye=Pt(),[dt,k]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,P]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>li(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const ut=()=>{V()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},D=s.labelWidth.value(o),z=s.largeLabelWidth.value(o),xe=Xe.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,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=di(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},Se=()=>{rt()},Tt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),je()):(q("rejected"),H(!0))},Dt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??Dt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,De=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!It,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,kt=ni(e.duplicateLineByLineId),Ie=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Lt),{threads:M,isLoading:I}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[M]).length,At=p.useCallback((l,n)=>{E(n),P(!1)},[E,P]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!I&&(E(te.threadId),Ce(null))},[te,M,I,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(Ni,{windowSize:o,ref:B,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{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(ki,{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:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Di,{}):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(Mi,{children:[u?t.jsxs(Ri,{isDisabled:I,onClick:I?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),P(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:I?void 0:zt,isLoading:I,style:{left:"12px"}}),t.jsx(Bi,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ai,{})})]}),scrollableContent:B,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(Je,{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(Ft,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Pe,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Ze,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsx(Ei,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(oi,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{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(Ye,{windowSize:o,children:t.jsx(Pe,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(yi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(hi,{children:t.jsx(gi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(bi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(pi,{children:[i.thisExpenseReview," ",t.jsx(ui,{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:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:z},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:l.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:z},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:z},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:l.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:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:D},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(_i,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{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})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ci,{windowSize:o,children:[t.jsx(Li,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(mi,{windowSize:o,children:t.jsx(_e,{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(Fi,{})]}),$e||W===!0?null:t.jsxs(Ci,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!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:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(xi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&G?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"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(ji,{windowSize:o,children:[!R&&De?t.jsx(Ti,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx(vi,{})}):null,!R&&Ct===!0?t.jsx($i,{windowSize:o,showEditIcon:De,children:t.jsx(fi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:I,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:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>P(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},di=e=>{const U=Xe.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"}},ci=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ax as le,d as S,q as k,aP as ae,l as L,F as E,j as e,aM as a,fG as me,bG as ce,n as u,af as m,o as t,ar as de,a as pe,aS as F,an as xe,y as he,p as z,cS as ue,aT as ge,ba as we,u as je}from"./index-BjVZjrQv.js";import{b as j,n as r}from"./vendor-Bs1fkIUX.js";import{f as be}from"./VideoPopup-B0Q_OHQY-CZuLXJYU.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./VideoPlayer-DfTUoEz0-B6gHyXB7.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new he(je[5],44)},$e=r.div`
1
+ import{ax as le,d as S,q as k,aP as ae,l as L,F as E,j as e,aM as a,fG as me,bG as ce,n as u,af as m,o as t,ar as de,a as pe,aS as F,an as xe,y as he,p as z,cS as ue,aT as ge,ba as we,u as je}from"./index-BoI2bkaF.js";import{b as j,n as r}from"./vendor-Bs1fkIUX.js";import{f as be}from"./VideoPopup-B0Q_OHQY-CeLQngtU.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./VideoPlayer-DfTUoEz0-DEo_v7rJ.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new he(je[5],44)},$e=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as Ee,q as Te,aP as N,aa as Ge,cT as qe,F as Ve,l as Ze,aU as be,j as t,fo as Je,p as Z,y as s,bG as Ye,k as Ke,ad as Qe,fH as ve,e7 as Xe,fI as et,bB as tt,dZ as it,aQ as nt,o as a,fK as ot,u as n,cx as at,d4 as lt,dc as st,fO as ke,fP as $e,gt as rt,n as ct,aM as Pe,B as je,bY as dt,ai as ut,by as mt}from"./index-BjVZjrQv.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-RzDi2m23-UJEPC3YG.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.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 s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new je("standardSemiBold","largeSemiBold"),infoLabel:new je("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:r,onSaveMileageClick:J}){const l=Te(),D=Ee(),{formState:{errors:Y},trigger:K}=lt(),E=ft($,"mileageAmountInDenomination"),f=st(Y,E),{localData:c,updateStatus:F,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Ve.getLocalizedStrings(),{reimbursement:ee}=X,[S,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=Q,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&r==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(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:$e(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:C.name,textColor:$e(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(rt,{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:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:S?t.jsx(ct,{label:x.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&J?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{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{d as Ee,q as Te,aP as N,aa as Ge,cT as qe,F as Ve,l as Ze,aU as be,j as t,fo as Je,p as Z,y as s,bG as Ye,k as Ke,ad as Qe,fH as ve,e7 as Xe,fI as et,bB as tt,dZ as it,aQ as nt,o as a,fK as ot,u as n,cx as at,d4 as lt,dc as st,fO as ke,fP as $e,gt as rt,n as ct,aM as Pe,B as je,bY as dt,ai as ut,by as mt}from"./index-BoI2bkaF.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-RzDi2m23-C2Y1I0bO.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.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 s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new je("standardSemiBold","largeSemiBold"),infoLabel:new je("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:r,onSaveMileageClick:J}){const l=Te(),D=Ee(),{formState:{errors:Y},trigger:K}=lt(),E=ft($,"mileageAmountInDenomination"),f=st(Y,E),{localData:c,updateStatus:F,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Ve.getLocalizedStrings(),{reimbursement:ee}=X,[S,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=Q,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&r==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(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:$e(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:C.name,textColor:$e(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(rt,{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:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:S?t.jsx(ct,{label:x.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&J?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{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"};
@@ -1 +1 @@
1
- import{F as M,j as b,cE as G,cF as V,cG as W,kl as X,aX as Y,l as q}from"./index-BjVZjrQv.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as z}from"./ReviewOverlay-euS8ygX5-TmwkPaQL.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.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(P(e,h,l)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(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}=Z(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(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,q.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{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:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={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(G,{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(z,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=X(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:Y("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_: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)}},H=(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?j.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
+ import{F as M,j as b,cE as G,cF as V,cG as W,kl as X,aX as Y,l as q}from"./index-BoI2bkaF.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as z}from"./ReviewOverlay-euS8ygX5-DvuzqZsi.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.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(P(e,h,l)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(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}=Z(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(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,q.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{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:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={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(G,{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(z,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=X(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:Y("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_: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)}},H=(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?j.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{d as h,j as r,aL as a,aM as m,b2 as j,F as f,aR as l,bJ as x,ai as g,o as c,b3 as C}from"./index-BjVZjrQv.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(x,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(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{d as h,j as r,aL as a,aM as m,b2 as j,F as f,aR as l,bJ as x,ai as g,o as c,b3 as C}from"./index-BoI2bkaF.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(x,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(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 q({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(C,{children:({height:n,width:i})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}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;
@@ -1,4 +1,4 @@
1
- import{d as K,q as ie,cs as me,aa as fe,j as o,ap as ge,F as X,ct as ee,ad as xe,y as F,aQ as ye,o as n,cu as be,cv as we,cw as _e,cx as $e,cy as ve,an as ce,cz as Ce,u as p,ai as ke,aC as Q,bJ as je,aU as Ne,am as Se,av as Ie}from"./index-BjVZjrQv.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Fe}from"./CollapsableReportTable-CtL_gFPp-Dg6T6XvY.js";const W=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Oe=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}:void 0;function De(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Oe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await be({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const y=we(h.headers,t.defaultFileName),b=await h.arrayBuffer();_e(b,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
1
+ import{d as K,q as ie,cs as me,aa as fe,j as o,ap as ge,F as X,ct as ee,ad as xe,y as F,aQ as ye,o as n,cu as be,cv as we,cw as _e,cx as $e,cy as ve,an as ce,cz as Ce,u as p,ai as ke,aC as Q,bJ as je,aU as Ne,am as Se,av as Ie}from"./index-BoI2bkaF.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Fe}from"./CollapsableReportTable-CtL_gFPp-vUytIlZJ.js";const W=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Oe=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}:void 0;function De(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Oe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await be({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const y=we(h.headers,t.defaultFileName),b=await h.arrayBuffer();_e(b,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};