@zeniai/web-cockpit-ui 1.15.12-dev → 1.15.13-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/dist/assets/{ACHDetailsPage-BY65AQjO-Cl2Tlmft.js → ACHDetailsPage-BlujuoRH-D3z2m9vf.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-B0a7EX_p-BepCOVvT.js → AIPerformancePage-DfgPUakC-C7_4KJtd.js} +12 -12
  3. package/dist/assets/AccountInfoPage-BYwGsz6J-ilS3p_4u.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BsSGhNw9-Bhg40nPQ.js → AccountInfoPageContent-CTvsml8u-HiMO1t4f.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-uPOYP0OH-gMh9hb_c.js → AccountLockedInfoModal-DeYVMh3B-Dec8Ripp.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BgPmbG_g-9wGOY4BN.js → AccountReconDetailsDrawerPage-D6WT5Co_-Boi6JvlJ.js} +1 -1
  7. package/dist/assets/{AccountRow-B9ZIzZy7-C9nPv4rY.js → AccountRow-FmhkZVL4-BiCaU5gp.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BLcpWU3T-CV6K5Y9x.js → AccountsPromoCardStack-B5Mri6qW-C55uOtTG.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-B1oucxyM-I6biD8O7.js → AddAddressForCardDrawer-Bs4dQyRL-ChMzAqlj.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B1GVnxRf-CndQH9vq.js → AddToWalletPage-fBplELoj-BbSWfj-_.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Bpp4te8m-HodwoOcT.js → AgingReportsPage-CgeLN6Su-mjdbj-V7.js} +1 -1
  12. package/dist/assets/{AllUserItems-CzugF5fn-8WnbDsqH.js → AllUserItems-vOFCgjs7-BawEw1bw.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-CyUQeZY0-DHH2Dilv.js → ApAgingDetailPage-CF5WKuOc-DwzZ4J6w.js} +4 -4
  14. package/dist/assets/{AppBasePage-Di7hObbX-uZJvqLhK.js → AppBasePage-DrIjva6e-BEoSV9em.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-KdrUuifo-DcEK8qwb.js → AppDrawerContent-Co1DpiWD-BseTWq0X.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BRIgTh7x-CF-Pagn9.js → ApprovalRulesSettingsPage-tYbxBThK-Cp_BZtLr.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DeE5uhiT-BcI5cuvH.js → ArAgingChart-B2zTJJgb-BW-4V4KX.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CFiIUBWl-BXhWrXr_.js → ArAgingDetailPage-0nCr6crv-CVAwjIoB.js} +5 -5
  19. package/dist/assets/{AttachmentView-CfacSLcU-gwYezuYM.js → AttachmentView-vlVaH4YF-DjHAa-jm.js} +1 -1
  20. package/dist/assets/{BankAccountSection-Bm8vdxFd-DKKdvH8R.js → BankAccountSection-CDKiTWgn-CtT_fqlj.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-M3w6kP33-ChP5wvhC.js → BankAccountWarningSection-tSnRJm3S-Xh7INFxm.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Dfrp0CKz-Dc4Qac0T.js → BankConnectionsSettingsPage-O_L8CHJf-Lbkg03Kb.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BA1D1bO3-Ofkt6QPd.js → BillDetailPage-DR3JefXf-CT_vRh92.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DR8YzZt1-CQcbdF34.js → BillPayApprovalRuleDetailPage-2w8HO-NU-BrDPRKpx.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CfZ4aSPM-C6nI7yKc.js → BillPayApprovalRulesPage-yFoEpHK8-mn4XE1DW.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-CP9Nvd2Q-CSZ8mSrV.js → BillPayPromoPage-DZkA_0AV-wh6M-Qtv.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BwEONKu_-DARv5ESb.js → BillPaySetUpPage-B2j-es9G-Cgscrq-x.js} +7 -7
  28. package/dist/assets/{BillingSettingsPage-DicGyWCt-DwbmjVcE.js → BillingSettingsPage-ayQNGWSW-BH36NbEd.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-fS3-YEdi-DKZKHDla.js → BillsBulkReviewDrawerPage-B2LDJ9-N-Bz6yNrUs.js} +1 -1
  30. package/dist/assets/{BoxItem-Cr0Y9YBV-C2AawtqJ.js → BoxItem-B0bHU_KA-CwJAi_XO.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CvL9cdJm-Drj-tMQU.js → BusinessVerificationPage-DZ27apcr-60B1XBNo.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CXBKzGK5-CCtn2y_n.js → CardNumberSubText-CpqumrS--C5H93W0D.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DOdPOiws-CAJxdhJ3.js → CashbackDetailPage-C3oNmfln-Cjfl1QQU.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DfhAyysD-Cgd92Yem.js → ChargeCardDetailPage-C9XhHqSo-C6G4QIZB.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Bnnu4TVk-DFZAYaNm.js → ChargeCardListPage-B_PxtkQX-D4XUj6S4.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-D7zGM8uo-70otSDDQ.js → ChargeCardListTable-kp0WwIZo-C7S3-nFL.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-U00GbINt-BIwIfF30.js → ChargeCardPaymentHistoryPage-D1l3Qgr_-CcXK8zox.js} +8 -8
  38. package/dist/assets/{ChargeCardPromoPage-BpBiwjfr-DWB9eQGN.js → ChargeCardPromoPage-DcmgTF8u-uElL894v.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-Duj6901M-CIASuReJ.js → ChargeCardSetupPage-BX9fPIf_-CJBf2z8R.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-IkU86L31-ClrDQTtP.js → ChargeCardStatementsPage-a5u9wGDg-CReuXYls.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-fHeTkRJF-CdLdCkIH.js → CheckDepositDrawerPage-_DvlXSse-DhB3lKOy.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-DUo-9gOh-B_gwOhYJ.js → CollapsableReportTable-DgteU0nB-DwU6xqcB.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DzDZe6MU-DWguMF6d.js → CompanyOfficerDetailsSection-DG1ZQ-UL-BWPYN3Ux.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BwiwJ82k-WRVY9XX8.js → CompanyPassportCard-JfMVwFHV-DIdzwTm1.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-Bz3rzG9k-e3d2ccIM.js → CompanyPassportPage-2j8z-oge-D6U4VneL.js} +1 -1
  46. package/dist/assets/{CompleteProfile-CRXV-nNq-DpRL426l.js → CompleteProfile-Cm8XlcS3-h3qANDX9.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-CapRdPno-Dlg4XvfD.js → ConfettiBurst-BtmMysff-DXW2t6JP.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BjPotKnf-De1W0m4N.js → CreateOrEditVendorPage-BxSAnKo6-BT1rzueh.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BTZ2Lph6-DMwCUXwV.js → CreditCardPaymentDrawerPage-a2j9Vyid-B5YbQ1Qy.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-DY0HeU0G-CSYPXeIb.js → CurrencySelectField-CbBlYqRB-D1pLCzjN.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-BIKXkkcY-IFMHYYO1.js → CustomerOnboardingActivationPage-CG508vOx-CLWU-GVx.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-CuP19GYc-BdzG4LPd.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYiAmFsM-C0-Ot9Uw.js → CustomerOnboardingDetailPageSkeleton-BszHZi0e-DON_7YLk.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-gssFllMT-DT9hupvU.js → CustomerOnboardingNoStepsPage-Cg8ti5NY-DlxEJtW7.js} +9 -9
  55. package/dist/assets/{CustomerOnboardingPage-CBJHj8BH-KUidrPxI.js → CustomerOnboardingPage-DM-gDkp1-rcTTcpJq.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-BryLMJRG-DDfHjs9L.js +202 -0
  57. package/dist/assets/{Dashboard-BVvkfPf9-hp4sQi7A.js → Dashboard-BRm1rkFD-sRJsQcvd.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-DHQ79h9V-C3FgTbgA.js → DashboardReportPage-rtbUwJSW-Cfsk6TQp.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-B8Q-YA_s-DLXiBeQj.js → DashboardSidebarBackgroundAnimation-DVTdlTEZ-LE3GU0DJ.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-DZnqI7IQ-DR0NgZ86.js → DepositAccTransactionItem-BbKLxsPR-Dpo7wVCS.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-BMNdp-3Q-CyOUea8P.js → DepositAccTransactionListPage-0AV-fx2Z-BFJB16zN.js} +2 -2
  62. package/dist/assets/{DomesticWireDetailsPage-CCP6xoW_-BlmZjbpt.js → DomesticWireDetailsPage-BKumlfKE-Cqz9aujw.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-B2bK30rG-B-m5Mv2I.js → DownloadOverlay-C6GFjg2N-DrkN4pip.js} +1 -1
  64. package/dist/assets/{DrawerPage-BRJDrBlv-D28-uO54.js → DrawerPage-BjfQ_wvz-BRg4aJBc.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-I8E1Rs3x-DbyrgA_C.js → EditPeoplePage-59PeI1Ul-cMTnU9vy.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-C7BPmFMR-DTPMhwLH.js → EditReimbursementDetailPage-D5cPRveU--6MVI5yI.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-BraBJ2k1-Wq1E4JPl.js → EntityDetailPage-CiO1dOzo-BB1u6uOD.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-DPmL3Bnf-CHA6TrKp.js → EntitySummarySection-DBQxz0Ak-YgKNz1nX.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-CDaO_5Vj-gZyomnai.js → ExpenseAutomationOverviewPage-D9JnRKeQ-bE2V-UEo.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-DUenmMQD-Yh_8CeIf.js → ExpenseAutomationPage-isWf-Yjm-BEj6GzxJ.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-DxO1mXNE-DeRja-sm.js → ExpressPayPage-iL1BYLic-BqUwfpLY.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-BWPNZcYs-CdJLxzVS.js → FeaturePreviewPage-CFz7RpI6-DbRQaCew.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-DhVGeocZ-Ddk_z58q.js → FollowStepsSection-Crd9GwnW-RQu2gQ-V.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-8eiQXg7N-pPWYTyKl.js → GlobalReviewListPage-xUatsnwu-Dx9d2TTm.js} +1 -1
  75. package/dist/assets/{InformationCardStack-CHVjIv01-Y1Eih__r.js → InformationCardStack-CgSYiHdK-Cf9Cjw1k.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-x_tohY2Z-DNptH2Sv.js → InsightsCardStack-dkuf5D9A-Duqx5-xn.js} +2 -2
  77. package/dist/assets/{InsightsSection-D7g00fg7-Bl1k6KMG.js → InsightsSection-CUk29Ace-BKDJK0uo.js} +2 -2
  78. package/dist/assets/{IntegrationsSettingsPage-DVRtPRi9-ig1iJJpM.js → IntegrationsSettingsPage-As-313jz-BWoXfvd2.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-DnWbUuiD-CIWMoecY.js → InternationalWireSwiftDetailsPage-CqMsBHlO-CbK2_2UB.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-CHvUYgd8-B9TQJM22.js → InternationalWireVerificationPage-BJ9-Rvqo-C5xNuG17.js} +1 -1
  81. package/dist/assets/{InviteFormPage-Cw0TIkwc-D0dTmTLg.js → InviteFormPage-D7yOmbjN-B6cNY2j6.js} +1 -1
  82. package/dist/assets/{InvitePageListView-B4gEzFp2-1aqNeIHc.js → InvitePageListView-CUeSQD7S-BB-ili2p.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-Bnsqv_IY-DhNBoZS8.js → InvitePeoplePage-BY6iz4UW-16zeXtyQ.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-CW4hHmAi-DKFSw8te.js → InvoiceUploadSection-fjn4uF_l-DBvp2GNb.js} +20 -20
  85. package/dist/assets/{IssueChargeCardPage-sM826Uvu-DMhbp0aa.js → IssueChargeCardPage-B30u11O2-BHXfiwVd.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-AuzW29LK-99vdzqZR.js → LabeledAddressValue-CJZ_1zh1-dIyC1ckB.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-C_KatgTA-ByiPbJgm.js → LabeledAddressValueField-3BEuHr_a-BAXHOnek.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-CEd7DSmU-mOU-S2fp.js → LabeledControlledCheckBoxField-DqtbWhaH-Ct8s61sn.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-CffMX6f1-C44H-4q3.js → LabeledCountryMultiSelectField-t7lnpz15-B8MvgThW.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CoS6DIi_-DTDCa09f.js → LabeledCreatableSingleSelectField-DSrFEwMO-BtK2wHhP.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-CVBhbPHv-9665D02s.js → LabeledDocumentField-CYvUm3Rk-DLfE-kKo.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-CNru68eT-GPSUv36b.js → LabeledDropDownFormattedTextField-IohlqRi7-BoY6bhCM.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-CTqXa2Rh-Cxu9DNT8.js → LabeledMultiSelectField-CveBXp8L-BAd1gTI4.js} +1 -1
  94. package/dist/assets/{LabeledText-Da0Yn6u8-CFgd90E4.js → LabeledText-C9CoADG4-BsL6jbJB.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CE332GjA-BafYQ_Pm.js → LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-BWHNFjm5.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DU4-ho4X-DQBIg45w.js → LabeledZeniRolesDropDownField-B-0ZfQFs-BLpCJZWp.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-Dx4OE1-O-HLvvvZHd.js → LinkJETransactionPage-CLo-jbfZ-CgODjcQ0.js} +2 -2
  98. package/dist/assets/{LockCardPage-B3P6wcK_-Ckpg2eew.js → LockCardPage-CmWzTH0n-B_X-TwZ4.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-Dp1vEYQQ-DIw_NRSy.js → LowBalancePopup-BUAKDPHL-BfDsvGUL.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-v539jeyl-sH7kLHfx.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-CU9g_d2_-gcBn5f-G.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-CYupqopA-BhBR0cCB.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-Iva17nX0-DhK2jGAZ.js → MagicLinkSuccessPage-BGSpNBaK-DRZ7k8D2.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-B726bP_P-CoT1ZO_f.js → MagicLinkTitleSection-BKIOmha4-ChpstG69.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-BwgWy_VZ-Do6nH1qr.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-Ad6xGN08-JjXBlik9.js → MyBankConnectionsSettingsPage-B3HEwRST-BMNPEzRQ.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-BYZ61huS-YKZjMs5X.js → MyPendingActivationChargeCardListPage-Cy_JIUO5-CXr2StVT.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-bEru4GQJ-Cj303JTH.js → MyProfileSettingsPage-D4XR8lj4-Cx77Yc0W.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-BAKrtv3g-BXBcsUFZ.js → NavBarWithPicker-Brxnh3kz-BBzh1_Q6.js} +1 -1
  110. package/dist/assets/{NavigationArrow-CKvBs9-h-DGD1r2EE.js → NavigationArrow-C1HvrCIx-DFOmLMLf.js} +1 -1
  111. package/dist/assets/{NavigationDots-BdcVrwsL-D_WEvn6f.js → NavigationDots-Ttv3r4BR-v2ws1TaA.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-Cx38uQAS-BBICE4OG.js → NewGlobalMerchantPage-rrVa4Iiv-lDEd0itd.js} +1 -1
  113. package/dist/assets/{NoDataChart-BbyxZE2g-CtN5BYbf.js → NoDataChart--T7v827k-zXeqjU35.js} +1 -1
  114. package/dist/assets/{NoDataTable-BNZWGvtm-S9Fe9Ovx.js → NoDataTable-cJmfr934-D57XH4Vn.js} +1 -1
  115. package/dist/assets/{NotFoundPage-CssnEz-k-ccXdF3op.js → NotFoundPage-C-RS1j9W-DH4NAkkX.js} +9 -9
  116. package/dist/assets/{NotificationSettingsPage-DmgxnO9I-BH2rOJH7.js → NotificationSettingsPage-Bt94GV9--r7sgcB96.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-DdMKLqFI-DwvXMwFg.js → NotificationsListConfig-CbWdzORJ-BsmAt2Aw.js} +1 -1
  118. package/dist/assets/{NotificationsPage-B9XIE39J-CejudHUF.js → NotificationsPage-kZGgGVaC-BAHmfRGl.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-5wnFvYXt-D6A9jnRY.js → OpExByVendorPage-BSoM5hsv-8kUubW4x.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-IDTUbuAC-dv-sDcTQ.js → OverlayContainerPage-IDTUbuAC-C05m2YxE.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-CrtKdSaD-CYng6puq.js → PandLWithForecastPage-C181kEf--CfV2ma5M.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CQki5l4P-CuMomXeK.js → PaymentAccountSetupBillingAddressSection-DqDvhQwH-C-RxqOsn.js} +7 -7
  123. package/dist/assets/{PeoplePage-BCjxJl1y-JBCpiTMQ.js → PeoplePage-ByvK4lsu-B40YfrBC.js} +1 -1
  124. package/dist/assets/{Preview-DMKZka6j.js → Preview-B0RnB2Yn.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-BYvlY6Jl-BJ6Pqq3q.js → ProductsCarousel-CCLEQfr4-D3JLfCUB.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-6vRaZnUg-CBqkAept.js → PromoBaseCards-BESaQCrl-gKsHUW_9.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-C-v9bhUW-CtiRv4Zj.js → QBOConnectionDialog-BhmH5aji-CM5T8oTr.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-DPhwp1AB-DxJDpMHr.js → QBOSetupSection-BevEEFTb-Jbk-oPo7.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Crz8RArL-DQzyot-2.js → ReimbursementApprovalRuleDetailPage-Dklp8fND-C3LBVHUX.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-CHrPVveg-DDlyKkun.js → ReimbursementApprovalRulesPage-CCo730ny-q5c8fyV0.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-BlfifQuc-DXXQTfQu.js → ReimbursementDetailPage-D8G3Aoci-DIVONTh0.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-B6rhhOye-CmIRL-Wr.js → ReimbursementPromoPage-B8BSm0-k-Bt9GjQuu.js} +4 -4
  133. package/dist/assets/{ReimbursementSetUpPage-BQwRjKZ5-CWVOKlly.js → ReimbursementSetUpPage-KRQIL0VK-DR0ER4Yx.js} +4 -4
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BTaFn0Mh-DXx1vhRK.js → ReimbursementsBulkReviewDrawerPage-B77ypxnc-BkObb0RE.js} +1 -1
  135. package/dist/assets/{ReloadCard-DETUOoLJ-Dww2RtAQ.js → ReloadCard-0KQtayY--Cg4JfrF6.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-DSDclygb-CPmwPKtZ.js → ReportTableViewSelector-wrUJSIfk-Dns-QQbX.js} +26 -26
  137. package/dist/assets/{ReportsPage-BrmMmYET-qm3o80ge.js → ReportsPage-D-r0S90r-CtLOp9ey.js} +1 -1
  138. package/dist/assets/{RevenueChart-B711QWTX-ztc9NA65.js → RevenueChart-4kIDtnAc-WBQ50ylJ.js} +14 -14
  139. package/dist/assets/{ReviewDetailsPage-Bkw0FfE--BL2mmyys.js → ReviewDetailsPage-BqIBTewY-C8DdFF_e.js} +1 -1
  140. package/dist/assets/{ReviewOverlay-CkB3Z8hH-CX5FMXRQ.js → ReviewOverlay-DjazNKfI-D9LHGfoS.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-CkpqxMzB-CgYpd1vG.js → RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-C-4zVu03-B-3H4CNH.js → ScheduleDetailsFixedAssetsPage-DBfwlnR1-bCnucyiC.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-D4mYRUnv-CIK0kUkx.js → ScheduleDetailsPage-CLEKOymC-B3NLZeIV.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-q-031a_C-Cl6g3k1V.js → ScheduleSequenceTable-Dnapx3YK-Be50KNDE.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-D9-sd0S3.js → ScreenRoutes-S2WD5yPN.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-Mm8JelXc-DJkSxyLc.js → SetUpAccountSection-D7Nf4cYj-UGNHCsDO.js} +1 -1
  147. package/dist/assets/{SignIn-faWXqi7o-BVPJ-uzq.js → SignIn-Cl1If8Mq-CvFGHXZ8.js} +15 -15
  148. package/dist/assets/{SignInScreen-DTTr8TvQ.js → SignInScreen-CFwIVPDY.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-BLWEPKWO-zjDi64vH.js → SpendManagementListViewPage-B8AdQD7w-DscL1E8I.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-vZNK6DuA-DHQi0ok2.js → SpendManagementPerTabPage-BJxGbUNp-CTR6zi4P.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-CeDmloNd-CJQVf2yR.js → SpendManagementSection-CJ-vMwcf-DAIvaE36.js} +1 -1
  152. package/dist/assets/{StatementItem-CJShifEl-gXZiawe9.js → StatementItem-CCXoBC0x-B0aqg_M_.js} +2 -2
  153. package/dist/assets/StatementsPage-BaDmSL9L-t79Ai808.js +58 -0
  154. package/dist/assets/{StatusSwitcher-CPuONMOx-IUewbXcR.js → StatusSwitcher-BZ2svcz0-BTZEKNgF.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-ibTbIxr5-87SzITqK.js → SubTabSwitcher-C3216C6m-CK-Qtqj3.js} +1 -1
  156. package/dist/assets/{SummaryCard-vWpHXMPE-j4-YbXA_.js → SummaryCard-CSkw4qa9-i9KCkyV3.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-COs5ebo9-LStJ5YyB.js → TaskManagementPage-BO9Fcar1-BB1pU97E.js} +8 -8
  158. package/dist/assets/{TimeRangeSwitcher-fD5vvYGO-Cg6AHBEd.js → TimeRangeSwitcher-C9jo91ZR-BexBx71o.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcher-BYXKRKtc-BTNUudrw.js → TimeframeSwitcher-453JT8qD-dl4gBr1v.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-f92qNjEk-CshyNxhp.js → TimeframeSwitcherWithToggle-CkiICrjF-BzFnMJO-.js} +2 -2
  161. package/dist/assets/{TopExCard-Bs4nI9Q9-C9Jpq9jc.js → TopExCard-Qae08TpE-B5FSxtbi.js} +10 -10
  162. package/dist/assets/{TopExDetailPage-B0kS11k0-IiO7dIt-.js → TopExDetailPage-BpwMO-8K-qWr97Eft.js} +4 -4
  163. package/dist/assets/{TransactionDetailPage-BXl6y7sy-B_wNV2dF.js → TransactionDetailPage-CF5tZCkv-ND1Ih8Rd.js} +1 -1
  164. package/dist/assets/{TransactionList-BYXPQXN1-C2WkgSOj.js → TransactionList-BuFcrTEd-Pd5NkKsR.js} +1 -1
  165. package/dist/assets/{TransactionListBig-lrbHUS38-D0fzERPt.js → TransactionListBig-B6-3iOkU-brDnQ-dC.js} +1 -1
  166. package/dist/assets/{TransactionListPage-OOLJzsmw-Dmoozb9S.js → TransactionListPage-cSSv81G2-C84Nagsy.js} +1 -1
  167. package/dist/assets/{TransactionVendorDetailPage-CmjrngD2-DvxXX996.js → TransactionVendorDetailPage-BJzVtpnF-BD1O-dJA.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-CnFrzA_M-C6390hZV.js → TransferDrawerPage-DCxNnGwu-R8tXJhB-.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-CGxccIcU-CgXb0qH5.js → TreasuryOverviewPage-DfIkj3v1-DGzCSt8t.js} +9 -9
  170. package/dist/assets/{TreasuryPromoPage-BmMVa8cX-BOYWbSX7.js → TreasuryPromoPage-BBdOyiO--DBYyvSzX.js} +1 -1
  171. package/dist/assets/{TreasuryStatementsPage-DL94A9mN-DZ6yoZ74.js → TreasuryStatementsPage-NgiurO36-wIt2qVvF.js} +2 -2
  172. package/dist/assets/{TreasuryTaxLetterPage-BJ9-ZsCQ-DnDmd1Op.js → TreasuryTaxLetterPage-DcI8sKk8-CiTg5Fth.js} +2 -2
  173. package/dist/assets/{TrendChart-ClyJQTBF-TLthRW_O.js → TrendChart-DVp0Led--C8WSZxuE.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-D4m4sVkf-DJ-5Yugx.js → TrendWithTransactions-C5Zfe4RN-BXIMOZup.js} +1 -1
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BLwx8CVj-dhOY5qHO.js → UncategorizedAccountsMappingPage-DKQj6Y2Z-CJmiPan8.js} +5 -5
  176. package/dist/assets/{UnitIntegrationPage-CgbOyIBt-nz_B7FQx.js → UnitIntegrationPage-DzP4Z8GG-Dy6PuJhN.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-CmVwCxA2-BL_6rNZZ.js → UploadAdditionalDocumentOverlay-BGFTh8Ed-BM9KBkkU.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-DQtP0bm--CecMTi1i.js → Vendor2FAPopup-CyeLsWVA-Bvm0fc8m.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-Ch6V5aiE-C8mQ2zAb.js +1 -0
  180. package/dist/assets/{VendorDetailPage-CFkDOdUe-B1GqtBiD.js → VendorDetailPage-CrEIBnBt-BV5_7SzR.js} +1 -1
  181. package/dist/assets/VendorDomesticWireDetailsPage-GMtYv721-BHj1SZ-2.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-Bkn9p2Sf-xXTYWhq9.js → VendorFiling1099EditablePage-Bw_Igktf-DBjJgjbY.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-CKvnB4Q7-wJi46XXQ.js → VendorFirstReviewPage-CCCVS8n7-E428xFy1.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage--B2XU_hP-CbzsnIo2.js → VendorInternationalWireDetailsPage-DsBGMjtN-CQvN_vWC.js} +1 -1
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BeXxE9Qn-ym6eVDNw.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-DJP1yZx7-OlnsbsSP.js → VendorsAccountsSection-Bd1rg5Tw-DRUi6jIP.js} +1 -1
  187. package/dist/assets/{VerifyDevice-dFsnt44d-C1LsKxM_.js → VerifyDevice-B52Vuja4-0E_pm_dD.js} +7 -7
  188. package/dist/assets/{VideoPlayer-Dy6rImBJ-QOYygi-i.js → VideoPlayer-Cfh9VY-B-CLXI1KSM.js} +2 -2
  189. package/dist/assets/{VideoPopup-DM5Buf4j-CFLugl6n.js → VideoPopup-BLRMOVnP-CAsXJ3um.js} +3 -3
  190. package/dist/assets/{WarningsDrawerPage-C8i8v3rq-BqkJBNMa.js → WarningsDrawerPage-CnUUMlFZ-C2O6kI2F.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-CI7znfzM-Vqgai5nW.js → ZeniAccountDetailPage-DrBVs3G5-BGnEJzEM.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-CBnYQpc8-Dv81IpSI.js → ZeniAccountListViewPage-C3WwakQr-CVBB5Etq.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-sMjtAlej-CO7nbf-u.js → ZeniAccountNavBarPieces-CP2pkywN-CGbioXtu.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-B_NJMHHV-DWsuBCOP.js → ZeniAccountPromoPage-DYAVwX1I-CACWm6_J.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-C9cJ0F8e-BF5g947U.js → ZeniAccountSetupPage-D4y3RRC0-VwyN8R98.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-DzWFQiAt-07AcK5yb.js → ZeniCopyright-DxhdQ6XJ-DxZgbZ2B.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-B424bcSV-CHepSJQx.js → ZeniTransferAmountSlider-COT3DDGF-CcOgiNdg.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-pWZi41H8.js → add-to-wallet-DgdBD8_G-DsgRUVgA.js} +1 -1
  199. package/dist/assets/{analytics-BvXI56dE.js → analytics-CSlaNB19.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DP-LgJhR.js → analyticsHelper-BSMq6Y2P.js} +1 -1
  201. package/dist/assets/{analyticsHelper-CzevEN9D-BUYGstD0.js → analyticsHelper-C35dM-yG-D6b8wU4U.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-B9_UwdI_.js → arrow-south-east-round-PEovUgvH-yHNADvS4.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-CRwly3T1.js → auto-transfer-rule-mbafm5D3-Ccdjr6D8.js} +1 -1
  204. package/dist/assets/{chartTypes-n3TS0IBf-DRx7aLxA.js → chartTypes-BDwrrz9S-CO6_cPbC.js} +1 -1
  205. package/dist/assets/{commonDimensions-6BcP8EhU-CPpjZ-C4.js → commonDimensions-Pu55v5lV-fIykEmeD.js} +1 -1
  206. package/dist/assets/{commonTypes-Q1WP-Ym3-Cmq2uCPt.js → commonTypes-BElGElM--Bg_ac7b3.js} +1 -1
  207. package/dist/assets/{constants-B97TsRRb.js → constants-D-PeI_mM.js} +1 -1
  208. package/dist/assets/{core-CIefpDlV.js → core-CqdPXR9B.js} +1 -1
  209. package/dist/assets/{dash.all.min-RUznf6Xj.js → dash.all.min-DbcV3v7u.js} +1 -1
  210. package/dist/assets/{detailCommon-D3YbmSu3-CiTGsaNF.js → detailCommon-CM8F8nQy-BjrXwaKv.js} +3 -3
  211. package/dist/assets/{downloadPdf-Bf11NXjY-DUwuSlsF.js → downloadPdf-BF8--IAB-lQpphdcn.js} +1 -1
  212. package/dist/assets/{empty-BQQX0XD1.js → empty-DPq645sP.js} +1 -1
  213. package/dist/assets/{empty-DJIJO66a.js → empty-DTh_Ij2M.js} +1 -1
  214. package/dist/assets/{epic-C6ygjjdM.js → epic-96Yt9tV8.js} +1 -1
  215. package/dist/assets/{gift-box-Cmt9OgIZ-BWCTqneo.js → gift-box-Cmt9OgIZ-Bn-y1hvl.js} +1 -1
  216. package/dist/assets/{graphic-no-data-l-DU4J8fDt-C8GXOUxr.js → graphic-no-data-l-DU4J8fDt-a_iKaRv1.js} +1 -1
  217. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BQAFQuCs.js → graphic-no-data-net-burn-l-CzmycA0m-C9dTXMJH.js} +1 -1
  218. package/dist/assets/{handshake-BPg58FML-BCnezDN8.js → handshake-BPg58FML-DqlUuE7u.js} +1 -1
  219. package/dist/assets/{index-smQbM7l5.js → index-BTSZX0gU.js} +1 -1
  220. package/dist/assets/{index-BzA0Xv0P.js → index-Bs6vtzGR.js} +1 -1
  221. package/dist/assets/{index-WEj6FS32.js → index-D4DdpT1f.js} +7 -7
  222. package/dist/assets/{index-rikpsdq-.js → index-DQJyhSzl.js} +1 -1
  223. package/dist/assets/{index-CQs92n2L.js → index-DeNk0spl.js} +1 -1
  224. package/dist/assets/{index-DAj0zPwk.js → index-DfNzwEf5.js} +1 -1
  225. package/dist/assets/{index-DtRGsySN.js → index-DzUx431K.js} +1 -1
  226. package/dist/assets/{lexical-Dp1JhPKz.js → lexical-D6mU3oV8.js} +1 -1
  227. package/dist/assets/{liveblocks-CrODURpx.js → liveblocks-DXNKZvWw.js} +1 -1
  228. package/dist/assets/{lottie-hIwSKdQS.js → lottie-BGCmjFH9.js} +1 -1
  229. package/dist/assets/{mapLoadingInProgressToTreeNode-BArKDqgr-Ce9uxfyP.js → mapLoadingInProgressToTreeNode-4ruPPd2Y-CXJTu75z.js} +1 -1
  230. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BCmFQbuz-BJl1ilV_.js → mapSectionWithAcOnlyToTreeNode-B77EOrVX-heqCPLrc.js} +1 -1
  231. package/dist/assets/mapSpacerToTreeNode-DbVBrfUp-DCvPMvjH.js +1 -0
  232. package/dist/assets/{mapTimeframeBalancesToTreeNode-ClmNRrTo-Covijrhn.js → mapTimeframeBalancesToTreeNode-DA60r528-sldeiWG8.js} +1 -1
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-IkKV62Jb-JqYi47LI.js +1 -0
  234. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DT4LUXl9-COTrRRrU.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BxEY8256.js} +1 -1
  235. package/dist/assets/{mui-BTtN6lbG.js → mui-CooLgaJO.js} +1 -1
  236. package/dist/assets/{page-detail-CWX5S47F-vL4oE1Hd.js → page-detail-CWX5S47F-D0SYshoo.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-CzTG_UVX.js → radio-default-CiSgisfh-aKay5Aup.js} +1 -1
  238. package/dist/assets/{react-DTawl0rf.js → react-B3adtom7.js} +1 -1
  239. package/dist/assets/{react-RUf-G1wy.js → react-BBgs2Til.js} +1 -1
  240. package/dist/assets/{react-dGc0O2tO.js → react-BOYN8kx1.js} +1 -1
  241. package/dist/assets/{react-D8h_J9ua.js → react-CEyM_Slo.js} +1 -1
  242. package/dist/assets/{react-yNxKnTJa.js → react-CrELMTJL.js} +1 -1
  243. package/dist/assets/{react-BZDhaeWn.js → react-DHuOianZ.js} +1 -1
  244. package/dist/assets/{react-FdUpWGdd.js → react-MtwZeeNV.js} +2 -2
  245. package/dist/assets/{react-CZT8R2xg.js → react-_XrYtXDi.js} +1 -1
  246. package/dist/assets/{recharts-BfU_srYC.js → recharts-DHPcYqKb.js} +1 -1
  247. package/dist/assets/{sentry-B0WgNUxa.js → sentry-Dlcq8VjX.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-Z1Xg2OMK.js → shield-DOlUxcFf-D8h0VGFI.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js +1 -0
  250. package/dist/assets/{toChartData-Bl-lEYbQ-Cv_10vbn.js → toChartData-CTG-a8va-B2RC0Eyi.js} +1 -1
  251. package/dist/assets/{uploadAttachment-B_0cN84g-C7pQHANb.js → uploadAttachment-n14_2p7o-3Yaegacg.js} +1 -1
  252. package/dist/assets/{uploadReceipts-DJRtId-4-B1jpX457.js → uploadReceipts-DJRtId-4-D8fSq3Gx.js} +1 -1
  253. package/dist/assets/{url-D-l_68oE.js → url-CfIahVCp.js} +1 -1
  254. package/dist/assets/{url-CHEcUoer.js → url-d3WjAGv6.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-BysG3lqG.js → useLongPress-GCK2COYQ-B0lPuhDh.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-ZROsAmzr.js → usp-line-BBd1wKwW-CZ22OQAj.js} +1 -1
  257. package/dist/assets/{utils-DZQMbqmw.js → utils-CXbV7y1T.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DnAAAEmj.js → zeni-epic-state-pmiItBju.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/AccountInfoPage-DUYpaV3v-CL9yEZEk.js +0 -18
  262. package/dist/assets/CustomerOnboardingContainerPage-DZfFYnVw-BG6Jz35S.js +0 -1
  263. package/dist/assets/CustomerOnboardingProductSuitePage-2V3vSjB8-BYRuju-o.js +0 -202
  264. package/dist/assets/MagicLinkACHDetailsPage-BeRQFYX3-CrMUHXPB.js +0 -1
  265. package/dist/assets/MagicLinkDomesticWireDetailsPage-C1DDZC2_-CWTR8m-D.js +0 -1
  266. package/dist/assets/MagicLinkInternationalWireDetailsPage-DyDp04Vn-UtoyLAup.js +0 -1
  267. package/dist/assets/MailingDetailsSection-IQJY4Yl0-C_b76P8R.js +0 -21
  268. package/dist/assets/StatementsPage-BRxP-Jwn-CibgKP9E.js +0 -58
  269. package/dist/assets/VendorACHDetailsPage-CuCteqbL-CrfAmoz7.js +0 -1
  270. package/dist/assets/VendorDomesticWireDetailsPage-Cr1fyB0u-N7obKAAe.js +0 -1
  271. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJFB7SEO-BecYrM5_.js +0 -1
  272. package/dist/assets/mapSpacerToTreeNode-DdwRxjlP-Bw1NwZTY.js +0 -1
  273. package/dist/assets/mapTimeframeBalancesToTreeNode-CR-gDA51-Dr9tcN9g.js +0 -1
  274. package/dist/assets/toCOABalancesWithID-BzzH0Io4-q6KiTxht.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as X,fR as H,g as ee,a9 as te,u as f,V as d,gO as le,ac as ne,aP as oe,aR as se,o as re,y as D,cA as Z,fU as j,fV as A,fW as V,F as ie,M as ae}from"./index-WEj6FS32.js";import{a as x}from"./sentry-B0WgNUxa.js";import{n as W}from"./mui-BTtN6lbG.js";import{FB as de,bg as ce}from"./zeni-epic-state-DnAAAEmj.js";import{f as ue}from"./AllUserItems-CzugF5fn-8WnbDsqH.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./LabeledUserSingleSelectWithSubtitlesField-CE332GjA-BafYQ_Pm.js";import"./RoleWithToolTip-CkpqxMzB-CgYpd1vG.js";import"./LabeledZeniRolesDropDownField-DU4-ho4X-DQBIg45w.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aafa52ab-c7fe-4e83-8f5d-ab6e89b55adb",e._sentryDebugIdIdentifier="sentry-dbid-aafa52ab-c7fe-4e83-8f5d-ab6e89b55adb")}catch{}})();const L={containerPaddingLeft:new D(f[3],f[6],f[8]),containerPaddingRight:new D(f[3],f[6],f[8]),buttonWidth:new D(85,85)},M="editPeoplePage",I="userItems",p=ie.getLocalizedStrings().peoplePage,$e=({peopleDetails:e,managersList:t,classList:g,controllersList:S,mode:o,isZeniTenant:O,onPeopleLocalDataUpdated:C,onCloseClick:P,onSaveClick:r,isReimbursementDisabled:T,isZeniAccountsDisabled:s,isChargeCardDisabled:E,isTreasuryDisabled:k,isBankingOnlyTenant:R,isCardsOnlyTenant:_,isLiteRoleDisabled:U})=>{const c=X(),[Q,F]=x.useState(-1),[B,$]=x.useState(""),q=x.useRef(null),z=x.useMemo(()=>H(T,s,E,R,_,U,k),[T,s,E,R,_,U,k]),G=ee(),i=te({mode:"onBlur",reValidateMode:"onChange",defaultValues:N(e.people,o,z,t,g,R,_),values:N(e.people,o,z,t,g,R,_)}),J=i.handleSubmit(()=>{Y()?r():console.warn("Invite People form error")}),Y=()=>{const l=i.getValues();let n=!0;return l.userItems.forEach((v,w)=>{const{role:a,nonZeniRole:y,department:u,manager:m}=v;if(o==="zeni_only")a?.selectedOptions==null&&(i.setError(`${I}.${w}.role`,{type:"required"}),n=!1);else{const b=y?.userRole.selectedRole;(b!=null&&y!=null?y.productsByUserRole[b].map(h=>h.selectedOption).filter(h=>h!=null):[]).length<1&&(i.setError(`${I}.${w}.nonZeniRole.userRole.selectedRole`,{type:"required"}),n=!1),u?.selectedOption==null&&b!=="investor_or_banker"&&!R&&!_&&(i.setError(`${I}.${w}.department`,{type:"required"}),n=!1),m?.selectedUser==null&&b!=="investor_or_banker"&&(i.setError(`${I}.${w}.manager`,{type:"required"}),n=!1)}}),n},K=async(l,n)=>{const v=[],{userItems:w}=n;w.forEach(a=>{let y={};if(o==="zeni_only")y={email:a.email,role:[a.role?.selectedOptions]};else{const u=a.nonZeniRole?.userRole.selectedRole;let m=[];u==="admin"||u==="investor_or_banker"?m.push(u):m=u!=null?(a.nonZeniRole?.productsByUserRole[u]??[]).map(h=>de(h.selectedOption?.value)).filter(h=>h!=null):[],u==="employee"&&m.length===0&&(m=["reimbursements_user"]);const b=ce(m);y={email:a.email,role:m,departmentId:b?void 0:a.department?.selectedOption?.value,managerId:b?void 0:a.manager?.selectedUser}}v.push(y)}),C(v)};return x.useEffect(()=>{const l=i.watch((n,{name:v})=>{v!=null&&n!=null&&K(v,n)});return()=>{l.unsubscribe()}}),x.useEffect(()=>{const l=q.current,n=()=>{c!=="small"&&(l&&l?.scrollTop>f[9]?$(o==="zeni_only"?p.invitePage.zeniTitle:p.invitePage.title):$(""))};return c==="small"?$(o==="zeni_only"?p.invitePage.zeniTitle:p.invitePage.title):l&&l?.scrollTop<=f[9]&&$(""),l&&l.addEventListener("scroll",n),()=>{l&&l.removeEventListener("scroll",n)}},[o,B,c]),d.jsxs(d.Fragment,{children:[d.jsx(le,{title:B,backgroundColor:G.colors.grey4,style:{zIndex:4},onCloseClick:P,isTitleAlignLeft:c==="small"}),d.jsxs(me,{"data-testid":oe("invite-people-container"),windowSize:c,ref:q,children:[c!=="small"?d.jsx(pe,{children:o==="zeni_only"?p.invitePage.zeniTitle:p.invitePage.title}):null,d.jsx(ne,{...i,children:d.jsx("form",{id:`${M}_form`,onSubmit:J,children:d.jsx(ue,{control:i.control,sectionId:I,deleteConfirmationIndex:Q,updateDeleteConfirmationIndex:F,mode:o,isZeniTenant:O,classList:g,managersList:t,controllersList:S,isBankingOnlyTenant:R,isCardsOnlyTenant:_,customerRoleOptions:z,isEdit:!1})})})]}),d.jsx(se,{formId:`${M}_form`,primaryBtn:{label:p.invitePage.invite,style:{width:L.buttonWidth.value(c)},isLoading:e.invitePersonState.fetchState==="In-Progress",isDisabled:e.invitePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:p.invitePage.cancel,style:{width:L.buttonWidth.value(c)},shouldResetOnCancel:!1,onClick:P},separatorStyle:{marginRight:re.sp4}})]})},N=(e,t,g,S,o,O,C)=>{const P=[{userIndex:0,email:[],role:t==="zeni_only"?{allOptions:Z.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:t==="off"?{userRole:{selectedRole:e[0]?.role.length>0?V(e[0].role):void 0,allRootRole:A(O,C)},productsByUserRole:j(e[0]?.role??[],g)}:void 0,department:void 0,manager:void 0}];return{[I]:e.length>0?e.map((r,T)=>({userIndex:T,email:r.email,role:t==="zeni_only"?{allOptions:Z.roles,selectedOptions:r.role}:void 0,nonZeniRole:t==="off"?{userRole:{selectedRole:r.role.length>0?V(r.role):void 0,allRootRole:A(O,C)},productsByUserRole:j(r.role,g)}:void 0,department:{allOptions:o.map(s=>({label:s.fullyQualifiedAccountingClassName??"",value:s.classId,hoverText:s.accountingClassNumber})),selectedOption:o.map(s=>({label:s.fullyQualifiedAccountingClassName??"",value:s.classId,hoverText:s.accountingClassNumber})).find(s=>s.value===r.departmentId)},manager:{allUsers:S,selectedUser:r.managerId}})):P}},Le=(e,t)=>`${e}.${t}`,me=W.div`
1
+ import{J as X,fR as H,g as ee,a9 as te,u as f,V as d,gO as le,ac as ne,aP as oe,aR as se,o as re,y as D,cA as Z,fU as j,fV as A,fW as V,F as ie,M as ae}from"./index-D4DdpT1f.js";import{a as x}from"./sentry-Dlcq8VjX.js";import{n as W}from"./mui-CooLgaJO.js";import{FB as de,bg as ce}from"./zeni-epic-state-pmiItBju.js";import{f as ue}from"./AllUserItems-vOFCgjs7-BawEw1bw.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-BWHNFjm5.js";import"./RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js";import"./LabeledZeniRolesDropDownField-B-0ZfQFs-BLpCJZWp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="02580b10-7325-46f6-8971-d0956edd790d",e._sentryDebugIdIdentifier="sentry-dbid-02580b10-7325-46f6-8971-d0956edd790d")}catch{}})();const L={containerPaddingLeft:new D(f[3],f[6],f[8]),containerPaddingRight:new D(f[3],f[6],f[8]),buttonWidth:new D(85,85)},M="editPeoplePage",I="userItems",p=ie.getLocalizedStrings().peoplePage,$e=({peopleDetails:e,managersList:t,classList:g,controllersList:S,mode:o,isZeniTenant:O,onPeopleLocalDataUpdated:C,onCloseClick:P,onSaveClick:r,isReimbursementDisabled:T,isZeniAccountsDisabled:s,isChargeCardDisabled:E,isTreasuryDisabled:k,isBankingOnlyTenant:R,isCardsOnlyTenant:_,isLiteRoleDisabled:U})=>{const c=X(),[Q,F]=x.useState(-1),[B,$]=x.useState(""),q=x.useRef(null),z=x.useMemo(()=>H(T,s,E,R,_,U,k),[T,s,E,R,_,U,k]),G=ee(),i=te({mode:"onBlur",reValidateMode:"onChange",defaultValues:N(e.people,o,z,t,g,R,_),values:N(e.people,o,z,t,g,R,_)}),J=i.handleSubmit(()=>{Y()?r():console.warn("Invite People form error")}),Y=()=>{const l=i.getValues();let n=!0;return l.userItems.forEach((v,w)=>{const{role:a,nonZeniRole:y,department:u,manager:m}=v;if(o==="zeni_only")a?.selectedOptions==null&&(i.setError(`${I}.${w}.role`,{type:"required"}),n=!1);else{const b=y?.userRole.selectedRole;(b!=null&&y!=null?y.productsByUserRole[b].map(h=>h.selectedOption).filter(h=>h!=null):[]).length<1&&(i.setError(`${I}.${w}.nonZeniRole.userRole.selectedRole`,{type:"required"}),n=!1),u?.selectedOption==null&&b!=="investor_or_banker"&&!R&&!_&&(i.setError(`${I}.${w}.department`,{type:"required"}),n=!1),m?.selectedUser==null&&b!=="investor_or_banker"&&(i.setError(`${I}.${w}.manager`,{type:"required"}),n=!1)}}),n},K=async(l,n)=>{const v=[],{userItems:w}=n;w.forEach(a=>{let y={};if(o==="zeni_only")y={email:a.email,role:[a.role?.selectedOptions]};else{const u=a.nonZeniRole?.userRole.selectedRole;let m=[];u==="admin"||u==="investor_or_banker"?m.push(u):m=u!=null?(a.nonZeniRole?.productsByUserRole[u]??[]).map(h=>de(h.selectedOption?.value)).filter(h=>h!=null):[],u==="employee"&&m.length===0&&(m=["reimbursements_user"]);const b=ce(m);y={email:a.email,role:m,departmentId:b?void 0:a.department?.selectedOption?.value,managerId:b?void 0:a.manager?.selectedUser}}v.push(y)}),C(v)};return x.useEffect(()=>{const l=i.watch((n,{name:v})=>{v!=null&&n!=null&&K(v,n)});return()=>{l.unsubscribe()}}),x.useEffect(()=>{const l=q.current,n=()=>{c!=="small"&&(l&&l?.scrollTop>f[9]?$(o==="zeni_only"?p.invitePage.zeniTitle:p.invitePage.title):$(""))};return c==="small"?$(o==="zeni_only"?p.invitePage.zeniTitle:p.invitePage.title):l&&l?.scrollTop<=f[9]&&$(""),l&&l.addEventListener("scroll",n),()=>{l&&l.removeEventListener("scroll",n)}},[o,B,c]),d.jsxs(d.Fragment,{children:[d.jsx(le,{title:B,backgroundColor:G.colors.grey4,style:{zIndex:4},onCloseClick:P,isTitleAlignLeft:c==="small"}),d.jsxs(me,{"data-testid":oe("invite-people-container"),windowSize:c,ref:q,children:[c!=="small"?d.jsx(pe,{children:o==="zeni_only"?p.invitePage.zeniTitle:p.invitePage.title}):null,d.jsx(ne,{...i,children:d.jsx("form",{id:`${M}_form`,onSubmit:J,children:d.jsx(ue,{control:i.control,sectionId:I,deleteConfirmationIndex:Q,updateDeleteConfirmationIndex:F,mode:o,isZeniTenant:O,classList:g,managersList:t,controllersList:S,isBankingOnlyTenant:R,isCardsOnlyTenant:_,customerRoleOptions:z,isEdit:!1})})})]}),d.jsx(se,{formId:`${M}_form`,primaryBtn:{label:p.invitePage.invite,style:{width:L.buttonWidth.value(c)},isLoading:e.invitePersonState.fetchState==="In-Progress",isDisabled:e.invitePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:p.invitePage.cancel,style:{width:L.buttonWidth.value(c)},shouldResetOnCancel:!1,onClick:P},separatorStyle:{marginRight:re.sp4}})]})},N=(e,t,g,S,o,O,C)=>{const P=[{userIndex:0,email:[],role:t==="zeni_only"?{allOptions:Z.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:t==="off"?{userRole:{selectedRole:e[0]?.role.length>0?V(e[0].role):void 0,allRootRole:A(O,C)},productsByUserRole:j(e[0]?.role??[],g)}:void 0,department:void 0,manager:void 0}];return{[I]:e.length>0?e.map((r,T)=>({userIndex:T,email:r.email,role:t==="zeni_only"?{allOptions:Z.roles,selectedOptions:r.role}:void 0,nonZeniRole:t==="off"?{userRole:{selectedRole:r.role.length>0?V(r.role):void 0,allRootRole:A(O,C)},productsByUserRole:j(r.role,g)}:void 0,department:{allOptions:o.map(s=>({label:s.fullyQualifiedAccountingClassName??"",value:s.classId,hoverText:s.accountingClassNumber})),selectedOption:o.map(s=>({label:s.fullyQualifiedAccountingClassName??"",value:s.classId,hoverText:s.accountingClassNumber})).find(s=>s.value===r.departmentId)},manager:{allUsers:S,selectedUser:r.managerId}})):P}},Le=(e,t)=>`${e}.${t}`,me=W.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,21 +1,21 @@
1
- import{g as se,J as de,F as J,V as l,T as q,o,p as d,y as B,gy as $e,gz as Be,aP as Q,co as Ee,cp as je,cq as ze,as as Te,b9 as ce,u as C,b as ie,d as Ae,f as Pe,ai as pe,gA as He}from"./index-WEj6FS32.js";import{a as t}from"./sentry-B0WgNUxa.js";import{n as i}from"./mui-BTtN6lbG.js";import Re from"./AttachmentView-CfacSLcU-gwYezuYM.js";import{l as Me}from"./uploadReceipts-DJRtId-4-B1jpX457.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="4ba6ec36-5ee0-4eb5-aeeb-daa8221b566f",e._sentryDebugIdIdentifier="sentry-dbid-4ba6ec36-5ee0-4eb5-aeeb-daa8221b566f")}catch{}})();const Ve=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_623_1439",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_623_1439)"})),t.createElement("g",{mask:"url(#mask0_623_1439)"},t.createElement("path",{d:"M24.4551 10.7549C24.8693 10.7549 25.2051 11.0907 25.2051 11.5049V13.6938L28.3834 13.6938C28.7976 13.6938 29.1334 14.0296 29.1334 14.4438C29.1334 14.8581 28.7976 15.1938 28.3834 15.1938H22.4209C21.6794 15.1944 20.9613 15.4529 20.3896 15.925C19.8179 16.3972 19.4282 17.0536 19.2875 17.7816C19.1468 18.5096 19.2638 19.264 19.6184 19.9152C19.973 20.5662 20.543 21.0736 21.2306 21.3505L27.2968 23.7781C28.3078 24.1849 29.1457 24.9308 29.6669 25.8878C30.1881 26.8448 30.36 27.9534 30.1532 29.0234C29.9464 30.0933 29.3738 31.058 28.5335 31.7519C27.6933 32.4458 26.6377 32.8257 25.548 32.8265H25.2051V35.0149C25.2051 35.4292 24.8693 35.7649 24.4551 35.7649C24.0409 35.7649 23.7051 35.4292 23.7051 35.0149V32.8265H19.567C19.1528 32.8265 18.817 32.4907 18.817 32.0765C18.817 31.6623 19.1528 31.3265 19.567 31.3265H24.4327C24.4401 31.3263 24.4476 31.3262 24.4551 31.3262C24.4626 31.3262 24.47 31.3263 24.4775 31.3265H25.5469C26.2884 31.326 27.0066 31.0675 27.5784 30.5953C28.1501 30.1232 28.5398 29.4668 28.6805 28.7387C28.8212 28.0107 28.7042 27.2564 28.3496 26.6052C27.9951 25.9543 27.4253 25.4469 26.7378 25.1701L26.7369 25.1697L20.6712 22.7422C19.6602 22.3355 18.8223 21.5896 18.3011 20.6325C17.7799 19.6755 17.608 18.5669 17.8148 17.497C18.0216 16.427 18.5942 15.4624 19.4345 14.7684C20.2748 14.0745 21.3308 13.6946 22.4206 13.6938H23.7051V11.5049C23.7051 11.0907 24.0409 10.7549 24.4551 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 42.2959C17.7295 41.8817 18.0653 41.5459 18.4795 41.5459H42.5621C42.9763 41.5459 43.3121 41.8817 43.3121 42.2959C43.3121 42.7101 42.9763 43.0459 42.5621 43.0459H18.4795C18.0653 43.0459 17.7295 42.7101 17.7295 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 52.2962C17.7295 51.882 18.0653 51.5462 18.4795 51.5462L40.7106 51.5461C41.1248 51.5461 41.4606 51.8819 41.4606 52.2961C41.4606 52.7104 41.1248 53.0461 40.7106 53.0461L18.4795 53.0462C18.0653 53.0462 17.7295 52.7104 17.7295 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7295 31.9541C37.7295 31.5399 38.0653 31.2041 38.4795 31.2041H48.1263C48.5406 31.2041 48.8763 31.5399 48.8763 31.9541C48.8763 32.3683 48.5406 32.7041 48.1263 32.7041H38.4795C38.0653 32.7041 37.7295 32.3683 37.7295 31.9541Z",fill:"#A6B0B1"})),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5502 49.191C55.6639 49.0732 55.8234 49 56 49C56 49 56 49 56 49C56.0071 49 56.0143 49.0001 56.0214 49.0004C56.1742 49.0055 56.3254 49.0664 56.4421 49.1831L61.0135 53.7545C61.2576 53.9986 61.2576 54.3943 61.0135 54.6384C60.7694 54.8824 60.3737 54.8824 60.1296 54.6384L56.625 51.1337V60.7976C56.625 61.1427 56.3452 61.4226 56 61.4226C55.6548 61.4226 55.375 61.1427 55.375 60.7976V51.134L51.8707 54.6384C51.6266 54.8824 51.2308 54.8824 50.9868 54.6384C50.7427 54.3943 50.7427 53.9986 50.9868 53.7545L55.5502 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_623_1439",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),_e=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_836_6609",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_836_6609)"})),t.createElement("g",{mask:"url(#mask0_836_6609)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 18.25C5.41421 18.25 5.75 18.5858 5.75 19V61C5.75 63.8995 8.10051 66.25 11 66.25H35C35.4142 66.25 35.75 66.5858 35.75 67C35.75 67.4142 35.4142 67.75 35 67.75H11C7.27208 67.75 4.25 64.7279 4.25 61V19C4.25 18.5858 4.58579 18.25 5 18.25Z",fill:"#A6B0B1"}),t.createElement("path",{d:"M24.4561 10.7549C24.8703 10.7549 25.2061 11.0907 25.2061 11.5049V13.6938L28.3843 13.6938C28.7985 13.6938 29.1343 14.0296 29.1343 14.4438C29.1343 14.8581 28.7985 15.1938 28.3843 15.1938H22.4218C21.6804 15.1944 20.9623 15.4529 20.3906 15.925C19.8189 16.3972 19.4292 17.0536 19.2885 17.7816C19.1478 18.5096 19.2648 19.264 19.6194 19.9152C19.974 20.5662 20.5439 21.0736 21.2316 21.3505L27.2978 23.7781C28.3087 24.1849 29.1467 24.9308 29.6679 25.8878C30.1891 26.8448 30.361 27.9534 30.1542 29.0234C29.9474 30.0933 29.3748 31.058 28.5345 31.7519C27.6942 32.4458 26.6387 32.8257 25.5489 32.8265H25.2061V35.0149C25.2061 35.4292 24.8703 35.7649 24.4561 35.7649C24.0418 35.7649 23.7061 35.4292 23.7061 35.0149V32.8265H19.568C19.1538 32.8265 18.818 32.4907 18.818 32.0765C18.818 31.6623 19.1538 31.3265 19.568 31.3265H24.4337C24.4411 31.3263 24.4486 31.3262 24.4561 31.3262C24.4635 31.3262 24.471 31.3263 24.4785 31.3265H25.5479C26.2894 31.326 27.0076 31.0675 27.5794 30.5953C28.1511 30.1232 28.5408 29.4668 28.6815 28.7387C28.8222 28.0107 28.7052 27.2564 28.3506 26.6052C27.9961 25.9543 27.4263 25.4469 26.7388 25.1701L26.7378 25.1697L20.6722 22.7422C19.6612 22.3355 18.8233 21.5896 18.3021 20.6325C17.7809 19.6755 17.609 18.5669 17.8158 17.497C18.0226 16.427 18.5952 15.4624 19.4355 14.7684C20.2757 14.0745 21.3318 13.6946 22.4216 13.6938H23.7061V11.5049C23.7061 11.0907 24.0418 10.7549 24.4561 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 42.2959C17.7305 41.8817 18.0663 41.5459 18.4805 41.5459H42.5631C42.9773 41.5459 43.3131 41.8817 43.3131 42.2959C43.3131 42.7101 42.9773 43.0459 42.5631 43.0459H18.4805C18.0663 43.0459 17.7305 42.7101 17.7305 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 52.2962C17.7305 51.882 18.0663 51.5462 18.4805 51.5462L40.7116 51.5461C41.1258 51.5461 41.4616 51.8819 41.4616 52.2961C41.4616 52.7104 41.1258 53.0461 40.7116 53.0461L18.4805 53.0462C18.0663 53.0462 17.7305 52.7104 17.7305 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7305 31.9541C37.7305 31.5399 38.0663 31.2041 38.4805 31.2041H48.1273C48.5415 31.2041 48.8773 31.5399 48.8773 31.9541C48.8773 32.3683 48.5415 32.7041 48.1273 32.7041H38.4805C38.0663 32.7041 37.7305 32.3683 37.7305 31.9541Z",fill:"#A6B0B1"})),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5512 49.191C55.6649 49.0732 55.8244 49 56.001 49C56.001 49 56.001 49 56.001 49C56.0081 49 56.0153 49.0001 56.0224 49.0004C56.1752 49.0055 56.3264 49.0664 56.4431 49.1831L61.0145 53.7545C61.2586 53.9986 61.2586 54.3943 61.0145 54.6384C60.7704 54.8824 60.3747 54.8824 60.1306 54.6384L56.626 51.1337V60.7976C56.626 61.1427 56.3462 61.4226 56.001 61.4226C55.6558 61.4226 55.376 61.1427 55.376 60.7976V51.134L51.8716 54.6384C51.6276 54.8824 51.2318 54.8824 50.9877 54.6384C50.7437 54.3943 50.7437 53.9986 50.9877 53.7545L55.5512 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_836_6609",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),Ie=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M15.4931 3.87109H11.4776C10.5275 3.89973 9.62765 4.30445 8.97582 4.99631C8.324 5.68817 7.97357 6.61054 8.00156 7.56068C7.99312 8.23377 8.16758 8.89652 8.50634 9.47821C8.84509 10.0599 9.33542 10.5387 9.92501 10.8635L13.5771 12.8038C14.1642 13.1295 14.6523 13.6079 14.9896 14.1884C15.3269 14.7688 15.5009 15.4297 15.4931 16.101C15.5211 17.0505 15.1712 17.9724 14.5202 18.6641C13.8691 19.3559 12.9702 19.761 12.0208 19.7906H8.00156",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.2829 19.7908V22.6001",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M13.1558 1V3.87113",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),g={memoPaddingTopBottomRight:new B(12,C[3]),billReceiptSize:new B(60,C[10]),rootContainerPaddingTop:new B(C[3],62),rootContainerPaddingRight:new B(C[3],C[6]),rootContainerPaddingBottom:new B(C[5],C[9]),rootContainerPaddingLeft:new B(C[3],C[8])},re=i(Ae)`
1
+ import{g as s1,J as d1,F as J,V as l,T as q,o,p as d,y as B,gy as $1,gz as B1,aP as Q,co as E1,cp as j1,cq as z1,as as T1,b9 as c1,u as C,b as i1,d as A1,f as P1,ai as p1,gA as H1}from"./index-D4DdpT1f.js";import{a as t}from"./sentry-Dlcq8VjX.js";import{n as i}from"./mui-CooLgaJO.js";import R1 from"./AttachmentView-vlVaH4YF-DjHAa-jm.js";import{l as M1}from"./uploadReceipts-DJRtId-4-D8fSq3Gx.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="dc8eaef2-74a0-40f7-a9c5-96af192d5083",e._sentryDebugIdIdentifier="sentry-dbid-dc8eaef2-74a0-40f7-a9c5-96af192d5083")}catch{}})();const V1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_623_1439",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_623_1439)"})),t.createElement("g",{mask:"url(#mask0_623_1439)"},t.createElement("path",{d:"M24.4551 10.7549C24.8693 10.7549 25.2051 11.0907 25.2051 11.5049V13.6938L28.3834 13.6938C28.7976 13.6938 29.1334 14.0296 29.1334 14.4438C29.1334 14.8581 28.7976 15.1938 28.3834 15.1938H22.4209C21.6794 15.1944 20.9613 15.4529 20.3896 15.925C19.8179 16.3972 19.4282 17.0536 19.2875 17.7816C19.1468 18.5096 19.2638 19.264 19.6184 19.9152C19.973 20.5662 20.543 21.0736 21.2306 21.3505L27.2968 23.7781C28.3078 24.1849 29.1457 24.9308 29.6669 25.8878C30.1881 26.8448 30.36 27.9534 30.1532 29.0234C29.9464 30.0933 29.3738 31.058 28.5335 31.7519C27.6933 32.4458 26.6377 32.8257 25.548 32.8265H25.2051V35.0149C25.2051 35.4292 24.8693 35.7649 24.4551 35.7649C24.0409 35.7649 23.7051 35.4292 23.7051 35.0149V32.8265H19.567C19.1528 32.8265 18.817 32.4907 18.817 32.0765C18.817 31.6623 19.1528 31.3265 19.567 31.3265H24.4327C24.4401 31.3263 24.4476 31.3262 24.4551 31.3262C24.4626 31.3262 24.47 31.3263 24.4775 31.3265H25.5469C26.2884 31.326 27.0066 31.0675 27.5784 30.5953C28.1501 30.1232 28.5398 29.4668 28.6805 28.7387C28.8212 28.0107 28.7042 27.2564 28.3496 26.6052C27.9951 25.9543 27.4253 25.4469 26.7378 25.1701L26.7369 25.1697L20.6712 22.7422C19.6602 22.3355 18.8223 21.5896 18.3011 20.6325C17.7799 19.6755 17.608 18.5669 17.8148 17.497C18.0216 16.427 18.5942 15.4624 19.4345 14.7684C20.2748 14.0745 21.3308 13.6946 22.4206 13.6938H23.7051V11.5049C23.7051 11.0907 24.0409 10.7549 24.4551 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 42.2959C17.7295 41.8817 18.0653 41.5459 18.4795 41.5459H42.5621C42.9763 41.5459 43.3121 41.8817 43.3121 42.2959C43.3121 42.7101 42.9763 43.0459 42.5621 43.0459H18.4795C18.0653 43.0459 17.7295 42.7101 17.7295 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 52.2962C17.7295 51.882 18.0653 51.5462 18.4795 51.5462L40.7106 51.5461C41.1248 51.5461 41.4606 51.8819 41.4606 52.2961C41.4606 52.7104 41.1248 53.0461 40.7106 53.0461L18.4795 53.0462C18.0653 53.0462 17.7295 52.7104 17.7295 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7295 31.9541C37.7295 31.5399 38.0653 31.2041 38.4795 31.2041H48.1263C48.5406 31.2041 48.8763 31.5399 48.8763 31.9541C48.8763 32.3683 48.5406 32.7041 48.1263 32.7041H38.4795C38.0653 32.7041 37.7295 32.3683 37.7295 31.9541Z",fill:"#A6B0B1"})),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5502 49.191C55.6639 49.0732 55.8234 49 56 49C56 49 56 49 56 49C56.0071 49 56.0143 49.0001 56.0214 49.0004C56.1742 49.0055 56.3254 49.0664 56.4421 49.1831L61.0135 53.7545C61.2576 53.9986 61.2576 54.3943 61.0135 54.6384C60.7694 54.8824 60.3737 54.8824 60.1296 54.6384L56.625 51.1337V60.7976C56.625 61.1427 56.3452 61.4226 56 61.4226C55.6548 61.4226 55.375 61.1427 55.375 60.7976V51.134L51.8707 54.6384C51.6266 54.8824 51.2308 54.8824 50.9868 54.6384C50.7427 54.3943 50.7427 53.9986 50.9868 53.7545L55.5502 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_623_1439",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),_1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_836_6609",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_836_6609)"})),t.createElement("g",{mask:"url(#mask0_836_6609)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 18.25C5.41421 18.25 5.75 18.5858 5.75 19V61C5.75 63.8995 8.10051 66.25 11 66.25H35C35.4142 66.25 35.75 66.5858 35.75 67C35.75 67.4142 35.4142 67.75 35 67.75H11C7.27208 67.75 4.25 64.7279 4.25 61V19C4.25 18.5858 4.58579 18.25 5 18.25Z",fill:"#A6B0B1"}),t.createElement("path",{d:"M24.4561 10.7549C24.8703 10.7549 25.2061 11.0907 25.2061 11.5049V13.6938L28.3843 13.6938C28.7985 13.6938 29.1343 14.0296 29.1343 14.4438C29.1343 14.8581 28.7985 15.1938 28.3843 15.1938H22.4218C21.6804 15.1944 20.9623 15.4529 20.3906 15.925C19.8189 16.3972 19.4292 17.0536 19.2885 17.7816C19.1478 18.5096 19.2648 19.264 19.6194 19.9152C19.974 20.5662 20.5439 21.0736 21.2316 21.3505L27.2978 23.7781C28.3087 24.1849 29.1467 24.9308 29.6679 25.8878C30.1891 26.8448 30.361 27.9534 30.1542 29.0234C29.9474 30.0933 29.3748 31.058 28.5345 31.7519C27.6942 32.4458 26.6387 32.8257 25.5489 32.8265H25.2061V35.0149C25.2061 35.4292 24.8703 35.7649 24.4561 35.7649C24.0418 35.7649 23.7061 35.4292 23.7061 35.0149V32.8265H19.568C19.1538 32.8265 18.818 32.4907 18.818 32.0765C18.818 31.6623 19.1538 31.3265 19.568 31.3265H24.4337C24.4411 31.3263 24.4486 31.3262 24.4561 31.3262C24.4635 31.3262 24.471 31.3263 24.4785 31.3265H25.5479C26.2894 31.326 27.0076 31.0675 27.5794 30.5953C28.1511 30.1232 28.5408 29.4668 28.6815 28.7387C28.8222 28.0107 28.7052 27.2564 28.3506 26.6052C27.9961 25.9543 27.4263 25.4469 26.7388 25.1701L26.7378 25.1697L20.6722 22.7422C19.6612 22.3355 18.8233 21.5896 18.3021 20.6325C17.7809 19.6755 17.609 18.5669 17.8158 17.497C18.0226 16.427 18.5952 15.4624 19.4355 14.7684C20.2757 14.0745 21.3318 13.6946 22.4216 13.6938H23.7061V11.5049C23.7061 11.0907 24.0418 10.7549 24.4561 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 42.2959C17.7305 41.8817 18.0663 41.5459 18.4805 41.5459H42.5631C42.9773 41.5459 43.3131 41.8817 43.3131 42.2959C43.3131 42.7101 42.9773 43.0459 42.5631 43.0459H18.4805C18.0663 43.0459 17.7305 42.7101 17.7305 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 52.2962C17.7305 51.882 18.0663 51.5462 18.4805 51.5462L40.7116 51.5461C41.1258 51.5461 41.4616 51.8819 41.4616 52.2961C41.4616 52.7104 41.1258 53.0461 40.7116 53.0461L18.4805 53.0462C18.0663 53.0462 17.7305 52.7104 17.7305 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7305 31.9541C37.7305 31.5399 38.0663 31.2041 38.4805 31.2041H48.1273C48.5415 31.2041 48.8773 31.5399 48.8773 31.9541C48.8773 32.3683 48.5415 32.7041 48.1273 32.7041H38.4805C38.0663 32.7041 37.7305 32.3683 37.7305 31.9541Z",fill:"#A6B0B1"})),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5512 49.191C55.6649 49.0732 55.8244 49 56.001 49C56.001 49 56.001 49 56.001 49C56.0081 49 56.0153 49.0001 56.0224 49.0004C56.1752 49.0055 56.3264 49.0664 56.4431 49.1831L61.0145 53.7545C61.2586 53.9986 61.2586 54.3943 61.0145 54.6384C60.7704 54.8824 60.3747 54.8824 60.1306 54.6384L56.626 51.1337V60.7976C56.626 61.1427 56.3462 61.4226 56.001 61.4226C55.6558 61.4226 55.376 61.1427 55.376 60.7976V51.134L51.8716 54.6384C51.6276 54.8824 51.2318 54.8824 50.9877 54.6384C50.7437 54.3943 50.7437 53.9986 50.9877 53.7545L55.5512 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_836_6609",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),I1=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M15.4931 3.87109H11.4776C10.5275 3.89973 9.62765 4.30445 8.97582 4.99631C8.324 5.68817 7.97357 6.61054 8.00156 7.56068C7.99312 8.23377 8.16758 8.89652 8.50634 9.47821C8.84509 10.0599 9.33542 10.5387 9.92501 10.8635L13.5771 12.8038C14.1642 13.1295 14.6523 13.6079 14.9896 14.1884C15.3269 14.7688 15.5009 15.4297 15.4931 16.101C15.5211 17.0505 15.1712 17.9724 14.5202 18.6641C13.8691 19.3559 12.9702 19.761 12.0208 19.7906H8.00156",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.2829 19.7908V22.6001",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M13.1558 1V3.87113",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),g={memoPaddingTopBottomRight:new B(12,C[3]),billReceiptSize:new B(60,C[10]),rootContainerPaddingTop:new B(C[3],62),rootContainerPaddingRight:new B(C[3],C[6]),rootContainerPaddingBottom:new B(C[5],C[9]),rootContainerPaddingLeft:new B(C[3],C[8])},r1=i(A1)`
2
2
  color: ${e=>e.isPlaceholderText===!0?e.theme.colors.grey1:e.theme.colors.hero};
3
3
  white-space: pre-wrap;
4
4
  text-align: center;
5
- ${e=>e.isPlaceholderText===!0?ie.largeRegular.css:ie.extraSmallRegular.css};
5
+ ${e=>e.isPlaceholderText===!0?i1.largeRegular.css:i1.extraSmallRegular.css};
6
6
  display: flex;
7
7
  align-items: baseline;
8
- `,ne=i(Pe)`
8
+ `,n1=i(P1)`
9
9
  color: ${e=>e.theme.colors.hero};
10
10
  white-space: pre-wrap;
11
11
  text-align: center;
12
12
  display: flex;
13
13
  align-items: baseline;
14
- `,ae=i(ce)`
14
+ `,a1=i(c1)`
15
15
  color: ${e=>e.theme.colors.champion};
16
16
  `,E=i.div`
17
17
  padding: 0 2px;
18
- `,De=i.div`
18
+ `,D1=i.div`
19
19
  height: 100%;
20
20
  display: flex;
21
21
  flex-direction: column;
@@ -40,7 +40,7 @@ import{g as se,J as de,F as J,V as l,T as q,o,p as d,y as B,gy as $e,gz as Be,aP
40
40
  color: ${e=>e.theme.colors.primary};
41
41
  }
42
42
  }
43
- `,me=i.div`
43
+ `,m1=i.div`
44
44
  border: 1px dashed ${e=>e.theme.colors.primary};
45
45
  border-radius: ${o.sp2};
46
46
  display: flex;
@@ -51,7 +51,7 @@ import{g as se,J as de,F as J,V as l,T as q,o,p as d,y as B,gy as $e,gz as Be,aP
51
51
  align-items: center;
52
52
  background-color: ${e=>e.theme.colors.grey4};
53
53
  box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
54
- `,Fe=i.div`
54
+ `,F1=i.div`
55
55
  display: flex;
56
56
  flex-direction: column;
57
57
  box-sizing: border-box;
@@ -66,7 +66,7 @@ import{g as se,J as de,F as J,V as l,T as q,o,p as d,y as B,gy as $e,gz as Be,aP
66
66
  width: inherit;
67
67
  height: inherit;
68
68
  }
69
- `,Ue=i.div`
69
+ `,U1=i.div`
70
70
  display: flex;
71
71
  flex-direction: column;
72
72
  align-items: center;
@@ -79,26 +79,26 @@ import{g as se,J as de,F as J,V as l,T as q,o,p as d,y as B,gy as $e,gz as Be,aP
79
79
  width: ${e=>e.windowSize=="small"?"100%":"42%"};
80
80
  background-color: ${e=>e.showAutofill&&e.windowSize!=="small"?d.overlayDark:e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
81
81
  margin-top: ${e=>e.windowSize==="small"&&(e.type==="bill"||e.type==="w9")?"76px":"unset"};
82
- `,Ze=i.div`
82
+ `,Z1=i.div`
83
83
  display: flex;
84
84
  flex-direction: column;
85
85
  align-items: center;
86
86
  justify-content: center;
87
87
  flex-grow: 1;
88
- `,Oe=i.div`
88
+ `,O1=i.div`
89
89
  display: flex;
90
90
  justify-content: flex-end;
91
91
  align-items: center;
92
- `,We=i.div`
92
+ `,W1=i.div`
93
93
  display: flex;
94
94
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
95
95
  align-content: center;
96
96
  align-items: center;
97
97
  margin-top: ${o.sp3};
98
- `,Ne=i(pe)`
98
+ `,N1=i(p1)`
99
99
  color: ${e=>e.windowSize==="small"&&e.themeContext.mode==="light"?e.theme.colors.primary:d.primaryDark};
100
100
  margin-right: ${o.sp3};
101
- `,Ge=i.div`
101
+ `,G1=i.div`
102
102
  color: ${e=>e.windowSize==="small"&&e.themeContext.mode==="light"?e.theme.colors.primary:d.primaryDark};
103
103
  padding: ${o.sp1} ${o.sp2};
104
104
  border: 1px solid ${e=>e.theme.colors.grey2};
@@ -114,27 +114,27 @@ import{g as se,J as de,F as J,V as l,T as q,o,p as d,y as B,gy as $e,gz as Be,aP
114
114
  margin: ${o.sp3} 0;
115
115
  max-width: 330px;
116
116
  text-align: center;
117
- `,Je=i(_e)`
117
+ `,J1=i(_1)`
118
118
  color: ${e=>e.theme.colors.grey1};
119
119
  margin-bottom: ${o.sp3};
120
- `,qe=i(Ve)`
120
+ `,q1=i(V1)`
121
121
  color: ${e=>e.theme.colors.grey1};
122
122
  margin-bottom: ${o.sp3};
123
- `,Qe=i(Ie)`
123
+ `,Q1=i(I1)`
124
124
  width: ${o.sp7};
125
125
  height: ${o.sp7};
126
126
  color: ${e=>e.theme.colors.hero};
127
- `,G=i(pe)`
127
+ `,G=i(p1)`
128
128
  color: ${d.important};
129
- `,Ye=({type:e="bill",attachmentIdBeingUploaded:x,uploadError:f,uploadErrorMsg:y,showAutofill:h,allowMultiFiles:j=!1,customError:z,dropFilePlaceholder:n,showInfoText:R,showTitlebar:T,pdfTitle:M,openSizeLimitPopup:V,onUploadAttachment:v,uploadStatus:A})=>{const w=se(),[_,b]=t.useState(!1),L=function(r){r.preventDefault(),r.stopPropagation(),r.type==="dragenter"||r.type==="dragover"?b(!0):r.type==="dragleave"&&_&&b(!1)},I=function(r){if(r.preventDefault(),r.stopPropagation(),b(!1),r.dataTransfer.files.length>0){const s=r.dataTransfer.files;if(j){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);v?.(m,a,"dragdrop")}else{const a=s[0];v?.([a],[a.name],"dragdrop")}}},p=de(),P=t.useRef(null),k=J.getLocalizedStrings().spendManagement.billPay.billDetails,$=()=>{P.current?.click()},D=r=>{if(r.target.files!=null){const s=r.target.files;if(j){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);v?.(m,a,"dragdrop")}else{const a=s[0];v?.([a],[a.name],"upload")}}},F=A!=null?A.fetchState=="In-Progress":x;return l.jsxs(Fe,{showTitlebar:T,windowSize:p,type:e,children:[T===!0?l.jsx(Xe,{windowSize:p,type:e,children:M}):null,F==!0?l.jsx(me,{children:e==="receipt"?l.jsx(q,{size:"Large",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1.5rem",borderRadius:"100%",backgroundColor:`${w.mode==="light"?d.backgroundThemeLight:d.backgroundThemeDark}`,border:`2px solid ${w.mode==="light"?d.neutralGrey3Light:d.neutralGrey3Dark}`,boxShadow:`${o.sp0} 2px ${o.sp1} ${w.mode==="light"?d.dropShadowNormalLight:d.dropShadowNormalDark}`}}):l.jsx(q,{size:"ExtraLarge",start:!0})}):l.jsx(Ke,{windowSize:p,showAutofill:h,type:e,children:l.jsxs(De,{windowSize:p,onClick:()=>$(),onDragEnter:L,onDragLeave:L,onDragOver:L,onDrop:I,"data-testid":Q("upload-tag",e),children:[l.jsxs(Ze,{onDragEnter:L,children:[e==="receipt"?l.jsx(Je,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}):l.jsx(qe,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}),e==="receipt"?l.jsxs(re,{isPlaceholderText:!0,children:[n?.upload!=null?l.jsx(E,{children:n?.upload}):null,n?.single!=null?l.jsx(E,{children:l.jsx(ae,{themeContext:w,children:n?.single})}):null,n?.or!=null?l.jsx(E,{children:n?.or}):null,n?.multiple!=null?l.jsx(E,{children:l.jsx(ae,{themeContext:w,children:n?.multiple})}):null,n?.receipts!=null?l.jsx(E,{children:n?.receipts}):null,n?.receipt!=null?l.jsx(E,{children:n?.receipt}):null]}):e==="w9"?l.jsx(ne,{children:k.dropW9}):l.jsx(ne,{children:k.dropInvoice}),z!=null&&l.jsx(N,{children:l.jsx(G,{children:z})}),f&&y==="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadFileSizeExceedError})}),f&&y!=="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadError.replace("__type__",e)})})]}),l.jsx($e,{fileRef:P,name:"invoice",onFileChange:D,multiple:j,sizeLimit:Be,onFileSizeError:V}),R===!0?l.jsxs(Oe,{children:[l.jsx(Qe,{}),l.jsx(re,{isPlaceholderText:!1,style:{marginLeft:o.sp1},children:k.currencyInfo})]}):null]})})]})},Ke=i.div`
129
+ `,Y1=({type:e="bill",attachmentIdBeingUploaded:x,uploadError:f,uploadErrorMsg:y,showAutofill:h,allowMultiFiles:j=!1,customError:z,dropFilePlaceholder:n,showInfoText:R,showTitlebar:T,pdfTitle:M,openSizeLimitPopup:V,onUploadAttachment:v,uploadStatus:A})=>{const w=s1(),[_,b]=t.useState(!1),L=function(r){r.preventDefault(),r.stopPropagation(),r.type==="dragenter"||r.type==="dragover"?b(!0):r.type==="dragleave"&&_&&b(!1)},I=function(r){if(r.preventDefault(),r.stopPropagation(),b(!1),r.dataTransfer.files.length>0){const s=r.dataTransfer.files;if(j){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);v?.(m,a,"dragdrop")}else{const a=s[0];v?.([a],[a.name],"dragdrop")}}},p=d1(),P=t.useRef(null),k=J.getLocalizedStrings().spendManagement.billPay.billDetails,$=()=>{P.current?.click()},D=r=>{if(r.target.files!=null){const s=r.target.files;if(j){const a=[],m=[];for(let c=0;c<s.length;c++)a.push(s[c].name),m.push(s[c]);v?.(m,a,"dragdrop")}else{const a=s[0];v?.([a],[a.name],"upload")}}},F=A!=null?A.fetchState=="In-Progress":x;return l.jsxs(F1,{showTitlebar:T,windowSize:p,type:e,children:[T===!0?l.jsx(X1,{windowSize:p,type:e,children:M}):null,F==!0?l.jsx(m1,{children:e==="receipt"?l.jsx(q,{size:"Large",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1.5rem",borderRadius:"100%",backgroundColor:`${w.mode==="light"?d.backgroundThemeLight:d.backgroundThemeDark}`,border:`2px solid ${w.mode==="light"?d.neutralGrey3Light:d.neutralGrey3Dark}`,boxShadow:`${o.sp0} 2px ${o.sp1} ${w.mode==="light"?d.dropShadowNormalLight:d.dropShadowNormalDark}`}}):l.jsx(q,{size:"ExtraLarge",start:!0})}):l.jsx(K1,{windowSize:p,showAutofill:h,type:e,children:l.jsxs(D1,{windowSize:p,onClick:()=>$(),onDragEnter:L,onDragLeave:L,onDragOver:L,onDrop:I,"data-testid":Q("upload-tag",e),children:[l.jsxs(Z1,{onDragEnter:L,children:[e==="receipt"?l.jsx(J1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}):l.jsx(q1,{width:g.billReceiptSize.valuePx(p),height:g.billReceiptSize.valuePx(p)}),e==="receipt"?l.jsxs(r1,{isPlaceholderText:!0,children:[n?.upload!=null?l.jsx(E,{children:n?.upload}):null,n?.single!=null?l.jsx(E,{children:l.jsx(a1,{themeContext:w,children:n?.single})}):null,n?.or!=null?l.jsx(E,{children:n?.or}):null,n?.multiple!=null?l.jsx(E,{children:l.jsx(a1,{themeContext:w,children:n?.multiple})}):null,n?.receipts!=null?l.jsx(E,{children:n?.receipts}):null,n?.receipt!=null?l.jsx(E,{children:n?.receipt}):null]}):e==="w9"?l.jsx(n1,{children:k.dropW9}):l.jsx(n1,{children:k.dropInvoice}),z!=null&&l.jsx(N,{children:l.jsx(G,{children:z})}),f&&y==="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadFileSizeExceedError})}),f&&y!=="File size is too large"&&l.jsx(N,{children:l.jsx(G,{children:k.uploadError.replace("__type__",e)})})]}),l.jsx($1,{fileRef:P,name:"invoice",onFileChange:D,multiple:j,sizeLimit:B1,onFileSizeError:V}),R===!0?l.jsxs(O1,{children:[l.jsx(Q1,{}),l.jsx(r1,{isPlaceholderText:!1,style:{marginLeft:o.sp1},children:k.currencyInfo})]}):null]})})]})},K1=i.div`
130
130
  padding: ${e=>e.type==="w9"?o.sp0:e.windowSize==="small"&&e.showAutofill===!1?o.sp3:o.sp0};
131
131
  background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey3:e.theme.colors.grey4};
132
132
  height: 100%;
133
133
  width: 100%;
134
134
  border-radius: ${o.sp2};
135
- `,Xe=i(ce)`
135
+ `,X1=i(c1)`
136
136
  padding-bottom: ${e=>e.type==="w9"?o.sp0:e.windowSize==="small"?"12px":o.sp3};
137
137
  background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.grey3};
138
138
  width: 100%;
139
139
  color: ${e=>e.theme.colors.primary};
140
- `,h1=({uploadInvoiceEndPoint:e,authParams:x,showAutofill:f,allowMultiFiles:y,type:h="bill",customError:j,pdfTitle:z,entityId:n,shouldNotShowAttachment:R,analytics:T,style:M,noAttachmentText:V,dropFilePlaceholder:v,showInfoText:A,showTitlebar:w,showTitlebarIcon:_,file:b,attachmentTitle:L,vendorLegalName:I,onInvoiceUpload:p,onSkipAutofill:P,setFileUploaded:k,updateInvoiceUploadFetchState:$,onReplaceClick:D,onDeleteClick:F,uploadStatus:r,isLoading:s=!1})=>{const a=se(),m=de(),[c,Y]=t.useState(!1),K=J.getLocalizedStrings().spendManagement.billPay.billDetails,[he,U]=t.useState(!1),[ue,X]=t.useState(!1),[Ce,ge]=t.useState(""),[fe,Z]=t.useState(!1),[O,we]=t.useState({title:"",description:"",primaryButtonText:""});t.useEffect(()=>{b!=null?U(!0):U(!1)},[b]);async function ee(S,u,H,oe,ye){Y(!0),X(!1);const be=y===!0?H:[H[0]],ke=y===!0?oe:[oe[0]],{blobs:Se,names:ve}=await He(be,ke);await Me(`${S}/1.0/processors/${h}`,u,Se,ve,ge).then(Le=>{p?.(Le),U(!0),k?.()}).catch(()=>{X(!0),ye?.("Error")}),Y(!1)}const te=S=>{const u=J.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;S?(we({title:u.uploadLimitTitle,description:u.uploadLimitDescription,primaryButtonText:u.buttons.okay}),Z(!0)):Z(!1)},xe={onOkClick:()=>{Z(!1)}};let le=n!=null||(r!=null?r?.fetchState=="Completed":he);h==="bill"&&R===!0&&(le=!1);const W=h==="bill"?"bill_pay":h==="receipt"?"reimbursement":"w9";return l.jsx(Ue,{showAutofill:f,windowSize:m,style:M,type:h,"data-testid":Q("upload-section",W),children:s?l.jsx(me,{children:l.jsx(q,{size:"ExtraLarge",start:!0})}):l.jsxs(l.Fragment,{children:[fe?l.jsx(Ee,{titleComponent:l.jsx(ze,{children:O.title}),descriptionComponent:l.jsx(je,{children:O.description}),primaryButtonText:O.primaryButtonText,action:xe}):null,!s&&r?.fetchState!=="In-Progress"&&le?l.jsx(Re,{title:L,type:h,file:b,noAttachmentText:V,showTitlebar:w,showTitlebarIcon:_,pdfTitle:z,onReplaceClick:D,onDeleteClick:F,allowMultiFiles:y,openSizeLimitPopup:te,onUploadAttachment:(S,u)=>{$?.("In-Progress"),ee(e,x,S,u,$)}}):l.jsx(Ye,{type:h,uploadError:ue,uploadErrorMsg:Ce,attachmentIdBeingUploaded:c,dropFilePlaceholder:v,showInfoText:A,allowMultiFiles:y,customError:j,showTitlebar:w,pdfTitle:z,showAutofill:f,openSizeLimitPopup:te,uploadStatus:r,onUploadAttachment:(S,u,H)=>{T?.trackUploadInvoice(H,W,I),$?.("In-Progress"),ee(e,x,S,u,$)}}),f?l.jsxs(We,{windowSize:m,children:[l.jsx(Ne,{windowSize:m,themeContext:a,children:K.skipAutofillInfo}),l.jsx(Ge,{windowSize:m,themeContext:a,"data-testid":Q("skip-autofill",W),onClick:()=>P?.(!f),children:l.jsx(Te,{children:K.skipAutofill})})]}):null]})})};export{Ye as AttachmentElement,h1 as default};
140
+ `,he=({uploadInvoiceEndPoint:e,authParams:x,showAutofill:f,allowMultiFiles:y,type:h="bill",customError:j,pdfTitle:z,entityId:n,shouldNotShowAttachment:R,analytics:T,style:M,noAttachmentText:V,dropFilePlaceholder:v,showInfoText:A,showTitlebar:w,showTitlebarIcon:_,file:b,attachmentTitle:L,vendorLegalName:I,onInvoiceUpload:p,onSkipAutofill:P,setFileUploaded:k,updateInvoiceUploadFetchState:$,onReplaceClick:D,onDeleteClick:F,uploadStatus:r,isLoading:s=!1})=>{const a=s1(),m=d1(),[c,Y]=t.useState(!1),K=J.getLocalizedStrings().spendManagement.billPay.billDetails,[h1,U]=t.useState(!1),[u1,X]=t.useState(!1),[C1,g1]=t.useState(""),[f1,Z]=t.useState(!1),[O,w1]=t.useState({title:"",description:"",primaryButtonText:""});t.useEffect(()=>{b!=null?U(!0):U(!1)},[b]);async function e1(S,u,H,o1,y1){Y(!0),X(!1);const b1=y===!0?H:[H[0]],k1=y===!0?o1:[o1[0]],{blobs:S1,names:v1}=await H1(b1,k1);await M1(`${S}/1.0/processors/${h}`,u,S1,v1,g1).then(L1=>{p?.(L1),U(!0),k?.()}).catch(()=>{X(!0),y1?.("Error")}),Y(!1)}const t1=S=>{const u=J.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;S?(w1({title:u.uploadLimitTitle,description:u.uploadLimitDescription,primaryButtonText:u.buttons.okay}),Z(!0)):Z(!1)},x1={onOkClick:()=>{Z(!1)}};let l1=n!=null||(r!=null?r?.fetchState=="Completed":h1);h==="bill"&&R===!0&&(l1=!1);const W=h==="bill"?"bill_pay":h==="receipt"?"reimbursement":"w9";return l.jsx(U1,{showAutofill:f,windowSize:m,style:M,type:h,"data-testid":Q("upload-section",W),children:s?l.jsx(m1,{children:l.jsx(q,{size:"ExtraLarge",start:!0})}):l.jsxs(l.Fragment,{children:[f1?l.jsx(E1,{titleComponent:l.jsx(z1,{children:O.title}),descriptionComponent:l.jsx(j1,{children:O.description}),primaryButtonText:O.primaryButtonText,action:x1}):null,!s&&r?.fetchState!=="In-Progress"&&l1?l.jsx(R1,{title:L,type:h,file:b,noAttachmentText:V,showTitlebar:w,showTitlebarIcon:_,pdfTitle:z,onReplaceClick:D,onDeleteClick:F,allowMultiFiles:y,openSizeLimitPopup:t1,onUploadAttachment:(S,u)=>{$?.("In-Progress"),e1(e,x,S,u,$)}}):l.jsx(Y1,{type:h,uploadError:u1,uploadErrorMsg:C1,attachmentIdBeingUploaded:c,dropFilePlaceholder:v,showInfoText:A,allowMultiFiles:y,customError:j,showTitlebar:w,pdfTitle:z,showAutofill:f,openSizeLimitPopup:t1,uploadStatus:r,onUploadAttachment:(S,u,H)=>{T?.trackUploadInvoice(H,W,I),$?.("In-Progress"),e1(e,x,S,u,$)}}),f?l.jsxs(W1,{windowSize:m,children:[l.jsx(N1,{windowSize:m,themeContext:a,children:K.skipAutofillInfo}),l.jsx(G1,{windowSize:m,themeContext:a,"data-testid":Q("skip-autofill",W),onClick:()=>P?.(!f),children:l.jsx(T1,{children:K.skipAutofill})})]}):null]})})};export{Y1 as AttachmentElement,he as default};
@@ -1,4 +1,4 @@
1
- import{J as oe,a9 as _a,cE as Oa,V as r,aP as je,jl as Da,b_ as za,ac as Ra,aR as Fa,o as a,y,F as le,bx as Ua,b7 as Na,a as be,d as na,x as Ea,M as qa,p as ie,c as Ma,ch as ka,cI as fe,ej as Ba,u as d,bS as Va,b1 as Z,cN as me,c_ as oa,jm as Ha,jn as Wa,cZ as Ga,g as Te,jo as Ie,cJ as Ae,ga as _e,e_ as xe,b as de,eW as he,g6 as ca,ai as Oe,aN as Ya,gW as Xa,am as Ja,gX as Za}from"./index-WEj6FS32.js";import{a as q}from"./sentry-B0WgNUxa.js";import{n as l}from"./mui-BTtN6lbG.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-CE332GjA-BafYQ_Pm.js";import{bd as Ka}from"./zeni-epic-state-DnAAAEmj.js";import{T as pa}from"./RoleWithToolTip-CkpqxMzB-CgYpd1vG.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="782ee1ca-7ad5-4b57-9e32-30a6d684e6ff",e._sentryDebugIdIdentifier="sentry-dbid-782ee1ca-7ad5-4b57-9e32-30a6d684e6ff")}catch{}})();const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:t}}}=le.getLocalizedStrings();switch(e){case"monthly":return t.frequencySubLabels.monthly;case"quarterly":return t.frequencySubLabels.quarterly;case"weekly":return t.frequencySubLabels.weekly;case"yearly":return t.frequencySubLabels.yearly;default:return i.strings.empty}},Qa=["creditCard","debitCard"],ke=e=>Ka(e,Qa),u=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:er}},spendManagement:{chargeCard:{issueCard:N}}}=le.getLocalizedStrings(),k={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},ar={infoLabel:new be("smallRegular","smallRegular")},rr="creditCard.physicalCard.amount",ir="creditCard.physicalCard.cardName",dr="creditCard.physicalCard.user",lr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit:t,creditLimitFrequency:m,activeChargeCardCount:v,allRoles:f,allAccountingClasses:D,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalChargeCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),E=Te(),{getValues:B}=fe(),$=k.largeLabelWidth.value(s),V=()=>{g(e.lineId,"creditCard")},c=(h,F)=>r.jsx(nr,{isOptionSelected:F,children:ge(h)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,L=Ie(t.amount),I=x!=null&&x>t.amount,R=I?N.amountExceedError.replace("_amount_",L):void 0,j=e.creditCard.physicalCard.user,_=j.allUsers.find(h=>h.userId===j.selectedUser),G=_?.userId,K=G!=null?A[G]:void 0,p=h=>{let F=v[h]?.physicalCardCount??0;return B().lineInfo.forEach(C=>{C.creditCard.cardType==="business_physical_credit_card"&&C.creditCard.physicalCard.user.selectedUser===h&&(F+=1)}),F>=S};return r.jsxs(r.Fragment,{children:[r.jsx(ua,{label:{label:N.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,dr),placeholderLabel:N.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:h=>h?.selectedUser?.length>0},valueToSubtitle:h=>{const F=f.find(z=>z.userId===h),C=[];return F?.accountingClassIDs.forEach(z=>{const J=D.find(De=>De.classId===z);J!=null&&J.className&&C.push(J.className)}),C},additionalLabelInfo:N.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:N.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(Ae,{label:{label:N.cardNameLabel,width:$},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)},text:{type:"text",name:u(i,ir),defaultValue:e.creditCard.physicalCard.cardName,placeholder:N.cardNamePlaceholder,options:{required:!0,validate:h=>h!=null}}}),r.jsx(we,{}),r.jsx(_e,{label:{label:N.amountLabel,width:$},showAdditionalInfoLabel:I,additionalInfoLabel:R,formattedTextField:{type:"number",name:u(i,rr),defaultValue:e.creditCard.physicalCard.amount,placeholder:N.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:h=>!!h&&h>0&&h<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:I,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:N.frequencyLabel,width:$,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),color:E.colors.hero},valueToAdditionalLabel:h=>ge(h),singleSelectPickerField:{name:u(i,lr),placeholder:N.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:m.map(h=>({label:h.name,value:h.code}))},valueToSubLabels:(h,F)=>c(h,F),textAlignment:"right",registerOptions:{required:!0,validate:h=>h!=null&&!!h.selectedOption}}}),r.jsx(we,{}),r.jsxs(or,{windowSize:s,children:[r.jsxs(pr,{windowSize:s,children:[r.jsx(me,{label:N.address.shippingAddressLabel,htmlFor:u(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(cr,{windowSize:s,children:r.jsxs(hr,{isDisabled:_==null,children:[K!=null&&r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.personal},isDisabled:_==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeftRight.value(s),paddingRight:k.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.company},isDisabled:_==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.custom},isDisabled:_==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingLeftRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(ur,{windowSize:s,children:_?.user!=null&&n!=null&&r.jsx(sr,{children:n==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:K,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ve,{windowSize:s,children:N.address.personalAddressText.replace("_name_",_.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:T[e.lineId],placeholder:er,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ve,{windowSize:s,children:N.address.customAddressText})]})})})]})]})},sr=l.div`
1
+ import{J as oe,a9 as _a,cE as Oa,V as r,aP as je,jl as Da,b_ as za,ac as Ra,aR as Fa,o as a,y,F as le,bx as Ua,b7 as Na,a as be,d as na,x as Ea,M as qa,p as ie,c as Ma,ch as ka,cI as fe,ej as Ba,u as d,bS as Va,b1 as Z,cN as me,c_ as oa,jm as Ha,jn as Wa,cZ as Ga,g as Te,jo as Ie,cJ as Ae,ga as _e,e_ as xe,b as de,eW as he,g6 as ca,ai as Oe,aN as Ya,gW as Xa,am as Ja,gX as Za}from"./index-D4DdpT1f.js";import{a as q}from"./sentry-Dlcq8VjX.js";import{n as l}from"./mui-CooLgaJO.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-BWHNFjm5.js";import{bd as Ka}from"./zeni-epic-state-pmiItBju.js";import{T as pa}from"./RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="bd2fe250-66e9-498b-9988-697e7571b7bc",e._sentryDebugIdIdentifier="sentry-dbid-bd2fe250-66e9-498b-9988-697e7571b7bc")}catch{}})();const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:t}}}=le.getLocalizedStrings();switch(e){case"monthly":return t.frequencySubLabels.monthly;case"quarterly":return t.frequencySubLabels.quarterly;case"weekly":return t.frequencySubLabels.weekly;case"yearly":return t.frequencySubLabels.yearly;default:return i.strings.empty}},Qa=["creditCard","debitCard"],ke=e=>Ka(e,Qa),u=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:er}},spendManagement:{chargeCard:{issueCard:N}}}=le.getLocalizedStrings(),k={largeLabelWidth:new y(120,120,200),labelMarginRight:new y(d[3],d[4]),labelMarginBottom:new y(d[2],d[0]),infoLabelMarginTop:new y(d[1],d[0]),radioLabelPaddingLeftRight:new y(d[2],d[3]),radioLabelPaddingLeft:new y(d[0],d[3]),radioLabelPaddingRight:new y(10,d[3])},ar={infoLabel:new be("smallRegular","smallRegular")},rr="creditCard.physicalCard.amount",ir="creditCard.physicalCard.cardName",dr="creditCard.physicalCard.user",lr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit:t,creditLimitFrequency:m,activeChargeCardCount:v,allRoles:f,allAccountingClasses:D,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalChargeCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),E=Te(),{getValues:B}=fe(),$=k.largeLabelWidth.value(s),V=()=>{g(e.lineId,"creditCard")},c=(h,F)=>r.jsx(nr,{isOptionSelected:F,children:ge(h)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,L=Ie(t.amount),I=x!=null&&x>t.amount,R=I?N.amountExceedError.replace("_amount_",L):void 0,j=e.creditCard.physicalCard.user,_=j.allUsers.find(h=>h.userId===j.selectedUser),G=_?.userId,K=G!=null?A[G]:void 0,p=h=>{let F=v[h]?.physicalCardCount??0;return B().lineInfo.forEach(C=>{C.creditCard.cardType==="business_physical_credit_card"&&C.creditCard.physicalCard.user.selectedUser===h&&(F+=1)}),F>=S};return r.jsxs(r.Fragment,{children:[r.jsx(ua,{label:{label:N.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,dr),placeholderLabel:N.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:h=>h?.selectedUser?.length>0},valueToSubtitle:h=>{const F=f.find(z=>z.userId===h),C=[];return F?.accountingClassIDs.forEach(z=>{const J=D.find(De=>De.classId===z);J!=null&&J.className&&C.push(J.className)}),C},additionalLabelInfo:N.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:N.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(Ae,{label:{label:N.cardNameLabel,width:$},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)},text:{type:"text",name:u(i,ir),defaultValue:e.creditCard.physicalCard.cardName,placeholder:N.cardNamePlaceholder,options:{required:!0,validate:h=>h!=null}}}),r.jsx(we,{}),r.jsx(_e,{label:{label:N.amountLabel,width:$},showAdditionalInfoLabel:I,additionalInfoLabel:R,formattedTextField:{type:"number",name:u(i,rr),defaultValue:e.creditCard.physicalCard.amount,placeholder:N.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:h=>!!h&&h>0&&h<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:I,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:N.frequencyLabel,width:$,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),color:E.colors.hero},valueToAdditionalLabel:h=>ge(h),singleSelectPickerField:{name:u(i,lr),placeholder:N.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:m.map(h=>({label:h.name,value:h.code}))},valueToSubLabels:(h,F)=>c(h,F),textAlignment:"right",registerOptions:{required:!0,validate:h=>h!=null&&!!h.selectedOption}}}),r.jsx(we,{}),r.jsxs(or,{windowSize:s,children:[r.jsxs(pr,{windowSize:s,children:[r.jsx(me,{label:N.address.shippingAddressLabel,htmlFor:u(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(cr,{windowSize:s,children:r.jsxs(hr,{isDisabled:_==null,children:[K!=null&&r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.personal},isDisabled:_==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeftRight.value(s),paddingRight:k.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.company},isDisabled:_==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Z,{isContainerClickable:!0,label:{label:N.address.custom},isDisabled:_==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingLeftRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(ur,{windowSize:s,children:_?.user!=null&&n!=null&&r.jsx(sr,{children:n==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:K,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ve,{windowSize:s,children:N.address.personalAddressText.replace("_name_",_.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:T[e.lineId],placeholder:er,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ve,{windowSize:s,children:N.address.customAddressText})]})})})]})]})},sr=l.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{J as u,V as d,cN as h,y as o,eT as b,u as t,a as f}from"./index-WEj6FS32.js";import{n as r}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="882fdb9a-3656-43cd-8435-918d30de407a",e._sentryDebugIdIdentifier="sentry-dbid-882fdb9a-3656-43cd-8435-918d30de407a")}catch{}})();const i={width:new o(343,580,726),height:new o(t[6],t[6]),controlMinHeight:new o(t[4],t[4]),paddingTopBottom:new o(t[2],t[2]),marginRight:new o(t[2],t[2]),labelMarginLeft:new o(t[3],t[4]),labelMarginRight:new o(t[3],t[4]),labelMarginTop:new o(t[2],t[2])},c={infoLabel:new f("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:a,additionalInfoLabel:n,addressValue:s,isOptional:g,style:p}){const l=u();return d.jsxs(y,{size:l,style:p,isDisabled:e!=null,children:[d.jsxs(x,{children:[d.jsx(h,{isOptional:g,isDisabled:e,label:a.label,style:{marginLeft:i.labelMarginLeft.value(l),marginRight:i.labelMarginRight.value(l),marginTop:i.labelMarginTop.value(l),width:a.width??"auto"}}),d.jsx(b,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:a.width!=null?`calc(100% - ${a.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),n?d.jsx(m,{size:l,children:n}):null]})}const m=r.label`
1
+ import{J as u,V as d,cN as h,y as o,eT as b,u as t,a as f}from"./index-D4DdpT1f.js";import{n as r}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="882fdb9a-3656-43cd-8435-918d30de407a",e._sentryDebugIdIdentifier="sentry-dbid-882fdb9a-3656-43cd-8435-918d30de407a")}catch{}})();const i={width:new o(343,580,726),height:new o(t[6],t[6]),controlMinHeight:new o(t[4],t[4]),paddingTopBottom:new o(t[2],t[2]),marginRight:new o(t[2],t[2]),labelMarginLeft:new o(t[3],t[4]),labelMarginRight:new o(t[3],t[4]),labelMarginTop:new o(t[2],t[2])},c={infoLabel:new f("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:a,additionalInfoLabel:n,addressValue:s,isOptional:g,style:p}){const l=u();return d.jsxs(y,{size:l,style:p,isDisabled:e!=null,children:[d.jsxs(x,{children:[d.jsx(h,{isOptional:g,isDisabled:e,label:a.label,style:{marginLeft:i.labelMarginLeft.value(l),marginRight:i.labelMarginRight.value(l),marginTop:i.labelMarginTop.value(l),width:a.width??"auto"}}),d.jsx(b,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:a.width!=null?`calc(100% - ${a.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),n?d.jsx(m,{size:l,children:n}):null]})}const m=r.label`
2
2
  color: ${e=>e.theme.colors.grey1};
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{J as x,cI as y,er as w,V as n,cN as v,y as o,eW as $,aP as T,F as z,p as g,u as i,a as B}from"./index-WEj6FS32.js";import{n as s}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="93923cce-4362-4bf8-bf7b-1b941eeaea11",e._sentryDebugIdIdentifier="sentry-dbid-93923cce-4362-4bf8-bf7b-1b941eeaea11")}catch{}})();const t={width:new o(343,580,726),height:new o(i[6],i[6]),controlMinHeight:new o(i[4],i[4]),paddingTopBottom:new o(i[2],i[2]),marginRight:new o(i[2],i[2]),labelMarginLeft:new o(i[3],i[4]),labelMarginRight:new o(i[3],i[4]),labelMarginTop:new o(i[2],i[2])},D={infoLabel:new B("extraSmallRegular","smallRegular")},I=z.getLocalizedStrings();function H({isDisabled:e,label:l,addressValueField:r,additionalInfoLabel:b,showAdditionalInfoLabel:h=!1,style:f,hasHoverBorder:p,isOptional:u}){const a=x(),{formState:{errors:m}}=y(),d=w(m,r.name),c=d?b:I.commonSetUp.businessVerification.addressAdditionInfo;return n.jsxs(L,{size:a,style:f,isDisabled:e!=null,isError:d,hasHoverBorder:p??!0,"data-testid":T("labeled-address-value-field",r.name),children:[n.jsx(v,{isDisabled:e,isOptional:u,label:l.label,htmlFor:r.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:l.width??"auto"}}),n.jsxs(M,{labelWidth:l.width,children:[n.jsx($,{...r,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...r.style}}),(h||d)&&n.jsx(P,{size:a,isError:d,children:c})]})]})}const L=s.div`
1
+ import{J as x,cI as y,er as w,V as n,cN as v,y as o,eW as $,aP as T,F as z,p as g,u as i,a as B}from"./index-D4DdpT1f.js";import{n as s}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="93923cce-4362-4bf8-bf7b-1b941eeaea11",e._sentryDebugIdIdentifier="sentry-dbid-93923cce-4362-4bf8-bf7b-1b941eeaea11")}catch{}})();const t={width:new o(343,580,726),height:new o(i[6],i[6]),controlMinHeight:new o(i[4],i[4]),paddingTopBottom:new o(i[2],i[2]),marginRight:new o(i[2],i[2]),labelMarginLeft:new o(i[3],i[4]),labelMarginRight:new o(i[3],i[4]),labelMarginTop:new o(i[2],i[2])},D={infoLabel:new B("extraSmallRegular","smallRegular")},I=z.getLocalizedStrings();function H({isDisabled:e,label:l,addressValueField:r,additionalInfoLabel:b,showAdditionalInfoLabel:h=!1,style:f,hasHoverBorder:p,isOptional:u}){const a=x(),{formState:{errors:m}}=y(),d=w(m,r.name),c=d?b:I.commonSetUp.businessVerification.addressAdditionInfo;return n.jsxs(L,{size:a,style:f,isDisabled:e!=null,isError:d,hasHoverBorder:p??!0,"data-testid":T("labeled-address-value-field",r.name),children:[n.jsx(v,{isDisabled:e,isOptional:u,label:l.label,htmlFor:r.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:l.width??"auto"}}),n.jsxs(M,{labelWidth:l.width,children:[n.jsx($,{...r,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...r.style}}),(h||d)&&n.jsx(P,{size:a,isError:d,children:c})]})]})}const L=s.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as a,V as i,eI as o,cN as n,o as s,aP as r,y as c}from"./index-WEj6FS32.js";import{c as b,n as f}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="4c9f146d-353f-419a-82c6-eb80328428d3",e._sentryDebugIdIdentifier="sentry-dbid-4c9f146d-353f-419a-82c6-eb80328428d3")}catch{}})();const y={width:new c(343,580,726)};function u({label:e,checkBoxField:l,style:t}){const d=a();return i.jsxs(h,{size:d,style:t,isDisabled:l.isDisabled,"data-testid":r(l.name,"labeled-check-box-field"),isSelected:l.defaultChecked??!1,children:[i.jsx(o,{...l,style:{...l.style}}),i.jsx(n,{isDisabled:l.isDisabled,label:e.label,labelStyle:e.style,htmlFor:l.name,style:{display:"flex",flex:1,minHeight:s.sp4,marginLeft:s.sp2,width:e.width,backgroundColor:"inherit",...e.style}})]})}const h=f.div`
1
+ import{J as a,V as i,eI as o,cN as n,o as s,aP as r,y as c}from"./index-D4DdpT1f.js";import{c as b,n as f}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="4c9f146d-353f-419a-82c6-eb80328428d3",e._sentryDebugIdIdentifier="sentry-dbid-4c9f146d-353f-419a-82c6-eb80328428d3")}catch{}})();const y={width:new c(343,580,726)};function u({label:e,checkBoxField:l,style:t}){const d=a();return i.jsxs(h,{size:d,style:t,isDisabled:l.isDisabled,"data-testid":r(l.name,"labeled-check-box-field"),isSelected:l.defaultChecked??!1,children:[i.jsx(o,{...l,style:{...l.style}}),i.jsx(n,{isDisabled:l.isDisabled,label:e.label,labelStyle:e.style,htmlFor:l.name,style:{display:"flex",flex:1,minHeight:s.sp4,marginLeft:s.sp2,width:e.width,backgroundColor:"inherit",...e.style}})]})}const h=f.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{J as E,cI as k,er as S,V as o,cN as V,y as u,p as g,o as l,u as s,g as C,eA as P,bG as N,a as T,bH as p,eS as H,x as B,al as A,b as $,bF as G}from"./index-WEj6FS32.js";import{n as a}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="72e87716-9759-4526-8aeb-89c23922e441",e._sentryDebugIdIdentifier="sentry-dbid-72e87716-9759-4526-8aeb-89c23922e441")}catch{}})();const J=({name:e,registerOptions:i,defaultValue:t,isDisabled:n,style:h,placeholder:b})=>{const{control:f,formState:{errors:d}}=k(),w=C(),x=S(d,e??""),D=r=>({value:r.value,label:r.label}),_=r=>r.map(m=>D(m)),L=r=>{if(!(r==null||!r))return{value:r,label:t.allOptions.find(m=>m.value===r)?.label??r}},F=r=>r.map(m=>L(m)),I={container:r=>({...r,width:"100%",...h}),menu:r=>({...r,backgroundColor:w.colors.grey5,borderRadius:l.sp1,boxShadow:`${l.sp0} 2px ${l.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,width:"100%",margin:0}),menuList:r=>({...r,borderRadius:l.sp1})},M={hasError:x};return o.jsx(P,{name:e,control:f,defaultValue:t,rules:i,render:({field:{onChange:r,onBlur:m,value:y,ref:R}})=>o.jsx(N,{...M,ref:R,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:b,value:F(y.selectedOptions),options:_(y.allOptions),onChange:O=>{r({selectedOptions:O.map(z=>z?.value),allOptions:y.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:m,menuPlacement:"auto",maxMenuHeight:210,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:Q,Option:ee,Input:U,MultiValue:W,MultiValueLabel:X,MultiValueRemove:Y,ValueContainer:K,DropdownIndicator:de,IndicatorSeparator:ce,Placeholder:q,ClearIndicator:Z},hideSelectedOptions:!1,styles:I,isDisabled:n!=null})})},Q=e=>{const{menuIsOpen:i,isFocused:t,isDisabled:n,selectProps:h}=e,{value:b,hasError:f}=h;return o.jsx(oe,{menuIsOpen:i,isFocused:t,isDisabled:n,optionsLen:b.length,hasError:f,children:o.jsx(p.Control,{...e,className:"select-control",children:e.children})})},K=e=>{const{selectProps:i}=e,{value:t}=i;return o.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,o.jsx(le,{className:"selected-options",children:t.map(n=>n.label).join(", ")})]})},U=e=>{const{selectProps:i}=e,{placeholder:t,value:n}=i;return o.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:n.length===0?t:void 0,children:e.children})},W=e=>o.jsx(p.MultiValue,{...e,children:e.children}),X=e=>{const{data:i}=e;return o.jsx(p.MultiValueLabel,{...e,children:i.label})},Y=e=>o.jsx(p.MultiValueRemove,{...e,children:o.jsx(v,{style:{marginTop:"2px"}})}),Z=e=>o.jsx(p.ClearIndicator,{...e,children:o.jsx(v,{})}),q=()=>null,ee=e=>{const{isSelected:i,isDisabled:t,isFocused:n}=e;return o.jsx(re,{isFocused:n,isSelected:i,isDisabled:t,children:o.jsx(p.Option,{...e,className:"select-option",children:o.jsxs(ie,{children:[o.jsx(H,{...e.value.length===2?{countryCode2:e.value}:{countryCode3:e.value}}),o.jsx(se,{children:o.jsx(te,{isSelected:i,isDisabled:t,children:e.label})}),i?o.jsxs(ne,{children:[o.jsx(ae,{className:"right-tick-icon"}),o.jsx(v,{className:"close-tick-icon"})]}):null]})})})},oe=a.div`
1
+ import{J as E,cI as k,er as S,V as o,cN as V,y as u,p as g,o as l,u as s,g as C,eA as P,bG as N,a as T,bH as p,eS as H,x as B,al as A,b as $,bF as G}from"./index-D4DdpT1f.js";import{n as a}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="72e87716-9759-4526-8aeb-89c23922e441",e._sentryDebugIdIdentifier="sentry-dbid-72e87716-9759-4526-8aeb-89c23922e441")}catch{}})();const J=({name:e,registerOptions:i,defaultValue:t,isDisabled:n,style:h,placeholder:b})=>{const{control:f,formState:{errors:d}}=k(),w=C(),x=S(d,e??""),D=r=>({value:r.value,label:r.label}),_=r=>r.map(m=>D(m)),L=r=>{if(!(r==null||!r))return{value:r,label:t.allOptions.find(m=>m.value===r)?.label??r}},F=r=>r.map(m=>L(m)),I={container:r=>({...r,width:"100%",...h}),menu:r=>({...r,backgroundColor:w.colors.grey5,borderRadius:l.sp1,boxShadow:`${l.sp0} 2px ${l.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,width:"100%",margin:0}),menuList:r=>({...r,borderRadius:l.sp1})},M={hasError:x};return o.jsx(P,{name:e,control:f,defaultValue:t,rules:i,render:({field:{onChange:r,onBlur:m,value:y,ref:R}})=>o.jsx(N,{...M,ref:R,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:b,value:F(y.selectedOptions),options:_(y.allOptions),onChange:O=>{r({selectedOptions:O.map(z=>z?.value),allOptions:y.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:m,menuPlacement:"auto",maxMenuHeight:210,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:Q,Option:ee,Input:U,MultiValue:W,MultiValueLabel:X,MultiValueRemove:Y,ValueContainer:K,DropdownIndicator:de,IndicatorSeparator:ce,Placeholder:q,ClearIndicator:Z},hideSelectedOptions:!1,styles:I,isDisabled:n!=null})})},Q=e=>{const{menuIsOpen:i,isFocused:t,isDisabled:n,selectProps:h}=e,{value:b,hasError:f}=h;return o.jsx(oe,{menuIsOpen:i,isFocused:t,isDisabled:n,optionsLen:b.length,hasError:f,children:o.jsx(p.Control,{...e,className:"select-control",children:e.children})})},K=e=>{const{selectProps:i}=e,{value:t}=i;return o.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,o.jsx(le,{className:"selected-options",children:t.map(n=>n.label).join(", ")})]})},U=e=>{const{selectProps:i}=e,{placeholder:t,value:n}=i;return o.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:n.length===0?t:void 0,children:e.children})},W=e=>o.jsx(p.MultiValue,{...e,children:e.children}),X=e=>{const{data:i}=e;return o.jsx(p.MultiValueLabel,{...e,children:i.label})},Y=e=>o.jsx(p.MultiValueRemove,{...e,children:o.jsx(v,{style:{marginTop:"2px"}})}),Z=e=>o.jsx(p.ClearIndicator,{...e,children:o.jsx(v,{})}),q=()=>null,ee=e=>{const{isSelected:i,isDisabled:t,isFocused:n}=e;return o.jsx(re,{isFocused:n,isSelected:i,isDisabled:t,children:o.jsx(p.Option,{...e,className:"select-option",children:o.jsxs(ie,{children:[o.jsx(H,{...e.value.length===2?{countryCode2:e.value}:{countryCode3:e.value}}),o.jsx(se,{children:o.jsx(te,{isSelected:i,isDisabled:t,children:e.label})}),i?o.jsxs(ne,{children:[o.jsx(ae,{className:"right-tick-icon"}),o.jsx(v,{className:"close-tick-icon"})]}):null]})})})},oe=a.div`
2
2
  width: 100%;
3
3
  background-color: ${e=>e.theme.colors.grey5};
4
4
  cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
@@ -1,4 +1,4 @@
1
- import{J as H,cI as F,er as R,V as t,cN as W,y as x,aP as I,p as u,u as s,o as i,eA as G,a as Q,g as q,F as A,eQ as J,B as K,dj as X,cs as U,bH as S,c_ as Y,dK as Z,b as k,bF as ee,x as le}from"./index-WEj6FS32.js";import{n as a}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="730435ab-116c-45b4-8db8-a57c819123a3",e._sentryDebugIdIdentifier="sentry-dbid-730435ab-116c-45b4-8db8-a57c819123a3")}catch{}})();const te=({allValues:e,selectedValue:r,name:o,onSelectedValueChanged:n,isDisabled:d,placeholder:h,isOptionRemovable:w=!0,addIconInCreateLabel:b,getLabelForId:m,tagProperties:f,hasError:j,style:c})=>{const y=q(),$=Se(e,m),C=A.getLocalizedStrings().dropDowns,O=$.sort((l,p)=>l.label.localeCompare(p.label)),v=r!=null&&r?z(r,m):void 0,P={container:l=>({...l,width:"100%",...c}),menu:l=>({...l,backgroundColor:y.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${y.colors.dropShadowHover}`,border:`1px solid ${y.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${i.sp0} ${i.sp0} ${i.sp0}`,overflow:"hidden"}),menuList:l=>({...l,borderRadius:i.sp1}),input:(l,{selectProps:p})=>({...l,":after":{width:p.inputValue.length>0?i.sp0:"unset"}})},E=l=>t.jsxs(fe,{children:[t.jsx(me,{children:t.jsx(Y,{fill:"currentColor",height:i.sp3,width:i.sp3})}),t.jsx(xe,{children:`${C.createOption} "${l}"`})]}),M=l=>{const{menuIsOpen:p,isFocused:D,isDisabled:L,selectProps:N}=l,{value:B}=N;return t.jsx(se,{menuIsOpen:p,isFocused:D,isDisabled:L,selectedValue:B,hasError:j,"data-testid":I("creatable-single-select-control",o),children:t.jsx(S.Control,{...l,className:"select-control",children:l.children})})},T=l=>t.jsx($e,{children:t.jsxs(S.SingleValue,{...l,children:[l.selectProps.menuIsOpen===!1&&f!=null&&f.isTagShownForOption(l.data.value)===!0&&t.jsx(we,{children:t.jsx(ye,{style:f.style,children:f.tagName})}),l.children]})}),_=l=>{const{selectProps:p}=l,{placeholder:D,value:L}=p;return t.jsx(S.Input,{...l,autoComplete:"new-password",placeholder:L==null?D:void 0,"data-testid":I("creatable-single-select-input",o),children:l.children})};return t.jsx(J,{isMulti:!1,onCreateOption:l=>{const p=K(l);n(p)},onChange:l=>{w!==!1&&l?.value!=null&&v?.value===l.value?n(void 0):n(l?.value)},formatCreateLabel:l=>b===!0?E(l):`${C.otherOption} ${l}`,tabSelectsValue:!1,openMenuOnFocus:!0,"data-testid":I("creatable-single-select",o),classNamePrefix:"creatable-single-select-field",createOptionPosition:"last",allowCreateWhileLoading:!0,controlShouldRenderValue:!0,placeholder:h,menuPlacement:"auto",maxMenuHeight:288,defaultValue:v,value:v,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:M,Option:ae,Input:_,SingleValue:T,ValueContainer:ie,DropdownIndicator:ve,IndicatorSeparator:Ie,ClearIndicator:je,Placeholder:oe,MenuList:re},hideSelectedOptions:!1,styles:P,options:O,isClearable:!0,isSearchable:!0,isDisabled:d!=null},X())},ie=e=>t.jsx(S.ValueContainer,{...e,className:"select-value-container",children:e.children}),re=e=>{const{options:r,children:o,maxHeight:n,getValue:d}=e,[h]=d(),w=r.indexOf(h)*40;return t.jsx(U,{height:o.length>7?n:o.length*40,width:"100%",itemCount:o.length,itemSize:()=>40,initialScrollOffset:w,children:({index:b,style:m})=>t.jsx(pe,{style:m,children:o[b]})})},oe=()=>null,ae=e=>{const{isSelected:r,isDisabled:o,isFocused:n,data:d}=e,h=typeof d.label=="string"?d.label:d.value;return t.jsx(ne,{isFocused:n,isSelected:r,isDisabled:o,children:t.jsx(S.Option,{...e,className:"select-option",children:t.jsxs(de,{"data-testid":I("creatable-single-select-option",h),children:[t.jsx(he,{children:t.jsx(ce,{isSelected:r,isDisabled:o,children:e.label})}),r?t.jsxs(ue,{children:[t.jsx(ge,{className:"right-tick-icon"}),t.jsx(be,{className:"close-tick-icon"})]}):null]})})})},se=a.div`
1
+ import{J as H,cI as F,er as R,V as t,cN as W,y as x,aP as I,p as u,u as s,o as i,eA as G,a as Q,g as q,F as A,eQ as J,B as K,dj as X,cs as U,bH as S,c_ as Y,dK as Z,b as k,bF as ee,x as le}from"./index-D4DdpT1f.js";import{n as a}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="730435ab-116c-45b4-8db8-a57c819123a3",e._sentryDebugIdIdentifier="sentry-dbid-730435ab-116c-45b4-8db8-a57c819123a3")}catch{}})();const te=({allValues:e,selectedValue:r,name:o,onSelectedValueChanged:n,isDisabled:d,placeholder:h,isOptionRemovable:w=!0,addIconInCreateLabel:b,getLabelForId:m,tagProperties:f,hasError:j,style:c})=>{const y=q(),$=Se(e,m),C=A.getLocalizedStrings().dropDowns,O=$.sort((l,p)=>l.label.localeCompare(p.label)),v=r!=null&&r?z(r,m):void 0,P={container:l=>({...l,width:"100%",...c}),menu:l=>({...l,backgroundColor:y.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${y.colors.dropShadowHover}`,border:`1px solid ${y.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${i.sp0} ${i.sp0} ${i.sp0}`,overflow:"hidden"}),menuList:l=>({...l,borderRadius:i.sp1}),input:(l,{selectProps:p})=>({...l,":after":{width:p.inputValue.length>0?i.sp0:"unset"}})},E=l=>t.jsxs(fe,{children:[t.jsx(me,{children:t.jsx(Y,{fill:"currentColor",height:i.sp3,width:i.sp3})}),t.jsx(xe,{children:`${C.createOption} "${l}"`})]}),M=l=>{const{menuIsOpen:p,isFocused:D,isDisabled:L,selectProps:N}=l,{value:B}=N;return t.jsx(se,{menuIsOpen:p,isFocused:D,isDisabled:L,selectedValue:B,hasError:j,"data-testid":I("creatable-single-select-control",o),children:t.jsx(S.Control,{...l,className:"select-control",children:l.children})})},T=l=>t.jsx($e,{children:t.jsxs(S.SingleValue,{...l,children:[l.selectProps.menuIsOpen===!1&&f!=null&&f.isTagShownForOption(l.data.value)===!0&&t.jsx(we,{children:t.jsx(ye,{style:f.style,children:f.tagName})}),l.children]})}),_=l=>{const{selectProps:p}=l,{placeholder:D,value:L}=p;return t.jsx(S.Input,{...l,autoComplete:"new-password",placeholder:L==null?D:void 0,"data-testid":I("creatable-single-select-input",o),children:l.children})};return t.jsx(J,{isMulti:!1,onCreateOption:l=>{const p=K(l);n(p)},onChange:l=>{w!==!1&&l?.value!=null&&v?.value===l.value?n(void 0):n(l?.value)},formatCreateLabel:l=>b===!0?E(l):`${C.otherOption} ${l}`,tabSelectsValue:!1,openMenuOnFocus:!0,"data-testid":I("creatable-single-select",o),classNamePrefix:"creatable-single-select-field",createOptionPosition:"last",allowCreateWhileLoading:!0,controlShouldRenderValue:!0,placeholder:h,menuPlacement:"auto",maxMenuHeight:288,defaultValue:v,value:v,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:M,Option:ae,Input:_,SingleValue:T,ValueContainer:ie,DropdownIndicator:ve,IndicatorSeparator:Ie,ClearIndicator:je,Placeholder:oe,MenuList:re},hideSelectedOptions:!1,styles:P,options:O,isClearable:!0,isSearchable:!0,isDisabled:d!=null},X())},ie=e=>t.jsx(S.ValueContainer,{...e,className:"select-value-container",children:e.children}),re=e=>{const{options:r,children:o,maxHeight:n,getValue:d}=e,[h]=d(),w=r.indexOf(h)*40;return t.jsx(U,{height:o.length>7?n:o.length*40,width:"100%",itemCount:o.length,itemSize:()=>40,initialScrollOffset:w,children:({index:b,style:m})=>t.jsx(pe,{style:m,children:o[b]})})},oe=()=>null,ae=e=>{const{isSelected:r,isDisabled:o,isFocused:n,data:d}=e,h=typeof d.label=="string"?d.label:d.value;return t.jsx(ne,{isFocused:n,isSelected:r,isDisabled:o,children:t.jsx(S.Option,{...e,className:"select-option",children:t.jsxs(de,{"data-testid":I("creatable-single-select-option",h),children:[t.jsx(he,{children:t.jsx(ce,{isSelected:r,isDisabled:o,children:e.label})}),r?t.jsxs(ue,{children:[t.jsx(ge,{className:"right-tick-icon"}),t.jsx(be,{className:"close-tick-icon"})]}):null]})})})},se=a.div`
2
2
  width: 100%;
3
3
  background-color: ${e=>e.theme.colors.grey5};
4
4
  cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
@@ -1,4 +1,4 @@
1
- import{J as W,cI as j,er as u,V as r,cN as N,y as l,eR as U,F as k,aP as O,u as i,o,p as _,a as A}from"./index-WEj6FS32.js";import{n as d}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6a8114c7-f610-4f61-8751-8903e8758af3",e._sentryDebugIdIdentifier="sentry-dbid-6a8114c7-f610-4f61-8751-8903e8758af3")}catch{}})();const t={width:new l(343,580,726),height:new l(i[6],i[6]),paddingTopBottom:new l(i[2],i[2]),marginRight:new l(i[2],i[2]),labelMarginLeft:new l(i[3],i[4]),labelMarginRight:new l(i[3],i[4]),labelMarginTop:new l(i[2],i[2])},J={infoLabel:new A("extraSmallRegular","smallRegular")};function H({label:e,isDisabled:a,isOptional:p,style:f,file:h,name:n,registerOptions:b,additionalInfoLabel:c,acceptableTypes:y,sizeLimit:w,filemetadataPayload:x,deleteFileStatusById:$,updateFileStatusById:z,filesEndPoint:P,authParams:F,hasError:E=!1,placeholderText:I,showPhotoPicker:S,useMobileCam:v,showUploadSuccessAnimation:D,showWebCamPopUpCloseIcon:T,updateFilesEntity:L,onDeleteFile:R,onEditFileName:B,onFileSizeError:M}){const s=W(),{formState:{errors:m}}=j(),g=u(m,n),C=u(m,`${n}.fileName`);return r.jsxs(V,{size:s,style:f,isDisabled:a!=null,"data-testid":O("document-field",n),children:[r.jsx(N,{isDisabled:a,label:e.label,isOptional:p,style:{marginLeft:t.labelMarginLeft.value(s),marginRight:t.labelMarginRight.value(s),marginTop:t.labelMarginTop.value(s),width:e.width??"auto",...e.style}}),r.jsxs(q,{labelWidth:e.width,size:s,children:[r.jsx(U,{name:n,filesEndPoint:P,authParams:F,registerOptions:b,file:h,sizeLimit:w,acceptableTypes:y,isDisabled:a==="disabled"||a==="readonly",filemetadataPayload:x,deleteFileStatusById:$,updateFileStatusById:z,hasError:E,updateFilesEntity:L,onFileSizeError:M,onDeleteFile:R,onEditFileName:B,placeholderText:I,showPhotoPicker:S,useMobileCam:v,showWebCamPopUpCloseIcon:T,showUploadSuccessAnimation:D}),g&&r.jsx(G,{size:s,isError:g,children:C&&h!=null?k.getLocalizedStrings().commonSetUp.businessVerification.fileNameRequired:c})]})]})}const V=d.div`
1
+ import{J as W,cI as j,er as u,V as r,cN as N,y as l,eR as U,F as k,aP as O,u as i,o,p as _,a as A}from"./index-D4DdpT1f.js";import{n as d}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6a8114c7-f610-4f61-8751-8903e8758af3",e._sentryDebugIdIdentifier="sentry-dbid-6a8114c7-f610-4f61-8751-8903e8758af3")}catch{}})();const t={width:new l(343,580,726),height:new l(i[6],i[6]),paddingTopBottom:new l(i[2],i[2]),marginRight:new l(i[2],i[2]),labelMarginLeft:new l(i[3],i[4]),labelMarginRight:new l(i[3],i[4]),labelMarginTop:new l(i[2],i[2])},J={infoLabel:new A("extraSmallRegular","smallRegular")};function H({label:e,isDisabled:a,isOptional:p,style:f,file:h,name:n,registerOptions:b,additionalInfoLabel:c,acceptableTypes:y,sizeLimit:w,filemetadataPayload:x,deleteFileStatusById:$,updateFileStatusById:z,filesEndPoint:P,authParams:F,hasError:E=!1,placeholderText:I,showPhotoPicker:S,useMobileCam:v,showUploadSuccessAnimation:D,showWebCamPopUpCloseIcon:T,updateFilesEntity:L,onDeleteFile:R,onEditFileName:B,onFileSizeError:M}){const s=W(),{formState:{errors:m}}=j(),g=u(m,n),C=u(m,`${n}.fileName`);return r.jsxs(V,{size:s,style:f,isDisabled:a!=null,"data-testid":O("document-field",n),children:[r.jsx(N,{isDisabled:a,label:e.label,isOptional:p,style:{marginLeft:t.labelMarginLeft.value(s),marginRight:t.labelMarginRight.value(s),marginTop:t.labelMarginTop.value(s),width:e.width??"auto",...e.style}}),r.jsxs(q,{labelWidth:e.width,size:s,children:[r.jsx(U,{name:n,filesEndPoint:P,authParams:F,registerOptions:b,file:h,sizeLimit:w,acceptableTypes:y,isDisabled:a==="disabled"||a==="readonly",filemetadataPayload:x,deleteFileStatusById:$,updateFileStatusById:z,hasError:E,updateFilesEntity:L,onFileSizeError:M,onDeleteFile:R,onEditFileName:B,placeholderText:I,showPhotoPicker:S,useMobileCam:v,showWebCamPopUpCloseIcon:T,showUploadSuccessAnimation:D}),g&&r.jsx(G,{size:s,isError:g,children:C&&h!=null?k.getLocalizedStrings().commonSetUp.businessVerification.fileNameRequired:c})]})]})}const V=d.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.size==="small"?"column":"row"};
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as C,g as R,cI as h,er as T,V as r,o,eA as F,bQ as _,b as A,gf as J,p as s,a as P,bF as M}from"./index-WEj6FS32.js";import{n as i}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="1e0369f4-71cd-44b9-a1bc-1221513727d3",e._sentryDebugIdIdentifier="sentry-dbid-1e0369f4-71cd-44b9-a1bc-1221513727d3")}catch{}})();const O={infoLabel:new P("extraSmallRegular","smallRegular")};function Y({isDisabled:e,label:a,formattedText:t,dropdownStyle:f,style:m,additionalInfoLabel:y,showAdditionalInfoLabel:w=!0,isSaveError:d=!1,showTickIcon:x,showErrorInfoLabel:$,errorInfoLabel:D,registerOptions:L,defaultValue:g,isSelectDisabled:k,menuPlacement:v,name:j,placeholderLabel:E}){const n=C(),p=R(),{formState:{errors:I}}=h(),c=T(I,t.name),{control:S}=h(),z=l=>typeof l=="string"?l.toLocaleUpperCase():l.toString().toLocaleUpperCase();return r.jsxs(U,{size:n,style:m,isDisabled:e!=null,isError:c||d,children:[r.jsx(H,{windowSize:n,style:{width:a?.width??"auto",marginRight:o.sp2},children:r.jsx(K,{style:{width:"auto",...f},children:r.jsx(F,{name:j,control:S,defaultValue:g.dropDownValue,rules:L,render:({field:{value:l,onChange:V}})=>r.jsx(_,{pickerValues:g.dropDownList.map(u=>u.code),valueToLabel:z,selectedValue:l??void 0,isDisabled:e!=null||k,onPickerSelectionChanged:u=>{V(u)},menuPlacement:v,titleTextStyle:A.standardRegular,titleColor:p.colors.hero,valueOpacity:1,backgroundColor:p.colors.grey5,placeholder:E})})})}),r.jsxs(q,{children:[r.jsx(J,{...t,style:t.style,isDisabled:t.isDisabled,isMasked:!0}),(w||c||d)&&r.jsxs(b,{size:n,isError:c||d,children:[x===!0?r.jsx(B,{children:r.jsx(G,{})}):null,y]}),$===!0&&r.jsx(b,{size:n,isError:!0,children:D})]})]})}const U=i.div`
1
+ import{J as C,g as R,cI as h,er as T,V as r,o,eA as F,bQ as _,b as A,gf as J,p as s,a as P,bF as M}from"./index-D4DdpT1f.js";import{n as i}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="1e0369f4-71cd-44b9-a1bc-1221513727d3",e._sentryDebugIdIdentifier="sentry-dbid-1e0369f4-71cd-44b9-a1bc-1221513727d3")}catch{}})();const O={infoLabel:new P("extraSmallRegular","smallRegular")};function Y({isDisabled:e,label:a,formattedText:t,dropdownStyle:f,style:m,additionalInfoLabel:y,showAdditionalInfoLabel:w=!0,isSaveError:d=!1,showTickIcon:x,showErrorInfoLabel:$,errorInfoLabel:D,registerOptions:L,defaultValue:g,isSelectDisabled:k,menuPlacement:v,name:j,placeholderLabel:E}){const n=C(),p=R(),{formState:{errors:I}}=h(),c=T(I,t.name),{control:S}=h(),z=l=>typeof l=="string"?l.toLocaleUpperCase():l.toString().toLocaleUpperCase();return r.jsxs(U,{size:n,style:m,isDisabled:e!=null,isError:c||d,children:[r.jsx(H,{windowSize:n,style:{width:a?.width??"auto",marginRight:o.sp2},children:r.jsx(K,{style:{width:"auto",...f},children:r.jsx(F,{name:j,control:S,defaultValue:g.dropDownValue,rules:L,render:({field:{value:l,onChange:V}})=>r.jsx(_,{pickerValues:g.dropDownList.map(u=>u.code),valueToLabel:z,selectedValue:l??void 0,isDisabled:e!=null||k,onPickerSelectionChanged:u=>{V(u)},menuPlacement:v,titleTextStyle:A.standardRegular,titleColor:p.colors.hero,valueOpacity:1,backgroundColor:p.colors.grey5,placeholder:E})})})}),r.jsxs(q,{children:[r.jsx(J,{...t,style:t.style,isDisabled:t.isDisabled,isMasked:!0}),(w||c||d)&&r.jsxs(b,{size:n,isError:c||d,children:[x===!0?r.jsx(B,{children:r.jsx(G,{})}):null,y]}),$===!0&&r.jsx(b,{size:n,isError:!0,children:D})]})]})}const U=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{J as M,V as l,cN as I,y as c,o as i,u as t,cI as R,g as V,er as O,eA as z,bG as L,bH as p,x as C,al as P,b as h,bF as N,p as f}from"./index-WEj6FS32.js";import{n}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1f6d6ea5-63fb-4cde-a1a3-1971b29a5ef7",e._sentryDebugIdIdentifier="sentry-dbid-1f6d6ea5-63fb-4cde-a1a3-1971b29a5ef7")}catch{}})();const T=({name:e,registerOptions:o,defaultValue:r,isDisabled:s,style:a,placeholder:m})=>{const{control:g,formState:{errors:y}}=R(),w=V(),v=O(y,e??""),j={container:u=>({...u,width:"100%",...a}),menu:u=>({...u,backgroundColor:w.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:u=>({...u,borderRadius:0})},k={hasError:v};return l.jsx(z,{name:e,control:g,defaultValue:r,rules:o,render:({field:{onChange:u,onBlur:D,value:b,ref:_}})=>l.jsx(L,{...k,ref:_,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:m,value:$(b.selectedOptions),options:$(b.allOptions),onChange:S=>{u({selectedOptions:S.map(F=>F.value),allOptions:b.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:D,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:E,Option:q,Input:B,MultiValue:G,MultiValueLabel:J,MultiValueRemove:W,ValueContainer:H,DropdownIndicator:ie,IndicatorSeparator:re,Placeholder:Q,ClearIndicator:A},hideSelectedOptions:!1,styles:j,isDisabled:s!=null})})},E=e=>{const{menuIsOpen:o,isFocused:r,isDisabled:s,selectProps:a}=e,{value:m,hasError:g}=a;return l.jsx(K,{menuIsOpen:o,isFocused:r,isDisabled:s,optionsLen:m.length,hasError:g,children:l.jsx(p.Control,{...e,className:"select-control",children:e.children})})},H=e=>{const{selectProps:o}=e,{value:r}=o;return l.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,l.jsx(U,{className:"selected-options",children:r.map(s=>s.value).join(", ")})]})},B=e=>{const{selectProps:o}=e,{placeholder:r,value:s}=o;return l.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:s.length===0?r:void 0,children:e.children})},G=e=>l.jsx(p.MultiValue,{...e,children:e.children}),J=e=>{const{data:o}=e;return l.jsx(p.MultiValueLabel,{...e,children:o.value})},W=e=>l.jsx(p.MultiValueRemove,{...e,children:l.jsx(x,{style:{marginTop:"2px"}})}),A=e=>l.jsx(p.ClearIndicator,{...e,children:l.jsx(x,{})}),Q=()=>null,q=e=>{const{isSelected:o,isDisabled:r,isFocused:s}=e;return l.jsx(X,{isFocused:s,isSelected:o,isDisabled:r,children:l.jsx(p.Option,{...e,className:"select-option",children:l.jsxs(Y,{children:[l.jsx(ee,{children:l.jsx(Z,{isSelected:o,isDisabled:r,children:e.label})}),o?l.jsxs(oe,{children:[l.jsx(le,{className:"right-tick-icon"}),l.jsx(x,{className:"close-tick-icon"})]}):null]})})})},K=n.div`
1
+ import{J as M,V as l,cN as I,y as c,o as i,u as t,cI as R,g as V,er as O,eA as z,bG as L,bH as p,x as C,al as P,b as h,bF as N,p as f}from"./index-D4DdpT1f.js";import{n}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1f6d6ea5-63fb-4cde-a1a3-1971b29a5ef7",e._sentryDebugIdIdentifier="sentry-dbid-1f6d6ea5-63fb-4cde-a1a3-1971b29a5ef7")}catch{}})();const T=({name:e,registerOptions:o,defaultValue:r,isDisabled:s,style:a,placeholder:m})=>{const{control:g,formState:{errors:y}}=R(),w=V(),v=O(y,e??""),j={container:u=>({...u,width:"100%",...a}),menu:u=>({...u,backgroundColor:w.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:u=>({...u,borderRadius:0})},k={hasError:v};return l.jsx(z,{name:e,control:g,defaultValue:r,rules:o,render:({field:{onChange:u,onBlur:D,value:b,ref:_}})=>l.jsx(L,{...k,ref:_,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:m,value:$(b.selectedOptions),options:$(b.allOptions),onChange:S=>{u({selectedOptions:S.map(F=>F.value),allOptions:b.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:D,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:E,Option:q,Input:B,MultiValue:G,MultiValueLabel:J,MultiValueRemove:W,ValueContainer:H,DropdownIndicator:ie,IndicatorSeparator:re,Placeholder:Q,ClearIndicator:A},hideSelectedOptions:!1,styles:j,isDisabled:s!=null})})},E=e=>{const{menuIsOpen:o,isFocused:r,isDisabled:s,selectProps:a}=e,{value:m,hasError:g}=a;return l.jsx(K,{menuIsOpen:o,isFocused:r,isDisabled:s,optionsLen:m.length,hasError:g,children:l.jsx(p.Control,{...e,className:"select-control",children:e.children})})},H=e=>{const{selectProps:o}=e,{value:r}=o;return l.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,l.jsx(U,{className:"selected-options",children:r.map(s=>s.value).join(", ")})]})},B=e=>{const{selectProps:o}=e,{placeholder:r,value:s}=o;return l.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:s.length===0?r:void 0,children:e.children})},G=e=>l.jsx(p.MultiValue,{...e,children:e.children}),J=e=>{const{data:o}=e;return l.jsx(p.MultiValueLabel,{...e,children:o.value})},W=e=>l.jsx(p.MultiValueRemove,{...e,children:l.jsx(x,{style:{marginTop:"2px"}})}),A=e=>l.jsx(p.ClearIndicator,{...e,children:l.jsx(x,{})}),Q=()=>null,q=e=>{const{isSelected:o,isDisabled:r,isFocused:s}=e;return l.jsx(X,{isFocused:s,isSelected:o,isDisabled:r,children:l.jsx(p.Option,{...e,className:"select-option",children:l.jsxs(Y,{children:[l.jsx(ee,{children:l.jsx(Z,{isSelected:o,isDisabled:r,children:e.label})}),o?l.jsxs(oe,{children:[l.jsx(le,{className:"right-tick-icon"}),l.jsx(x,{className:"close-tick-icon"})]}):null]})})})},K=n.div`
2
2
  width: 100%;
3
3
  background-color: ${e=>e.theme.colors.grey5};
4
4
  cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
@@ -1,4 +1,4 @@
1
- import{J as f,V as o,cN as p,y as l,aP as g,u as t,o as a,al as u,a as y}from"./index-WEj6FS32.js";import{n as d}from"./mui-BTtN6lbG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b1030215-f3de-427f-8086-a4f0953279bb",e._sentryDebugIdIdentifier="sentry-dbid-b1030215-f3de-427f-8086-a4f0953279bb")}catch{}})();const i={width:new l(343,580,726),height:new l(t[6],t[6]),paddingTopBottom:new l(t[2],t[2]),marginRight:new l(t[2],t[2]),labelMarginLeft:new l(t[3],t[4]),labelMarginRight:new l(t[3],t[4]),labelMarginTop:new l(t[2],t[2])},c={infoLabel:new y("extraSmallRegular","smallRegular")};function T({label:e,value:r,additionalInfoLabel:s,style:b,infoLabelStyle:h}){const n=f();return o.jsxs(m,{size:n,style:b,"data-testid":g("labeled-text",e.label),children:[o.jsx(p,{label:e.label,style:{marginLeft:i.labelMarginLeft.value(n),marginRight:i.labelMarginRight.value(n),marginTop:i.labelMarginTop.value(n),width:e.width??"auto"}}),o.jsxs(x,{labelWidth:e.width,children:[o.jsx(w,{"data-testid":g("labeled-text-input",e.label),children:r}),s!=null?o.jsx($,{size:n,style:h,children:s}):null]})]})}const m=d.div`
1
+ import{J as f,V as o,cN as p,y as l,aP as g,u as t,o as a,al as u,a as y}from"./index-D4DdpT1f.js";import{n as d}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b1030215-f3de-427f-8086-a4f0953279bb",e._sentryDebugIdIdentifier="sentry-dbid-b1030215-f3de-427f-8086-a4f0953279bb")}catch{}})();const i={width:new l(343,580,726),height:new l(t[6],t[6]),paddingTopBottom:new l(t[2],t[2]),marginRight:new l(t[2],t[2]),labelMarginLeft:new l(t[3],t[4]),labelMarginRight:new l(t[3],t[4]),labelMarginTop:new l(t[2],t[2])},c={infoLabel:new y("extraSmallRegular","smallRegular")};function T({label:e,value:r,additionalInfoLabel:s,style:b,infoLabelStyle:h}){const n=f();return o.jsxs(m,{size:n,style:b,"data-testid":g("labeled-text",e.label),children:[o.jsx(p,{label:e.label,style:{marginLeft:i.labelMarginLeft.value(n),marginRight:i.labelMarginRight.value(n),marginTop:i.labelMarginTop.value(n),width:e.width??"auto"}}),o.jsxs(x,{labelWidth:e.width,children:[o.jsx(w,{"data-testid":g("labeled-text-input",e.label),children:r}),s!=null?o.jsx($,{size:n,style:h,children:s}):null]})]})}const m=d.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as U,V as l,cN as me,o as s,y as I,aP as q,u as m,cI as Q,eA as ge,er as be,g as fe,fZ as xe,F,a as we,bH as W,f_ as K,ap as H,f$ as J,bF as Z,p as N,b as B,al as X,g0 as $e,am as ye,ai as ve}from"./index-WEj6FS32.js";import{n as r}from"./mui-BTtN6lbG.js";import{T as je}from"./RoleWithToolTip-CkpqxMzB-CgYpd1vG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ba0ce7c4-37bb-4235-9cc9-4ef8b137f9c0",e._sentryDebugIdIdentifier="sentry-dbid-ba0ce7c4-37bb-4235-9cc9-4ef8b137f9c0")}catch{}})();const ee={selectContainerMarginHorizontal:new I(m[2],m[3]),marginTop:new I(m[1],m[0])},Se=r(ye)`
1
+ import{J as U,V as l,cN as me,o as s,y as I,aP as q,u as m,cI as Q,eA as ge,er as be,g as fe,fZ as xe,F,a as we,bH as W,f_ as K,ap as H,f$ as J,bF as Z,p as N,b as B,al as X,g0 as $e,am as ye,ai as ve}from"./index-D4DdpT1f.js";import{n as r}from"./mui-CooLgaJO.js";import{T as je}from"./RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="1b7e326c-7508-476f-a026-be5439ed94cb",e._sentryDebugIdIdentifier="sentry-dbid-1b7e326c-7508-476f-a026-be5439ed94cb")}catch{}})();const ee={selectContainerMarginHorizontal:new I(m[2],m[3]),marginTop:new I(m[1],m[0])},Se=r(ye)`
2
2
  display: flex;
3
3
  gap: ${s.sp2};
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{J as I,V as l,cN as G,y as m,o,aP as N,u as n,cI as E,eA as q,er as Q,g as Y,b as V,bG as ie,F as te,fW as se,g1 as ae,aJ as ne,b1 as de,bH as B,ba as ce,bF as pe,cB as ue,p as k,g2 as U,ch as K,r as he,ai as X,al as ge,am as me,fI as be,fH as fe,bw as xe,fJ as ye,bi as we,g3 as ve}from"./index-WEj6FS32.js";import{n as d,c as $e}from"./mui-BTtN6lbG.js";import{a as D}from"./sentry-B0WgNUxa.js";import{FA as A,FB as Re}from"./zeni-epic-state-DnAAAEmj.js";import{T as je}from"./RoleWithToolTip-CkpqxMzB-CgYpd1vG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0ad03705-b082-483d-9280-b5fe996011e2",e._sentryDebugIdIdentifier="sentry-dbid-0ad03705-b082-483d-9280-b5fe996011e2")}catch{}})();const H={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},Se=d.div`
1
+ import{J as I,V as l,cN as G,y as m,o,aP as N,u as n,cI as E,eA as q,er as Q,g as Y,b as V,bG as ie,F as te,fW as se,g1 as ae,aJ as ne,b1 as de,bH as B,ba as ce,bF as pe,cB as ue,p as k,g2 as U,ch as K,r as he,ai as X,al as ge,am as me,fI as be,fH as fe,bw as xe,fJ as ye,bi as we,g3 as ve}from"./index-D4DdpT1f.js";import{n as d,c as $e}from"./mui-CooLgaJO.js";import{a as D}from"./sentry-Dlcq8VjX.js";import{FA as A,FB as Re}from"./zeni-epic-state-pmiItBju.js";import{T as je}from"./RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="daa21b20-33bf-4d86-ba94-c09fff367b4f",e._sentryDebugIdIdentifier="sentry-dbid-daa21b20-33bf-4d86-ba94-c09fff367b4f")}catch{}})();const H={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},Se=d.div`
2
2
  display: flex;
3
3
  margin-top: ${e=>H.grpBtnMarginTopBottom.valuePx(e.windowSize)};
4
4
  margin-bottom: ${e=>H.grpBtnMarginTopBottom.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{J as H,aQ as ue,a9 as pe,cE as me,iH as E,is as P,cF as he,V as n,ac as ge,g4 as fe,aR as xe,F as G,o as t,y as m,f as be,x as ye,cJ as V,iI as we,p as je,b as I,bh as Ce,u as r}from"./index-WEj6FS32.js";import{a as R}from"./sentry-B0WgNUxa.js";import{n as i}from"./mui-BTtN6lbG.js";import{G1 as Q,F_ as De,F$ as Se}from"./zeni-epic-state-DnAAAEmj.js";import $e from"./TransactionDetailPage-BXl6y7sy-B_wNV2dF.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./LabeledControlledCheckBoxField-CEd7DSmU-mOU-S2fp.js";import"./TrendWithTransactions-D4m4sVkf-DJ-5Yugx.js";import"./TrendChart-ClyJQTBF-TLthRW_O.js";import"./chartTypes-n3TS0IBf-DRx7aLxA.js";import"./toCOABalancesWithID-BzzH0Io4-q6KiTxht.js";import"./toChartData-Bl-lEYbQ-Cv_10vbn.js";import"./NoDataChart-BbyxZE2g-CtN5BYbf.js";import"./InsightsSection-D7g00fg7-Bl1k6KMG.js";import"./NavigationDots-BdcVrwsL-D_WEvn6f.js";import"./TransactionList-BYXPQXN1-C2WkgSOj.js";import"./BoxItem-Cr0Y9YBV-C2AawtqJ.js";import"./commonDimensions-6BcP8EhU-CPpjZ-C4.js";import"./uploadAttachment-B_0cN84g-C7pQHANb.js";import"./radio-default-CiSgisfh-CzTG_UVX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="6af4eeed-c7c1-4fc5-802d-271ed4dfdfc1",e._sentryDebugIdIdentifier="sentry-dbid-6af4eeed-c7c1-4fc5-802d-271ed4dfdfc1")}catch{}})();const J={labelWidth:new m(120,145,160)},ve=i.div`
1
+ import{J as H,aQ as ue,a9 as pe,cE as me,iH as E,is as P,cF as he,V as a,ac as ge,g4 as fe,aR as xe,F as G,o as t,y as m,f as be,x as ye,cJ as V,iI as we,p as je,b as I,bh as Ce,u as r}from"./index-D4DdpT1f.js";import{a as R}from"./sentry-Dlcq8VjX.js";import{n as i}from"./mui-CooLgaJO.js";import{G1 as Q,F_ as De,F$ as Se}from"./zeni-epic-state-pmiItBju.js";import $e from"./TransactionDetailPage-CF5tZCkv-ND1Ih8Rd.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./LabeledControlledCheckBoxField-DqtbWhaH-Ct8s61sn.js";import"./TrendWithTransactions-C5Zfe4RN-BXIMOZup.js";import"./TrendChart-DVp0Led--C8WSZxuE.js";import"./chartTypes-BDwrrz9S-CO6_cPbC.js";import"./toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js";import"./toChartData-CTG-a8va-B2RC0Eyi.js";import"./NoDataChart--T7v827k-zXeqjU35.js";import"./InsightsSection-CUk29Ace-BKDJK0uo.js";import"./NavigationDots-Ttv3r4BR-v2ws1TaA.js";import"./TransactionList-BuFcrTEd-Pd5NkKsR.js";import"./BoxItem-B0bHU_KA-CwJAi_XO.js";import"./commonDimensions-Pu55v5lV-fIykEmeD.js";import"./uploadAttachment-n14_2p7o-3Yaegacg.js";import"./radio-default-CiSgisfh-aKay5Aup.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="32fa6437-f5e8-4997-a3a2-9caa72ae70a8",e._sentryDebugIdIdentifier="sentry-dbid-32fa6437-f5e8-4997-a3a2-9caa72ae70a8")}catch{}})();const J={labelWidth:new m(120,145,160)},ve=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -19,7 +19,7 @@ import{J as H,aQ as ue,a9 as pe,cE as me,iH as E,is as P,cF as he,V as n,ac as g
19
19
  background-color: ${e=>e.theme.colors.grey3};
20
20
  min-height: 1px;
21
21
  max-height: 1px;
22
- `,B=(e,l)=>`${e}.${l}`;function Ie({sectionId:e,jePostingDate:l,qboURL:a,isJELoading:s}){const u=G.getLocalizedStrings(),{dateFormat:j,jeSchedules:{scheduleDetails:{linkJE:o,scheduleDetailsSection:C}}}=u,h=l.format(j.visual.MMMDCommaYYYYformat),g=H();return n.jsxs(ve,{children:[n.jsx(Ee,{windowSize:g,children:C.header}),n.jsxs(ke,{children:[n.jsx(V,{label:{label:o.jePostingDate,width:J.labelWidth.value(g)},style:{width:"auto"},text:{type:"text",name:B(e,"jePostingDate"),placeholder:o.jeLinkURLPlaceholder,defaultValue:h,autoComplete:"new-password"},isDisabled:"disabled"}),n.jsx(Pe,{}),n.jsx(V,{label:{label:o.jeLink,width:J.labelWidth.value(g)},style:{width:"auto"},text:{type:"url",name:B(e,"qboURL"),placeholder:o.jeLinkURLPlaceholder,defaultValue:a?.toString()??"",autoComplete:"new-password",style:{color:je.link},options:{pattern:we}},isDisabled:s?"disabled":void 0})]})]})}const b={containerPaddingLeft:new m(r[3],r[3],r[6]),containerPaddingRight:new m(r[3],r[3],r[8]),navbarContainerPaddingTop:new m(r[2],r[3]),navbarContainerPaddingBottom:new m(r[4],r[5]),emptyScheduleHeight:new m(88,88)},O="linkJETransactionPage",W="linkJETransaction",Z=G.getLocalizedStrings(),{common:{footer:M},dateFormat:Le}=Z,gt=({analytics:e,scheduleTab:l,jeScheduledTransaction:a,localData:s,saveStatus:u,isCOTEnabled:j,transactionDetail:o,firstMonthOfFY:C,qboAppUrl:h,authParams:g,isDisabled:K,controllerUserDetails:L,isVendorBulkUpdateOnTransactionEnabled:X,onUpdateLocalData:ee,onBackClick:T,onCancelClick:te,onSaveClick:ne,onFetchTransactionClick:ae})=>{const p=H(),A=ue(u),y=Q(h.toString(),s.jeLink),D=De(L.controllers),S=Se(L.controllerUserIds),U=()=>{const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:D,controllerUserIds:S}),te()},f=pe({mode:"all",reValidateMode:"onChange",resetOptions:{keepDirtyValues:!0,keepErrors:!0},defaultValues:_(s,h),values:_(s,h)}),oe=()=>{ne()},ie=async d=>{ee(d)};R.useEffect(()=>{const d=f.watch((c,{name:ce})=>{ce!=null&&c!=null&&me(()=>ie(c))});return()=>{d.unsubscribe()}}),R.useEffect(()=>{if(u==="Completed"&&A==="In-Progress"){const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:D,controllerUserIds:S}),T()}},[u,A,T]);const{common:{strings:{empty:N}},jeSchedules:{scheduleDetails:{linkJE:x}}}=Z,le=()=>{if(s.jeLink?.transactionDetailID!=null){const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryQBOFetched({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:D,controllerUserIds:S}),ae(s.jeLink.transactionDetailID)}},se=o!=null&&o.fetchState==="In-Progress",re=o!=null&&o.fetchState==="Error",$=o!=null&&o.fetchState==="Completed",de=o==null||o.fetchState==="Not-Started",z=s.jeLink.type==="recommended",F=he(f.formState.dirtyFields),v=f.formState.isValid,w=$&&F&&v||$&&z&&v,k=F&&v;return n.jsxs(Te,{children:[n.jsxs(Ue,{windowSize:p,children:[n.jsx(Re,{windowSize:p,children:x.linkJE}),n.jsx(Fe,{children:n.jsx(Ve,{onClick:U})})]}),n.jsxs(Ae,{children:[n.jsx(Ne,{windowSize:p,children:n.jsx(ge,{...f,children:n.jsx("form",{id:Y(O),onSubmit:f.handleSubmit(oe),children:n.jsx(Ie,{jePostingDate:s.postingDate,sectionId:W,qboURL:y,isJELoading:o?.fetchState==="In-Progress"})})})}),z?n.jsxs(Be,{windowSize:p,children:[n.jsx(Oe,{})," ",x.zeniRecommendation]}):null,$?n.jsx(ze,{children:n.jsx($e,{isCOTEnabled:j,transactionDetail:o,firstMonthOfFY:C,transactionAttachmentEndpointToDownload:N,transactionAttachmentsEndpointToFetch:N,attachmentUploadEndpoint:"",authParams:g,isDisabled:K??"readonly",isNavBarVisible:!1,containerStyles:{boxShadow:"none",backgroundColor:"inherit"},headerStyles:{boxShadow:"none",backgroundColor:"inherit"},autoCompleteData:{entityAutoCompleteView:{customer:[],vendor:[],fetchState:"Not-Started"}},isVendorBulkUpdateOnTransactionEnabled:X,onDeleteAttachment:()=>{},autoCompleteActions:{onAutoCompleteInputChange:()=>null,onCancelAutoComplete:()=>null,onAutoCompleteEntity:()=>null,onLoadOptions:()=>null},onUploadAttachmentAttachment:()=>null,enableBackClickOnSave:!0,saveLatestSelectedEntity:()=>null,updateVendorBulkRecommendationsFetchStatus:()=>null,setIsVendorUpdateAllChecked:()=>null})}):null,n.jsxs(Je,{children:[re?n.jsx(q,{windowSize:p,children:x.transactionFetchError}):null,de?n.jsx(q,{windowSize:p,children:x.jeDetails}):null]}),se?n.jsx(fe,{fetchState:o?.fetchState}):null]}),w||k?n.jsx(xe,{formId:w?Y(O):void 0,primaryBtn:{onClick:k&&!w?le:void 0,label:k&&!w?x.fetchJE:M.save,isLoading:u==="In-Progress",isDisabled:u==="In-Progress"||o?.fetchState==="In-Progress"||o?.fetchState==="Error"},cancelBtn:{label:M.cancel,shouldResetOnCancel:!0,onClick:U}}):null]})},Y=e=>`${e}_form`,_=(e,l)=>({[W]:{qboURL:Q(l.toString(),e.jeLink),jePostingDate:e.postingDate.format(Le.visual.MMMDCommaYYYYformat)}}),Te=i.div`
22
+ `,B=(e,l)=>`${e}.${l}`;function Ie({sectionId:e,jePostingDate:l,qboURL:n,isJELoading:s}){const u=G.getLocalizedStrings(),{dateFormat:j,jeSchedules:{scheduleDetails:{linkJE:o,scheduleDetailsSection:C}}}=u,h=l.format(j.visual.MMMDCommaYYYYformat),g=H();return a.jsxs(ve,{children:[a.jsx(Ee,{windowSize:g,children:C.header}),a.jsxs(ke,{children:[a.jsx(V,{label:{label:o.jePostingDate,width:J.labelWidth.value(g)},style:{width:"auto"},text:{type:"text",name:B(e,"jePostingDate"),placeholder:o.jeLinkURLPlaceholder,defaultValue:h,autoComplete:"new-password"},isDisabled:"disabled"}),a.jsx(Pe,{}),a.jsx(V,{label:{label:o.jeLink,width:J.labelWidth.value(g)},style:{width:"auto"},text:{type:"url",name:B(e,"qboURL"),placeholder:o.jeLinkURLPlaceholder,defaultValue:n?.toString()??"",autoComplete:"new-password",style:{color:je.link},options:{pattern:we}},isDisabled:s?"disabled":void 0})]})]})}const b={containerPaddingLeft:new m(r[3],r[3],r[6]),containerPaddingRight:new m(r[3],r[3],r[8]),navbarContainerPaddingTop:new m(r[2],r[3]),navbarContainerPaddingBottom:new m(r[4],r[5]),emptyScheduleHeight:new m(88,88)},O="linkJETransactionPage",W="linkJETransaction",Z=G.getLocalizedStrings(),{common:{footer:M},dateFormat:Le}=Z,gt=({analytics:e,scheduleTab:l,jeScheduledTransaction:n,localData:s,saveStatus:u,isCOTEnabled:j,transactionDetail:o,firstMonthOfFY:C,qboAppUrl:h,authParams:g,isDisabled:K,controllerUserDetails:L,isVendorBulkUpdateOnTransactionEnabled:X,onUpdateLocalData:ee,onBackClick:T,onCancelClick:te,onSaveClick:ae,onFetchTransactionClick:ne})=>{const p=H(),A=ue(u),y=Q(h.toString(),s.jeLink),D=De(L.controllers),S=Se(L.controllerUserIds),U=()=>{const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:D,controllerUserIds:S}),te()},f=pe({mode:"all",reValidateMode:"onChange",resetOptions:{keepDirtyValues:!0,keepErrors:!0},defaultValues:_(s,h),values:_(s,h)}),oe=()=>{ae()},ie=async d=>{ee(d)};R.useEffect(()=>{const d=f.watch((c,{name:ce})=>{ce!=null&&c!=null&&me(()=>ie(c))});return()=>{d.unsubscribe()}}),R.useEffect(()=>{if(u==="Completed"&&A==="In-Progress"){const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:D,controllerUserIds:S}),T()}},[u,A,T]);const{common:{strings:{empty:N}},jeSchedules:{scheduleDetails:{linkJE:x}}}=Z,le=()=>{if(s.jeLink?.transactionDetailID!=null){const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryQBOFetched({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:D,controllerUserIds:S}),ne(s.jeLink.transactionDetailID)}},se=o!=null&&o.fetchState==="In-Progress",re=o!=null&&o.fetchState==="Error",$=o!=null&&o.fetchState==="Completed",de=o==null||o.fetchState==="Not-Started",z=s.jeLink.type==="recommended",F=he(f.formState.dirtyFields),v=f.formState.isValid,w=$&&F&&v||$&&z&&v,k=F&&v;return a.jsxs(Te,{children:[a.jsxs(Ue,{windowSize:p,children:[a.jsx(Re,{windowSize:p,children:x.linkJE}),a.jsx(Fe,{children:a.jsx(Ve,{onClick:U})})]}),a.jsxs(Ae,{children:[a.jsx(Ne,{windowSize:p,children:a.jsx(ge,{...f,children:a.jsx("form",{id:Y(O),onSubmit:f.handleSubmit(oe),children:a.jsx(Ie,{jePostingDate:s.postingDate,sectionId:W,qboURL:y,isJELoading:o?.fetchState==="In-Progress"})})})}),z?a.jsxs(Be,{windowSize:p,children:[a.jsx(Oe,{})," ",x.zeniRecommendation]}):null,$?a.jsx(ze,{children:a.jsx($e,{isCOTEnabled:j,transactionDetail:o,firstMonthOfFY:C,transactionAttachmentEndpointToDownload:N,transactionAttachmentsEndpointToFetch:N,attachmentUploadEndpoint:"",authParams:g,isDisabled:K??"readonly",isNavBarVisible:!1,containerStyles:{boxShadow:"none",backgroundColor:"inherit"},headerStyles:{boxShadow:"none",backgroundColor:"inherit"},autoCompleteData:{entityAutoCompleteView:{customer:[],vendor:[],fetchState:"Not-Started"}},isVendorBulkUpdateOnTransactionEnabled:X,onDeleteAttachment:()=>{},autoCompleteActions:{onAutoCompleteInputChange:()=>null,onCancelAutoComplete:()=>null,onAutoCompleteEntity:()=>null,onLoadOptions:()=>null},onUploadAttachmentAttachment:()=>null,enableBackClickOnSave:!0,saveLatestSelectedEntity:()=>null,updateVendorBulkRecommendationsFetchStatus:()=>null,setIsVendorUpdateAllChecked:()=>null})}):null,a.jsxs(Je,{children:[re?a.jsx(q,{windowSize:p,children:x.transactionFetchError}):null,de?a.jsx(q,{windowSize:p,children:x.jeDetails}):null]}),se?a.jsx(fe,{fetchState:o?.fetchState}):null]}),w||k?a.jsx(xe,{formId:w?Y(O):void 0,primaryBtn:{onClick:k&&!w?le:void 0,label:k&&!w?x.fetchJE:M.save,isLoading:u==="In-Progress",isDisabled:u==="In-Progress"||o?.fetchState==="In-Progress"||o?.fetchState==="Error"},cancelBtn:{label:M.cancel,shouldResetOnCancel:!0,onClick:U}}):null]})},Y=e=>`${e}_form`,_=(e,l)=>({[W]:{qboURL:Q(l.toString(),e.jeLink),jePostingDate:e.postingDate.format(Le.visual.MMMDCommaYYYYformat)}}),Te=i.div`
23
23
  display: flex;
24
24
  flex: 1 1 auto;
25
25
  width: 100%;