@zeniai/web-cockpit-ui 1.14.72-qa → 1.14.73-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 (234) hide show
  1. package/dist/assets/{ACHDetailsPage-BZFkcCOG-BgLnT2bx.js → ACHDetailsPage-FHBR2PCA-DLva-SPh.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DtNLjoUW-B-tQfVdq.js → AIPerformancePage-CiYLvD6Z-bHSk8bLC.js} +19 -19
  3. package/dist/assets/{AccountInfoPage-D-E_-WpE-BBToHrwY.js → AccountInfoPage-B0uMPZhx-BIQF2gH2.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B8GKrtCm-eOZxiYcE.js → AccountInfoPageContent-CdgOtpop-AHRejHe6.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BD7Nb81U-B8-e-Aqp.js → AccountLockedInfoModal-DnQEp6tD-BW8Fp--s.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D-_ME0pV-ZyQ51UQi.js → AccountReconDetailsDrawerPage-BxjUNX_b-C4CXpIA8.js} +1 -1
  7. package/dist/assets/AccountRow-C6z4Ft3r-BFimoTCg.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-CdBwPVgI-DC42arzv.js → AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js} +15 -15
  9. package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-IB0w7L6k.js → AddAddressForCardDrawer-qa7RqzlX-DAOW06gk.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-nSq-9dQy-BLazFAns.js → AddToWalletPage-DNjsPMFK-r8gZ63eR.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-L0zQxwCf-CzxlP75b.js → AgingReportsPage-Dmgvzu2b-DiSOGn-n.js} +1 -1
  12. package/dist/assets/{AllUserItems-CvwaOEhu-CSstsloE.js → AllUserItems-BBC-qn-o-D2MAzw4F.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-B_78aSEv-CyRGhFJs.js → ApAgingDetailPage-YWdtNxkt-5BxHOM_M.js} +2 -2
  14. package/dist/assets/{AppBasePage-Br0WbQRY-CvtL6jFY.js → AppBasePage-BnA8ceAD-BvanHCQt.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BZODvVvi-CBR3J9Hc.js → AppDrawerContent-DKHWPZQW-CEAxNC9t.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-Dxd7A3hZ-CpKhvWXh.js → ApprovalRulesSettingsPage-D4Vz_gLv-DJSQNR5P.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BezVy1Sm-B5e4MyYb.js → ArAgingChart-CuHk_U2p-D7juYPVe.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BlV3iJeW-C8LgZKgM.js → ArAgingDetailPage-H77B2AWo-DYwzxBIW.js} +1 -1
  19. package/dist/assets/{AttachmentView-DhluaeAV-BaM0a1eW.js → AttachmentView-D1SPuem6-CmH4xHN2.js} +1 -1
  20. package/dist/assets/{BankAccountSection-GDEQdiGL-D7Gh00lc.js → BankAccountSection-ByfDYmEM-WCmaTn1f.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Be424FdZ.js → BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-D5hI4xtm-DMzJVZgn.js → BankConnectionsSettingsPage-L62aMW_s-Ce_PfdvA.js} +8 -8
  23. package/dist/assets/{BillDetailPage-CDAh8Jtl-B38-z0c0.js → BillDetailPage-BBQJpRTI-D0MlJ03G.js} +4 -4
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-BYJ5p8aA.js → BillPayApprovalRuleDetailPage-ByLLupWf-BGMDsIwH.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-CCttQ48s.js → BillPayApprovalRulesPage-D4d-6Jnf-CF6fIJls.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-B2YcxWc9-BQxU6TuM.js → BillPayPromoPage-CPGYF3vl-DVnbNH0W.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-oJvoWpFu-rnx0woyr.js → BillPaySetUpPage-CeciDq-c-NzaXshML.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-BRsKYzT5-Bkhfil_F.js → BillingSettingsPage-DknUlTgB-CcR7ugmH.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B7tORIok-CzktZl5t.js → BillsBulkReviewDrawerPage-BIjlRcX--CZ4DepwQ.js} +1 -1
  30. package/dist/assets/{BoxItem-COIjjFrn-BdkILoXu.js → BoxItem-D4K0YgBP-Bm_px4kT.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Nw_fedst-DWFoTVFR.js → BusinessVerificationPage-CWioKmMC--fpYbOGK.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CmhH95Ff-Cm3hJRYZ.js → CardNumberSubText-C_03r_B--CXrhgc3z.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-BPLjvuA3-oIqL5TUs.js → CashbackDetailPage-BaImXBc2-BqUQeIYw.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-C633jFp0.js → ChargeCardDetailPage-Ba7cRz0p-DYtlHHMF.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-v5hH98Wi-BuxeUD72.js → ChargeCardListPage-BTH_OAht-CJvC6mTi.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BGWV4zJl-Ce2AthWH.js → ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js} +39 -39
  37. package/dist/assets/{ChargeCardPromoPage-CPEaGOL3-BLFFi5jX.js → ChargeCardPromoPage-B3bc_Qcj-DVNboRNz.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-G5Rn0o6y-DYXNrre8.js → ChargeCardSetupPage-3-7oaikG-BYx_BUtm.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BI7ZoCFJ.js → ChargeCardStatementsPage-3HMKClyw-mCs_-TXo.js} +5 -5
  40. package/dist/assets/{ChargeCardUtils-BRgkrCTs-C8zXQGn9.js → ChargeCardUtils-Cx6ntaue-CziTslau.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-BC_4vwtb-COKgYEaj.js → ChaseOverlay-1PyDzocW-DV1roPs3.js} +5 -5
  42. package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-Cbi1sEYQ.js → CheckDepositDrawerPage-DTADpJQC-sqk-xG07.js} +16 -16
  43. package/dist/assets/{CollapsableReportTable-7iAngywY-3SRlHTeX.js → CollapsableReportTable-rEGCWPrN-DiziLVLU.js} +3 -3
  44. package/dist/assets/{CompanyOfficerDetailsSection-CJKyxEnf-mrI2AYJG.js → CompanyOfficerDetailsSection-Dpe50aqM-B1Sor9Us.js} +11 -11
  45. package/dist/assets/{CompanyPassportCard-D3F01eJL-DPoINVrz.js → CompanyPassportCard-l9sgkbw_-BXrIXjOn.js} +3 -3
  46. package/dist/assets/{CompanyPassportPage-BQoEcPJr-2ha-NP_x.js → CompanyPassportPage-DQPGAnFq-DsQ6naIu.js} +9 -9
  47. package/dist/assets/{CompleteProfile-D5e9TQgy-cUhxzOkn.js → CompleteProfile-DJBScNev-5kVXmwEh.js} +1 -1
  48. package/dist/assets/{ConfettiBurst--HIHB7Os-BVRZRbZr.js → ConfettiBurst-DukumtTx-CSzALiwF.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-CMioxX86.js → CreateOrEditVendorPage-C39AEROO-Df_MDMmD.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DXeq4z9l-C5xTsPli.js → CreditCardPaymentDrawerPage-D8VUjeG2-Nczpa7J9.js} +15 -15
  51. package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-B_vJ6o3d.js → CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-nhg_dhDw-DQZDcRCb.js → CurrencySelectField-yIymL1et-BBkhU934.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-DP5AN6ur.js → CustomerOnboardingActivationPage-BKBFtr-o-B3t33ZLt.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-Di0CtCSz.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-CMWBr_hG.js → CustomerOnboardingDetailPageSkeleton-BsnPvucg-BEvywTxp.js} +5 -5
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-_UWfoHYC.js → CustomerOnboardingNoStepsPage-Db1DFgQR-DfT9hNRl.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingPage-zBqp9QN6-wHOjxMhK.js → CustomerOnboardingPage-BoF4bXiW-CKAc0RQX.js} +4 -4
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BbJ4oiCI-CU_hgVPi.js → CustomerOnboardingProductSuitePage-BdGFZtH3-DLLnRFgg.js} +8 -8
  59. package/dist/assets/{Dashboard-D6Ba5oj0-BMy5lCc9.js → Dashboard-hADP7IBB-Bk1vjezx.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DTMbYOWH-DGx7cygN.js → DashboardReportPage-BwTchCvy-O2bBIky3.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-Ca532zPr.js → DashboardSidebarBackgroundAnimation-B-w4cVMW-BWggpu2o.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-BM-W7GCr.js → DepositAccTransactionItem-BMkCcz-U-g-iJ8Z3m.js} +2 -2
  63. package/dist/assets/{DepositAccTransactionListPage-CcO673ZL-DRqh7vYS.js → DepositAccTransactionListPage-D6h0mu0p-Cba8Z-zG.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-D5hbPNCt-DaulrfVc.js → DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DRcasKoB-DLYS6xSC.js → DownloadOverlay-mXe-oklf-DPD6fOSt.js} +1 -1
  66. package/dist/assets/{DrawerPage-BRD6cE6J-DYHldhBX.js → DrawerPage-DSbF_bCc-BOfcYWDU.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-Zzo62if7-Xj5VLqqt.js → EditPeoplePage-DnE5ud-m-STxMbpu_.js} +3 -3
  68. package/dist/assets/EditReimbursementDetailPage-CtHzBFwx-CcMSn1Z9.js +865 -0
  69. package/dist/assets/{EntityDetailPage-CzlzOW8n-AF0nPS5d.js → EntityDetailPage-CSR_wxIn-C3ytfDma.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-BRt1kPDf-BQpDHoFd.js → EntitySummarySection-BP9sqkp_-C8j67E3x.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-CGGvu9kc.js → ExpenseAutomationOverviewPage-C-ZrFIVW-LPRP5OZt.js} +7 -7
  72. package/dist/assets/ExpenseAutomationPage-BEhjUkgs-DU0Mp3Bk.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-DdQiFzDu-ZxolIAW1.js → ExpressPayPage-C9rqylRE-fd6R9yCg.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-CQN2xThT-CtWhCMTj.js → FeaturePreviewPage-BcRRbP7e-DlhiW3MZ.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-DdwEVWhG-D5CWxbHL.js → FollowStepsSection-B3Kyt5j4-CgmrU6eD.js} +18 -18
  76. package/dist/assets/{GlobalReviewListPage-DHn2Uk8R-B02Df9ic.js → GlobalReviewListPage-Bz-YyIK8-B-UTCvpv.js} +5 -5
  77. package/dist/assets/{HelpButton-BNMy-6ce-Dj_O42xW.js → HelpButton-38HaKgFL-BugYIsvp.js} +1 -1
  78. package/dist/assets/{InformationCardStack-Cw7c9Pnd-Z9rJV-HY.js → InformationCardStack-BY26HFGi-BLGIbInA.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-CaMZiCnn-DH8dmM6J.js → InsightsCardStack-BI7iTuQ_-DQl2fOce.js} +10 -10
  80. package/dist/assets/{InsightsSection-JIKb9lz3-BHiqZJbQ.js → InsightsSection-AQ5yTmGG-DS0VgX7W.js} +3 -3
  81. package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CMzEW2al.js → IntegrationsSettingsPage-BEAFHjYf-d2P0RMG5.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-DaLUKDNV.js → InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js} +6 -6
  83. package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-Du-xTdOF.js → InternationalWireVerificationPage-BdUXxMgU-DhF9zfHu.js} +6 -6
  84. package/dist/assets/{InviteFormPage-CrtH0cSG-DocQjxv0.js → InviteFormPage-CY-8DzRS-Bfynw6ME.js} +1 -1
  85. package/dist/assets/{InvitePageListView-DUoopPip-D2WxsqtH.js → InvitePageListView-DXjKBR4k-Np2jy73K.js} +14 -14
  86. package/dist/assets/{InvitePeoplePage-C3ecL8XJ-B6CmBuLR.js → InvitePeoplePage-CIafIgkR-BdmOchmq.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-DoR834b4-CUq8fAkS.js → InvoiceUploadSection-cXNOY5jR-DGuQgS61.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-D6DCohbK-D8VGttsh.js → IssueChargeCardPage-DN1zD_YI-i_-kvzIl.js} +10 -10
  89. package/dist/assets/{LabeledAddressValue-C3R0DSjj-Bir4MON_.js → LabeledAddressValue-Bk3vXfZU-CU4YMzA1.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js → LabeledAddressValueField-6MpVMde--DXTq8JS8.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-II-cAJkn.js → LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-C3MxM3hQ.js → LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-ED03S2kQ-Dxa7UQxr.js → LabeledDocumentField-CAWaftIF-CSQ4X3Cr.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DtaD0WN_.js → LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.js} +1 -1
  95. package/dist/assets/{LabeledText-BESSkt5Z-DXlW_VY-.js → LabeledText-B3JYr4tU-laTDcIhJ.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-Dq3Y2KPE.js → LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-5w6248s9.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-BoDRzyRs.js → LabeledZeniRolesDropDownField-DcUdbKa4-fYq87dcd.js} +13 -13
  98. package/dist/assets/{LinkJETransactionPage-_ROjxBMO-iAkW-laA.js → LinkJETransactionPage-B1XJOlhU-DdWugwxQ.js} +2 -2
  99. package/dist/assets/{LockCardPage-DYfgK11k-3kQoNozm.js → LockCardPage-B-EvOmPO-B73f-ypE.js} +10 -10
  100. package/dist/assets/{LowBalancePopup-CZDcHxyW-DuEa-iJG.js → LowBalancePopup-BoFHsW5A-B3QtlbXZ.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--Dwvc772T.js → MagicLinkACHDetailsPage-D5-czDfb-D9jHfcHK.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-DD7d2isR.js → MagicLinkDomesticWireDetailsPage-DxtWixFB-79ayjypJ.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-B4AeaXKS.js → MagicLinkInternationalWireDetailsPage-kmj9pdzN-DnNURYN2.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-0Oz4r3Up.js → MagicLinkSuccessPage-BPzk03R8-SXgLVDgR.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js → MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-9RwlQxVG-BFE8Zj6F.js → MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-CbDuBV39.js → MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js} +1 -1
  108. package/dist/assets/{Menu-B6iTf2H7-CaN3eNC5.js → Menu-CV1BBSGW-DKOqAYYS.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-IPPiH6jv-BZaCFusP.js → MyBankConnectionsSettingsPage-CMyrZ4nS-BheEjXSF.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-BTGb1yIE-B60FFt6i.js → MyPendingActivationChargeCardListPage-DuOoKlPP-thKNb-ry.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-BRK5nWg2-BMqEc-a-.js → MyProfileSettingsPage-CA-5gU5k-BFEIvdNu.js} +5 -5
  112. package/dist/assets/{NavBarWithPicker-CKh_HMfV-Bk70qUr9.js → NavBarWithPicker-DuazRsm7-BXAVo-zX.js} +1 -1
  113. package/dist/assets/{NavigationArrow-XZmJpDrE-BIKmxNt5.js → NavigationArrow-DnZuPnXh-BOLYjEri.js} +1 -1
  114. package/dist/assets/{NavigationDots-BxPgEW_p-BH_dRdsk.js → NavigationDots-DarWlthl-CEtLiSj-.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-C0l22Bkl.js → NewGlobalMerchantPage-C5zI88lM-DBDRlSHQ.js} +2 -2
  116. package/dist/assets/{NoDataChart-5E72SElf-CivTfVpi.js → NoDataChart-Dwrv5FXT-BktYGhJl.js} +1 -1
  117. package/dist/assets/{NoDataTable-BwHbkm3l-BFQFSxPN.js → NoDataTable-BT9VQUID-B1zJzLW9.js} +2 -2
  118. package/dist/assets/{NotFoundPage-6udaksBZ-D3E8rdhi.js → NotFoundPage-BpVYjIy9-CAwSGm4b.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-DkYmxMgg-D8pPsHqH.js → NotificationSettingsPage-Br1VS7sj-D72VzMEy.js} +22 -22
  120. package/dist/assets/{NotificationsListConfig-FGxLgO1o-B8OXacze.js → NotificationsListConfig-COCJ7xUp-B665e_3O.js} +1 -1
  121. package/dist/assets/{NotificationsPage-C7lSAnUb-Dr_7ygVm.js → NotificationsPage-CtIcIo4T-DuWbZv_Q.js} +24 -24
  122. package/dist/assets/{OpExByVendorPage-CM0RluUk-_37yq8j1.js → OpExByVendorPage-CTdChrGD-CvW5Vepn.js} +5 -5
  123. package/dist/assets/{OverlayContainerPage-BKHs_4eI-BzvRxHIb.js → OverlayContainerPage-CU1AAMcq-ai6w2Y-V.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-W4jlNjml-GYerKXw7.js → PandLWithForecastPage-DVhAvUAV-CoqLEkYS.js} +2 -2
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-C3WHDKOj.js → PaymentAccountSetupBillingAddressSection-Cqk9_T2U-B2k-ZLJe.js} +1 -1
  126. package/dist/assets/{PeoplePage-CB3T3u_F-DiglFISH.js → PeoplePage-BR4qd-jm-CBOJNYwE.js} +8 -8
  127. package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-k-ZMlZhC.js → PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js} +1 -1
  128. package/dist/assets/{PortfolioDetails-D4yT8r35-D0ar_g4P.js → PortfolioDetails-6ElQWU58-ByHc7XYH.js} +4 -4
  129. package/dist/assets/{ProductsCarousel-CR7_rk0K-DBx3LGPh.js → ProductsCarousel-CijsxgpU-C19z6U57.js} +4 -4
  130. package/dist/assets/{PromoBaseCards-BAPolzxE-BXtgaLrj.js → PromoBaseCards-BWsv2pTB-B6b592gJ.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-D3eazhj7-DYLpkxDj.js → QBOConnectionDialog-ChKHWoK7-CSeEHm2_.js} +2 -2
  132. package/dist/assets/{QBOSetupSection-Cjjhm_Ee-DBhrwkGC.js → QBOSetupSection-C4gt0qc8-DTKMvJ4_.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-eidNY097-BCByIFaN.js → ReimbursementApprovalRuleDetailPage-BwgWdSTd-NVamJEor.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-c5aCCOnC.js → ReimbursementApprovalRulesPage-C2asBtuf-DT1aAQsK.js} +1 -1
  135. package/dist/assets/ReimbursementDetailPage-DS1ewUKC-CVEFgQmR.js +314 -0
  136. package/dist/assets/{ReimbursementPromoPage-PshodHUZ-B43Em7U3.js → ReimbursementPromoPage-5OaQjA8F-DErLTtUx.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-6P4FT-UC-BJa0K7Xr.js → ReimbursementSetUpPage-Bl8jzyRg-3jDcWgfT.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cas6GzVp-DVcLPzki.js → ReimbursementsBulkReviewDrawerPage-DIesC2GA-CmjN--dc.js} +1 -1
  139. package/dist/assets/{ReloadCard-Dpoxd9nE-CXRu-hav.js → ReloadCard-0q5pQ13T-CKzHIqK2.js} +3 -3
  140. package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-BjESI86S.js → ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js} +5 -5
  141. package/dist/assets/{ReportsPage-C7zirS74-Cfwy01bz.js → ReportsPage-GTIPR29D-BtSUMj6k.js} +1 -1
  142. package/dist/assets/{RevenueChart-CXMBT3cr-H1qgR87b.js → RevenueChart-C099OBIz-BCjETeYD.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-ClsyL5-w-Dm8fiuBk.js → ReviewDetailsPage-Dj29qJWr-znzq99Zm.js} +11 -11
  144. package/dist/assets/{ReviewOverlay-C6Kx7Hfm-PTA7Sxfm.js → ReviewOverlay-OPfHsiEH-DYnwxQBa.js} +3 -3
  145. package/dist/assets/{RoleWithToolTip-BqI6M0x_-CjRr5WNK.js → RoleWithToolTip-CnJMJF5X-DPQwf2SV.js} +2 -2
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-zFyJPVpN-DR77A8Vi.js → ScheduleDetailsFixedAssetsPage-BojehSaf-CqIP5z2b.js} +8 -8
  147. package/dist/assets/{ScheduleDetailsPage-BftjSvA7-Bu1ekUfV.js → ScheduleDetailsPage-aZbK93Nq-BFB854u3.js} +3 -3
  148. package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BuEMykDk.js → ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js} +21 -21
  149. package/dist/assets/{ScreenRoutes-CfLauL0U.js → ScreenRoutes-m-9CX7nW.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-Bnbi8X23-C17_K52x.js → SetUpAccountSection-B_VtQMHv-v5HWkW-2.js} +7 -7
  151. package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-vK_tZkJp.js → SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js} +4 -4
  152. package/dist/assets/{SignIn-BlISBvt5-lALsslOV.js → SignIn-DlL4Ve5C-CS2k0j8x.js} +8 -8
  153. package/dist/assets/SignInScreen-82F821nF.js +1 -0
  154. package/dist/assets/{SpendManagementListViewPage-ChNp8dgm-BcuBIXnt.js → SpendManagementListViewPage-hcbJnpe0-Dx5Mkywb.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-D-bOr2-6-IrMdTJ81.js → SpendManagementPerTabPage-CZMtZLLG-BwL9QJKu.js} +25 -25
  156. package/dist/assets/{SpendManagementSection-kucZgC-H-BqDZp6la.js → SpendManagementSection-v3VQ4WLv-BgJcZL_k.js} +7 -7
  157. package/dist/assets/{SpendMgmtSetupAccountSection-de7hEmtE-Dqky-jvG.js → SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js} +4 -4
  158. package/dist/assets/{StatementItem-BVIVLdDn-Z5Lg6CTz.js → StatementItem-DHN42swg-QQn_8xP5.js} +2 -2
  159. package/dist/assets/{StatementsPage-KnLUSJbm-BuZcsgE6.js → StatementsPage-BuWUMrMJ-ClESyfR5.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-aAizq1mr-DMDnuQ9N.js → StatusSwitcher-BQIZqQby-CwGTf6Yt.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hOhdQG.js → SubTabSwitcher-BwULcWpV-KD7oZVm0.js} +1 -1
  162. package/dist/assets/{SummaryCard-Dv0dWKBw-nvmMyFzf.js → SummaryCard-sp4k0Xek-DgWj-oz4.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-CPLyyK1Y-B19ne-R4.js → TaskManagementPage-N2Egdy4r-qGkYEZ7q.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-DfO_JEAJ.js → TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-BP-PxO5g-ICJqPhse.js → TimeframeSwitcher-CqP9hXqB-r5frPdgi.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-DT6_nKNc.js → TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js} +1 -1
  167. package/dist/assets/{TopExCard-Bam-Q4MV-DQjRYkgY.js → TopExCard-CLw0PDAU-BbYnCf3a.js} +5 -5
  168. package/dist/assets/{TopExDetailPage-P0Twt5zZ-eAB7xN9I.js → TopExDetailPage-GLquKOoy-kMqzF42L.js} +1 -1
  169. package/dist/assets/{TransactionDetailPage-D1Z1f-DD-B17t_ZG8.js → TransactionDetailPage-cTLfJiHb-1yZP6Zin.js} +1 -1
  170. package/dist/assets/{TransactionList-BzJEbOV9-BBSoiur3.js → TransactionList-SkjGKFn_-BwaaUL7x.js} +6 -6
  171. package/dist/assets/{TransactionListBig-u4SJBZTE-Cy4VRcVB.js → TransactionListBig-B4CiUxir-C15l10qy.js} +5 -5
  172. package/dist/assets/{TransactionListPage-D4GJ6i3l-DALdoomA.js → TransactionListPage-eiEKrfCB-CXZ0iEN3.js} +2 -2
  173. package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-BJ-Cayzm.js → TransactionVendorDetailPage-CySokm3L-BpHJwA9m.js} +3 -3
  174. package/dist/assets/{TransferDrawerPage-GD2I8ptj-DUje1E-7.js → TransferDrawerPage-BSv0D4Zs-BT9NFCI4.js} +12 -12
  175. package/dist/assets/{TreasuryOverviewPage-DySunaqy-Nz7IbNC7.js → TreasuryOverviewPage-C5hIMuk--DxAuBNvx.js} +15 -15
  176. package/dist/assets/{TreasuryPromoPage-DW1f8_q1-C7_Z0mWE.js → TreasuryPromoPage-DSJHOwhj-BeQhN-a8.js} +1 -1
  177. package/dist/assets/{TreasurySetupPage-53k6ARHC-BnG6gfLx.js → TreasurySetupPage-B_EmY_UY-DAaCNRGd.js} +4 -4
  178. package/dist/assets/{TreasuryStatementsPage-pIshKNaR-aDA9O2fx.js → TreasuryStatementsPage-BrZVJwAL-Bs1LrL-1.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CRAagKdD.js → TreasuryTaxLetterPage-DsmLrBId-CRVnttNh.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-Dzq-FxSM-xSwgnlQS.js → TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.js} +13 -13
  181. package/dist/assets/{TrendChart-B_5D-Zud-CJGzPrRj.js → TrendChart-CWR5JV7S-Bu3AQa_8.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-mI_El5D1-BVyR_3Fo.js → TrendWithTransactions-D9x71aZs-CM8kaEfz.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-n_vWC-so.js → UncategorizedAccountsMappingPage-Tx1NEXyX-DoWK8o5r.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-XOWqGHla-BZ95dO5C.js → UnitIntegrationPage-aTpJwSQj-BYrPkyiL.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-DhXRLBEg-BdwkpQvO.js → UploadAdditionalDocumentOverlay-BVMdCZ9e-BITtYlPW.js} +1 -1
  186. package/dist/assets/Vendor2FAPopup-BtVySDI--nsMiWnZu.js +1 -0
  187. package/dist/assets/{VendorACHDetailsPage-CswCvAFH-Dy_DyxN4.js → VendorACHDetailsPage-Cx9VUYTN-CUP3Cq5s.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-CEX7xMIN-BmFNmhWb.js → VendorDetailPage-BTBlddyH-Bc_YJfHo.js} +6 -6
  189. package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-Bu1va64U.js → VendorDomesticWireDetailsPage-DIQg-f5b-Bwf6L3re.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-l7qrKyA8.js → VendorFiling1099EditablePage-CZzpO5dU-BLT7WxiF.js} +8 -8
  191. package/dist/assets/{VendorFirstReviewPage-D9ogNmAK-C3g7z5qc.js → VendorFirstReviewPage-_Bf2O8Hk-B9tTYmRJ.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-Ct689KuY-DCwtWCEl.js → VendorInternationalWireDetailsPage-DmM691ao-Dzdr5mG2.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-BM0C0ziQ.js → VendorInternationalWireSwiftDetailsPage-CmfDU583-Dk7aONaM.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C3emmS_D.js → VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js} +4 -4
  195. package/dist/assets/{VerifyDevice-C27gEWkZ-Bd6cyY--.js → VerifyDevice-pndtId1R-C8OsQHlo.js} +3 -3
  196. package/dist/assets/{VideoPlayer-ByyqUuhG-BSXeTxMk.js → VideoPlayer-Cv2VluI6-D2yBmBgw.js} +1 -1
  197. package/dist/assets/{VideoPopup-DJrQQTPq-B81ilqru.js → VideoPopup-DwltINTO-0GPyihNZ.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-Bsz-Tz3J.js → WarningsDrawerPage-I6fXTo8V-B0kNeHBS.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-egmysAfI-B5QFTFx1.js → ZeniAccountDetailPage-BhqYqyk--DeI4__gE.js} +5 -5
  200. package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-D_UNRleH.js → ZeniAccountListViewPage-M7S_ZBj4-94TU34gP.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-HNIht0FM-CJCYTYns.js → ZeniAccountNavBarPieces-Crjx7iNX-DK8JxCJS.js} +2 -2
  202. package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-BEKkuPuQ.js → ZeniAccountPromoPage-rK7P_Dpk-DmoLuwn8.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-C2CFXEp_.js → ZeniAccountSetupPage-B8yrjDVW-gPUnEzAZ.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-B7Q6IUGC-CXMr85Qq.js → ZeniCopyright-BDsnkVlH-C00Fssys.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-Dpr9CnoV.js → ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js} +1 -1
  206. package/dist/assets/analyticsHelper-CS2u9ax9.js +1 -0
  207. package/dist/assets/{analyticsHelper-or1KkBWk-fKfUVxR4.js → analyticsHelper-D8CGsPLU-DJI9oEaD.js} +1 -1
  208. package/dist/assets/{chartTypes-DCvOVjlS-Byyz5YpX.js → chartTypes-DLnePN0T-B_54UqyM.js} +1 -1
  209. package/dist/assets/{commonDimensions-C32v1F7H-73JTdKL8.js → commonDimensions-CWOH4KIa-zIW9i9kk.js} +1 -1
  210. package/dist/assets/{detailCommon-CRAGrqoO-DD6StmxB.js → detailCommon-COLWOJB--3sJPi-qA.js} +1 -1
  211. package/dist/assets/{downloadPdf-D7p3yKmg-DnkIBRMw.js → downloadPdf-DmVZhHLH-D1xNlFUJ.js} +1 -1
  212. package/dist/assets/{index-TYkG9rxW.js → index-MAXVX6UR.js} +1725 -1741
  213. package/dist/assets/{lodash-B66NTFTY.js → lodash-D52QloPU.js} +6 -6
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-DozMx8Qu.js → mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-CWK7pK5S.js → mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-C_5ehzQk.js → mapSpacerToTreeNode-toSXbVwB-B0PNlKW1.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-C3yLK1bp.js → mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-SXM8J_jw.js → mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-BrwdtkMi.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-B3yVGPrV-CxcOLkAO.js → toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js} +1 -1
  221. package/dist/assets/{toChartData-DEW0iT7T-DY_WveEO.js → toChartData-BIN4xqGz-BcU_F8Ix.js} +1 -1
  222. package/dist/assets/{treasuryColorHelper-13LJ_xhk-DZAJRVzv.js → treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js} +1 -1
  223. package/dist/assets/{uploadAttachment-DVy2pZeJ-DRTnRPP6.js → uploadAttachment-DwI0nG8D-VCODDzfq.js} +7 -7
  224. package/dist/assets/{uploadReceipts-Dp1dvCjf-DlPrtBK4.js → uploadReceipts-9DTOr0BG-pwNYcimh.js} +1 -1
  225. package/dist/index.html +1 -1
  226. package/package.json +6 -9
  227. package/dist/assets/AccountRow-Be3LIHO--BhldzD55.js +0 -298
  228. package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-DM3MDxim.js +0 -1
  229. package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-Dxcj4pSI.js +0 -865
  230. package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-CBoXf2Y_.js +0 -1650
  231. package/dist/assets/ReimbursementDetailPage-AvqEBxbz-BX8VzCE_.js +0 -314
  232. package/dist/assets/SignInScreen-BSpw7NT9.js +0 -1
  233. package/dist/assets/Vendor2FAPopup-BfqIHZBb-ClbfqMql.js +0 -1
  234. package/dist/assets/analyticsHelper-CE-cGidw.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as b,j as r,aM as s,d9 as u,y as l,u as t,o as a,am as m,c as x}from"./index-TYkG9rxW.js";import{n}from"./vendor-Bs1fkIUX.js";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])},f={infoLabel:new x("extraSmallRegular","smallRegular")};function z({label:e,value:g,additionalInfoLabel:d,style:h,infoLabelStyle:p}){const o=b();return r.jsxs(c,{size:o,style:h,"data-testid":s("labeled-text",e.label),children:[r.jsx(u,{label:e.label,style:{marginLeft:i.labelMarginLeft.value(o),marginRight:i.labelMarginRight.value(o),marginTop:i.labelMarginTop.value(o),width:e.width??"auto"}}),r.jsxs($,{labelWidth:e.width,children:[r.jsx(w,{"data-testid":s("labeled-text-input",e.label),children:g}),d!=null?r.jsx(y,{size:o,style:p,children:d}):null]})]})}const c=n.div`
1
+ import{q as b,j as r,aM as s,d9 as u,y as l,u as t,o as a,am as m,b as x}from"./index-MAXVX6UR.js";import{n}from"./vendor-Bs1fkIUX.js";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])},f={infoLabel:new x("extraSmallRegular","smallRegular")};function z({label:e,value:g,additionalInfoLabel:d,style:h,infoLabelStyle:p}){const o=b();return r.jsxs(c,{size:o,style:h,"data-testid":s("labeled-text",e.label),children:[r.jsx(u,{label:e.label,style:{marginLeft:i.labelMarginLeft.value(o),marginRight:i.labelMarginRight.value(o),marginTop:i.labelMarginTop.value(o),width:e.width??"auto"}}),r.jsxs($,{labelWidth:e.width,children:[r.jsx(w,{"data-testid":s("labeled-text-input",e.label),children:g}),d!=null?r.jsx(y,{size:o,style:p,children:d}):null]})]})}const c=n.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{q as U,j as l,aM as Z,d9 as me,o as s,y as C,u as m,d3 as K,dc as ge,db as xe,d as be,ga as fe,O as E,c as $e,bN as H,gb as Q,aq as _,gc as q,bL as B,h as F,C as G,am as X,gd as we,an as ye,ai as ve}from"./index-TYkG9rxW.js";import{n as r}from"./vendor-Bs1fkIUX.js";import{T as je}from"./RoleWithToolTip-BqI6M0x_-CjRr5WNK.js";const ee={selectContainerMarginHorizontal:new C(m[2],m[3]),marginTop:new C(m[1],m[0])},Se=r(ye)`
1
+ import{q as U,j as l,aM as Z,d9 as me,o as s,y as C,u as m,d3 as K,dc as ge,db as xe,c as be,ga as fe,O as E,b as $e,bN as H,gb as Q,aq as _,gc as q,bL as B,h as F,C as G,am as X,gd as we,an as ye,ai as ve}from"./index-MAXVX6UR.js";import{n as r}from"./vendor-Bs1fkIUX.js";import{T as je}from"./RoleWithToolTip-CnJMJF5X-DPQwf2SV.js";const ee={selectContainerMarginHorizontal:new C(m[2],m[3]),marginTop:new C(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{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d as Y,C as V,bM as ie,l as I,O as te,g7 as se,ge as ae,aJ as ne,b1 as de,h as D,bN as B,b9 as ce,bL as pe,cP as ue,gf as F,cw as Q,n as he,ai as X,am as ge,an as me,f$ as be,fN as fe,bA as xe,g0 as ye,bm as we,gg as ve}from"./index-TYkG9rxW.js";import{n as d,i as $e,b as k}from"./vendor-Bs1fkIUX.js";import{T as Re}from"./RoleWithToolTip-BqI6M0x_-CjRr5WNK.js";const H={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},je=d.div`
1
+ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,c as Q,C as V,bM as ie,l as I,O as te,g7 as se,ge as ae,aJ as ne,b1 as de,h as D,bN as B,b9 as ce,bL as pe,cP as ue,gf as F,cw as X,n as he,ai as Y,am as ge,an as me,f$ as be,fN as fe,bA as xe,g0 as ye,bm as we,gg as ve}from"./index-MAXVX6UR.js";import{n as d,i as $e,b as k}from"./vendor-Bs1fkIUX.js";import{T as Re}from"./RoleWithToolTip-CnJMJF5X-DPQwf2SV.js";const H={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},je=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)};
@@ -22,7 +22,7 @@ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d a
22
22
  }
23
23
  `,Ce=d.div`
24
24
  border-left: 1px solid ${e=>e.theme.colors.grey1};
25
- `,W=({allBtnOptions:e,isDisabled:s,selectedOption:i,buttonClickHandler:c})=>{const p=M(),a=Y(),f=u=>i?.value===u.value?"primary":"secondary",$=u=>i?.value===u.value?{backgroundColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.primary},textColor:{default:a.colors.grey5,hover:a.colors.grey5,disabled:a.colors.hero},borderColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.grey3}}:{backgroundColor:{default:"transparent",hover:a.colors.grey4,disabled:"transparent"},textColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.hero},borderColor:{default:a.colors.grey1,hover:a.colors.primary,disabled:a.colors.grey3}},b=e.length,y=s==="disabled"||s==="readonly";return l.jsx(je,{windowSize:p,isDisabled:y,children:e.map((u,x)=>l.jsxs(Se,{"data-testid":A("grouped-button-container",u.value),className:"grpBtn",isDisabled:y||!u.enabled,children:[l.jsx(he,{label:u.label,size:"small",variant:f(u),"data-testid":A("grouped-button",u.value),onClick:()=>c(u.value),buttonColors:$(u),disabled:y||!u.enabled,style:{borderTopRightRadius:x===b-1?o.sp1:o.sp0,borderBottomRightRadius:x===b-1?o.sp1:o.sp0,borderTopLeftRadius:x===0?o.sp1:o.sp0,borderBottomLeftRadius:x===0?o.sp1:o.sp0,borderRight:x===b-1?"":"none",borderLeft:x===0?"":"none",width:"65px",display:"flex",alignItems:"center",justifyContent:"center"}}),x!==b-1?l.jsx(Ce,{className:"verticalLine"}):null]},u.value))})},E={allRolesMarginLeftRight:new m(n[3],n[4])},ke=d.div`
25
+ `,W=({allBtnOptions:e,isDisabled:s,selectedOption:i,buttonClickHandler:c})=>{const p=M(),a=Q(),f=u=>i?.value===u.value?"primary":"secondary",$=u=>i?.value===u.value?{backgroundColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.primary},textColor:{default:a.colors.grey5,hover:a.colors.grey5,disabled:a.colors.hero},borderColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.grey3}}:{backgroundColor:{default:"transparent",hover:a.colors.grey4,disabled:"transparent"},textColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.hero},borderColor:{default:a.colors.grey1,hover:a.colors.primary,disabled:a.colors.grey3}},b=e.length,y=s==="disabled"||s==="readonly";return l.jsx(je,{windowSize:p,isDisabled:y,children:e.map((u,x)=>l.jsxs(Se,{"data-testid":A("grouped-button-container",u.value),className:"grpBtn",isDisabled:y||!u.enabled,children:[l.jsx(he,{label:u.label,size:"small",variant:f(u),"data-testid":A("grouped-button",u.value),onClick:()=>c(u.value),buttonColors:$(u),disabled:y||!u.enabled,style:{borderTopRightRadius:x===b-1?o.sp1:o.sp0,borderBottomRightRadius:x===b-1?o.sp1:o.sp0,borderTopLeftRadius:x===0?o.sp1:o.sp0,borderBottomLeftRadius:x===0?o.sp1:o.sp0,borderRight:x===b-1?"":"none",borderLeft:x===0?"":"none",width:"65px",display:"flex",alignItems:"center",justifyContent:"center"}}),x!==b-1?l.jsx(Ce,{className:"verticalLine"}):null]},u.value))})},E={allRolesMarginLeftRight:new m(n[3],n[4])},ke=d.div`
26
26
  display: flex;
27
27
  flex-direction: column;
28
28
  color: ${e=>e.theme.colors.hero};
@@ -35,7 +35,7 @@ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d a
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  width: 100%;
38
- `,Pe=d.div`
38
+ `,Oe=d.div`
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  padding-left: ${o.sp4};
@@ -46,15 +46,15 @@ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d a
46
46
  transition:
47
47
  visibility 250ms ease-in-out,
48
48
  max-height 250ms ease-in-out;
49
- `,ze=d.div`
49
+ `,Pe=d.div`
50
50
  display: flex;
51
51
  flex-direction: row;
52
52
  margin-bottom: ${o.sp3};
53
53
  justify-content: space-between;
54
- `,Oe=d(Q)`
54
+ `,ze=d(X)`
55
55
  display: flex;
56
56
  color: ${e=>e.theme.colors.primary};
57
- `,Z=d(X)`
57
+ `,Z=d(Y)`
58
58
  display: flex;
59
59
  color: ${e=>e.theme.colors.hero};
60
60
  `,Te=d.div`
@@ -87,9 +87,9 @@ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d a
87
87
  `,Be=d.div`
88
88
  display: flex;
89
89
  flex-direction: column;
90
- `,Me=d(Q)`
90
+ `,Me=d(X)`
91
91
  display: flex;
92
- `,Le=d(X)`
92
+ `,Le=d(Y)`
93
93
  display: flex;
94
94
  margin-bottom: ${o.sp1};
95
95
  `,Ve=d(me)`
@@ -105,11 +105,11 @@ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d a
105
105
  display: flex;
106
106
  flex-direction: column;
107
107
  padding-left: ${o.sp3};
108
- `,Ue=d(ve)`
108
+ `,_e=d(ve)`
109
109
  width: ${o.sp4};
110
110
  height: ${o.sp4};
111
111
  color: ${e=>e.theme.colors.hero};
112
- `,_e=d(we)`
112
+ `,Ue=d(we)`
113
113
  width: ${o.sp4};
114
114
  height: ${o.sp4};
115
115
  color: ${e=>e.theme.colors.hero};
@@ -135,7 +135,7 @@ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d a
135
135
  margin-right: ${e=>E.allRolesMarginLeftRight.valuePx(e.windowSize)};
136
136
  margin-left: ${e=>E.allRolesMarginLeftRight.valuePx(e.windowSize)};
137
137
  color: ${e=>e.theme.mode==="light"?D.brandColorOnyx:D.brandColorPearl};
138
- `,Je=e=>{switch(e){case"bookkeeping":return l.jsx(Ue,{});case"zeni_bill_pay":return l.jsx(_e,{});case"zeni_reimbursements":return l.jsx(Fe,{});case"zeni_checking":return l.jsx(He,{});case"zeni_cards":return l.jsx(Ae,{});case"zeni_treasury":return l.jsx(We,{});default:return null}},Ge=e=>l.jsxs(Be,{children:[l.jsx(Me,{className:"roleTitle",children:F[e].label}),l.jsx(Le,{className:"roleSubTitle",children:F[e].subTitle}),l.jsx(Ve,{className:"roleSuitableFor",children:F[e].roleSuitableFor})]}),qe=({name:e,isDisabled:s,selectedValue:i,onSelectionChanged:c})=>{const{formState:{errors:p}}=N(),a=K(p,`${e}.userRole.selectedRole`),f=M(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=k.useCallback(h=>{const t=se([h]),C=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(z=>z.productType===C),L=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:L?void 0:v[R].options.filter(z=>z.value===h)[0]});const U={userRole:{selectedRole:t,allRootRole:i.userRole.allRootRole},productsByUserRole:{...i.productsByUserRole,[t]:[...v]}};c(U)},[c,i]),y=i.userRole.selectedRole,u=k.useMemo(()=>y!=null?(i.productsByUserRole[y]??[]).map(h=>I.toUserRoleTypeStrict(h.selectedOption?.value)).filter(h=>h!=null):[],[y,i.productsByUserRole]);k.useEffect(()=>{y==="employee"&&u.length===0&&$>-1&&b("reimbursements_user")},[y,u,$,b]);const x=i.userRole.allRootRole,P=h=>h==="employee"&&i.userRole.selectedRole==="employee";return s==="readonly"?l.jsx(Ze,{windowSize:f,children:l.jsx(Re,{roles:u})}):l.jsx(De,{children:x.map(h=>l.jsxs(ke,{windowSize:f,children:[l.jsx(Te,{isError:a,children:l.jsx(de,{isDisabled:s,label:{label:Ge(h)},style:{paddingBottom:o.sp4,alignItems:"flex-start"},radioField:{name:`${e}.userRole.selectedRole`,id:`${e}.${h}`,value:h,radioSize:"small",checked:i.userRole.selectedRole===h,style:{marginTop:o.sp1}}})}),l.jsx(Pe,{windowSize:f,isCollapsed:P(h),roleCount:i.productsByUserRole[h].length,children:i.productsByUserRole[h].map(t=>l.jsxs(ze,{children:[l.jsxs(Ie,{children:[l.jsx(Ee,{children:t.productType&&Je(t.productType)}),l.jsxs(Ne,{children:[l.jsx(Oe,{children:t.label}),f==="small"?l.jsx(W,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b}):null,l.jsx(Z,{children:t.subTitleUser}),l.jsx(Z,{children:t.subTitleAdmin})]})]}),f!=="small"?l.jsx(W,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b,isDisabled:s}):null]},t.productType))})]},h))})},Ke=({name:e,defaultValue:s,isDisabled:i,registerOptions:c})=>{const{control:p}=N();return l.jsx(q,{name:e,control:p,defaultValue:s,rules:c,render:({field:{onChange:a,value:f}})=>{const $=f;return l.jsx(qe,{onSelectionChanged:b=>{a(b)},selectedValue:$,name:e,isDisabled:i})}})},S={width:new m(343,580,726),height:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),labelPaddingLeft:new m(n[3],n[4]),labelPaddingRight:new m(n[3],n[4]),labelPaddingTop:new m(n[2],n[2]),labelPaddingBottom:new m(n[2],n[3])};function bo({isDisabled:e,label:s,rolesDropDownField:i,style:c}){const p=M();return l.jsxs(Ye,{size:p,style:c,isDisabled:e!=null,children:[l.jsx(G,{isDisabled:e,label:s.label,htmlFor:i.name,style:{paddingLeft:S.labelPaddingLeft.value(p),paddingRight:S.labelPaddingRight.value(p),paddingTop:S.labelPaddingTop.value(p),paddingBottom:S.labelPaddingBottom.value(p)}}),l.jsx(Ke,{...i,isDisabled:e})]})}const Ye=d.div`
138
+ `,Je=e=>{switch(e){case"bookkeeping":return l.jsx(_e,{});case"zeni_bill_pay":return l.jsx(Ue,{});case"zeni_reimbursements":return l.jsx(Fe,{});case"zeni_checking":return l.jsx(He,{});case"zeni_cards":return l.jsx(Ae,{});case"zeni_treasury":return l.jsx(We,{});default:return null}},Ge=e=>l.jsxs(Be,{children:[l.jsx(Me,{className:"roleTitle",children:F[e].label}),l.jsx(Le,{className:"roleSubTitle",children:F[e].subTitle}),l.jsx(Ve,{className:"roleSuitableFor",children:F[e].roleSuitableFor})]}),qe=({name:e,isDisabled:s,selectedValue:i,onSelectionChanged:c})=>{const{formState:{errors:p}}=N(),a=K(p,`${e}.userRole.selectedRole`),f=M(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=k.useCallback(h=>{const t=se([h]),C=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(P=>P.productType===C),L=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:L?void 0:v[R].options.filter(P=>P.value===h)[0]});const _={userRole:{selectedRole:t,allRootRole:i.userRole.allRootRole},productsByUserRole:{...i.productsByUserRole,[t]:[...v]}};c(_)},[c,i]),y=i.userRole.selectedRole,u=k.useMemo(()=>y!=null?(i.productsByUserRole[y]??[]).map(h=>I.toUserRoleTypeStrict(h.selectedOption?.value)).filter(h=>h!=null):[],[y,i.productsByUserRole]);k.useEffect(()=>{y==="employee"&&u.length===0&&$>-1&&b("reimbursements_user")},[y,u,$,b]);const x=i.userRole.allRootRole,O=h=>h==="employee"&&i.userRole.selectedRole==="employee";return s==="readonly"?l.jsx(Ze,{windowSize:f,children:l.jsx(Re,{roles:u})}):l.jsx(De,{children:x.map(h=>l.jsxs(ke,{windowSize:f,children:[l.jsx(Te,{isError:a,children:l.jsx(de,{isDisabled:s,label:{label:Ge(h)},style:{paddingBottom:o.sp4,alignItems:"flex-start"},radioField:{name:`${e}.userRole.selectedRole`,id:`${e}.${h}`,value:h,radioSize:"small",checked:i.userRole.selectedRole===h,style:{marginTop:o.sp1}}})}),l.jsx(Oe,{windowSize:f,isCollapsed:O(h),roleCount:i.productsByUserRole[h].length,children:i.productsByUserRole[h].map(t=>l.jsxs(Pe,{children:[l.jsxs(Ie,{children:[l.jsx(Ee,{children:t.productType&&Je(t.productType)}),l.jsxs(Ne,{children:[l.jsx(ze,{children:t.label}),f==="small"?l.jsx(W,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b}):null,l.jsx(Z,{children:t.subTitleUser}),l.jsx(Z,{children:t.subTitleAdmin})]})]}),f!=="small"?l.jsx(W,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b,isDisabled:s}):null]},t.productType))})]},h))})},Ke=({name:e,defaultValue:s,isDisabled:i,registerOptions:c})=>{const{control:p}=N();return l.jsx(q,{name:e,control:p,defaultValue:s,rules:c,render:({field:{onChange:a,value:f}})=>{const $=f;return l.jsx(qe,{onSelectionChanged:b=>{a(b)},selectedValue:$,name:e,isDisabled:i})}})},S={width:new m(343,580,726),height:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),labelPaddingLeft:new m(n[3],n[4]),labelPaddingRight:new m(n[3],n[4]),labelPaddingTop:new m(n[2],n[2]),labelPaddingBottom:new m(n[2],n[3])};function bo({isDisabled:e,label:s,rolesDropDownField:i,style:c}){const p=M();return l.jsxs(Qe,{size:p,style:c,isDisabled:e!=null,children:[l.jsx(G,{isDisabled:e,label:s.label,htmlFor:i.name,style:{paddingLeft:S.labelPaddingLeft.value(p),paddingRight:S.labelPaddingRight.value(p),paddingTop:S.labelPaddingTop.value(p),paddingBottom:S.labelPaddingBottom.value(p)}}),l.jsx(Ke,{...i,isDisabled:e})]})}const Qe=d.div`
139
139
  display: flex;
140
140
  flex-direction: ${e=>e.isDisabled?"row":"column"};
141
141
  align-items: ${e=>e.isDisabled?"center":"flex-start"};
@@ -169,7 +169,7 @@ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d a
169
169
  border-color: inherit;
170
170
  }
171
171
  }
172
- `;function Qe({onSelectionChanged:e,forZeniUser:s,selectedRoles:i,allRoles:c,disable:p=!1,isMulti:a=!1,clearSelectedRole:f,style:$,name:b,isValuePlacedAtEnd:y=!0}){const[u,x]=k.useState(),{formState:{errors:P}}=N(),h=K(P,b??"");k.useEffect(()=>{const r=c.filter(g=>i!=null&&i.includes(g.value));x(a?r:r[0])},[i]),k.useEffect(()=>{f===!0&&a===!1&&x(void 0)},[f]);const t=Y(),C=M(),v=JSON.parse(JSON.stringify(c));if(i!=null&&s){if(!i.includes("admin")){const r=v.findIndex(g=>g.value==="admin");v.splice(r,1)}if(!i.includes("bookkeeping_admin")){const r=v.findIndex(g=>g.value==="bookkeeping_admin");v.splice(r,1)}}const R=t.colors.grey5,L=V.smallRegular.cssObject,U=L,z=u?.length>3,ee={control:r=>({...r,backgroundColor:"inherit",boxShadow:R,border:"none",cursor:"pointer",":hover":{backgroundColor:"inherit"},flexWrap:"nowrap",marginTop:"unset"}),container:r=>({...r,fill:t.colors.hero,":hover":{fill:t.colors.primary},width:"100%",...$}),valueContainer:r=>({...r,flexWrap:z?"wrap":"nowrap",width:C==="small"||!a?"auto":"263px",paddingTop:"unset",cursor:"pointer",...U,overflow:"visible",minWidth:"auto",paddingLeft:o.sp0,paddingRight:o.sp0,display:"flex",justifyContent:"flex-start",fill:t.colors.hero,":hover":{">div>div":{fill:t.colors.primary,color:t.colors.primary}},">div:last-of-type":{span:{display:"none"}}}),singleValue:(r,g)=>({...r,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,maxWidth:"auto",overflow:"auto",":hover":{color:t.colors.primary},marginLeft:o.sp0,position:"inherit",transform:"none",top:o.sp0,marginRight:o.sp0,padding:o.sp0,...V.standardRegular.cssObject}),multiValue:(r,g)=>({...r,margin:0,minWidth:void 0,backgroundColor:void 0,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,":hover":{color:t.colors.primary},">div":{borderRadius:o.sp0,padding:o.sp0,borderLeftStyle:"solid",borderWidth:o.sp0,borderColor:t.colors.grey1,color:"unset"}}),menu:r=>({...r,backgroundColor:R,boxShadow:`${o.sp0} 2px ${o.sp2} ${t.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",width:C==="small"?"230px":"100%",right:C==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:C==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:T,data:O})=>{const w=I.isNonZeniRole(O.value)&&s===!0,_=J(g,w,O.value,t);return{...r,height:w?44:40,padding:w?o.sp0:`${o.sp2} 12px`,marginTop:w?o.sp1:"unset",whiteSpace:"unset",display:"flex",alignItems:"center",opacity:1,...L,color:_,cursor:T?"not-allowed":"pointer",backgroundColor:g&&!w?t.colors.background:"transparent",">div":{backgroundColor:g?t.colors.background:"transparent"},borderTop:w||O.value==="delete"?`1px solid ${t.colors.background}`:"none","& label":{paddingRight:"10px"},"svg:nth-of-type(2)":{display:"none"},":hover":{color:J(!0,w,O.value,t),backgroundColor:g&&!w?t.colors.background:w?"transparent":t.colors.background,">div":{backgroundColor:t.colors.background},"svg:nth-of-type(1)":{display:w||s===!1?"inline-block":"none"},"svg:nth-of-type(2)":{display:w?"none":"inline-block"}},">div>div>div:first-of-type":{display:"flex"}}},indicatorsContainer:r=>({...r,alignItems:a?"flex-start":"center",paddingTop:z||!a?"unset":"5px"}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({paddingTop:a?o.sp1:"2px",svg:{marginLeft:a&&u?.length>0?"unset":"6px"}})},oe=r=>{const{isSelected:g}=r;return k.createElement(B.Option,{...r,key:r.data.value},l.jsxs(ao,{role:r.data.value,forZeniUser:s,children:[l.jsx(ce,{children:r.data.label}),!!g&&l.jsxs("div",{children:[l.jsx(pe,{width:o.sp3,height:o.sp3}),s===!0?l.jsx(ue,{width:o.sp3,height:o.sp3}):null]})]}))},le=r=>{const g=[];a&&r.forEach(T=>{g.push(T.value)}),e(a?g:r.value)},re=r=>{const{menuIsOpen:g,isFocused:T,isDisabled:O,selectProps:w}=r,{value:_}=w;return l.jsx(co,{menuIsOpen:g,isFocused:T,isDisabled:O,selectedValue:_,isError:h,isValuePlacedAtEnd:y,windowSize:C,children:l.jsx(B.Control,{...r,className:"select-control",children:r.children})})};return l.jsx(ie,{isMulti:a,menuPlacement:"auto",minMenuHeight:250,menuShouldScrollIntoView:!1,defaultValue:u,value:u,closeMenuOnSelect:!0,options:v,isDisabled:p,hideSelectedOptions:!1,onChange:r=>{le(r)},isClearable:!1,isSearchable:!0,components:{Control:re,DropdownIndicator:oo,Option:oe,MultiValueRemove:lo,IndicatorSeparator:ro,MultiValueLabel:io,ValueContainer:to,Placeholder:eo,Input:Xe},styles:ee,theme:r=>({...r,colors:{...r.colors,primary:R}}),placeholder:te.getLocalizedStrings().peoplePage.dropdownPlaceHolderText,isOptionDisabled:r=>s===!1&&r.enabled===!1||s===!0&&I.isNonZeniRole(r.value),classNamePrefix:"zeniRolesDropDown"})}const Xe=e=>{const{selectProps:s}=e,{placeholder:i,value:c,isMulti:p}=s;return l.jsx(B.Input,{...e,autoComplete:"new-password",placeholder:p===!0&&c?.length===0||c==null?i:void 0,children:e.children})},eo=()=>null,J=(e,s,i,c)=>e&&!s&&i!=="delete"?c.colors.primary:s?c.colors.grey1:i==="delete"?D.important:c.colors.hero,oo=()=>null,lo=()=>null,ro=()=>null,io=({children:e,data:s,...i})=>l.jsx(B.MultiValueLabel,{...i,children:l.jsxs(so,{children:[e,l.jsx(no,{className:"seperator",children:","})]})}),to=({children:e,...s})=>l.jsx(B.ValueContainer,{...s,className:"select-value-container",children:e}),so=d(ge)`
172
+ `;function Xe({onSelectionChanged:e,forZeniUser:s,selectedRoles:i,allRoles:c,disable:p=!1,isMulti:a=!1,clearSelectedRole:f,style:$,name:b,isValuePlacedAtEnd:y=!0}){const[u,x]=k.useState(),{formState:{errors:O}}=N(),h=K(O,b??"");k.useEffect(()=>{const r=c.filter(g=>i!=null&&i.includes(g.value));x(a?r:r[0])},[i]),k.useEffect(()=>{f===!0&&a===!1&&x(void 0)},[f]);const t=Q(),C=M(),v=JSON.parse(JSON.stringify(c));if(i!=null&&s){if(!i.includes("admin")){const r=v.findIndex(g=>g.value==="admin");v.splice(r,1)}if(!i.includes("bookkeeping_admin")){const r=v.findIndex(g=>g.value==="bookkeeping_admin");v.splice(r,1)}}const R=t.colors.grey5,L=V.smallRegular.cssObject,_=L,P=u?.length>3,ee={control:r=>({...r,backgroundColor:"inherit",boxShadow:R,border:"none",cursor:"pointer",":hover":{backgroundColor:"inherit"},flexWrap:"nowrap",marginTop:"unset"}),container:r=>({...r,fill:t.colors.hero,":hover":{fill:t.colors.primary},width:"100%",...$}),valueContainer:r=>({...r,flexWrap:P?"wrap":"nowrap",width:C==="small"||!a?"auto":"263px",paddingTop:"unset",cursor:"pointer",..._,overflow:"visible",minWidth:"auto",paddingLeft:o.sp0,paddingRight:o.sp0,display:"flex",justifyContent:"flex-start",fill:t.colors.hero,":hover":{">div>div":{fill:t.colors.primary,color:t.colors.primary}},">div:last-of-type":{span:{display:"none"}}}),singleValue:(r,g)=>({...r,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,maxWidth:"auto",overflow:"auto",":hover":{color:t.colors.primary},marginLeft:o.sp0,position:"inherit",transform:"none",top:o.sp0,marginRight:o.sp0,padding:o.sp0,...V.standardRegular.cssObject}),multiValue:(r,g)=>({...r,margin:0,minWidth:void 0,backgroundColor:void 0,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,":hover":{color:t.colors.primary},">div":{borderRadius:o.sp0,padding:o.sp0,borderLeftStyle:"solid",borderWidth:o.sp0,borderColor:t.colors.grey1,color:"unset"}}),menu:r=>({...r,backgroundColor:R,boxShadow:`${o.sp0} 2px ${o.sp2} ${t.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",width:C==="small"?"230px":"100%",right:C==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:C==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:T,data:z})=>{const w=I.isNonZeniRole(z.value)&&s===!0,U=J(g,w,z.value,t);return{...r,height:w?44:40,padding:w?o.sp0:`${o.sp2} 12px`,marginTop:w?o.sp1:"unset",whiteSpace:"unset",display:"flex",alignItems:"center",opacity:1,...L,color:U,cursor:T?"not-allowed":"pointer",backgroundColor:g&&!w?t.colors.background:"transparent",">div":{backgroundColor:g?t.colors.background:"transparent"},borderTop:w||z.value==="delete"?`1px solid ${t.colors.background}`:"none","& label":{paddingRight:"10px"},"svg:nth-of-type(2)":{display:"none"},":hover":{color:J(!0,w,z.value,t),backgroundColor:g&&!w?t.colors.background:w?"transparent":t.colors.background,">div":{backgroundColor:t.colors.background},"svg:nth-of-type(1)":{display:w||s===!1?"inline-block":"none"},"svg:nth-of-type(2)":{display:w?"none":"inline-block"}},">div>div>div:first-of-type":{display:"flex"}}},indicatorsContainer:r=>({...r,alignItems:a?"flex-start":"center",paddingTop:P||!a?"unset":"5px"}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({paddingTop:a?o.sp1:"2px",svg:{marginLeft:a&&u?.length>0?"unset":"6px"}})},oe=r=>{const{isSelected:g}=r;return k.createElement(B.Option,{...r,key:r.data.value},l.jsxs(ao,{role:r.data.value,forZeniUser:s,children:[l.jsx(ce,{children:r.data.label}),!!g&&l.jsxs("div",{children:[l.jsx(pe,{width:o.sp3,height:o.sp3}),s===!0?l.jsx(ue,{width:o.sp3,height:o.sp3}):null]})]}))},le=r=>{const g=[];a&&r.forEach(T=>{g.push(T.value)}),e(a?g:r.value)},re=r=>{const{menuIsOpen:g,isFocused:T,isDisabled:z,selectProps:w}=r,{value:U}=w;return l.jsx(co,{menuIsOpen:g,isFocused:T,isDisabled:z,selectedValue:U,isError:h,isValuePlacedAtEnd:y,windowSize:C,children:l.jsx(B.Control,{...r,className:"select-control",children:r.children})})};return l.jsx(ie,{isMulti:a,menuPlacement:"auto",minMenuHeight:250,menuShouldScrollIntoView:!1,defaultValue:u,value:u,closeMenuOnSelect:!0,options:v,isDisabled:p,hideSelectedOptions:!1,onChange:r=>{le(r)},isClearable:!1,isSearchable:!0,components:{Control:re,DropdownIndicator:oo,Option:oe,MultiValueRemove:lo,IndicatorSeparator:ro,MultiValueLabel:io,ValueContainer:to,Placeholder:eo,Input:Ye},styles:ee,theme:r=>({...r,colors:{...r.colors,primary:R}}),placeholder:te.getLocalizedStrings().peoplePage.dropdownPlaceHolderText,isOptionDisabled:r=>s===!1&&r.enabled===!1||s===!0&&I.isNonZeniRole(r.value),classNamePrefix:"zeniRolesDropDown"})}const Ye=e=>{const{selectProps:s}=e,{placeholder:i,value:c,isMulti:p}=s;return l.jsx(B.Input,{...e,autoComplete:"new-password",placeholder:p===!0&&c?.length===0||c==null?i:void 0,children:e.children})},eo=()=>null,J=(e,s,i,c)=>e&&!s&&i!=="delete"?c.colors.primary:s?c.colors.grey1:i==="delete"?D.important:c.colors.hero,oo=()=>null,lo=()=>null,ro=()=>null,io=({children:e,data:s,...i})=>l.jsx(B.MultiValueLabel,{...i,children:l.jsxs(so,{children:[e,l.jsx(no,{className:"seperator",children:","})]})}),to=({children:e,...s})=>l.jsx(B.ValueContainer,{...s,className:"select-value-container",children:e}),so=d(ge)`
173
173
  padding: ${o.sp0} 2px;
174
174
  max-width: 104px;
175
175
  white-space: nowrap;
@@ -258,7 +258,7 @@ import{q as M,j as l,aM as A,d9 as G,y as m,o,u as n,d3 as N,dc as q,db as K,d a
258
258
  visibility: hidden;
259
259
  }
260
260
  }
261
- `,po=({name:e,forZeniUser:s,registerOptions:i,defaultValue:c,isDisabled:p,isMulti:a,style:f,onSelectionChanged:$,isValuePlacedAtEnd:b=!0})=>{const{control:y}=N();return l.jsx(q,{name:e,control:y,defaultValue:c,rules:i,render:({field:{value:u,onChange:x}})=>l.jsx(Qe,{onSelectionChanged:P=>{x({allOptions:c.allOptions,selectedOptions:P}),$?.(P)},forZeniUser:s,selectedRoles:u.selectedOptions,disable:p,isMulti:a,name:e,style:f,allRoles:c.allOptions,isValuePlacedAtEnd:b})})},j={width:new m(343,580,726),height:new m(n[6],n[6]),controlHeight:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),marginRight:new m(n[2],n[2]),labelMarginLeft:new m(n[3],n[4]),labelMarginRight:new m(n[3],n[4]),labelMarginTop:new m(n[2],n[2])};function fo({isDisabled:e,label:s,zeniRolesDropDownField:i,style:c}){const p=M();return l.jsxs(uo,{size:p,style:c,isDisabled:e!=null,"data-testid":A("labeled-zeni-roles-dropdown-field",i.name),children:[l.jsx(G,{isDisabled:e,label:s.label,htmlFor:i.name,style:{marginLeft:j.labelMarginLeft.value(p),marginRight:j.labelMarginRight.value(p),marginTop:j.labelMarginTop.value(p),width:s.width??"auto"}}),l.jsx(po,{...i,isDisabled:e==="disabled"||e==="readonly",style:{display:"flex",flexGrow:1,width:s.width!=null?`calc(100% - ${s.width}px)`:"auto",height:p==="small"?"auto":o.sp6,minHeight:j.controlHeight.value(p)}})]})}const uo=d.div`
261
+ `,po=({name:e,forZeniUser:s,registerOptions:i,defaultValue:c,isDisabled:p,isMulti:a,style:f,onSelectionChanged:$,isValuePlacedAtEnd:b=!0})=>{const{control:y}=N();return l.jsx(q,{name:e,control:y,defaultValue:c,rules:i,render:({field:{value:u,onChange:x}})=>l.jsx(Xe,{onSelectionChanged:O=>{x({allOptions:c.allOptions,selectedOptions:O}),$?.(O)},forZeniUser:s,selectedRoles:u.selectedOptions,disable:p,isMulti:a,name:e,style:f,allRoles:c.allOptions,isValuePlacedAtEnd:b})})},j={width:new m(343,580,726),height:new m(n[6],n[6]),controlHeight:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),marginRight:new m(n[2],n[2]),labelMarginLeft:new m(n[3],n[4]),labelMarginRight:new m(n[3],n[4]),labelMarginTop:new m(n[2],n[2])};function fo({isDisabled:e,label:s,zeniRolesDropDownField:i,style:c}){const p=M();return l.jsxs(uo,{size:p,style:c,isDisabled:e!=null,"data-testid":A("labeled-zeni-roles-dropdown-field",i.name),children:[l.jsx(G,{isDisabled:e,label:s.label,htmlFor:i.name,style:{marginLeft:j.labelMarginLeft.value(p),marginRight:j.labelMarginRight.value(p),marginTop:j.labelMarginTop.value(p),width:s.width??"auto"}}),l.jsx(po,{...i,isDisabled:e==="disabled"||e==="readonly",style:{display:"flex",flexGrow:1,width:s.width!=null?`calc(100% - ${s.width}px)`:"auto",height:p==="small"?"auto":o.sp6,minHeight:j.controlHeight.value(p)}})]})}const uo=d.div`
262
262
  display: flex;
263
263
  flex-direction: row;
264
264
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{q as W,aP as ue,l as C,aa as me,cS as pe,iI as P,it as L,O as H,cT as he,j as a,ad as ge,gh as xe,aQ as fe,o as t,y as p,s as be,A as ye,cV as R,iJ as je,h as Ce,C as A,bl as Se,u as r}from"./index-TYkG9rxW.js";import{b as B,n as i}from"./vendor-Bs1fkIUX.js";import we from"./TransactionDetailPage-D1Z1f-DD-B17t_ZG8.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./LabeledControlledCheckBoxField-zwoLFM1n-II-cAJkn.js";import"./TrendWithTransactions-mI_El5D1-BVyR_3Fo.js";import"./TrendChart-B_5D-Zud-CJGzPrRj.js";import"./chartTypes-DCvOVjlS-Byyz5YpX.js";import"./toCOABalancesWithID-B3yVGPrV-CxcOLkAO.js";import"./toChartData-DEW0iT7T-DY_WveEO.js";import"./NoDataChart-5E72SElf-CivTfVpi.js";import"./InsightsSection-JIKb9lz3-BHiqZJbQ.js";import"./NavigationDots-BxPgEW_p-BH_dRdsk.js";import"./TransactionList-BzJEbOV9-BBSoiur3.js";import"./BoxItem-COIjjFrn-BdkILoXu.js";import"./commonDimensions-C32v1F7H-73JTdKL8.js";import"./uploadAttachment-DVy2pZeJ-DRTnRPP6.js";import"./radio-default-CiSgisfh-Cuu8ymvq.js";const J={labelWidth:new p(120,145,160)},$e=i.div`
1
+ import{q as W,aP as ue,l as C,aa as me,cS as pe,iI as P,it as L,O as H,cT as he,j as a,ad as ge,gh as xe,aQ as fe,o as t,y as p,s as be,A as ye,cV as R,iJ as je,h as Ce,C as A,bl as Se,u as r}from"./index-MAXVX6UR.js";import{b as B,n as i}from"./vendor-Bs1fkIUX.js";import we from"./TransactionDetailPage-cTLfJiHb-1yZP6Zin.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js";import"./TrendWithTransactions-D9x71aZs-CM8kaEfz.js";import"./TrendChart-CWR5JV7S-Bu3AQa_8.js";import"./chartTypes-DLnePN0T-B_54UqyM.js";import"./toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js";import"./toChartData-BIN4xqGz-BcU_F8Ix.js";import"./NoDataChart-Dwrv5FXT-BktYGhJl.js";import"./InsightsSection-AQ5yTmGG-DS0VgX7W.js";import"./NavigationDots-DarWlthl-CEtLiSj-.js";import"./TransactionList-SkjGKFn_-BwaaUL7x.js";import"./BoxItem-D4K0YgBP-Bm_px4kT.js";import"./commonDimensions-CWOH4KIa-zIW9i9kk.js";import"./uploadAttachment-DwI0nG8D-VCODDzfq.js";import"./radio-default-CiSgisfh-Cuu8ymvq.js";const J={labelWidth:new p(120,145,160)},$e=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -19,7 +19,7 @@ import{q as W,aP as ue,l as C,aa as me,cS as pe,iI as P,it as L,O as H,cT as he,
19
19
  background-color: ${e=>e.theme.colors.grey3};
20
20
  min-height: 1px;
21
21
  max-height: 1px;
22
- `,V=(e,l)=>`${e}.${l}`;function Ee({sectionId:e,jePostingDate:l,qboURL:n,isJELoading:s}){const u=H.getLocalizedStrings(),{dateFormat:S,jeSchedules:{scheduleDetails:{linkJE:o,scheduleDetailsSection:w}}}=u,h=l.format(S.visual.MMMDCommaYYYYformat),g=W();return a.jsxs($e,{children:[a.jsx(De,{windowSize:g,children:w.header}),a.jsxs(ve,{children:[a.jsx(R,{label:{label:o.jePostingDate,width:J.labelWidth.value(g)},style:{width:"auto"},text:{type:"text",name:V(e,"jePostingDate"),placeholder:o.jeLinkURLPlaceholder,defaultValue:h,autoComplete:"new-password"},isDisabled:"disabled"}),a.jsx(ke,{}),a.jsx(R,{label:{label:o.jeLink,width:J.labelWidth.value(g)},style:{width:"auto"},text:{type:"url",name:V(e,"qboURL"),placeholder:o.jeLinkURLPlaceholder,defaultValue:n?.toString()??"",autoComplete:"new-password",style:{color:Ce.link},options:{pattern:je}},isDisabled:s?"disabled":void 0})]})]})}const b={containerPaddingLeft:new p(r[3],r[3],r[6]),containerPaddingRight:new p(r[3],r[3],r[8]),navbarContainerPaddingTop:new p(r[2],r[3]),navbarContainerPaddingBottom:new p(r[4],r[5]),emptyScheduleHeight:new p(88,88)},M="linkJETransactionPage",Z="linkJETransaction",G=H.getLocalizedStrings(),{common:{footer:Y},dateFormat:Pe}=G,ut=({analytics:e,scheduleTab:l,jeScheduledTransaction:n,localData:s,saveStatus:u,isCOTEnabled:S,transactionDetail:o,firstMonthOfFY:w,qboAppUrl:h,authParams:g,isDisabled:X,controllerUserDetails:I,isVendorBulkUpdateOnTransactionEnabled:K,onUpdateLocalData:ee,onBackClick:T,onCancelClick:te,onSaveClick:ae,onFetchTransactionClick:ne})=>{const m=W(),U=ue(u),y=C.getQBOUrlForLink(h.toString(),s.jeLink),$=C.getFirstControllerEmail(I.controllers),v=C.getFirstControllerId(I.controllerUserIds),N=()=>{const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:l,transaction:{...L(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...P(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:$,controllerUserIds:v}),te()},x=me({mode:"all",reValidateMode:"onChange",resetOptions:{keepDirtyValues:!0,keepErrors:!0},defaultValues:_(s,h),values:_(s,h)}),oe=()=>{ae()},ie=async d=>{ee(d)};B.useEffect(()=>{const d=x.watch((c,{name:ce})=>{ce!=null&&c!=null&&pe(()=>ie(c))});return()=>{d.unsubscribe()}}),B.useEffect(()=>{if(u==="Completed"&&U==="In-Progress"){const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:l,transaction:{...L(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...P(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:$,controllerUserIds:v}),T()}},[u,U,T]);const{common:{strings:{empty:z}},jeSchedules:{scheduleDetails:{linkJE:f}}}=G,le=()=>{if(s.jeLink?.transactionDetailID!=null){const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryQBOFetched({scheduleType:l,transaction:{...L(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...P(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:$,controllerUserIds:v}),ne(s.jeLink.transactionDetailID)}},se=o!=null&&o.fetchState==="In-Progress",re=o!=null&&o.fetchState==="Error",D=o!=null&&o.fetchState==="Completed",de=o==null||o.fetchState==="Not-Started",F=s.jeLink.type==="recommended",O=he(x.formState.dirtyFields),k=x.formState.isValid,j=D&&O&&k||D&&F&&k,E=O&&k;return a.jsxs(Le,{children:[a.jsxs(Ie,{windowSize:m,children:[a.jsx(Fe,{windowSize:m,children:f.linkJE}),a.jsx(Ne,{children:a.jsx(ze,{onClick:N})})]}),a.jsxs(Ae,{children:[a.jsx(Te,{windowSize:m,children:a.jsx(ge,{...x,children:a.jsx("form",{id:q(M),onSubmit:x.handleSubmit(oe),children:a.jsx(Ee,{jePostingDate:s.postingDate,sectionId:Z,qboURL:y,isJELoading:o?.fetchState==="In-Progress"})})})}),F?a.jsxs(Re,{windowSize:m,children:[a.jsx(Be,{})," ",f.zeniRecommendation]}):null,D?a.jsx(Ue,{children:a.jsx(we,{isCOTEnabled:S,transactionDetail:o,firstMonthOfFY:w,transactionAttachmentEndpointToDownload:z,transactionAttachmentsEndpointToFetch:z,attachmentUploadEndpoint:"",authParams:g,isDisabled:X??"readonly",isNavBarVisible:!1,containerStyles:{boxShadow:"none",backgroundColor:"inherit"},headerStyles:{boxShadow:"none",backgroundColor:"inherit"},autoCompleteData:{entityAutoCompleteView:{customer:[],vendor:[],fetchState:"Not-Started"}},isVendorBulkUpdateOnTransactionEnabled:K,onDeleteAttachment:()=>{},autoCompleteActions:{onAutoCompleteInputChange:()=>null,onCancelAutoComplete:()=>null,onAutoCompleteEntity:()=>null,onLoadOptions:()=>null},onUploadAttachmentAttachment:()=>null,enableBackClickOnSave:!0,saveLatestSelectedEntity:()=>null,updateVendorBulkRecommendationsFetchStatus:()=>null,setIsVendorUpdateAllChecked:()=>null})}):null,a.jsxs(Oe,{children:[re?a.jsx(Q,{windowSize:m,children:f.transactionFetchError}):null,de?a.jsx(Q,{windowSize:m,children:f.jeDetails}):null]}),se?a.jsx(xe,{fetchState:o?.fetchState}):null]}),j||E?a.jsx(fe,{formId:j?q(M):void 0,primaryBtn:{onClick:E&&!j?le:void 0,label:E&&!j?f.fetchJE:Y.save,isLoading:u==="In-Progress",isDisabled:u==="In-Progress"||o?.fetchState==="In-Progress"||o?.fetchState==="Error"},cancelBtn:{label:Y.cancel,shouldResetOnCancel:!0,onClick:N}}):null]})},q=e=>`${e}_form`,_=(e,l)=>({[Z]:{qboURL:C.getQBOUrlForLink(l.toString(),e.jeLink),jePostingDate:e.postingDate.format(Pe.visual.MMMDCommaYYYYformat)}}),Le=i.div`
22
+ `,V=(e,l)=>`${e}.${l}`;function Ee({sectionId:e,jePostingDate:l,qboURL:n,isJELoading:s}){const u=H.getLocalizedStrings(),{dateFormat:S,jeSchedules:{scheduleDetails:{linkJE:o,scheduleDetailsSection:w}}}=u,h=l.format(S.visual.MMMDCommaYYYYformat),g=W();return a.jsxs($e,{children:[a.jsx(De,{windowSize:g,children:w.header}),a.jsxs(ve,{children:[a.jsx(R,{label:{label:o.jePostingDate,width:J.labelWidth.value(g)},style:{width:"auto"},text:{type:"text",name:V(e,"jePostingDate"),placeholder:o.jeLinkURLPlaceholder,defaultValue:h,autoComplete:"new-password"},isDisabled:"disabled"}),a.jsx(ke,{}),a.jsx(R,{label:{label:o.jeLink,width:J.labelWidth.value(g)},style:{width:"auto"},text:{type:"url",name:V(e,"qboURL"),placeholder:o.jeLinkURLPlaceholder,defaultValue:n?.toString()??"",autoComplete:"new-password",style:{color:Ce.link},options:{pattern:je}},isDisabled:s?"disabled":void 0})]})]})}const b={containerPaddingLeft:new p(r[3],r[3],r[6]),containerPaddingRight:new p(r[3],r[3],r[8]),navbarContainerPaddingTop:new p(r[2],r[3]),navbarContainerPaddingBottom:new p(r[4],r[5]),emptyScheduleHeight:new p(88,88)},M="linkJETransactionPage",G="linkJETransaction",Z=H.getLocalizedStrings(),{common:{footer:Y},dateFormat:Pe}=Z,ut=({analytics:e,scheduleTab:l,jeScheduledTransaction:n,localData:s,saveStatus:u,isCOTEnabled:S,transactionDetail:o,firstMonthOfFY:w,qboAppUrl:h,authParams:g,isDisabled:K,controllerUserDetails:I,isVendorBulkUpdateOnTransactionEnabled:X,onUpdateLocalData:ee,onBackClick:T,onCancelClick:te,onSaveClick:ae,onFetchTransactionClick:ne})=>{const m=W(),U=ue(u),y=C.getQBOUrlForLink(h.toString(),s.jeLink),$=C.getFirstControllerEmail(I.controllers),v=C.getFirstControllerId(I.controllerUserIds),N=()=>{const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:l,transaction:{...L(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...P(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:$,controllerUserIds:v}),te()},x=me({mode:"all",reValidateMode:"onChange",resetOptions:{keepDirtyValues:!0,keepErrors:!0},defaultValues:_(s,h),values:_(s,h)}),oe=()=>{ae()},ie=async d=>{ee(d)};B.useEffect(()=>{const d=x.watch((c,{name:ce})=>{ce!=null&&c!=null&&pe(()=>ie(c))});return()=>{d.unsubscribe()}}),B.useEffect(()=>{if(u==="Completed"&&U==="In-Progress"){const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:l,transaction:{...L(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...P(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:$,controllerUserIds:v}),T()}},[u,U,T]);const{common:{strings:{empty:z}},jeSchedules:{scheduleDetails:{linkJE:f}}}=Z,le=()=>{if(s.jeLink?.transactionDetailID!=null){const d=n.vendor,c=n.baseTransaction;e.trackScheduleDetailsJournalEntryQBOFetched({scheduleType:l,transaction:{...L(c)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...P(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:n.jeCredit.account?.accountName??null,assetId:n.otherAttributes.assetId??null}:void 0,controllerEmails:$,controllerUserIds:v}),ne(s.jeLink.transactionDetailID)}},se=o!=null&&o.fetchState==="In-Progress",re=o!=null&&o.fetchState==="Error",D=o!=null&&o.fetchState==="Completed",de=o==null||o.fetchState==="Not-Started",F=s.jeLink.type==="recommended",O=he(x.formState.dirtyFields),k=x.formState.isValid,j=D&&O&&k||D&&F&&k,E=O&&k;return a.jsxs(Le,{children:[a.jsxs(Ie,{windowSize:m,children:[a.jsx(Fe,{windowSize:m,children:f.linkJE}),a.jsx(Ne,{children:a.jsx(ze,{onClick:N})})]}),a.jsxs(Ae,{children:[a.jsx(Te,{windowSize:m,children:a.jsx(ge,{...x,children:a.jsx("form",{id:q(M),onSubmit:x.handleSubmit(oe),children:a.jsx(Ee,{jePostingDate:s.postingDate,sectionId:G,qboURL:y,isJELoading:o?.fetchState==="In-Progress"})})})}),F?a.jsxs(Re,{windowSize:m,children:[a.jsx(Be,{})," ",f.zeniRecommendation]}):null,D?a.jsx(Ue,{children:a.jsx(we,{isCOTEnabled:S,transactionDetail:o,firstMonthOfFY:w,transactionAttachmentEndpointToDownload:z,transactionAttachmentsEndpointToFetch:z,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(Oe,{children:[re?a.jsx(Q,{windowSize:m,children:f.transactionFetchError}):null,de?a.jsx(Q,{windowSize:m,children:f.jeDetails}):null]}),se?a.jsx(xe,{fetchState:o?.fetchState}):null]}),j||E?a.jsx(fe,{formId:j?q(M):void 0,primaryBtn:{onClick:E&&!j?le:void 0,label:E&&!j?f.fetchJE:Y.save,isLoading:u==="In-Progress",isDisabled:u==="In-Progress"||o?.fetchState==="In-Progress"||o?.fetchState==="Error"},cancelBtn:{label:Y.cancel,shouldResetOnCancel:!0,onClick:N}}):null]})},q=e=>`${e}_form`,_=(e,l)=>({[G]:{qboURL:C.getQBOUrlForLink(l.toString(),e.jeLink),jePostingDate:e.postingDate.format(Pe.visual.MMMDCommaYYYYformat)}}),Le=i.div`
23
23
  display: flex;
24
24
  flex: 1 1 auto;
25
25
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{q as he,d as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,aq as He,gc as Ue,o as r,C as We,c5 as Ve,aN as re,d9 as Ye,b1 as q,dn as qe,P as Xe,aQ as Ge,ap as Ke,cV as gr,n as pe,a9 as xr,ax as wr,l as $r,gZ as fr,aM as de,gm as yr,u as b,A as Ze,c7 as xe,_ as Je,am as v,b6 as we,ai as G,dM as Qe,a$ as er,cP as rr,h as X,an as tr,f_ as oe,dN as Pe,fE as br,eY as vr}from"./index-TYkG9rxW.js";import{b as ae,n as i}from"./vendor-Bs1fkIUX.js";import{M as jr,F as Sr,_ as Cr}from"./ChargeCardUtils-BRgkrCTs-C8zXQGn9.js";import{T as ir}from"./RoleWithToolTip-BqI6M0x_-CjRr5WNK.js";import{j as or}from"./CardNumberSubText-CmhH95Ff-Cm3hJRYZ.js";const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function vi({currentCardName:e,renameFetchState:f,onCancelClick:p,onSubmitClick:c}){const l=he(),y="RenameCardForm",n=me({mode:"all",defaultValues:{[Q]:e},values:{[Q]:e}});ae.useEffect(()=>{n.setFocus(Q)},[]);const h=()=>{p()},R=n.handleSubmit(()=>{const w=n.getValues(Q);w!=null&&c(w)}),N=ue(n.formState.errors,Q),o=U.getLocalizedStrings().common,T=le.largeLabelWidth.value(l);return t.jsx(zr,{windowSize:l,role:"presentation",children:t.jsx(Ke,{onClickAway:()=>p(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Fr,{id:y,onSubmit:w=>{w.preventDefault(),R()},children:[t.jsx(Pr,{windowSize:l,children:fe.heading}),t.jsx(Nr,{hasError:N,children:t.jsx(gr,{label:{label:fe.newName,width:T},style:{width:"auto"},text:{type:"text",name:Q,defaultValue:e,placeholder:fe.placeholder,options:{required:!0,validate:w=>w!=null}}})})]})}),t.jsx(Dr,{children:t.jsxs(Lr,{children:[t.jsx(pe,{label:o.cancel,onClick:h,style:{width:84}}),t.jsx(Tr,{}),t.jsx(pe,{variant:"primary",label:o.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:f==="In-Progress",type:"submit",form:y})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},zr=i.div`
1
+ import{q as he,c as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,aq as He,gc as Ue,o as r,C as We,c5 as Ve,aN as re,d9 as Ye,b1 as q,dn as qe,P as Xe,aQ as Ge,ap as Ke,cV as gr,n as pe,a9 as xr,ax as wr,l as $r,gZ as fr,aM as de,gm as yr,u as b,A as Ze,c7 as xe,_ as Je,am as v,b6 as we,ai as G,dM as Qe,a$ as er,cP as rr,h as X,an as tr,f_ as oe,dN as Pe,fE as br,eY as vr}from"./index-MAXVX6UR.js";import{b as ae,n as i}from"./vendor-Bs1fkIUX.js";import{M as jr,F as Sr,_ as Cr}from"./ChargeCardUtils-Cx6ntaue-CziTslau.js";import{T as ir}from"./RoleWithToolTip-CnJMJF5X-DPQwf2SV.js";import{j as or}from"./CardNumberSubText-C_03r_B--CXrhgc3z.js";const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function vi({currentCardName:e,renameFetchState:f,onCancelClick:p,onSubmitClick:c}){const l=he(),y="RenameCardForm",n=me({mode:"all",defaultValues:{[Q]:e},values:{[Q]:e}});ae.useEffect(()=>{n.setFocus(Q)},[]);const h=()=>{p()},R=n.handleSubmit(()=>{const w=n.getValues(Q);w!=null&&c(w)}),N=ue(n.formState.errors,Q),o=U.getLocalizedStrings().common,T=le.largeLabelWidth.value(l);return t.jsx(zr,{windowSize:l,role:"presentation",children:t.jsx(Ke,{onClickAway:()=>p(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Fr,{id:y,onSubmit:w=>{w.preventDefault(),R()},children:[t.jsx(Pr,{windowSize:l,children:fe.heading}),t.jsx(Nr,{hasError:N,children:t.jsx(gr,{label:{label:fe.newName,width:T},style:{width:"auto"},text:{type:"text",name:Q,defaultValue:e,placeholder:fe.placeholder,options:{required:!0,validate:w=>w!=null}}})})]})}),t.jsx(Dr,{children:t.jsxs(Lr,{children:[t.jsx(pe,{label:o.cancel,onClick:h,style:{width:84}}),t.jsx(Tr,{}),t.jsx(pe,{variant:"primary",label:o.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:f==="In-Progress",type:"submit",form:y})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},zr=i.div`
2
2
  position: fixed;
3
3
  top: ${r.sp0};
4
4
  left: ${r.sp0};
@@ -49,7 +49,7 @@ import{q as he,d as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,
49
49
  }
50
50
  `,Fr=i.form`
51
51
  display: contents;
52
- `,ee="spendLimit",J=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:ye}=U.getLocalizedStrings();function ji({controllerEmails:e,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:l,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,currentSpentAmount:H,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:M,isDisabled:K,updateLimitFetchState:Z,recommendations:F,cardIssuedByRoles:Y,cardHolderRoles:m,loggedInUserRole:A,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,onCancelClick:s,onSubmitClick:u}){const g=xr().analytics,$=he(),se="SpendLimitForm",ar=wr();$r.hasChargeCardAdminLevelAccess(ar.loggedInUserRoleMap);const te=me({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ee]:void 0}}),{control:sr,formState:{errors:nr}}=te,[dr,lr]=ae.useState(void 0),ne=fr({control:sr,name:ee}),Ce=y?.type.code.includes("physical")===!0?y.cardActivationAttemptHistory[0]?.timestamp:y?.createTime,ze=(y?.recommendations??[]).map(x=>x.creditLimit.amount),cr=()=>{y!=null&&Le({analytics:g,controllerEmails:e,isChargeCardFeatureEnabled:f,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:m,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:A,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:j,creditAccountInformation:W,debitAccountInformation:V}),s()},pr=te.handleSubmit(()=>{const x=te.getValues(ee);x!=null&&(Le({analytics:g,controllerEmails:e,isChargeCardFeatureEnabled:f,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:m,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:A,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,clickItem:"Update",newSpendLimitAmount:x}),u(x))}),hr=x=>{te.setValue(ee,x,{shouldValidate:!0})},ke=ue(nr,ee),$e=U.getLocalizedStrings().common,mr=ce.largeLabelWidth.value($);ae.useEffect(()=>{lr(Ar(H,M,ne))},[ne,H,M]);const ur=(x,ie)=>t.jsxs(Wr,{isSelected:ne===x.amount,onClick:()=>hr(x.amount),"data-testid":de("quick-amount-button",ie.toString()),children:[ie===1&&t.jsx(Vr,{}),re("0,0.[00]",x)]},ie);return t.jsx(Er,{windowSize:$,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ke,{onClickAway:()=>s(),children:t.jsxs(Ir,{windowSize:$,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:x=>{x.preventDefault(),pr()},children:[t.jsx(Rr,{windowSize:$,children:J.heading}),t.jsxs(Mr,{windowSize:$,children:[J.currentLimit,$e.strings.space," ",re("0,0.[00]",B),J.slashMonth]}),t.jsxs(Hr,{hasError:ke,children:[t.jsx(yr,{label:{label:J.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:J.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:x=>!!x&&x>0&&x>H.amount&&(M!=null?x<=M.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),F?.length?t.jsx(Ur,{windowSize:$,children:F?.map((x,ie)=>ur(x.creditLimit,ie))}):null]})]})}),t.jsx(Br,{children:t.jsxs(Or,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(_r,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:Z==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:K})]})})]})})})}const Ar=(e,f,p)=>{if(p!=null){if(p<=e.amount)return J.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(f!=null&&p>f.amount)return J.amountExceedError.replace("_amount_",re("0,0.[00]",f))}},Le=({analytics:e,controllerEmails:f,isChargeCardFeatureEnabled:p,productInformation:c,creditAccountInformation:l,debitAccountInformation:y,cardDetail:n,transactionStatistics:h,depositAccountLimitFetchState:R,creditAccount:N,creditAccountRepayment:o,signedInUser:T,isDebitCard:w,classListFetchState:B,currentLimitAmount:H,recommendedLimitAmounts:j,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:M,cardIssuedByDepartmentName:K,cardHolderDepartmentName:Z,loggedInUserRole:F,clickItem:Y,newSpendLimitAmount:m})=>{n!=null&&B==="Completed"&&h!=null&&h.fetchState==="Completed"&&(!p||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!w||R==="Completed")&&e.trackCardsUpdateSpendLimitClick(f,c,{cardId:n.id,cardName:n.cardName,cardType:Sr(n.type.code),cardCategory:n.type.code.includes("physical")?"physical":"virtual",cardLimit:oe(n.limit.amount),cardLastFourDigits:n.accountLast4,cardStatus:n.status.code,cardAssignedDate:n.createTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:n.providerCardCreateTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:W?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:n.creditLimitFrequency.name,cardSpentAmount:oe(n.balance.amount),cardAvailableLimit:oe(n.available.amount),cardUtilizationPercent:jr(n.limit.amount,n.available.amount),cardUtilizationAmount:oe(Cr(n)),totalNumberOfDeclinedTransactions:h.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:h.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:h.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:h.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:h.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:h.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:h.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:h.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:h.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:h.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Pe(n.cardCreatedByUser,!1),cardIssuedByEmail:n.cardCreatedByUser?.email,cardIssuedByUserId:n.cardCreatedByUser?.userId,cardIssuedByRole:V,cardIssuedByDepartment:K},{cardholderName:Pe(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:M,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:Z},{cardLimitUpdatedByName:br(T),cardLimitUpdatedByEmail:T.userEmail,cardLimitUpdatedByRole:F,cardLimitUpdatedByUserId:T.userId},Y,oe(H.amount),j,m!=null?j.includes(m):!1,m,l,y)},ce={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},Er=i.div`
52
+ `,ee="spendLimit",J=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:ye}=U.getLocalizedStrings();function ji({controllerEmails:e,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:l,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,currentSpentAmount:H,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:O,isDisabled:K,updateLimitFetchState:Z,recommendations:F,cardIssuedByRoles:Y,cardHolderRoles:m,loggedInUserRole:A,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,onCancelClick:s,onSubmitClick:u}){const g=xr().analytics,$=he(),se="SpendLimitForm",ar=wr();$r.hasChargeCardAdminLevelAccess(ar.loggedInUserRoleMap);const te=me({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ee]:void 0}}),{control:sr,formState:{errors:nr}}=te,[dr,lr]=ae.useState(void 0),ne=fr({control:sr,name:ee}),Ce=y?.type.code.includes("physical")===!0?y.cardActivationAttemptHistory[0]?.timestamp:y?.createTime,ze=(y?.recommendations??[]).map(x=>x.creditLimit.amount),cr=()=>{y!=null&&Le({analytics:g,controllerEmails:e,isChargeCardFeatureEnabled:f,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:m,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:A,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:j,creditAccountInformation:W,debitAccountInformation:V}),s()},pr=te.handleSubmit(()=>{const x=te.getValues(ee);x!=null&&(Le({analytics:g,controllerEmails:e,isChargeCardFeatureEnabled:f,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:m,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:A,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,clickItem:"Update",newSpendLimitAmount:x}),u(x))}),hr=x=>{te.setValue(ee,x,{shouldValidate:!0})},ke=ue(nr,ee),$e=U.getLocalizedStrings().common,mr=ce.largeLabelWidth.value($);ae.useEffect(()=>{lr(Ar(H,O,ne))},[ne,H,O]);const ur=(x,ie)=>t.jsxs(Wr,{isSelected:ne===x.amount,onClick:()=>hr(x.amount),"data-testid":de("quick-amount-button",ie.toString()),children:[ie===1&&t.jsx(Vr,{}),re("0,0.[00]",x)]},ie);return t.jsx(Er,{windowSize:$,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ke,{onClickAway:()=>s(),children:t.jsxs(Ir,{windowSize:$,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:x=>{x.preventDefault(),pr()},children:[t.jsx(Rr,{windowSize:$,children:J.heading}),t.jsxs(Or,{windowSize:$,children:[J.currentLimit,$e.strings.space," ",re("0,0.[00]",B),J.slashMonth]}),t.jsxs(Hr,{hasError:ke,children:[t.jsx(yr,{label:{label:J.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:J.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:x=>!!x&&x>0&&x>H.amount&&(O!=null?x<=O.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),F?.length?t.jsx(Ur,{windowSize:$,children:F?.map((x,ie)=>ur(x.creditLimit,ie))}):null]})]})}),t.jsx(Br,{children:t.jsxs(Mr,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(_r,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:Z==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:K})]})})]})})})}const Ar=(e,f,p)=>{if(p!=null){if(p<=e.amount)return J.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(f!=null&&p>f.amount)return J.amountExceedError.replace("_amount_",re("0,0.[00]",f))}},Le=({analytics:e,controllerEmails:f,isChargeCardFeatureEnabled:p,productInformation:c,creditAccountInformation:l,debitAccountInformation:y,cardDetail:n,transactionStatistics:h,depositAccountLimitFetchState:R,creditAccount:N,creditAccountRepayment:o,signedInUser:T,isDebitCard:w,classListFetchState:B,currentLimitAmount:H,recommendedLimitAmounts:j,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:O,cardIssuedByDepartmentName:K,cardHolderDepartmentName:Z,loggedInUserRole:F,clickItem:Y,newSpendLimitAmount:m})=>{n!=null&&B==="Completed"&&h!=null&&h.fetchState==="Completed"&&(!p||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!w||R==="Completed")&&e.trackCardsUpdateSpendLimitClick(f,c,{cardId:n.id,cardName:n.cardName,cardType:Sr(n.type.code),cardCategory:n.type.code.includes("physical")?"physical":"virtual",cardLimit:oe(n.limit.amount),cardLastFourDigits:n.accountLast4,cardStatus:n.status.code,cardAssignedDate:n.createTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:n.providerCardCreateTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:W?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:n.creditLimitFrequency.name,cardSpentAmount:oe(n.balance.amount),cardAvailableLimit:oe(n.available.amount),cardUtilizationPercent:jr(n.limit.amount,n.available.amount),cardUtilizationAmount:oe(Cr(n)),totalNumberOfDeclinedTransactions:h.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:h.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:h.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:h.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:h.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:h.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:h.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:h.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:h.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:h.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Pe(n.cardCreatedByUser,!1),cardIssuedByEmail:n.cardCreatedByUser?.email,cardIssuedByUserId:n.cardCreatedByUser?.userId,cardIssuedByRole:V,cardIssuedByDepartment:K},{cardholderName:Pe(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:O,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:Z},{cardLimitUpdatedByName:br(T),cardLimitUpdatedByEmail:T.userEmail,cardLimitUpdatedByRole:F,cardLimitUpdatedByUserId:T.userId},Y,oe(H.amount),j,m!=null?j.includes(m):!1,m,l,y)},ce={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},Er=i.div`
53
53
  position: fixed;
54
54
  top: ${r.sp0};
55
55
  left: ${r.sp0};
@@ -77,10 +77,10 @@ import{q as he,d as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,
77
77
  `,Rr=i(xe)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  margin-bottom: ${r.sp2};
80
- `,Mr=i(v)`
80
+ `,Or=i(v)`
81
81
  color: ${e=>e.theme.colors.hero};
82
82
  margin-bottom: ${r.sp3};
83
- `,Or=i.div`
83
+ `,Mr=i.div`
84
84
  display: flex;
85
85
  justify-content: center;
86
86
  padding-top: ${r.sp4};
@@ -127,7 +127,7 @@ import{q as he,d as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,
127
127
  height: ${r.sp3};
128
128
  `,Yr=i.form`
129
129
  display: contents;
130
- `,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{common:S,closeCard:O}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",E=(e,f)=>`${e}.${f}`,De=e=>`${e}_form`,{common:be,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Si=({showCloseCardDrawer:e,onCloseCloseCardDrawer:f,isChargeCardAdmin:p,chargeCardsByCardId:c,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,closeCardFetchState:n,onRemoveCardClick:h,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[w,B]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),H=a=>{B(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(u=>[u,!1])),[a]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:M}=j.formState,K=a=>`${c[a].cardHolderUser?.firstName??""} ${c[a].cardHolderUser?.lastName??""}`,Z=ue(M,E(z,"reasonType")),F=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const a=j.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};R(s)}}),m=Object.keys(l).length>1,A=Object.keys(l).length,D=Object.values(l).reduce((a,s)=>a+s.length,0);return t.jsx(Be,{anchor:"right",open:e,onClose:f,PaperProps:{style:{width:P.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Gr,{windowSize:o,children:[t.jsxs(Kr,{windowSize:o,children:[t.jsx(Zr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:m?O.closeCards:O.closeCard}):t.jsx(dt,{children:m?O.closeCards:O.closeCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:m?D>0?`${O.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",A.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${O.multipleCardsHasRecurringExpensesSuffix}`:O.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",A.toString()):O.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),m&&t.jsx(Pt,{children:`${A} ${A===1?S.card:S.cards} ${S.selected}`}),Object.keys(l).map((a,s)=>{const u=l[a].length>0;return t.jsxs(pt,{onClick:()=>u?H(a):void 0,isMoreThanOneCard:m,isLastCard:s===Object.keys(l).length-1,children:[t.jsxs(mt,{windowSize:o,children:[t.jsxs(ut,{windowSize:o,children:[t.jsxs(gt,{windowSize:o,children:[c[a].cardHolderUser?.photo!==void 0?t.jsx(et,{src:c[a].cardHolderUser?.photo.href,alt:Xr.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:c[a].cardHolderUser?.firstName??"",lastName:c[a].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(ht,{children:K(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:c[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&u&&(w[a]?t.jsx(Fe,{}):t.jsx(Ae,{}))]}),t.jsxs(wt,{windowSize:o,children:[c[a].cardName,t.jsx(or,{cardDetail:c[a],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs($t,{windowSize:o,children:[t.jsxs(Ct,{children:[t.jsx(zt,{children:l[a].length}),t.jsx(St,{children:S.recurringExpenses})]}),o!=="small"&&u&&(w[a]?t.jsx(Fe,{}):t.jsx(Ae,{}))]})]}),m&&t.jsx(it,{children:t.jsx(Ve,{variant:"standard",title:be.remove,children:t.jsx(tt,{onClick:()=>h(a)})})}),w[a]&&u&&t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsxs(ft,{children:[t.jsxs(kt,{children:[t.jsx(je,{width:o==="small"?112:240,children:S.merchant}),t.jsx(je,{width:o==="small"?112:104,children:S.nextPaymentDate}),t.jsx(Lt,{width:o==="small"?100:312,children:S.amount})]}),l[a].map((g,$)=>t.jsxs("div",{children:[$>0&&t.jsx(Ne,{}),t.jsxs(yt,{children:[t.jsxs(bt,{windowSize:o,children:[t.jsx(ot,{src:g.merchant.logo?.url?.href}),t.jsx(rt,{windowSize:o,children:g.merchant.brandName??g.merchant.name})]}),t.jsx(vt,{windowSize:o,children:g.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(jt,{windowSize:o,children:re("0,0.00",g.amount)})]},g.merchant.name)]},g.merchant.name))]})]})]},a)})]}),t.jsx(Dt,{windowSize:o,children:S.letUsKnowWhy}),t.jsxs(Tt,{isReasonTextFieldVisible:F==="other",children:[t.jsxs(at,{size:o,children:[t.jsx(Ye,{label:S.reasonLabel,htmlFor:E(z,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(st,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:S.reason.lost},style:{width:"auto"},radioField:{name:E(z,"reasonType"),id:`${E(z,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.fraud},style:{width:"auto"},radioField:{name:E(z,"reasonType"),id:`${E(z,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.not_needed},style:{width:"auto"},radioField:{name:E(z,"reasonType"),id:`${E(z,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.other},style:{width:"auto"},radioField:{name:E(z,"reasonType"),id:`${E(z,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}})]})]}),F==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${P.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:E(z,"reason"),placeholder:O.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!p,validate:a=>p?!0:!!a}}):F==null&&!p&&Z?t.jsx(Jr,{children:O.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:be.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:be.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Gr=i.div`
130
+ `,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{common:S,closeCard:M}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",E=(e,f)=>`${e}.${f}`,De=e=>`${e}_form`,{common:be,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Si=({showCloseCardDrawer:e,onCloseCloseCardDrawer:f,isChargeCardAdmin:p,chargeCardsByCardId:c,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,closeCardFetchState:n,onRemoveCardClick:h,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[w,B]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),H=a=>{B(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(u=>[u,!1])),[a]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,K=a=>`${c[a].cardHolderUser?.firstName??""} ${c[a].cardHolderUser?.lastName??""}`,Z=ue(O,E(z,"reasonType")),F=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const a=j.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};R(s)}}),m=Object.keys(l).length>1,A=Object.keys(l).length,D=Object.values(l).reduce((a,s)=>a+s.length,0);return t.jsx(Be,{anchor:"right",open:e,onClose:f,PaperProps:{style:{width:P.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Gr,{windowSize:o,children:[t.jsxs(Kr,{windowSize:o,children:[t.jsx(Zr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:m?M.closeCards:M.closeCard}):t.jsx(dt,{children:m?M.closeCards:M.closeCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:m?D>0?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",A.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${M.multipleCardsHasRecurringExpensesSuffix}`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",A.toString()):M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),m&&t.jsx(Pt,{children:`${A} ${A===1?S.card:S.cards} ${S.selected}`}),Object.keys(l).map((a,s)=>{const u=l[a].length>0;return t.jsxs(pt,{onClick:()=>u?H(a):void 0,isMoreThanOneCard:m,isLastCard:s===Object.keys(l).length-1,children:[t.jsxs(mt,{windowSize:o,children:[t.jsxs(ut,{windowSize:o,children:[t.jsxs(gt,{windowSize:o,children:[c[a].cardHolderUser?.photo!==void 0?t.jsx(et,{src:c[a].cardHolderUser?.photo.href,alt:Xr.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:c[a].cardHolderUser?.firstName??"",lastName:c[a].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(ht,{children:K(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:c[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&u&&(w[a]?t.jsx(Fe,{}):t.jsx(Ae,{}))]}),t.jsxs(wt,{windowSize:o,children:[c[a].cardName,t.jsx(or,{cardDetail:c[a],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs($t,{windowSize:o,children:[t.jsxs(Ct,{children:[t.jsx(zt,{children:l[a].length}),t.jsx(St,{children:S.recurringExpenses})]}),o!=="small"&&u&&(w[a]?t.jsx(Fe,{}):t.jsx(Ae,{}))]})]}),m&&t.jsx(it,{children:t.jsx(Ve,{variant:"standard",title:be.remove,children:t.jsx(tt,{onClick:()=>h(a)})})}),w[a]&&u&&t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsxs(ft,{children:[t.jsxs(kt,{children:[t.jsx(je,{width:o==="small"?112:240,children:S.merchant}),t.jsx(je,{width:o==="small"?112:104,children:S.nextPaymentDate}),t.jsx(Lt,{width:o==="small"?100:312,children:S.amount})]}),l[a].map((g,$)=>t.jsxs("div",{children:[$>0&&t.jsx(Ne,{}),t.jsxs(yt,{children:[t.jsxs(bt,{windowSize:o,children:[t.jsx(ot,{src:g.merchant.logo?.url?.href}),t.jsx(rt,{windowSize:o,children:g.merchant.brandName??g.merchant.name})]}),t.jsx(vt,{windowSize:o,children:g.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(jt,{windowSize:o,children:re("0,0.00",g.amount)})]},g.merchant.name)]},g.merchant.name))]})]})]},a)})]}),t.jsx(Dt,{windowSize:o,children:S.letUsKnowWhy}),t.jsxs(Tt,{isReasonTextFieldVisible:F==="other",children:[t.jsxs(at,{size:o,children:[t.jsx(Ye,{label:S.reasonLabel,htmlFor:E(z,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(st,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:S.reason.lost},style:{width:"auto"},radioField:{name:E(z,"reasonType"),id:`${E(z,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.fraud},style:{width:"auto"},radioField:{name:E(z,"reasonType"),id:`${E(z,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.not_needed},style:{width:"auto"},radioField:{name:E(z,"reasonType"),id:`${E(z,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.other},style:{width:"auto"},radioField:{name:E(z,"reasonType"),id:`${E(z,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}})]})]}),F==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${P.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:E(z,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!p,validate:a=>p?!0:!!a}}):F==null&&!p&&Z?t.jsx(Jr,{children:M.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:be.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:be.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Gr=i.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
  background-color: ${e=>e.theme.colors.grey4};
@@ -374,7 +374,7 @@ import{q as he,d as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,
374
374
  margin-bottom: ${r.sp3};
375
375
  margin-top: ${r.sp7};
376
376
  color: ${e=>e.theme.colors.primary};
377
- `,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{lockCard:_,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ee="lockCardPage",I=(e,f)=>`${e}.${f}`,Ie=e=>`${e}_form`,{common:ve,dateFormat:Nt,cockpit:Ft}=U.getLocalizedStrings(),Ci=({showLockCardDrawer:e,onCloseLockCardDrawer:f,isChargeCardAdmin:p,chargeCardsByCardId:c,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,lockCardFetchState:n,onRemoveCardClick:h,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[w,B]=ae.useState(Object.fromEntries(Object.keys(l).map((s,u)=>[s,u===0]))),H=s=>{B(u=>u[s]?{...u,[s]:!1}:{...Object.fromEntries(Object.keys(u).map(g=>[g,!1])),[s]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:M}=j.formState,K=s=>`${c[s].cardHolderUser?.firstName??""} ${c[s].cardHolderUser?.lastName??""}`,Z=ue(M,I(k,"reasonType")),F=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const s=j.getValues(),u={reason:s[k].reason,reasonType:s[k].reasonType};R(u)}}),m=Object.keys(l).length>1,A=Object.keys(l).length,D=Object.values(l).reduce((s,u)=>s+u.length,0),a=l[Object.keys(l)[0]].length>0;return t.jsx(Be,{anchor:"right",open:e,onClose:f,PaperProps:{style:{width:L.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(At,{windowSize:o,children:[t.jsxs(Et,{windowSize:o,children:[t.jsx(Mt,{windowSize:o,children:t.jsx(_t,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:m?_.lockCards:_.lockCard}):t.jsx(Xt,{children:m?_.lockCards:_.lockCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:Ie(Ee),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Kt,{windowSize:o,children:m?D>0?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",A.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",A.toString()):a?_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):_.firstCardNoRecurringExpenses}),m&&t.jsx(mi,{children:`${A} ${A===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,u)=>{const g=l[s].length>0;return t.jsxs(Zt,{onClick:()=>g?H(s):void 0,isMoreThanOneCard:m,isLastCard:u===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Rt,{windowSize:o,children:[t.jsxs(ei,{windowSize:o,children:[c[s].cardHolderUser?.photo!==void 0?t.jsx(Bt,{src:c[s].cardHolderUser?.photo.href,alt:Ft.userProfileAltText,onError:({currentTarget:$})=>{$.onerror=null,$.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:c[s].cardHolderUser?.firstName??"",lastName:c[s].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(Jt,{children:K(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:c[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&(w[s]?t.jsx(Me,{}):t.jsx(Oe,{}))]}),t.jsxs(ti,{windowSize:o,children:[c[s].cardName,t.jsx(or,{cardDetail:c[s],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs(ii,{windowSize:o,children:[t.jsxs(li,{children:[t.jsx(pi,{children:l[s].length}),t.jsx(ci,{children:C.recurringExpenses})]}),o!=="small"&&g&&(w[s]?t.jsx(Me,{}):t.jsx(Oe,{}))]})]}),m&&t.jsx(It,{children:t.jsx(Ve,{variant:"standard",title:ve.remove,children:t.jsx(Ut,{onClick:()=>h(s)})})}),w[s]&&g&&t.jsxs(t.Fragment,{children:[t.jsx(Re,{}),t.jsxs(oi,{children:[t.jsxs(hi,{children:[t.jsx(Se,{width:o==="small"?112:240,children:C.merchant}),t.jsx(Se,{width:o==="small"?112:104,children:C.nextPaymentDate}),t.jsx(ui,{width:o==="small"?100:312,children:C.amount})]}),l[s].map(($,se)=>t.jsxs("div",{children:[se>0&&t.jsx(Re,{}),t.jsxs(ai,{children:[t.jsxs(si,{windowSize:o,children:[t.jsx(Wt,{src:$.merchant.logo?.url?.href}),t.jsx(Ht,{windowSize:o,children:$.merchant.brandName??$.merchant.name})]}),t.jsx(ni,{windowSize:o,children:$.nextPaymentDate.format(Nt.visual.MMMDCommaYYYYformat)}),t.jsx(di,{windowSize:o,children:re("0,0.00",$.amount)})]},$.merchant.name)]},$.merchant.name))]})]})]},s)})]}),t.jsx(xi,{windowSize:o,children:C.letUsKnowWhy}),t.jsxs(gi,{isReasonTextFieldVisible:F==="other",children:[t.jsxs(Vt,{size:o,children:[t.jsx(Ye,{label:C.reasonLabel,htmlFor:I(k,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(Yt,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:C.reason.lost},style:{width:"auto"},radioField:{name:I(k,"reasonType"),id:`${I(k,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.fraud},style:{width:"auto"},radioField:{name:I(k,"reasonType"),id:`${I(k,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.not_needed},style:{width:"auto"},radioField:{name:I(k,"reasonType"),id:`${I(k,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.other},style:{width:"auto"},radioField:{name:I(k,"reasonType"),id:`${I(k,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},radioSize:"small"}})]})]}),F==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:I(k,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field"}):F==null&&!p&&Z?t.jsx(Ot,{children:_.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Ie(Ee),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ve.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:ve.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},At=i.div`
377
+ `,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{lockCard:_,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ee="lockCardPage",I=(e,f)=>`${e}.${f}`,Ie=e=>`${e}_form`,{common:ve,dateFormat:Nt,cockpit:Ft}=U.getLocalizedStrings(),Ci=({showLockCardDrawer:e,onCloseLockCardDrawer:f,isChargeCardAdmin:p,chargeCardsByCardId:c,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,lockCardFetchState:n,onRemoveCardClick:h,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[w,B]=ae.useState(Object.fromEntries(Object.keys(l).map((s,u)=>[s,u===0]))),H=s=>{B(u=>u[s]?{...u,[s]:!1}:{...Object.fromEntries(Object.keys(u).map(g=>[g,!1])),[s]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,K=s=>`${c[s].cardHolderUser?.firstName??""} ${c[s].cardHolderUser?.lastName??""}`,Z=ue(O,I(k,"reasonType")),F=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const s=j.getValues(),u={reason:s[k].reason,reasonType:s[k].reasonType};R(u)}}),m=Object.keys(l).length>1,A=Object.keys(l).length,D=Object.values(l).reduce((s,u)=>s+u.length,0),a=l[Object.keys(l)[0]].length>0;return t.jsx(Be,{anchor:"right",open:e,onClose:f,PaperProps:{style:{width:L.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(At,{windowSize:o,children:[t.jsxs(Et,{windowSize:o,children:[t.jsx(Ot,{windowSize:o,children:t.jsx(_t,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:m?_.lockCards:_.lockCard}):t.jsx(Xt,{children:m?_.lockCards:_.lockCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:Ie(Ee),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Kt,{windowSize:o,children:m?D>0?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",A.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",A.toString()):a?_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):_.firstCardNoRecurringExpenses}),m&&t.jsx(mi,{children:`${A} ${A===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,u)=>{const g=l[s].length>0;return t.jsxs(Zt,{onClick:()=>g?H(s):void 0,isMoreThanOneCard:m,isLastCard:u===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Rt,{windowSize:o,children:[t.jsxs(ei,{windowSize:o,children:[c[s].cardHolderUser?.photo!==void 0?t.jsx(Bt,{src:c[s].cardHolderUser?.photo.href,alt:Ft.userProfileAltText,onError:({currentTarget:$})=>{$.onerror=null,$.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:c[s].cardHolderUser?.firstName??"",lastName:c[s].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(Jt,{children:K(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:c[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&(w[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]}),t.jsxs(ti,{windowSize:o,children:[c[s].cardName,t.jsx(or,{cardDetail:c[s],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs(ii,{windowSize:o,children:[t.jsxs(li,{children:[t.jsx(pi,{children:l[s].length}),t.jsx(ci,{children:C.recurringExpenses})]}),o!=="small"&&g&&(w[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]})]}),m&&t.jsx(It,{children:t.jsx(Ve,{variant:"standard",title:ve.remove,children:t.jsx(Ut,{onClick:()=>h(s)})})}),w[s]&&g&&t.jsxs(t.Fragment,{children:[t.jsx(Re,{}),t.jsxs(oi,{children:[t.jsxs(hi,{children:[t.jsx(Se,{width:o==="small"?112:240,children:C.merchant}),t.jsx(Se,{width:o==="small"?112:104,children:C.nextPaymentDate}),t.jsx(ui,{width:o==="small"?100:312,children:C.amount})]}),l[s].map(($,se)=>t.jsxs("div",{children:[se>0&&t.jsx(Re,{}),t.jsxs(ai,{children:[t.jsxs(si,{windowSize:o,children:[t.jsx(Wt,{src:$.merchant.logo?.url?.href}),t.jsx(Ht,{windowSize:o,children:$.merchant.brandName??$.merchant.name})]}),t.jsx(ni,{windowSize:o,children:$.nextPaymentDate.format(Nt.visual.MMMDCommaYYYYformat)}),t.jsx(di,{windowSize:o,children:re("0,0.00",$.amount)})]},$.merchant.name)]},$.merchant.name))]})]})]},s)})]}),t.jsx(xi,{windowSize:o,children:C.letUsKnowWhy}),t.jsxs(gi,{isReasonTextFieldVisible:F==="other",children:[t.jsxs(Vt,{size:o,children:[t.jsx(Ye,{label:C.reasonLabel,htmlFor:I(k,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(Yt,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:C.reason.lost},style:{width:"auto"},radioField:{name:I(k,"reasonType"),id:`${I(k,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.fraud},style:{width:"auto"},radioField:{name:I(k,"reasonType"),id:`${I(k,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.not_needed},style:{width:"auto"},radioField:{name:I(k,"reasonType"),id:`${I(k,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.other},style:{width:"auto"},radioField:{name:I(k,"reasonType"),id:`${I(k,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},radioSize:"small"}})]})]}),F==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:I(k,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field"}):F==null&&!p&&Z?t.jsx(Mt,{children:_.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Ie(Ee),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ve.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:ve.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},At=i.div`
378
378
  display: flex;
379
379
  flex-direction: column;
380
380
  background-color: ${e=>e.theme.colors.grey4};
@@ -393,7 +393,7 @@ import{q as he,d as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,
393
393
  `,Rt=i.div`
394
394
  display: flex;
395
395
  justify-content: space-between;
396
- `,Mt=i.div`
396
+ `,Ot=i.div`
397
397
  display: flex;
398
398
  flex-direction: row-reverse;
399
399
  justify-content: space-between;
@@ -403,7 +403,7 @@ import{q as he,d as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,
403
403
  padding: ${e=>`${L.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${r.sp0}`};
404
404
  z-index: 2;
405
405
  background-color: ${e=>e.theme.colors.grey4};
406
- `,Ot=i(G)`
406
+ `,Mt=i(G)`
407
407
  color: ${e=>e.theme.colors.important};
408
408
  text-align: end;
409
409
  `,_t=i(Ze)`
@@ -582,13 +582,13 @@ import{q as he,d as _e,aa as me,y as d,db as ue,j as t,fn as Be,O as U,ad as ge,
582
582
  `,mi=i(we)`
583
583
  color: ${e=>e.theme.colors.primary};
584
584
  padding: ${r.sp3} ${r.sp0};
585
- `,Me=i(Qe)`
585
+ `,Oe=i(Qe)`
586
586
  width: ${r.sp4};
587
587
  height: ${r.sp4};
588
588
  min-width: ${r.sp4};
589
589
  min-height: ${r.sp4};
590
590
  color: inherit;
591
- `,Oe=i(er)`
591
+ `,Me=i(er)`
592
592
  cursor: pointer;
593
593
  width: ${r.sp4};
594
594
  height: ${r.sp4};
@@ -1,4 +1,4 @@
1
- import{O as F,q as T,aa as z,l as s,j as a,ad as A,cD as S,cY as R,y as m,c$ as W,o as e,cF as E,u,b9 as Y,aT as U,c7 as N}from"./index-TYkG9rxW.js";import{n as r}from"./vendor-Bs1fkIUX.js";const d={labelWidth:new m(152,176,176),paddingBottom:new m(u[3],u[2]),width:new m(300,420,420),paddingRight:new m(u[4],u[3])},q=r.div`
1
+ import{O as F,q as T,aa as z,l as s,j as a,ad as A,cD as S,cY as R,y as m,c$ as W,o as e,cF as E,u,b9 as Y,aT as U,c7 as N}from"./index-MAXVX6UR.js";import{n as r}from"./vendor-Bs1fkIUX.js";const d={labelWidth:new m(152,176,176),paddingBottom:new m(u[3],u[2]),width:new m(300,420,420),paddingRight:new m(u[4],u[3])},q=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${t=>t.theme.colors.grey5};
@@ -1 +1 @@
1
- import{j as l}from"./index-TYkG9rxW.js";import{f as y}from"./ACHDetailsPage-BZFkcCOG-BgLnT2bx.js";import"./mui-Ty75qFQF.js";import"./vendor-Bs1fkIUX.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountWarningSection-Di_BsiJC-Be424FdZ.js";import"./MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js";import"./BankAccountSection-GDEQdiGL-D7Gh00lc.js";const j=({magicLinkViewState:t,magicLinkBankAccountDetails:a,onSaveHandler:e,onACHDetailsUpdated:o,onFetchBankName:n,isDisabled:i,companyName:r})=>{const{fetchState:m,error:c,bankNameByRouting:p,bankAccountToCreate:s,fetchBankNameByRoutingStatus:u}=a,{currencySymbol:k,amount:f}=t;return l.jsx(y,{bankAccountToCreate:s,bankAccountCreationState:{fetchState:m,error:c},bankNameByRouting:p,fetchBankNameByRoutingStatus:u,onSaveHandler:e,onACHDetailsUpdated:o,onFetchBankName:n,isDisabled:i,companyName:r,isMagicLink:!0,currencySymbol:k,amount:f})};export{j as default};
1
+ import{j as l}from"./index-MAXVX6UR.js";import{f as y}from"./ACHDetailsPage-FHBR2PCA-DLva-SPh.js";import"./mui-Ty75qFQF.js";import"./vendor-Bs1fkIUX.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js";import"./MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js";import"./BankAccountSection-ByfDYmEM-WCmaTn1f.js";const j=({magicLinkViewState:t,magicLinkBankAccountDetails:a,onSaveHandler:e,onACHDetailsUpdated:o,onFetchBankName:n,isDisabled:i,companyName:r})=>{const{fetchState:m,error:c,bankNameByRouting:p,bankAccountToCreate:s,fetchBankNameByRoutingStatus:u}=a,{currencySymbol:k,amount:f}=t;return l.jsx(y,{bankAccountToCreate:s,bankAccountCreationState:{fetchState:m,error:c},bankNameByRouting:p,fetchBankNameByRoutingStatus:u,onSaveHandler:e,onACHDetailsUpdated:o,onFetchBankName:n,isDisabled:i,companyName:r,isMagicLink:!0,currencySymbol:k,amount:f})};export{j as default};
@@ -1 +1 @@
1
- import{j as S}from"./index-TYkG9rxW.js";import{D as b}from"./DomesticWireDetailsPage-D5hbPNCt-DaulrfVc.js";import"./mui-Ty75qFQF.js";import"./vendor-Bs1fkIUX.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountSection-GDEQdiGL-D7Gh00lc.js";import"./MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js";import"./BankAccountWarningSection-Di_BsiJC-Be424FdZ.js";import"./MailingDetailsSection-9RwlQxVG-BFE8Zj6F.js";import"./LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js";const F=({magicLinkViewState:t,magicLinkBankAccountDetails:e,mailingAddressDetails:a,isDisabled:o,companyName:r,onSaveHandler:i,onWireDetailsUpdated:n,onFetchBankName:m,onAddressClick:s})=>{const{fetchState:c,error:d,bankNameByRouting:p,bankAccountToCreate:u,fetchBankNameByRoutingStatus:k}=e,{currencySymbol:l,amount:y}=t;return S.jsx(b,{bankAccountToCreate:u,bankAccountCreationState:{fetchState:c,error:d},bankNameByRouting:p,addressToEdit:a,addressType:"vendor_address",fetchBankNameByRoutingStatus:k,isDisabled:o,onSaveHandler:i,onWireDetailsUpdated:n,onAddressClick:s,onFetchBankName:m,companyName:r,isMagicLink:!0,currencySymbol:l,amount:y})};export{F as default};
1
+ import{j as S}from"./index-MAXVX6UR.js";import{D as b}from"./DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js";import"./mui-Ty75qFQF.js";import"./vendor-Bs1fkIUX.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountSection-ByfDYmEM-WCmaTn1f.js";import"./MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js";import"./BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js";import"./MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js";import"./LabeledAddressValueField-6MpVMde--DXTq8JS8.js";const F=({magicLinkViewState:t,magicLinkBankAccountDetails:e,mailingAddressDetails:a,isDisabled:o,companyName:r,onSaveHandler:i,onWireDetailsUpdated:n,onFetchBankName:m,onAddressClick:s})=>{const{fetchState:c,error:d,bankNameByRouting:p,bankAccountToCreate:u,fetchBankNameByRoutingStatus:k}=e,{currencySymbol:l,amount:y}=t;return S.jsx(b,{bankAccountToCreate:u,bankAccountCreationState:{fetchState:c,error:d},bankNameByRouting:p,addressToEdit:a,addressType:"vendor_address",fetchBankNameByRoutingStatus:k,isDisabled:o,onSaveHandler:i,onWireDetailsUpdated:n,onAddressClick:s,onFetchBankName:m,companyName:r,isMagicLink:!0,currencySymbol:l,amount:y})};export{F as default};
@@ -1 +1 @@
1
- import{j as B}from"./index-TYkG9rxW.js";import{f as S}from"./InternationalWireSwiftDetailsPage-C2SnHEV1-DaLUKDNV.js";import"./mui-Ty75qFQF.js";import"./vendor-Bs1fkIUX.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountWarningSection-Di_BsiJC-Be424FdZ.js";import"./MailingDetailsSection-9RwlQxVG-BFE8Zj6F.js";import"./LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js";import"./MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js";const L=({magicLinkViewState:t,magicLinkBankAccountDetails:a,mailingAddressDetails:e,isDisabled:n,companyName:i,onSaveHandler:o,onBankDetailsUpdated:r,onFetchBankNameBySwift:m,onAddressClick:s})=>{const{internationalBankAccountCreateStatus:c,internationalBankAccountToCreate:d,fetchBankNameBySwiftStatus:p,bankNameBySwift:k}=a,{currencySymbol:l,amount:u}=t;return B.jsx(S,{bankAccountToCreate:d,bankAccountCreationState:c,bankNameBySwift:k,addressToEdit:e,addressType:"vendor_address",fetchBankNameBySwiftStatus:p,isDisabled:n,onSaveHandler:o,onBankDetailsUpdated:r,onAddressClick:s,onFetchBankNameBySwift:m,companyName:i,isMagicLink:!0,currencySymbol:l,amount:u})};export{L as default};
1
+ import{j as B}from"./index-MAXVX6UR.js";import{f as S}from"./InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js";import"./mui-Ty75qFQF.js";import"./vendor-Bs1fkIUX.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js";import"./MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js";import"./LabeledAddressValueField-6MpVMde--DXTq8JS8.js";import"./MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js";const L=({magicLinkViewState:t,magicLinkBankAccountDetails:a,mailingAddressDetails:e,isDisabled:n,companyName:i,onSaveHandler:o,onBankDetailsUpdated:r,onFetchBankNameBySwift:m,onAddressClick:s})=>{const{internationalBankAccountCreateStatus:c,internationalBankAccountToCreate:d,fetchBankNameBySwiftStatus:p,bankNameBySwift:k}=a,{currencySymbol:l,amount:u}=t;return B.jsx(S,{bankAccountToCreate:d,bankAccountCreationState:c,bankNameBySwift:k,addressToEdit:e,addressType:"vendor_address",fetchBankNameBySwiftStatus:p,isDisabled:n,onSaveHandler:o,onBankDetailsUpdated:r,onAddressClick:s,onFetchBankNameBySwift:m,companyName:i,isMagicLink:!0,currencySymbol:l,amount:u})};export{L as default};
@@ -1,4 +1,4 @@
1
- import{aY as r,O as n,j as t,b4 as l,o as i,ag as a,_ as c,s as p}from"./index-TYkG9rxW.js";import{n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const M=()=>{const[e]=r("Confetti"),s=n.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen;return e!=null?t.jsxs(m,{children:[t.jsx(l,{loop:!1,play:!0,segments:[100,299],animationData:e,style:{position:"absolute"},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}),t.jsx(u,{children:t.jsx(x,{})}),t.jsxs(d,{children:[t.jsx(g,{children:s.successTitle}),t.jsx(h,{children:s.successNote})]})]}):null},m=o.div`
1
+ import{aY as r,O as n,j as t,b4 as l,o as i,ag as a,_ as c,s as p}from"./index-MAXVX6UR.js";import{n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const M=()=>{const[e]=r("Confetti"),s=n.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen;return e!=null?t.jsxs(m,{children:[t.jsx(l,{loop:!1,play:!0,segments:[100,299],animationData:e,style:{position:"absolute"},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}),t.jsx(u,{children:t.jsx(x,{})}),t.jsxs(d,{children:[t.jsx(g,{children:s.successTitle}),t.jsx(h,{children:s.successNote})]})]}):null},m=o.div`
2
2
  z-index: 999;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{O as C,aX as p,j as t,_ as m,o as a,am as h,h as g,cw as x}from"./index-TYkG9rxW.js";import{n,b as l}from"./vendor-Bs1fkIUX.js";const d=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0257 -0.000342749C11.8221 -0.00677984 11.624 0.0667416 11.4727 0.204861C11.4727 0.204861 7.52114 3.7329 2.78947 3.7329C2.5801 3.73292 2.37931 3.81721 2.23125 3.96724C2.0832 4.11726 2.00002 4.32072 2 4.53288V11.0713C2 14.6328 3.62601 20.4933 11.6937 23.9366C11.7906 23.978 11.8948 23.9993 12 23.9993C12.1052 23.9993 12.2094 23.978 12.3063 23.9366C20.374 20.4933 22 14.6328 22 11.0713V4.53288C22 4.32072 21.9168 4.11726 21.7687 3.96724C21.6207 3.81721 21.4199 3.73292 21.2105 3.7329C16.4789 3.7329 12.5273 0.204861 12.5273 0.204861C12.3892 0.0787349 12.2115 0.00606537 12.0257 -0.000342749ZM12 5.33287C13.7421 5.33287 15.1579 6.7675 15.1579 8.53279V9.59943C16.0263 9.59943 16.7368 10.3194 16.7368 11.1994V15.466C16.7368 16.3459 16.0263 17.0659 15.1579 17.0659H8.84211C7.97368 17.0659 7.26316 16.3459 7.26316 15.466V11.1994C7.26316 10.3194 7.97368 9.59943 8.84211 9.59943V8.53279C8.84211 6.7675 10.2579 5.33287 12 5.33287ZM12 6.93283C11.1316 6.93283 10.4211 7.65281 10.4211 8.53279V9.59943H13.5789V8.53279C13.5789 7.65281 12.8684 6.93283 12 6.93283ZM12 11.7327C11.5812 11.7327 11.1796 11.9013 10.8835 12.2013C10.5874 12.5014 10.4211 12.9083 10.4211 13.3327C10.4211 13.757 10.5874 14.164 10.8835 14.464C11.1796 14.7641 11.5812 14.9326 12 14.9326C12.4188 14.9326 12.8204 14.7641 13.1165 14.464C13.4126 14.164 13.5789 13.757 13.5789 13.3327C13.5789 12.9083 13.4126 12.5014 13.1165 12.2013C12.8204 11.9013 12.4188 11.7327 12 11.7327Z",fill:"currentColor"})),V=({companyName:e,currencySymbol:c,amount:r})=>{const s=C.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen,i=r>0?` ${p("0,0.[00]",r,c)}`:"",o=s.title.replace(/<tenant_name>/,e)+i;return t.jsxs(t.Fragment,{children:[t.jsx(y,{children:o}),t.jsxs(f,{children:[s.description.replace(/<tenant_name>/,e),t.jsxs(w,{children:[t.jsx($,{}),s.encrypted]})]})]})},w=n(x)`
1
+ import{O as C,aX as p,j as t,_ as m,o as a,am as h,h as g,cw as x}from"./index-MAXVX6UR.js";import{n,b as l}from"./vendor-Bs1fkIUX.js";const d=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0257 -0.000342749C11.8221 -0.00677984 11.624 0.0667416 11.4727 0.204861C11.4727 0.204861 7.52114 3.7329 2.78947 3.7329C2.5801 3.73292 2.37931 3.81721 2.23125 3.96724C2.0832 4.11726 2.00002 4.32072 2 4.53288V11.0713C2 14.6328 3.62601 20.4933 11.6937 23.9366C11.7906 23.978 11.8948 23.9993 12 23.9993C12.1052 23.9993 12.2094 23.978 12.3063 23.9366C20.374 20.4933 22 14.6328 22 11.0713V4.53288C22 4.32072 21.9168 4.11726 21.7687 3.96724C21.6207 3.81721 21.4199 3.73292 21.2105 3.7329C16.4789 3.7329 12.5273 0.204861 12.5273 0.204861C12.3892 0.0787349 12.2115 0.00606537 12.0257 -0.000342749ZM12 5.33287C13.7421 5.33287 15.1579 6.7675 15.1579 8.53279V9.59943C16.0263 9.59943 16.7368 10.3194 16.7368 11.1994V15.466C16.7368 16.3459 16.0263 17.0659 15.1579 17.0659H8.84211C7.97368 17.0659 7.26316 16.3459 7.26316 15.466V11.1994C7.26316 10.3194 7.97368 9.59943 8.84211 9.59943V8.53279C8.84211 6.7675 10.2579 5.33287 12 5.33287ZM12 6.93283C11.1316 6.93283 10.4211 7.65281 10.4211 8.53279V9.59943H13.5789V8.53279C13.5789 7.65281 12.8684 6.93283 12 6.93283ZM12 11.7327C11.5812 11.7327 11.1796 11.9013 10.8835 12.2013C10.5874 12.5014 10.4211 12.9083 10.4211 13.3327C10.4211 13.757 10.5874 14.164 10.8835 14.464C11.1796 14.7641 11.5812 14.9326 12 14.9326C12.4188 14.9326 12.8204 14.7641 13.1165 14.464C13.4126 14.164 13.5789 13.757 13.5789 13.3327C13.5789 12.9083 13.4126 12.5014 13.1165 12.2013C12.8204 11.9013 12.4188 11.7327 12 11.7327Z",fill:"currentColor"})),V=({companyName:e,currencySymbol:c,amount:r})=>{const s=C.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen,i=r>0?` ${p("0,0.[00]",r,c)}`:"",o=s.title.replace(/<tenant_name>/,e)+i;return t.jsxs(t.Fragment,{children:[t.jsx(y,{children:o}),t.jsxs(f,{children:[s.description.replace(/<tenant_name>/,e),t.jsxs(w,{children:[t.jsx($,{}),s.encrypted]})]})]})},w=n(x)`
2
2
  display: flex;
3
3
  gap: ${a.sp1};
4
4
  color: ${g.successDark};
@@ -1,4 +1,4 @@
1
- import{q as h,O as u,y as r,j as s,o as a,cX as b,b8 as x,u as i}from"./index-TYkG9rxW.js";import{n}from"./vendor-Bs1fkIUX.js";import{W as f}from"./LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js";const o={largeLabelWidth:new r(120,140,220),paddingTopBottom:new r(i[3],i[3]),marginRight:new r(i[3],i[8]),marginLeft:new r(i[3],i[6]),marginLeftTitle:new r(i[4],i[6])},j=({sectionId:e,addressToEdit:t,addressType:m,isDisabled:p,onAddressClick:g})=>{const l=h(),d=u.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,$=o.largeLabelWidth.value(l);return s.jsxs(s.Fragment,{children:[s.jsx(L,{size:l,children:d.addressDetailTitle}),s.jsx(v,{size:l,children:s.jsx(f,{isDisabled:p,label:{label:d.address,width:$},addressValueField:{name:w(e,"mailingAddress"),placeholder:b(d.address),defaultValue:t,registerOptions:{validate:c=>c!=null},onClick:()=>{g(m)}},additionalInfoLabel:d.additionalAddressLabel,showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`},hasHoverBorder:!1})})]})},w=(e,t)=>`${e}.${t}`,v=n.div`
1
+ import{q as h,O as u,y as r,j as s,o as a,cX as b,b8 as x,u as i}from"./index-MAXVX6UR.js";import{n}from"./vendor-Bs1fkIUX.js";import{W as f}from"./LabeledAddressValueField-6MpVMde--DXTq8JS8.js";const o={largeLabelWidth:new r(120,140,220),paddingTopBottom:new r(i[3],i[3]),marginRight:new r(i[3],i[8]),marginLeft:new r(i[3],i[6]),marginLeftTitle:new r(i[4],i[6])},j=({sectionId:e,addressToEdit:t,addressType:m,isDisabled:p,onAddressClick:g})=>{const l=h(),d=u.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,$=o.largeLabelWidth.value(l);return s.jsxs(s.Fragment,{children:[s.jsx(L,{size:l,children:d.addressDetailTitle}),s.jsx(v,{size:l,children:s.jsx(f,{isDisabled:p,label:{label:d.address,width:$},addressValueField:{name:w(e,"mailingAddress"),placeholder:b(d.address),defaultValue:t,registerOptions:{validate:c=>c!=null},onClick:()=>{g(m)}},additionalInfoLabel:d.additionalAddressLabel,showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`},hasHoverBorder:!1})})]})},w=(e,t)=>`${e}.${t}`,v=n.div`
2
2
  width: auto;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{q as o,j as i,aM as d,ap as c,h as l,o as h,y as a}from"./index-TYkG9rxW.js";import{n as s}from"./vendor-Bs1fkIUX.js";const r={width:new a(425,850,850),height:new a(320,640,640)},p=s.div`
1
+ import{q as o,j as i,aM as d,ap as c,h as l,o as h,y as a}from"./index-MAXVX6UR.js";import{n as s}from"./vendor-Bs1fkIUX.js";const r={width:new a(425,850,850),height:new a(320,640,640)},p=s.div`
2
2
  position: fixed;
3
3
  top: 0;
4
4
  left: 0;
@@ -1,4 +1,4 @@
1
- import{j as o,ap as u,f2 as h,o as s,d,f3 as x}from"./index-TYkG9rxW.js";import{b as m,n as c,i as f}from"./vendor-Bs1fkIUX.js";const y=({open:e,onClose:r,anchorEl:t,children:n,styles:l})=>{const i=d();return o.jsx(x,{transitionDuration:0,anchorEl:t,open:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:i.colors.grey5,boxShadow:`${s.sp0} 2px ${s.sp2} ${i.colors.dropShadowHover}`,boxSizing:"border-box",transform:l?.transform??"translate(30px,10px)",borderRadius:s.sp1}}},onClose:r,disableAutoFocus:!0,disableEnforceFocus:!0,children:n})},b=c.div`
1
+ import{j as o,ap as u,f2 as h,o as s,c as d,f3 as x}from"./index-MAXVX6UR.js";import{b as m,n as c,i as f}from"./vendor-Bs1fkIUX.js";const y=({open:e,onClose:r,anchorEl:t,children:n,styles:l})=>{const i=d();return o.jsx(x,{transitionDuration:0,anchorEl:t,open:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:i.colors.grey5,boxShadow:`${s.sp0} 2px ${s.sp2} ${i.colors.dropShadowHover}`,boxSizing:"border-box",transform:l?.transform??"translate(30px,10px)",borderRadius:s.sp1}}},onClose:r,disableAutoFocus:!0,disableEnforceFocus:!0,children:n})},b=c.div`
2
2
  position: relative;
3
3
  `,C=({menuItems:e,isMenuOpen:r,isMenuVisible:t=!0,setIsMenuOpen:n,styles:l,menuIconStyles:i})=>{const p=m.useRef(null);return o.jsx(u,{onClickAway:()=>{n(!1)},children:o.jsxs(b,{ref:p,children:[o.jsx(g,{className:"placeholder",style:i,onClick:a=>{a.stopPropagation(),n(!r)},children:o.jsx(j,{isMenuVisible:t,children:o.jsx(h,{})})}),r?o.jsx(y,{open:r,onClose:a=>{a.stopPropagation(),n(!1)},anchorEl:p.current,styles:l,children:e}):null]})})},g=c.div`
4
4
  height: ${s.sp4};
@@ -1,4 +1,4 @@
1
- import{d as z,q as M,fG as H,O as $,aU as w,j as i,l as I,bF as L,ab as v,o as t,bA as P,y as d,an as B,am as _,C as R,c as W,fH as j,fI as C,u as m,fK as E,h as A,ai as F}from"./index-TYkG9rxW.js";import{b as y,n}from"./vendor-Bs1fkIUX.js";import{K as N}from"./SetUpDefaultSection-Bm1eZSgT-vK_tZkJp.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const r={sectionWidth:new d(343,580,726),iconContainerMaxWidthHeight:new d(m[6],m[7]),iconContainerMarginRight:new d(12,m[3]),iconPadding:new d(10,12),iconWidthHeight:new d(20,m[4]),elementsMarginLeftRight:new d(m[3],m[4])},J={title:new W("standardMedium","largeMedium")},K=n.img`
1
+ import{c as z,q as M,fG as H,O as $,aU as w,j as i,l as I,bF as L,ab as v,o as t,bA as P,y as d,an as B,am as _,C as R,b as W,fH as j,fI as C,u as m,fK as E,h as A,ai as F}from"./index-MAXVX6UR.js";import{b as y,n}from"./vendor-Bs1fkIUX.js";import{K as N}from"./SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const r={sectionWidth:new d(343,580,726),iconContainerMaxWidthHeight:new d(m[6],m[7]),iconContainerMarginRight:new d(12,m[3]),iconPadding:new d(10,12),iconWidthHeight:new d(20,m[4]),elementsMarginLeftRight:new d(m[3],m[4])},J={title:new W("standardMedium","largeMedium")},K=n.img`
2
2
  width: ${e=>r.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
3
3
  height: ${e=>r.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
4
4
  border-radius: ${t.sp11};
@@ -1,4 +1,4 @@
1
- import{d as N,ax as B,l as w,O as D,f_ as a,j as d,bF as M,gh as O,o as j}from"./index-TYkG9rxW.js";import{n as P}from"./vendor-Bs1fkIUX.js";import{a as U,l as $}from"./ChargeCardListTable-BGWV4zJl-Ce2AthWH.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./Menu-B6iTf2H7-CaN3eNC5.js";import"./RoleWithToolTip-BqI6M0x_-CjRr5WNK.js";import"./CardNumberSubText-CmhH95Ff-Cm3hJRYZ.js";import"./ChargeCardUtils-BRgkrCTs-C8zXQGn9.js";const{spendManagement:{chargeCard:C}}=D.getLocalizedStrings(),at=({myPendingActivationChargeCardListView:e,isChargeCardFeatureEnabled:o,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,chargeCardCashbackDetailState:r,creditAccount:c,creditAccountRepayment:u,depositAccountListWithDebitCardIssued:i,controllerEmails:b,signedInUser:S,onChargeCardRowClick:p,onBackClick:k,onReloadCards:g,onColumnSortConfigChanged:A})=>{const f=N(),F=B(),h=w.hasChargeCardAdminLevelAccess(F.loggedInUserRoleMap),v=e.cards.some(t=>t.type.code.includes("credit")),m=e.cards.some(t=>t.type.code.includes("debit")),y=v&&m?C.cardList.title.cards:m?C.cardList.title.debit:C.cardList.title.credit,E=h===!0?{creditCardCashbackOffer:`${r.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${r.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:a(r.cashbackSummary.cashbackEarned.amount),redeemedCashback:a(r.cashbackSummary.cashbackRedeemed.amount),availableCashback:a(r.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:r.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:r.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,L=o&&l&&h===!0?{creditAccountId:c.id,creditAccountLimit:a(c.limit.amount),creditAccountAvailableAmount:a(c.available.amount),creditAccountSpentAmount:a(c.balance.amount+c.hold.amount),creditAccountStatus:c.status,outstandingBalance:a(u.remainingAmountDue.amount)}:void 0,I=n&&s?{debitAccountId:i.depositAccounts.map(t=>t.id),debitAccountName:i.depositAccounts.map(t=>t.accountName),debitAccountBalance:i.depositAccounts.map(t=>a(t.accountBalance.available.amount)),debitCardsSpend:0,debitAccountStatus:i.depositAccounts.map(t=>t.accountStatus)}:void 0,R={isCreditCardOffered:o,isDebitCardOffered:n,isDebitCardEnabled:s,isCreditCardEnabled:l},x={revokeChargeCardFetchState:{fetchState:"Not-Started"},unlockChargeCardsFetchState:{fetchState:"Not-Started"},lockChargeCardsFetchState:{fetchState:"Not-Started"},closeChargeCardsFetchState:{fetchState:"Not-Started"},updateChargeCardLimitFetchState:{fetchState:"Not-Started"},updateChargeCardNameFetchState:{fetchState:"Not-Started"},depositAccountLimitFetchState:{fetchState:"Not-Started"},recurringExpenses:[],recurringExpensesFetchState:{fetchState:"Not-Started"}};return d.jsxs(V,{children:[d.jsx(M,{title:y,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:k,source:"MyPendingActivationChargeCardListPage"}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?d.jsx(O,{fetchState:e.fetchState,styles:{margin:"auto"}}):d.jsx(U,{onBulkCloseClick:()=>{},onBulkLockClick:()=>{},bulkSubmissionLimit:$,isCardControlsEnabled:!1,cardsSelectedForBulkAction:[],isBulkActionAllowed:!1,firstSelectedCardStatus:void 0,setActionTypeForRowAction:()=>{},setCardIdForRowAction:()=>{},controllerEmails:b,isChargeCardFeatureEnabled:o,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,creditAccount:c,creditAccountRepayment:u,productInformation:R,cashbackInformation:E,creditAccountInformation:L,debitAccountInformation:I,depositAccountListWithDebitCardIssued:i,cardList:e.cards,showViewForCardUser:!0,signedInUser:S,fetchState:e.fetchState,unlockChargeCardsFetchState:"Not-Started",revokeChargeCardsInviteFetchState:"Not-Started",rowActionView:x,onProceedForBulkActionClick:t=>{},removeAllCardsFromBulkActionList:()=>{},setShowBulkChangeSpendLimitPopup:t=>{},updateBulkActionList:t=>{},onReloadCards:g,onChargeCardRowClick:(t,z)=>{p(t)},uiState:e.uiState,onColumnSortConfigChanged:A,onChargeCardResendInviteClick:()=>{}})]})},V=P.div`
1
+ import{c as N,ax as B,l as w,O as D,f_ as a,j as o,bF as M,gh as O,o as j}from"./index-MAXVX6UR.js";import{n as P}from"./vendor-Bs1fkIUX.js";import{a as U,l as $}from"./ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./Menu-CV1BBSGW-DKOqAYYS.js";import"./RoleWithToolTip-CnJMJF5X-DPQwf2SV.js";import"./CardNumberSubText-C_03r_B--CXrhgc3z.js";import"./ChargeCardUtils-Cx6ntaue-CziTslau.js";const{spendManagement:{chargeCard:C}}=D.getLocalizedStrings(),at=({myPendingActivationChargeCardListView:e,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,chargeCardCashbackDetailState:r,creditAccount:c,creditAccountRepayment:u,depositAccountListWithDebitCardIssued:i,controllerEmails:b,signedInUser:S,onChargeCardRowClick:p,onBackClick:k,onReloadCards:g,onColumnSortConfigChanged:A})=>{const f=N(),F=B(),h=w.hasChargeCardAdminLevelAccess(F.loggedInUserRoleMap),v=e.cards.some(t=>t.type.code.includes("credit")),m=e.cards.some(t=>t.type.code.includes("debit")),y=v&&m?C.cardList.title.cards:m?C.cardList.title.debit:C.cardList.title.credit,E=h===!0?{creditCardCashbackOffer:`${r.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${r.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:a(r.cashbackSummary.cashbackEarned.amount),redeemedCashback:a(r.cashbackSummary.cashbackRedeemed.amount),availableCashback:a(r.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:r.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:r.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,L=d&&l&&h===!0?{creditAccountId:c.id,creditAccountLimit:a(c.limit.amount),creditAccountAvailableAmount:a(c.available.amount),creditAccountSpentAmount:a(c.balance.amount+c.hold.amount),creditAccountStatus:c.status,outstandingBalance:a(u.remainingAmountDue.amount)}:void 0,I=n&&s?{debitAccountId:i.depositAccounts.map(t=>t.id),debitAccountName:i.depositAccounts.map(t=>t.accountName),debitAccountBalance:i.depositAccounts.map(t=>a(t.accountBalance.available.amount)),debitCardsSpend:0,debitAccountStatus:i.depositAccounts.map(t=>t.accountStatus)}:void 0,R={isCreditCardOffered:d,isDebitCardOffered:n,isDebitCardEnabled:s,isCreditCardEnabled:l},x={revokeChargeCardFetchState:{fetchState:"Not-Started"},unlockChargeCardsFetchState:{fetchState:"Not-Started"},lockChargeCardsFetchState:{fetchState:"Not-Started"},closeChargeCardsFetchState:{fetchState:"Not-Started"},updateChargeCardLimitFetchState:{fetchState:"Not-Started"},updateChargeCardNameFetchState:{fetchState:"Not-Started"},depositAccountLimitFetchState:{fetchState:"Not-Started"},recurringExpenses:[],recurringExpensesFetchState:{fetchState:"Not-Started"}};return o.jsxs(V,{children:[o.jsx(M,{title:y,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:k,source:"MyPendingActivationChargeCardListPage"}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?o.jsx(O,{fetchState:e.fetchState,styles:{margin:"auto"}}):o.jsx(U,{onBulkCloseClick:()=>{},onBulkLockClick:()=>{},bulkSubmissionLimit:$,isCardControlsEnabled:!1,cardsSelectedForBulkAction:[],isBulkActionAllowed:!1,firstSelectedCardStatus:void 0,setActionTypeForRowAction:()=>{},setCardIdForRowAction:()=>{},controllerEmails:b,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,creditAccount:c,creditAccountRepayment:u,productInformation:R,cashbackInformation:E,creditAccountInformation:L,debitAccountInformation:I,depositAccountListWithDebitCardIssued:i,cardList:e.cards,showViewForCardUser:!0,signedInUser:S,fetchState:e.fetchState,unlockChargeCardsFetchState:"Not-Started",revokeChargeCardsInviteFetchState:"Not-Started",rowActionView:x,onProceedForBulkActionClick:t=>{},removeAllCardsFromBulkActionList:()=>{},setShowBulkChangeSpendLimitPopup:t=>{},updateBulkActionList:t=>{},onReloadCards:g,onChargeCardRowClick:(t,z)=>{p(t)},uiState:e.uiState,onColumnSortConfigChanged:A,onChargeCardResendInviteClick:()=>{}})]})},V=P.div`
2
2
  display: flex;
3
3
  min-height: ${`calc(100vh - ${j.sp9})`};
4
4
  flex-direction: column;