@tap-payments/os-micro-frontend-shared 0.1.506 → 0.1.507
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.
- package/build/{chunk-4EJHNBV2.js → chunk-XXZ62LLJ.js} +1 -1
- package/build/chunk-ZQH44V3W.js +1 -0
- package/build/components/Amount/TotalAmount/TotalAmount.js +1 -1
- package/build/components/Amount/TotalAmount/index.js +1 -1
- package/build/components/Amount/TotalAmount/style.js +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/AmountConversionFilter.js +1 -1
- package/build/components/AmountConversionFilter/MultiSelectCurrencyFilter.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountConversionFilter/style.js +1 -1
- package/build/components/AmountInput/AmountInput.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountInput/style.js +1 -1
- package/build/components/AppServices/AppServices.js +1 -1
- package/build/components/AppServices/ServiceItem.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/AppServicesBar.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/BrandLogo/BrandLogo.js +1 -1
- package/build/components/BrandLogo/Loading.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/CopyImage/CopyImage.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountryFilter/CountryFilter.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CurrencyFilter/CurrencyFilter.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/Customer/CustomerDropdown/CustomerDropdown.js +1 -1
- package/build/components/Customer/CustomerDropdown/index.js +1 -1
- package/build/components/Customer/CustomerForms/CustomerEmailForm.js +1 -1
- package/build/components/Customer/CustomerForms/CustomerFullInfo.js +1 -1
- package/build/components/Customer/CustomerForms/CustomerFullInfoForm.js +1 -1
- package/build/components/Customer/CustomerForms/CustomerPhoneNumberForm.js +1 -1
- package/build/components/Customer/CustomerForms/index.js +1 -1
- package/build/components/Customer/CustomerForms/style.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/DateFilter.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DateFilter/style.js +1 -1
- package/build/components/Discount/DiscountDropdown/DiscountDropdown.js +1 -1
- package/build/components/Discount/DiscountDropdown/index.js +1 -1
- package/build/components/Discount/DiscountRateDropdown/DiscountRateDropdown.js +1 -1
- package/build/components/Discount/DiscountRateDropdown/index.js +1 -1
- package/build/components/Discount/TotalDiscount/TotalDiscount.js +1 -1
- package/build/components/Discount/TotalDiscount/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/FileInputPreview/FileInputPreview.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FileInputPreview/style.js +1 -1
- package/build/components/FilterDropdown/FilterDropdown.js +1 -1
- package/build/components/FilterDropdown/components/BrandItem/BrandItem.js +1 -1
- package/build/components/FilterDropdown/components/BrandItem/index.js +1 -1
- package/build/components/FilterDropdown/components/CountriesItem/CountriesItem.js +1 -1
- package/build/components/FilterDropdown/components/CountriesItem/index.js +1 -1
- package/build/components/FilterDropdown/components/CurrenciesItem/CurrenciesItem.js +1 -1
- package/build/components/FilterDropdown/components/CurrenciesItem/index.js +1 -1
- package/build/components/FilterDropdown/components/FlatMerchantsListMenu/FlatMerchantsListMenu.js +1 -1
- package/build/components/FilterDropdown/components/FlatMerchantsListMenu/index.js +1 -1
- package/build/components/FilterDropdown/components/FlatMerchantsListMenu/style.js +1 -1
- package/build/components/FilterDropdown/components/MerchantItem/MerchantItem.js +1 -1
- package/build/components/FilterDropdown/components/MerchantItem/index.js +1 -1
- package/build/components/FilterDropdown/components/MerchantsFilterItem/MerchantsFilterItem.js +1 -1
- package/build/components/FilterDropdown/components/MerchantsFilterItem/index.js +1 -1
- package/build/components/FilterDropdown/components/MerchantsFilterItem/utils.js +1 -1
- package/build/components/FilterDropdown/components/RetailersItem/RetailersItem.js +1 -1
- package/build/components/FilterDropdown/components/RetailersItem/index.js +1 -1
- package/build/components/FilterDropdown/components/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilterDropdown/style.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/Filters/style.js +1 -1
- package/build/components/FlagDetails/FlagDetails.js +1 -1
- package/build/components/FlagDetails/index.js +1 -1
- package/build/components/LanguageDropdown/LanguageDropdown.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/ListColumnFilter/ListColumnFilter.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListColumnFilter/style.js +1 -1
- package/build/components/MerchantCurrencyDropdown/MerchantCurrencyDropdown.js +1 -1
- package/build/components/MerchantCurrencyDropdown/SelectedCurrency.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/MerchantLogo.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantLogo/style.js +1 -1
- package/build/components/MerchantsDropdown/BrandItem.js +1 -1
- package/build/components/MerchantsDropdown/EntityItem.js +1 -1
- package/build/components/MerchantsDropdown/EntityList.js +1 -1
- package/build/components/MerchantsDropdown/MerchantItem.js +1 -1
- package/build/components/MerchantsDropdown/MerchantsDropdown.js +1 -1
- package/build/components/MerchantsDropdown/MerchantsList.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MerchantsDropdown/style.js +1 -1
- package/build/components/PartnersFilter/PartnersFilter.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/AuthenticationMode.js +1 -1
- package/build/components/PaymentSourceFilter/PaymentIcon.js +1 -1
- package/build/components/PaymentSourceFilter/PaymentInitiated.js +1 -1
- package/build/components/PaymentSourceFilter/PaymentMethod.js +1 -1
- package/build/components/PaymentSourceFilter/PaymentMethods.js +1 -1
- package/build/components/PaymentSourceFilter/PaymentSchemes.js +1 -1
- package/build/components/PaymentSourceFilter/PaymentSourceFilter.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/style.js +1 -1
- package/build/components/PhoneFilter/PhoneFilter.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/RFH/Inputs/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RangeCalender/RangeCalender.js +1 -1
- package/build/components/RangeCalender/components/CustomTimepicker/CustomTimepicker.js +1 -1
- package/build/components/RangeCalender/components/CustomTimepicker/index.js +1 -1
- package/build/components/RangeCalender/components/GroupBy/GroupBy.js +1 -1
- package/build/components/RangeCalender/components/GroupBy/index.js +1 -1
- package/build/components/RangeCalender/components/Hijri/Hijri.js +1 -1
- package/build/components/RangeCalender/components/Hijri/index.js +1 -1
- package/build/components/RangeCalender/components/RangeDatepicker/index.js +1 -1
- package/build/components/RangeCalender/components/Timezone/Timezone.js +1 -1
- package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.js +1 -1
- package/build/components/RangeCalender/components/Timezone/components/UserTimezone.js +1 -1
- package/build/components/RangeCalender/components/Timezone/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/ReceiptViewer.js +1 -1
- package/build/components/ReceiptsViewer/ReceiptsViewer.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/ReferenceTypeFilter.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ReferenceTypeFilter/style.js +1 -1
- package/build/components/StatusFilter/StatusFilter.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/CaptureAutoIcon.js +1 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/VoidAutoIcon.js +1 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/index.js +1 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.js +1 -1
- package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.js +1 -1
- package/build/components/StatusIcons/AuthorizedIcon/index.js +1 -1
- package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.js +1 -1
- package/build/components/StatusIcons/ChargeStatusIcon/index.js +1 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.js +1 -1
- package/build/components/StatusIcons/DisputeIcon/DisputeIcon.js +1 -1
- package/build/components/StatusIcons/DisputeIcon/index.js +1 -1
- package/build/components/StatusIcons/PayoutIcon/PayoutIcon.js +1 -1
- package/build/components/StatusIcons/PayoutIcon/index.js +1 -1
- package/build/components/StatusIcons/RefundIcon/RefundIcon.js +1 -1
- package/build/components/StatusIcons/RefundIcon/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/components/ActionIconColumn.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/components/ActionsColumn.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/components/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/AgreementCell/AgreementCell.js +1 -1
- package/build/components/TableCells/CustomCells/AgreementCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/AmountCell.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/AmountCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/AmountCellText.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/components/AmountConversionTooltipLabel.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/components/CurrencyInfo.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/components/index.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/AuthCell/AuthCell.js +1 -1
- package/build/components/TableCells/CustomCells/AuthCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/AuthenticationCell.js +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/AuthenticationStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/AuthenticationTypeCell.js +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/AvatarCell/AvatarCell.js +1 -1
- package/build/components/TableCells/CustomCells/AvatarCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/BalanceCell/BalanceCell.js +1 -1
- package/build/components/TableCells/CustomCells/BalanceCell/BalanceCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/BalanceCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/BankCell/BankCell.js +1 -1
- package/build/components/TableCells/CustomCells/BankCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/BrandCell/BrandCell.js +1 -1
- package/build/components/TableCells/CustomCells/BrandCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/ChannelsCell.js +1 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/CheckoutStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/CustomerCell/CustomerCell.js +1 -1
- package/build/components/TableCells/CustomCells/CustomerCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/DateCell/DateCell.js +1 -1
- package/build/components/TableCells/CustomCells/DateCell/DateViewer.js +1 -1
- package/build/components/TableCells/CustomCells/DateCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/DestinationCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/DestinationCellText.js +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/utils.js +1 -1
- package/build/components/TableCells/CustomCells/DestinationStatusCell/DestinationStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/DestinationStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/DeviceCell/DeviceCell.js +1 -1
- package/build/components/TableCells/CustomCells/DeviceCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/DueDateCell/DueDateCell.js +1 -1
- package/build/components/TableCells/CustomCells/DueDateCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/EntityCell/EntityCell.js +1 -1
- package/build/components/TableCells/CustomCells/EntityCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/IntentsStatusCell/IntentsStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/IntentsStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/ChargeStatusIcon.js +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/InvoiceStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/LeadStatusCell/LeadStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/LeadStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/LinkCell/LinkCell.js +1 -1
- package/build/components/TableCells/CustomCells/LinkCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/OrderCell/OrderCell.js +1 -1
- package/build/components/TableCells/CustomCells/OrderCell/OrderCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/OrderCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/OrdersCell/OrdersCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/OrdersCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/PayoutDateCell/PayoutDateCell.js +1 -1
- package/build/components/TableCells/CustomCells/PayoutDateCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/PayoutReportCell.js +1 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/PayoutStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/ProductsCell/ProductsCell.js +1 -1
- package/build/components/TableCells/CustomCells/ProductsCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.js +1 -1
- package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCellText.js +1 -1
- package/build/components/TableCells/CustomCells/ReceiptCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/ReferenceCell.js +1 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/RefundChargeCell.js +1 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/RefundStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/components/RefundStateIcon.js +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/components/RefundStatus.js +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/components/RefundStatusIcon.js +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/components/index.js +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.js +1 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/SalesChannelCell.js +1 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/SalesChannelCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/SegmentsCell.js +1 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/SourceCell.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumberSource/PaymentCardNumberSource.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumberSource/index.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethodSource/PaymentMethodSource.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethodSource/index.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentSchemeSource/PaymentSchemeSource.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentSchemeSource/index.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentTypeSource/PaymentTypeSource.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentTypeSource/index.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/index.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/StatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/StatusCellSheet.js +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/StatusCellText.js +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/TextTableCell/TextTableCell.js +1 -1
- package/build/components/TableCells/CustomCells/TextTableCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/TextWithBadgeCell/TextWithBadgeCell.js +1 -1
- package/build/components/TableCells/CustomCells/TextWithBadgeCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/TextWithChipCell/TextWithChipCell.js +1 -1
- package/build/components/TableCells/CustomCells/TextWithChipCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/TokenStatusCell/TokenStatusCell.js +1 -1
- package/build/components/TableCells/CustomCells/TokenStatusCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/WalletCell/WalletCell.js +1 -1
- package/build/components/TableCells/CustomCells/WalletCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/index.js +1 -1
- package/build/components/TableCells/CustomCells/style.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableHeader/FiltersRow.js +1 -1
- package/build/components/TableHeader/TableHeader.js +1 -1
- package/build/components/TableHeader/TableModeButton.js +1 -1
- package/build/components/TableHeader/TableView/ColumnItem.js +1 -1
- package/build/components/TableHeader/TableView/CreateViewDialog.js +1 -1
- package/build/components/TableHeader/TableView/CustomViews.js +1 -1
- package/build/components/TableHeader/TableView/TableView.js +1 -1
- package/build/components/TableHeader/TableView/ViewsDropdown.js +1 -1
- package/build/components/TableHeader/TableView/ViewsMenu.js +1 -1
- package/build/components/TableHeader/TableView/components/ColumnList.js +1 -1
- package/build/components/TableHeader/TableView/components/ViewsSubmenu.js +1 -1
- package/build/components/TableHeader/TableView/components/index.js +1 -1
- package/build/components/TableHeader/TableView/index.js +1 -1
- package/build/components/TableHeader/index.js +1 -1
- package/build/components/TableReports/TableReports.js +1 -1
- package/build/components/TableReports/components/DownloadButton/DownloadButton.js +1 -1
- package/build/components/TableReports/components/DownloadButton/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TreeDropdown/TreeDropdown.js +1 -1
- package/build/components/TreeDropdown/TreeNodeItem/SelectionControl.js +1 -1
- package/build/components/TreeDropdown/TreeNodeItem/TreeNodeItem.js +1 -1
- package/build/components/TreeDropdown/TreeNodeItem/index.js +1 -1
- package/build/components/TreeDropdown/TreeNodeItem/style.js +1 -1
- package/build/components/TreeDropdown/TreeNodeList/List.js +1 -1
- package/build/components/TreeDropdown/TreeNodeList/TreeNodeList.js +1 -1
- package/build/components/TreeDropdown/TreeNodeList/index.js +1 -1
- package/build/components/TreeDropdown/TreeNodeList/style.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/TreeDropdown/style.js +1 -1
- package/build/components/VAT/TotalVAT/TotalVAT.js +1 -1
- package/build/components/VAT/TotalVAT/index.js +1 -1
- package/build/components/VAT/VATDropdown/VATDropdown.js +1 -1
- package/build/components/VAT/VATDropdown/index.js +1 -1
- package/build/components/VAT/VATRateDropdown/VATRateDropdown.js +1 -1
- package/build/components/VAT/VATRateDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/VerificationIcon.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/ViewColumnRadioFilter.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/style.js +1 -1
- package/build/components/WindowSideBar/WindowSideBar.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/WindowSideBar/style.js +1 -1
- package/build/components/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/build/chunk-YM5ELQ5Y.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {m}from'./chunk-
|
|
1
|
+
import {m}from'./chunk-ZQH44V3W.js';import {a}from'./chunk-N26IJLSU.js';import {a as a$1}from'./chunk-J5VDJ4QR.js';import {c}from'./chunk-MIXXJ46V.js';import {b}from'./chunk-ONMEZFIB.js';import {Box}from'@mui/material';import {useMemo}from'react';import {jsx}from'react/jsx-runtime';function d({users:m$1,...f}){let g=useMemo(()=>b(),[]);return jsx(a,{...f,children:jsx(Box,{display:"flex",gap:"8px",children:jsx(Box,{position:"relative",width:"60px",height:"24px",children:m$1?.map((t,n)=>jsx(a$1,{title:`${t.first||""} ${t.last||""}`,children:jsx(m,{sx:{backgroundImage:`url(${t.logo})`,background:g,height:"24px",width:"24px",fontWeight:500,fontSize:"8.5px",lineHeight:"100%",letterSpacing:"0%",textAlign:"center",position:"absolute",top:"0",left:`${n*12}px`},src:t?.logo,children:c([t.first,t.last])},t.logo)}))})})})}export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1$}from'./chunk-BL7P3ZIG.js';import {a as a$2P}from'./chunk-MBKDUROS.js';import {a as a$26}from'./chunk-DW6KC7XI.js';import {a as a$a}from'./chunk-V6JK3BJX.js';import {a as a$4}from'./chunk-KDNIYB6Q.js';import {a as a$1O}from'./chunk-4B77X4QQ.js';import {a as a$1f}from'./chunk-YSEDIJI2.js';import {b as b$A,c as c$p,a as a$27,d as d$g}from'./chunk-MPHQHP72.js';import {a as a$B}from'./chunk-DY2WWN4R.js';import {a as a$J}from'./chunk-XDIBMVBK.js';import {a as a$K}from'./chunk-Q3TLSDN4.js';import {a as a$1h}from'./chunk-QZNT2WZT.js';import {a as a$1l}from'./chunk-EQGVHCZY.js';import {a as a$H}from'./chunk-FJLSHHMC.js';import {e as e$1,f as f$2,g as g$1}from'./chunk-HD6JBWXY.js';import {k,l as l$1,n as n$1,h as h$3,a as a$1j,c as c$f,i as i$1,j as j$2}from'./chunk-5CO5H6SX.js';import {a as a$1k,e as e$8}from'./chunk-OJMSM3YI.js';import {a as a$1z}from'./chunk-7EWH56D6.js';import {a as a$1y}from'./chunk-X2VISOK7.js';import {a as a$1i}from'./chunk-BLA3OGE2.js';import {a as a$I}from'./chunk-AYUNEUTA.js';import {a as a$C}from'./chunk-SEYXVJXX.js';import {a as a$2q}from'./chunk-UHFZLE6X.js';import {a as a$1Q}from'./chunk-DPOPASMI.js';import {b as b$5,a as a$s}from'./chunk-IKNMVMFP.js';import {g as g$5,f as f$9,e as e$c,b as b$t,c as c$n,a as a$1V}from'./chunk-LNMKZDOY.js';import {a as a$2z}from'./chunk-SCCEG7EO.js';import {d as d$m,c as c$x,e as e$n,a as a$2A,b as b$P}from'./chunk-RBB3JTOL.js';import {a as a$2y}from'./chunk-5GZ3JSAK.js';import {c as c$3,a as a$t,b as b$6}from'./chunk-6MC2WRF2.js';import {b as b$Q,f as f$e,a as a$2C,c as c$y,g as g$a}from'./chunk-22AD36ZE.js';import {a as a$2B,b as b$R}from'./chunk-THQS54TY.js';import {a as a$2l,b as b$J}from'./chunk-TN2LHR3J.js';import {a as a$2m}from'./chunk-AJWUL6QQ.js';import {a as a$25,b as b$z}from'./chunk-6XU7Q3S5.js';import {a as a$2g}from'./chunk-OBY5IAGH.js';import {e as e$i,d as d$j,b as b$G,g as g$8,a as a$2h,c as c$u}from'./chunk-WBZ2ASE5.js';import {a as a$2n}from'./chunk-KSQSCOGT.js';import {e as e$g,a as a$2f}from'./chunk-HKXZDTCP.js';import {a as a$2s,b as b$M}from'./chunk-EHF7OALI.js';import {b as b$C}from'./chunk-MJZLNSUA.js';import {h as h$8}from'./chunk-ZMZWCIKG.js';import {a as a$2F}from'./chunk-BMZFBAZ5.js';import'./chunk-KVF2WIJQ.js';import {a as a$2E}from'./chunk-VGJAMXYN.js';import {a as a$y}from'./chunk-S4IUZZHY.js';import {a as a$2o}from'./chunk-QV576CS4.js';import {c as c$m,e as e$k,d as d$k,b as b$K}from'./chunk-77XU433W.js';import {a as a$2p}from'./chunk-HEMLLBA3.js';import {a as a$2D}from'./chunk-JTIRQM4C.js';import {a as a$2k}from'./chunk-2VZPWXAA.js';import {a as a$9}from'./chunk-P4G44CEF.js';import {e as e$r}from'./chunk-3GWZ5GUT.js';import {a as a$2e}from'./chunk-TL7CUHKJ.js';import {a as a$2u}from'./chunk-GO2O4VRS.js';import {a as a$2v,b as b$N,d as d$l,f as f$d,e as e$l}from'./chunk-M2P24Y66.js';import {b as b$D}from'./chunk-NCOHYENF.js';import {a as a$1K,b as b$r,c as c$k,d as d$d}from'./chunk-FOSO2ECO.js';import {a as a$w}from'./chunk-ILBR7PUK.js';import {a as a$2j}from'./chunk-JUHPE36Z.js';import {a as a$2c}from'./chunk-O6L6WX4A.js';import {e as e$f,d as d$i,b as b$F,a as a$2d,c as c$s}from'./chunk-DK5JO36L.js';import {c as c$w,b as b$L,a as a$2r}from'./chunk-57YJIEDE.js';import {b as b$B,c as c$q,a as a$28,d as d$h}from'./chunk-H55AHMAD.js';import {a as a$1Z,b as b$u}from'./chunk-A2P2Z4X5.js';import {a as a$1_}from'./chunk-L32CWOQ6.js';import {a as a$2a}from'./chunk-IHLAUT34.js';import {a as a$2i,b as b$H}from'./chunk-3SDDEJZX.js';import {g as g$9,c as c$v,f as f$c,b as b$I,e as e$j}from'./chunk-HJUZKG63.js';import {b as b$E,c as c$r}from'./chunk-NZ4UG5GK.js';import {a as a$24}from'./chunk-XJ2JR3S2.js';import {e as e$b,f as f$8,c as c$l,d as d$e,a as a$1N}from'./chunk-C63FTDHP.js';import {e as e$m,a as a$2x,b as b$O}from'./chunk-BUHSCOWP.js';import {b as b$w,a as a$22}from'./chunk-6Z2U4BFY.js';import {f as f$b,e as e$e,i as i$6,h as h$7,g as g$7}from'./chunk-HW4WJSDW.js';import {a as a$Q,c as c$8,b as b$9,d as d$7,e as e$7,f as f$6}from'./chunk-QUURGKJN.js';import {a as a$7,b as b$1,c as c$1}from'./chunk-PH464TYL.js';import {a as a$5,d as d$1,b as b$2}from'./chunk-XH77OQYU.js';import {a as a$1B}from'./chunk-4ARQBGHJ.js';import {a as a$1C}from'./chunk-WHLSHAPO.js';import {b as b$q,d as d$c,a as a$1F,c as c$j}from'./chunk-LZ3RDLRF.js';import {a as a$P,b as b$8,c as c$7,d as d$5}from'./chunk-ACSDNE2R.js';import {a as a$1D}from'./chunk-GGOFETSH.js';import {a as a$10}from'./chunk-Y6UJNCOZ.js';import {a as a$2I}from'./chunk-FIAFXU6D.js';import {a as a$W,b as b$d}from'./chunk-YLTKG34L.js';import {a as a$V,b as b$c}from'./chunk-E4YSOK37.js';import {a as a$1g}from'./chunk-4EG7XJTH.js';import {a as a$1x}from'./chunk-QTU5WIQB.js';import {b as b$4}from'./chunk-FLYHVIMM.js';import {a as a$X,b as b$e}from'./chunk-FCXCGWZL.js';import {a as a$F}from'./chunk-UZSAGJYE.js';import {d as d$3,a as a$D,c as c$5,b as b$7,e as e$2,f as f$1,I,g,B,D,E,F,G,H,z,A as A$1,C,r,y as y$1,h as h$4,i as i$2,j as j$3,t,p,q,u,x,k as k$2,l as l$2,n as n$3,o as o$1,w,m as m$2}from'./chunk-FK6HX54X.js';import {a as a$20}from'./chunk-7LFHAJVL.js';import {a as a$21}from'./chunk-HRA5LU4S.js';import {a as a$1W}from'./chunk-FUAOB25Z.js';import {a as a$29}from'./chunk-ISE7GZLC.js';import {a as a$c}from'./chunk-3PIJBVHS.js';import {a as a$1S}from'./chunk-SMYJ62FW.js';import {a as a$1R}from'./chunk-NN57FG5L.js';import {a as a$_,b as b$h}from'./chunk-C5PMUKEV.js';import {a as a$Z,b as b$g,c as c$9}from'./chunk-BE3GKQQA.js';import {a as a$13,b as b$k,c as c$b}from'./chunk-4SHRH2JX.js';import {a as a$Y,b as b$f}from'./chunk-NWITFGG7.js';import {a as a$12,b as b$j,c as c$a}from'./chunk-B5EKFU6S.js';import {a as a$T}from'./chunk-BSV3JIR4.js';import {a as a$p}from'./chunk-XIILRKMO.js';import {a as a$1b}from'./chunk-NJPTBARX.js';import {a as a$m}from'./chunk-ELICH3R4.js';import {a as a$1u}from'./chunk-W2TJPZTS.js';import {a as a$2Q}from'./chunk-J4YOFDLQ.js';import {m,l,j,e}from'./chunk-B5BB5ZBV.js';import {a as a$1d}from'./chunk-SNXPOPVF.js';import {a as a$1e}from'./chunk-YKIFEFTQ.js';import {b as b$o,a as a$1c,c as c$e,j as j$1,k as k$1,d as d$6,n as n$2,o,p as p$1,m as m$1}from'./chunk-RDFLKE26.js';import {a as a$1p}from'./chunk-H4XTPF7V.js';import {a as a$L}from'./chunk-2YGJX7J3.js';import {a as a$M,c as c$6,d as d$4,e as e$4}from'./chunk-ORUEXUN3.js';import {f as f$a,b as b$s,g as g$6,a as a$1T,e as e$d,d as d$f,c as c$o}from'./chunk-VLQX24CF.js';import {a as a$3}from'./chunk-N26IJLSU.js';import {a as a$2O}from'./chunk-ZAPGXVNR.js';import {a as a$1Y}from'./chunk-NZW6BW4U.js';import {a as a$N}from'./chunk-POPL3NQO.js';import {a as a$$}from'./chunk-TUOZGTSI.js';import {a as a$1q}from'./chunk-2MRE3ABG.js';import {a as a$r}from'./chunk-ZDJSYP2T.js';import {e as e$9,c as c$i,d as d$b}from'./chunk-5ZMHTWT6.js';import {a as a$2M}from'./chunk-JSUYYSDG.js';import {a as a$2N}from'./chunk-XRRB2QMH.js';import {i as i$4,e as e$a,a as a$1A,g as g$4,j as j$4,f as f$7,h as h$5,d as d$a,b as b$p,c as c$h}from'./chunk-WFTSWIN3.js';import {a as a$o}from'./chunk-TVD6K2TH.js';import {a as a$1a,b as b$n,c as c$d}from'./chunk-XQWTXZ27.js';import {a as a$15,b as b$l,c as c$c,d as d$9}from'./chunk-YDDULU2M.js';import {a as a$16}from'./chunk-JJ2JU4KJ.js';import {a as a$2H}from'./chunk-V73KNH66.js';import {a as a$1o}from'./chunk-2RVULUGR.js';import {a as a$2J}from'./chunk-ODVGDQ2J.js';import {a as a$14}from'./chunk-PTTECJFI.js';import {h as h$2,i}from'./chunk-JFBD5WG6.js';import {a as a$i}from'./chunk-7YPYK2DC.js';import {a as a$2w}from'./chunk-HGWFQTLD.js';import {a as a$1E}from'./chunk-RJFAWXHY.js';import {a as a$O}from'./chunk-O45WQLME.js';import {a as a$z}from'./chunk-JFNKUZGE.js';import {a as a$19}from'./chunk-ZK7RMCRW.js';import {b as b$m}from'./chunk-GHZDPEOC.js';import {a as a$18}from'./chunk-YMFSPQE3.js';import {a as a$j}from'./chunk-4GMJGEP3.js';import {a as a$h}from'./chunk-EO755QBC.js';import {a as a$1v}from'./chunk-XBO7XB3R.js';import {a as a$S}from'./chunk-CXL3KTYC.js';import {a as a$1X}from'./chunk-GP3DPVV3.js';import {a as a$b}from'./chunk-X7KCMMP7.js';import {e as e$5,f as f$4,h,g as g$3,i as i$3}from'./chunk-HZH54H2F.js';import {a as a$8}from'./chunk-OBTZXSMB.js';import {a as a$2S}from'./chunk-MTTJE6HD.js';import {a as a$23,b as b$x}from'./chunk-HWNSYGKE.js';import {b as b$T,a as a$2K,e as e$o,h as h$9,g as g$b,c as c$z,d as d$n,f as f$f}from'./chunk-YRME2XLH.js';import {b as b$b}from'./chunk-H5K5ERYO.js';import {a as a$n}from'./chunk-6CFP65PC.js';import {a as a$A}from'./chunk-AQWPZH7I.js';import {a as a$2b}from'./chunk-HWSWSCA6.js';import {a as a$l}from'./chunk-76IW5ZL5.js';import {a as a$G}from'./chunk-6ODMPA2C.js';import {a as a$6}from'./chunk-J5VDJ4QR.js';import {a as a$1G}from'./chunk-HRF3A3IS.js';import {a as a$1H}from'./chunk-EJAMKPHC.js';import'./chunk-Y2MUVEZG.js';import {a as a$f}from'./chunk-UCMW7ONN.js';import {a as a$k}from'./chunk-XXU2HFKX.js';import {a as a$2L}from'./chunk-RQDIVE2Z.js';import'./chunk-OJDPKSYO.js';import {a as a$1m}from'./chunk-36OZDVH3.js';import {a as a$1n}from'./chunk-F3X6HMMQ.js';import {e as e$6,g as g$2}from'./chunk-OAVXDN55.js';import {a as a$2t}from'./chunk-QXC6EI5Y.js';import {b as b$a,a as a$R}from'./chunk-2XQKQTTY.js';import {a as a$E}from'./chunk-33XAAW5J.js';import {a as a$1P}from'./chunk-ALSC6ORT.js';import {a as a$q}from'./chunk-WD2UB4OT.js';import {a as a$1s}from'./chunk-ZXA2RAZV.js';import {a as a$1M}from'./chunk-FNAFWWTY.js';import {a as a$u}from'./chunk-YS2BTN6M.js';import {a as a$g}from'./chunk-T6XT72HB.js';import {a as a$x}from'./chunk-H3P6RI5F.js';import {a as a$1w}from'./chunk-K6G3ZSMJ.js';import'./chunk-4P3FV4BE.js';import {f as f$5}from'./chunk-MIXXJ46V.js';import {e as e$3,f as f$3}from'./chunk-AZ463NML.js';import {a as a$1r}from'./chunk-GM24Z5RK.js';import {a as a$1t}from'./chunk-PQIWDPJW.js';import {a as a$2G,b as b$S}from'./chunk-6EW2QUSP.js';import {b as b$v}from'./chunk-YLMTXONW.js';import {a as a$2}from'./chunk-MMJD4KEE.js';import {a as a$e}from'./chunk-UMKCWPPH.js';import {a as a$d}from'./chunk-DLZSNBN5.js';import {c as c$4,a as a$1J}from'./chunk-DF7ECJFG.js';import {a as a$17}from'./chunk-KUKPNJEN.js';import {b as b$i}from'./chunk-ONMEZFIB.js';import {a as a$v}from'./chunk-H4KRMKSU.js';import {i as i$5,a as a$1L,h as h$6}from'./chunk-32GHAQEB.js';import {n,j as j$5,e as e$q}from'./chunk-JNHKLYOB.js';import {h as h$1,d as d$8,a as a$2R}from'./chunk-FRQYYKIN.js';import {d,c,a as a$1,b,f}from'./chunk-76P33DN5.js';import {b as b$3}from'./chunk-DJZHCN65.js';import {c as c$g,a as a$1I,b as b$y}from'./chunk-BRIG4GWD.js';import {a as a$1U}from'./chunk-FYOBUAJT.js';import {a as a$11}from'./chunk-3UPNNMEM.js';import {e as e$p}from'./chunk-JYTJQDYN.js';import {a as a$U}from'./chunk-E6ZTGDVO.js';import {e as e$h,c as c$t}from'./chunk-ROWEPNTJ.js';import {la,bd,fk,pa as pa$1,na,xb,zb as zb$1,A,Ai,gg,rb,zk as zk$1,qg as qg$1,pg,Qc,xi,yi,zi,db as db$1,_c,_d,Oh as Oh$1,aj,qb,Rh,Xh,yh as yh$1,yb,Dh,$h as $h$1,_h,Kc,Zd,Bk as Bk$1,_g,y,Rc,be,li,ae,Ab,Zb,F as F$1,E as E$1,pb,ob as ob$1,Mi,bj,ra,qa,Vi as Vi$1,gh as gh$1,ja,Ti,Xb as Xb$1,Yb,Yg as Yg$1,sd,Og,dh,dc,cc,Bi,Ci,kc,oc,hh as hh$1,pc,lh,Ei as Ei$1,h as h$a,Zg as Zg$1,Na,za,Ii}from'./chunk-KUCUMYUK.js';import {d as d$2}from'./chunk-YUSDAA7W.js';import {a,c as c$2}from'./chunk-5TBO732O.js';import Zo from'@mui/material/Box';import {styled as styled$1,alpha,useTheme}from'@mui/material/styles';import vs,{memo,forwardRef,useMemo,useState,useRef,useCallback,useEffect,useImperativeHandle}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {styled,Avatar,Box,Button,Typography,Divider,Popper,Dialog,CircularProgress,Stack,Link,useTheme as useTheme$1,TableCell,Popover,ClickAwayListener,Collapse}from'@mui/material';import {motion,AnimatePresence,Reorder}from'framer-motion';import {useTranslation}from'react-i18next';import vC from'dayjs';import Dv from'dayjs/plugin/timezone';import Lv from'dayjs/plugin/utc';import ST from'@mui/material/Stack';import Is from'@mui/material/Typography';import rP from'@mui/material/Popover';import TP from'@mui/material/ClickAwayListener';import BP from'@mui/material/Popper';import yT from'@mui/material/Divider';import lx from'@mui/material/Button';import zP from'react-draggable';import wM from'@mui/material/Collapse';import {DateObject}from'react-multi-date-picker';import _0 from'@mui/material/Menu';import {yupResolver}from'@hookform/resolvers/yup';import {useForm,Controller}from'react-hook-form';import {useDropzone}from'react-dropzone';import oA from'@mui/material/CircularProgress';import Pp from'@mui/material/LinearProgress';var tS=a((Hte,eS)=>{function NA(e,t,o,r){for(var n=e.length,i=o+(r?1:-1);r?i--:++i<n;)if(t(e[i],i,e))return i;return -1}eS.exports=NA;});var rS=a((Ote,oS)=>{function VA(e){return e!==e}oS.exports=VA;});var iS=a((zte,nS)=>{function HA(e,t,o){for(var r=o-1,n=e.length;++r<n;)if(e[r]===t)return r;return -1}nS.exports=HA;});var lS=a((_te,aS)=>{var OA=tS(),zA=rS(),_A=iS();function $A(e,t,o){return t===t?_A(e,t,o):OA(e,zA,o)}aS.exports=$A;});var pS=a(($te,sS)=>{var UA=lS();function GA(e,t){var o=e==null?0:e.length;return !!o&&UA(e,t,0)>-1}sS.exports=GA;});var cS=a((Ute,mS)=>{function qA(e,t,o){for(var r=-1,n=e==null?0:e.length;++r<n;)if(o(t,e[r]))return true;return false}mS.exports=qA;});var dS=a((Gte,uS)=>{function YA(){}uS.exports=YA;});var gS=a((qte,fS)=>{var Lp=d(),KA=dS(),JA=c(),ZA=1/0,XA=Lp&&1/JA(new Lp([,-0]))[1]==ZA?function(e){return new Lp(e)}:KA;fS.exports=XA;});var xS=a((Yte,CS)=>{var QA=a$1(),jA=pS(),ek=cS(),tk=b(),ok=gS(),rk=c(),nk=200;function ik(e,t,o){var r=-1,n=jA,i=e.length,a=true,p=[],l=p;if(o)a=false,n=ek;else if(i>=nk){var s=t?null:ok(e);if(s)return rk(s);a=false,n=tk,l=new QA;}else l=t?[]:p;e:for(;++r<i;){var c=e[r],m=t?t(c):c;if(c=o||c!==0?c:0,a&&m===m){for(var u=l.length;u--;)if(l[u]===m)continue e;t&&l.push(m),p.push(c);}else n(l,m,o)||(l!==p&&l.push(m),p.push(c));}return p}CS.exports=ik;});var yS=a((Kte,hS)=>{var ak=f(),lk=xS();function sk(e,t){return e&&e.length?lk(e,ak(t,2)):[]}hS.exports=sk;});function RT({sections:e,isMaximized:t,onClick:o,activeSection:r}){let n=r||e?.[0]?.id;return jsx(Ul,{isMaximized:t,children:jsx(Gl,{children:e?.map(i=>jsx(Sg,{onClick:()=>{o?.(i);},isActive:n===i.id,children:i.title},i.id))})})}var Tg=memo(RT);var FT=Tg;var bg=styled("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t})=>({display:"flex",width:"17px",height:"12px",backgroundColor:t?a$2(e.palette)[t]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),Ir=styled("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),ht=styled(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),CD=styled("img")(()=>({width:"12px",height:"12px"})),Ig=styled("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:t})=>({...t&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:t?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),xD=styled("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),vg=styled("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),wg=styled(Avatar)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,border:`1px solid ${e.palette.divider}`})),O=styled("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),Pg=styled(O)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),Mg=styled(O)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),pi=styled(a$3)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),Pe=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Ie=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),$=styled("img")(()=>({width:"36px",height:"24px"})),mi=styled("div")(({percentage:e,isCapture:t,theme:o})=>({background:`conic-gradient(${t?o.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${t?o.palette.info.dark:"#656565"}`}));function OT({value:e,format:t,flagIcon:o,hasFlag:r,tableMode:n$1,...i}){let a=o&&jsx(a$6,{title:a$v(o||""),children:jsx(a$u,{countryCode:o})}),p=useMemo(()=>n(e,t),[e]);return jsx(a$3,{...i,children:jsxs(a$w,{children:[r&&jsx(bg,{sx:{visibility:"visible"},className:"geography-box",children:a}),jsx(Box,{sx:{...n$1==="sheet"&&{fontSize:"11px"}},children:p})]})})}var wr=OT;function Eg({value:e,currentTimezone:t=a$1I.UTC,timezoneOffset:o=0,defaultTimezoneOffset:r=0,hideTimezoneIcon:n$1=false,...i}){let a=m=>j$5(e,{currentTimezone:t,targetTimezone:m}),p=a(o),l=a(r),s=n(l),c=!n$1&&r!==o;return jsxs(Zo,{sx:{display:"flex",gap:"8px"},children:[jsx(wr,{value:p,...i}),c&&jsx(a$6,{title:s,children:jsx("img",{src:F$1,width:14,alt:"timezone"})})]})}function UT({value:e,label:t,items:o,...r}){let n=Number.isInteger(e)&&Number(e)>1&&t.charAt(t.length-1)!=="s"?`${t}s`:t,i=`${e} ${n}`,a=jsx(Fragment,{children:o?.map(p=>{let l=p.name||p.description,s=(l?.length||0)>20?`${l?.slice(0,20)}...`:l;return jsx("div",{children:s},p.id)})});return jsx(a$6,{title:(o||[]).length>1?a:void 0,children:jsx(a$3,{...r,children:jsx("span",{children:i})})})}var GT=UT;function YT({value:e,label:t,items:o,...r}){let n=Number.isInteger(e)&&Number(e)>1&&t.charAt(t.length-1)!=="s"?`${t}s`:t,i=`${e} ${n}`;return jsx(a$3,{sx:{fontSize:"11px"},...r,children:i})}var KT=YT;function XT({customerInitiated:e,children:t,isTimezoneIconShown:o,hasCustomerIcon:r,customerIcon:n,customerName:i,hideCustomerInitiatedIcon:a,hideTimezoneIcon:p,phone:l,email:s,id:c,...m}){let{t:u}=useTranslation(),d=e===false?u("merchantInitiated"):"",f=a$1J(i),g=i?.split(" ")?.map(y=>y?.[0]?.toUpperCase()).join(""),x=useMemo(()=>b$i(),[]),S=r&&jsx(a$6,{title:t,children:jsx(wg,{"data-testid":"CustomerCell_customerShownIcon",sx:{background:x},src:n,alt:n,children:g})}),C=useMemo(()=>[{name:"ID",value:c},{name:"Name",value:i},{name:"Email",value:s},{name:"Phone",value:l}],[s,l,c,i]),h=useMemo(()=>C.some(({value:y})=>y)?jsx("div",{"data-testid":"CustomerCell_customerTooltip",children:C.map(({name:y,value:T})=>T&&jsx("div",{"data-testid":`CustomerCell_customerTooltip_${y}`,children:y==="Name"?T:`${y}: ${T}`},T))}):null,[C]);return jsx(a$3,{...m,"data-testid":"CustomerCell_TableCell",children:jsxs(a$1K,{"data-testid":"CustomerCell_StyledCustomerCell",children:[S,jsx(a$6,{title:h,children:jsx(b$r,{"data-testid":"CustomerCell_StyledCustomerName","data-is-arabic":f,children:t})}),!p&&jsx(c$k,{"data-testid":"CustomerCell_StyledCustomerIconContainer",children:o&&jsx(d$d,{src:E$1,"data-testid":"CustomerCell_StyledCustomerIcon"})}),!a&&jsx(a$6,{title:d,children:jsx(Ig,{"data-testid":"CustomerCell_StarBadgeWrapper",className:"geography-box",isShown:!!d,children:d&&jsx("img",{"data-testid":"CustomerCell_merchantInitiatedIcon",src:pb,alt:"merchant",style:{width:"16px",height:"16px"}})})})]})})}var QT=XT;var fL=({type:e,selectAmount:t,selectCurrency:o,requestAmount:r,requestCurrency:n,merchantAmount:i,merchantCurrency:a})=>{let p=i$5(t,o),l=i$5(r,n),s=i$5(i,a);return jsxs(e$b,{sx:{textAlign:"right",justifyContent:"flex-end"},children:[jsx("span",{style:{fontWeight:"bold"},children:e?a$1L[e]:""}),jsxs(e$b,{children:[e!=="fx"&&jsxs(f$8,{children:[jsx("span",{children:"Customer Selected"})," ",jsxs("span",{children:[jsx(a$1M,{currency:o})," ",p.integerAmount,".",p.decimalAmount]})]}),jsxs(f$8,{children:[jsx("span",{children:"Charge"})," ",jsxs("span",{children:[jsx(a$1M,{currency:n})," ",l.integerAmount,".",l.decimalAmount]})]}),jsxs(f$8,{children:[jsx("span",{children:"Settlement"})," ",jsxs("span",{children:[jsx(a$1M,{currency:a})," ",s.integerAmount,".",s.decimalAmount]})]})]})]})};var Po=({tableMode:e,amount:t,currency:o})=>{let{integerAmount:r,decimalAmount:n}=i$5(t,o);return jsx(c$l,{tableMode:e,children:t!==void 0?jsxs(Fragment,{children:[jsx("span",{children:jsx(a$1M,{currency:o,fontSize:10})})," ",r,n&&jsxs(Fragment,{children:[".",jsx(d$e,{children:n})]})]}):jsx("span",{children:"-"})})};var kg="default";function tb({conversionType:e,amount:t,currency:o,tooltipLabel:r,amountTooltipLabel:n,...i}){return jsx(a$3,{...i,children:jsxs(a$1N,{children:[jsx(a$6,{title:r||"",children:jsx(Box,{children:jsx(a$1O,{tableMode:kg,conversionType:e})})}),o&&jsx(a$6,{title:jsx(a$1M,{currency:o}),children:jsx(a$u,{currencyCode:o})}),jsx(a$6,{title:n,children:jsx(Po,{tableMode:kg,amount:t,currency:o})})]})})}var ob=tb;var Dg="text";function nb({conversionType:e,amount:t,currency:o,tooltipLabel:r,amountTooltipLabel:n,...i}){return jsx(a$3,{...i,children:jsxs(a$1N,{children:[jsx(a$6,{title:r||"",children:jsx(a$1O,{tableMode:Dg,conversionType:e})}),jsx(a$6,{title:jsx(a$1M,{currency:o}),children:jsx("span",{})}),jsx(a$6,{title:n,children:jsx(Po,{tableMode:Dg,amount:t,currency:o})})]})})}var ib=nb;var Lg="sheet";function lb({conversionType:e,amount:t,currency:o,selectionProps:r={},chipIndex:n=0}){let{integerAmount:i,decimalAmount:a}=i$5(t,o);return jsxs(a$1P,{chipIndex:n,copyText:t?`${i}.${a}`:"-",selectionProps:r,children:[jsx(a$1O,{tableMode:Lg,conversionType:e}),jsx(Po,{tableMode:Lg,amount:t,currency:o})]})}var sb=lb;function mb({statuses:e,centerIconKey:t,...o}){let{centerIconIndex:r,statusesList:n}=a$1Q({statuses:e,centerIconKey:t}),i=40;return jsx(a$3,{...o,"data-testid":"StatusCell",sx:{position:"relative",overflow:"visible"},children:jsx(g$5,{initial:"initial",whileHover:"hover",animate:"start",children:n.map((a,p)=>{if(!a)return;let l=(p-r)*i,s=p>r,c=p<r;return jsx(f$9,{variants:{initial:{x:c?-5:s?5:0,zIndex:c?100-p:s?p:100},hover:{x:l,zIndex:100-Math.abs(r-p)}},transition:{duration:.3,type:"tween",ease:"easeOut"},statusesCount:n.length||0,children:jsx(e$c,{children:a})},p)})})})}var cb=mb;function ub({statuses:e,...t}){let{statusesList:o}=a$1Q({statuses:e});return jsx(a$3,{...t,children:jsx(g$5,{sx:{paddingRight:"30px"},children:o.map(r=>r)})})}var db=ub;function fb({statuses:e,centerIconKey:t,xGap:o,...r}){let{statusesList:n,centerIconIndex:i}=a$1Q({statuses:e,centerIconKey:t}),a=o||120;return jsx(a$3,{...r,"data-testid":"StatusCell",sx:{position:"relative",overflow:"visible"},children:jsx(g$5,{initial:"initial",whileHover:"hover",animate:"start",children:n.map((p,l)=>{if(!p)return;let s=(l-i)*a,c=l>i,m=l<i;return jsx(f$9,{variants:{initial:{x:m?-5:c?5:0,zIndex:m?100-l:c?l:100},hover:{x:s,zIndex:100-Math.abs(i-l)}},transition:{duration:.3,type:"tween",ease:"easeOut"},statusesCount:n.length||0,children:jsx(e$c,{isTextShown:true,children:p})},l)})})})}var gb=fb;var LR=memo(({flag:e,actions:t,flagTooltip:o,flagsCount:r,dropdownAction:n,onCloseDropdown:i,isDropdownShown:a=true,row:p,showJsonViewer:l=true,isTextShown:s,showIdButton:c=true,rowId:m,onJsonViewClick:u,renderDropdown:d,startSlot:f,...g})=>{let{t:x}=useTranslation(),{open:S,anchorEl:C,filteredActions:h,isAnyActionLoading:y,isAnyActionHasError:T,isAnyActionSuccessful:v,areThereAnyShownActions:b,handleClick:E,handleClose:P,setAnchorEl:k}=a$4({actions:t,isDropdownShown:a,onCloseDropdown:i,renderDropdown:d});return jsx(a$3,{...g,sx:{overflow:"visible"},children:jsxs(a$5,{"data-testid":"ActionCell_ActionCellContainer",children:[f,e&&jsx(Fragment,{children:s?jsx(a$6,{title:o,children:jsx(O,{"data-testid":"ActionCell_FlagLabel",sx:{textAlign:"left",justifyContent:"flex-start"},children:o})}):jsx(a$6,{title:o,children:jsxs(ht,{"data-testid":"ActionCell_FlagBadge",sx:{paddingInline:"12px",width:"auto",alignItems:"center",position:"relative",zIndex:21,gap:"0px"},whileHover:["animate","fadeIn"],variants:{animate:{gap:"4px"}},children:[jsx(d$1,{"data-testid":"ActionCell_FlagIcon",sx:{width:"12px",height:"11px"},src:a$7[e]?.icon,alt:"flag-icon"}),(r??0)>1&&jsx(motion.div,{"data-testid":"ActionCell_StyledBadge_Container",style:{alignItems:"center",justifyContent:"center",gap:"4px",display:"flex",zIndex:10},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs(a$8,{compact:true,variant:b$1[a$7[e]?.color]||"orange","data-testid":"ActionCell_StyledBadge",children:[r,"x"]})})]})})}),c&&jsx(a$9,{id:m||p.id,icon:la}),jsxs("div",{"data-testid":"ActionCell_IconsContainer",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"5px"},children:[l&&jsx(Fragment,{children:jsx(Ir,{onClick:u,type:"button","data-testid":"ActionCell_TransparentButton",children:jsx(a$6,{title:x("jsonViewer"),children:jsx(vg,{"data-testid":"ActionCell_IdButtonContainer",children:jsx(motion.img,{src:bd,alt:"icon"},"id-icon")})})})}),jsxs(b$2,{id:"styled-popover",selected:!!n||S,"data-testid":"ActionCell_ActionsIconContainer","data-is-active":b,sx:{...!b&&{pointerEvents:"none"}},children:[jsx(Ir,{onClick:E,"data-testid":"ActionCell_ActionsIconContainer_TransparentButton","data-is-active":b,sx:{...!b&&{pointerEvents:"none"}},children:jsx(AnimatePresence,{mode:"wait",children:jsx(a$a,{isAnyActionLoading:y,isAnyActionHasError:T,isAnyActionSuccessful:v,areThereAnyShownActions:b})})}),d?d(C,k):jsxs(Fragment,{children:[n,b&&jsx(a$b,{style:{zIndex:2e3},open:S,onClose:P,anchorEl:C,menuItems:h.map(M=>({...M,onClick:N=>{M?.onClick?.(N),M.hasActionMenu||P();},onRightClick:N=>{M?.onRightClick?.(N),P();},icon:M.customIcon||jsx(d$1,{icon:M.icon,src:M.iconSrc??(M.icon&&c$1[M.icon]),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},`action.label-${M.label.trim()}`)}))})]})]})]})]})})});function Tb({flag:e,flagTooltip:t,flagsCount:o,row:r,showJsonViewer:n=true,isTextShown:i,showIdButton:a=true,rowId:p,onJsonViewClick:l,tableMode:s,...c}){return jsx(a$3,{...c,sx:{overflow:"visible"},children:jsxs(a$5,{"data-testid":"ActionsColumn_ActionCellContainer",tableMode:s,children:[e&&jsx(Fragment,{children:i?jsx(a$6,{title:t,children:jsx(O,{"data-testid":"ActionsColumn_FlagLabel",sx:{textAlign:"left",justifyContent:"flex-start"},children:t})}):jsx(a$6,{title:t,children:jsxs(ht,{"data-testid":"ActionsColumn_FlagBadge",sx:{paddingInline:"12px",width:"auto",alignItems:"center",position:"relative",zIndex:21,gap:"0px"},whileHover:["animate","fadeIn"],variants:{animate:{gap:"4px"}},children:[jsx(d$1,{"data-testid":"ActionsColumn_FlagIcon",sx:{width:"12px",height:"11px"},src:a$7[e]?.icon,alt:"flag-icon"}),(o??0)>1&&jsx(motion.div,{"data-testid":"ActionsColumn_StyledBadge_Container",style:{alignItems:"center",justifyContent:"center",gap:"4px",display:"flex",zIndex:10},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs(a$8,{compact:true,variant:b$1[a$7[e]?.color]||"orange","data-testid":"ActionsColumn_StyledBadge",children:[o,"x"]})})]})})}),a&&jsx(a$q,{minWidth:"213px",children:p||r.id}),jsx("div",{"data-testid":"ActionsColumn_IconsContainer",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"5px"},children:n&&jsx(a$q,{onClick:l,children:"View API"})})]})})}var bb=memo(Tb);function Pb({actions:e,dropdownAction:t,onCloseDropdown:o,isDropdownShown:r=true,renderDropdown:n,...i}){let{open:a,anchorEl:p,filteredActions:l,isAnyActionLoading:s,isAnyActionHasError:c,isAnyActionSuccessful:m,areThereAnyShownActions:u,handleClick:d,handleClose:f,setAnchorEl:g}=a$4({actions:e,isDropdownShown:r,onCloseDropdown:o,renderDropdown:n});return jsx(a$3,{...i,sx:{overflow:"visible"},children:jsx("div",{"data-testid":"ActionIconColumn_Container",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"5px"},children:jsxs(b$2,{id:"styled-popover",selected:!!t||a,"data-testid":"ActionIconColumn_ActionsIconContainer","data-is-active":u,sx:{...!u&&{pointerEvents:"none"}},children:[jsx(Ir,{onClick:d,"data-testid":"ActionIconColumn_ActionsIconContainer_TransparentButton","data-is-active":u,sx:{...!u&&{pointerEvents:"none"}},children:jsx(AnimatePresence,{mode:"wait",children:jsx(a$a,{isAnyActionLoading:s,isAnyActionHasError:c,isAnyActionSuccessful:m,areThereAnyShownActions:u})})}),n?n(p,g):jsxs(Fragment,{children:[t,u&&jsx(a$b,{style:{zIndex:2e3},open:a,onClose:f,anchorEl:p,menuItems:l.map(x=>({...x,onClick:S=>{x?.onClick?.(S),x.hasActionMenu||f();},onRightClick:S=>{x?.onRightClick?.(S),f();},icon:x.customIcon||jsx(d$1,{icon:x.icon,src:x.iconSrc??(x.icon&&c$1[x.icon]),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},`action.label-${x.label.trim()}`)}))})]})]})})})}var Mb=memo(Pb);var di=styled$1(motion.div)(({theme:e,isCapture:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5),paddingInline:e.spacing(.3),paddingBlock:e.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:t?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:e.palette.text.primary,position:"relative",zIndex:10})),fi=styled$1("div")(({theme:e,percentage:t,isCapture:o})=>({border:`0.6px ${[0,100].includes(t)?"solid":"dashed"} ${o?e.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:e.spacing(.316),paddingLeft:e.spacing(.516),fontSize:"7px",fontWeight:e.typography.fontWeightBold,color:o?e.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5)})),gi=styled$1("div")(({percentage:e,isCapture:t,theme:o})=>({background:`conic-gradient(${t?o.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${t?o.palette.info.dark:"#656565"}`})),Vg=styled$1("img")({width:"14px",height:"14px"}),Eo=styled$1(Ie)({width:"16px",height:"16px"}),Gt=styled$1("img")({width:"16px",height:"16px"}),Hg=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function Fb({voidPercentage:e,capturePercentage:t,captureCount:o,autoType:r,captureAmount:n,voidAmount:i,currency:a,isTextShown:p,remainingAmount:l,isSheetViewShown:s,selectionProps:c={}}){let m=Number(t)+Number(e)===100||l<=0,u=useTheme(),{t:d}=useTranslation(),f=h$6(l||0),g=useCallback(y=>`Auto ${y} - ${a} ${f.integerAmount}.${f.decimalAmount}`,[a,f.decimalAmount,f.integerAmount]),x=useCallback(y=>{let T=y==="Capture"?n:i,{integerAmount:v,decimalAmount:b}=i$5(T,a);return `Partial ${y} - ${a} ${v}.${b}`},[n,i,a]),S=t>0?jsx(a$6,{title:x("Capture"),children:jsxs(di,{isCapture:true,isFullyUsed:m,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:u.shadows[4]}},children:[jsx(Vg,{src:ob$1,alt:"captured"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(fi,{isCapture:true,percentage:t,children:[t,"% ",jsx(gi,{isCapture:true,percentage:a$1R(t)})]}),o>1&&jsxs(a$8,{compact:true,variant:"dark",children:[o,"x"]})]})]})}):r==="CAPTURED"&&!m?jsx(a$6,{title:g("Capture"),children:jsx(Eo,{children:jsx(Gt,{src:a$1S.CAPTURED?.icon,alt:"auto"})})}):jsx(a$6,{title:g("Capture"),children:jsx(Eo,{children:jsx(Gt,{src:a$1S.CAPTURED?.icon,alt:"auto"})})}),C=t===100?jsx(a$6,{title:d("captured"),children:jsx(Hg,{children:jsx(Gt,{src:Mi,alt:"captured"})})}):S,h=useMemo(()=>s&&C?jsx(a$1P,{chipIndex:4,copyText:d("captured"),selectionProps:c,children:d("captured")}):p&&C?jsx(Pg,{children:d("captured")}):C,[p,C,s,c]);return h&&jsx("div",{style:{zIndex:12},children:h})}var zg=Fb;function Ob({voidPercentage:e,capturePercentage:t,voidCount:o,autoType:r,captureAmount:n,voidAmount:i,currency:a,isTextShown:p,isSheetViewShown:l,selectionProps:s={},remainingAmount:c}){let m=Number(t)+Number(e)===100||c<=0,u=useTheme(),{t:d}=useTranslation(),f=h$6(c||0),g=useCallback(y=>`Auto ${y} - ${a} ${f.integerAmount}.${f.decimalAmount}`,[a,f.decimalAmount,f.integerAmount]),x=useCallback(y=>{let T=y==="Capture"?n:i,{integerAmount:v,decimalAmount:b}=i$5(T,a);return `Partial ${y} - ${a} ${v}.${b}`},[n,i,a]),S=e>1?jsx(a$6,{title:x("Void"),children:jsxs(di,{whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:14,background:u.palette.common.white,border:`0.75px solid ${u.palette.grey[600]}1A`},variants:{animate:{boxShadow:u.shadows[4]}},children:[jsxs(fi,{percentage:e,children:[e,"% ",jsx(gi,{percentage:a$1R(e)})]}),o>0&&jsx(motion.div,{style:{alignItems:"center",justifyContent:"center",gap:"4px",width:0,display:"none"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs(a$8,{compact:true,variant:"neutral",children:[o,"x"]})})]})}):r==="VOID"&&!m?jsx(a$6,{title:g("Void"),children:jsx(Eo,{children:jsx(Gt,{src:a$1S.VOID?.icon,alt:"auto"})})}):null,C=e===100?jsx(a$6,{title:d("void"),children:jsx(Eo,{children:jsx(Gt,{src:bj,alt:"void"})})}):S,h=useMemo(()=>l&&C?jsx(a$1P,{chipIndex:5,copyText:d("void"),selectionProps:s,children:d("void")}):p&&C?jsx(Mg,{children:d("void")}):C,[p,C,l,s]);return h?jsx("div",{style:{...!l&&{zIndex:11}},children:h}):null}var $g=Ob;var zb=zg;var Ug=c$2(a$c(),1);var Ub=({authorizedStatus:e,isTextShown:t,iconStyles:o,tableMode:r,chipIndex:n=0,selectionProps:i={}})=>{let{t:a}=useTranslation(),p=useTheme(),l=a((0, Ug.default)(e));return r==="sheet"?jsx(a$1P,{copyText:l,chipIndex:n,selectionProps:i,children:l}):jsx(a$6,{title:l,children:t?jsx(O,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:p.palette.info.dark},children:l}):jsx(a$z,{src:f$a[e],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:o})})};var ot=c$2(a$c(),1);var Gg=styled$1(motion.span)(({theme:e})=>({color:e.palette.common.white,display:"block",fontWeight:e.typography.fontWeightBold,fontSize:"9.78px",borderRadius:"4px",paddingInline:e.spacing(.45)})),qg=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Xl=styled$1("img")(()=>({width:"10px",height:"10px"})),Ql=styled$1(motion.span)(({theme:e})=>({width:"18px",height:"18px",borderRadius:"50%",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative"})),jl=styled$1(motion.div,{shouldForwardProp:e=>e!=="isVisible"})(({isVisible:e})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",width:"0",overflow:"hidden",opacity:0,...!e&&{padding:"0 !important"}})),Yg=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),Kg=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),Jg={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Zg={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},Xg={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},Qg={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},es={fadeIn:{duration:.3},animate:{duration:.1}},jg={fadeIn:{opacity:1}},eC=styled$1(O)(()=>({width:"88px",height:"100%"})),ts=styled$1(Box)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.25),height:"100%"}));function rt({chargeStatus:e,gatewayTooltip:t,acquirerTooltip:o,chargeTooltip:r,errorCode:n,isTextShown:i,gatewayCode:a,acquirerCode:p,unCapturedStyles:l,iconStyles:s,iconWrapperStyles:c,gatewayIconWrapperStyles:m,gatewayContainerStyles:u,gateWayIconStyles:d,showBadge:f=true,isSheetViewShown:g=false,selectionProps:x={},chipIndex:S=0}){let C=e?b$s[e]:null,h=e?g$6[e]:null,y=useTheme(),{t:T}=useTranslation(),v=r&&jsx(Fragment,{children:jsx("div",{children:r})}),b=o&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:o})]}),E=t&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:t})]}),P=e&&a$1T[e]&&jsx("div",{"data-testid":"ChargeStatusIcon_ChargeIcon",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:C?"50%":"",...c},children:jsx($,{src:a$1T[e],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:C?"50%":"",width:"16px",height:"16px",...s}})});return g?jsxs(ts,{children:[jsxs(a$1P,{copyText:T((0, ot.default)(e)),chipIndex:S,selectionProps:x,children:[T((0, ot.default)(e))," ",n]}),C&&jsxs(Fragment,{children:[a&&jsxs(a$1P,{copyText:"Gateway",chipIndex:1,selectionProps:x,children:["Gateway ",a]}),p&&jsxs(a$1P,{copyText:"Acquirer",chipIndex:2,selectionProps:x,children:["Acquirer ",p]})]})]}):i?jsxs(ts,{children:[jsx(a$6,{title:v,children:jsxs(eC,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, ot.default)(e),sx:{background:C?.background||h?.background||"transparent",color:C?.color||h?.color||y.palette.info.dark,borderColor:`${C?.color||h?.color||y.palette.info.dark}1A`},children:[T((0, ot.default)(e))," ",n]})}),C&&jsxs(Fragment,{children:[a&&jsx(a$6,{title:E,children:jsxs(O,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, ot.default)(e),sx:{background:C?.background||h?.background||"transparent",color:C?.color||h?.color||y.palette.info.dark},children:["Gateway ",a]})}),p&&jsx(a$6,{title:b,children:jsxs(O,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, ot.default)(e),sx:{background:C?.background||h?.background||"transparent",color:C?.color||h?.color||y.palette.info.dark},children:["Acquirer ",p]})})]})]}):jsx(Ie,{"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...c},children:a$1U?.includes(e||"")&&(v||b||E)?jsxs(Kg,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...f&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...l},children:[jsx(Yg,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:C?.background}},children:jsx(a$6,{title:v??T((0, ot.default)(e)),children:jsxs(Fragment,{children:[P,jsx(qg,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:Qg,style:{...n&&{padding:"0 !important"}},children:jsx(Gg,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:C?.color},transition:Jg,variants:jg,initial:{opacity:0},children:n})})]})})}),jsx(jl,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:es,variants:Zg,style:u,isVisible:!!E,children:E&&jsx(a$6,{title:E,children:jsx(Ql,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:C?.background,...m},children:jsx(Xl,{src:C?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:d})})})}),jsx(jl,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:es,variants:Xg,style:u,isVisible:!!b,children:b&&jsx(a$6,{title:b,children:jsx(Ql,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:C?.background,...m},children:jsx(Xl,{src:C?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:d})})})})]}):jsx(a$6,{title:v??T((0, ot.default)(e)),children:jsx(Ie,{children:P})})})}var Kb=({isDisputeOpen:e,iconStyles:t})=>jsx($,{"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:e?ra:qa,alt:"dispute-icon",style:t});var tC=c$2(a$c(),1);var Xb=({payoutStatus:e="PENDING",isTextShown:t,payoutTooltip:o,iconStyles:r,isSheetViewShown:n,chipIndex:i=0,selectionProps:a={}})=>{let{t:p}=useTranslation(),l=p((0, tC.default)(e)),s=o||l;return n?jsx(a$1P,{chipIndex:i,copyText:l,selectionProps:a,children:l}):jsx(a$6,{title:s,children:t?jsx(c$m,{"data-testid":"StatusCell_PayoutStatusLabel",children:l}):jsx($,{src:e$d[e],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var oC=c$2(a$c(),1);var eI=({isTextShown:e,refundStatus:t="PENDING",refundTooltip:o="",refundCount:r,iconStyles:n,isSheetViewShown:i,chipIndex:a=0,selectionProps:p={}})=>{let{t:l}=useTranslation(),s=useTheme(),c=(r||0)>1,m=l((0, oC.default)(t));if(i)return jsxs(a$1P,{chipIndex:a,selectionProps:p,copyText:m,children:[m," ",c?`${r}x`:null]});let u=jsxs(b$t,{"data-testid":"StatusCell_RefundsCountBadge",initial:{width:0,opacity:0,padding:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex",padding:"1.285px 2.569px"},fadeIn:{transition:{delay:.5},opacity:1}},children:[r,"x"]});return e?jsx(a$6,{title:jsx("div",{children:jsx("div",{children:o})}),children:jsx(c$m,{"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d$f[t].color,backgroundColor:d$f[t].backgroundColor,width:"90px"},children:jsxs(c$n,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[m," ",c?u:null]})})}):jsx(a$6,{title:jsx("div",{children:jsx("div",{children:o})}),children:c?jsxs(c$n,{whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[jsx(a$1V,{src:Vi$1,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),u]}):jsx($,{src:c$o[t],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:n})})},rC=eI;var tI=rC;function rI({deviceType:e,geographyVariant:t,isTextShown:o,deviceCountry:r,...n}){return jsx(a$3,{...n,children:jsxs(Zo,{sx:{display:"flex",gap:"8px",alignItems:"center"},children:[jsx(a$1W,{geographyVariant:t,isTextShown:o,countryCode:r}),jsx(a$1X,{type:e,isTextShown:o})]})})}var nI=rI;function aI({destinationsCount:e,destinationsTooltip:t,destination:o,destinationsAmount:r,hidden:n,iconDirection:i,selectionProps:a,...p}){let s=(o?.destination||[])?.map((c,m)=>{let u=h$6(c?.amount||0);return {key:`destination-${c?.id||m}`,content:jsxs(Zo,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxs("div",{children:[c?.id," |"]}),jsx(a$1M,{currency:c?.currency}),jsxs("span",{children:[u.integerAmount,".",u.decimalAmount]})]}),chipIndex:m,selectionProps:a??{},copyText:`${u.integerAmount}.${u.decimalAmount}`}},[a]);return jsx(Zo,{...p,children:jsx(a$1Y,{chips:s})})}var lI=aI;function pI({destinationsCount:e,destinationsTooltip:t,destination:o,destinationsAmount:r,hidden:n,iconDirection:i,...a}){let p=o?.destination||[],l=h$6(r||0),s=h$6(p?.[0]?.amount||0);return !e||n?null:jsx(Zo,{sx:{width:"fit-content",overflow:"visible"},...a,children:jsx(a$6,{title:t,children:jsx(O,{sx:{textAlign:"left",justifyContent:"flex-start",height:"auto"},children:e>1?jsxs("div",{children:["Destination ",p?.[0]?.id," - ",jsx(a$1M,{currency:p?.[0]?.currency})," ",s.integerAmount,".",s.decimalAmount," +",e-1]}):jsxs("div",{children:["Destination ",p?.[0]?.id," - ",jsx(a$1M,{currency:p?.[0]?.currency})," ",l.integerAmount,".",l.decimalAmount]})})})})}var mI=pI;var UW=({destination:e,amount:t})=>{let o=e?.destination||[];return o?.length>1?jsxs("div",{children:[jsx("div",{children:"Destination"}),e?.destination?.map(n=>{let i=h$6(n.amount||0);return jsxs("div",{children:[n?.id," - ",jsx(a$1M,{currency:n?.currency})," ",i.integerAmount,".",i.decimalAmount]},n?.id)})]}):jsxs("div",{children:["Destination ",o?.[0]?.id," - ",jsx(a$1M,{currency:o?.[0]?.currency})," ",t.integerAmount,".",t.decimalAmount]})};function fI({percentage:e=0,days:t,remainingAmount:o=0,currency:r,...n}){let i=useTheme(),a=jsx(a$1M,{currency:r}),{integerAmount:p,decimalAmount:l}=i$5(o,r),s=`${p}.${l}`,c=useMemo(()=>jsxs(Fragment,{children:["Remaining Authorized Balance - ",a," ",s]}),[o,r]);return e===0||o<0?null:jsx(a$3,{...n,children:jsx(a$6,{title:c,placement:"top",children:jsx("div",{style:{height:24},children:jsxs(a$1Z,{whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:22},variants:{animate:{...!!t&&{boxShadow:i.shadows[4]}}},children:[jsxs(b$u,{percentage:e,children:[e,"% ",jsx(mi,{percentage:a$1_(e)})]}),!!t&&jsx(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px",width:0},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs("span",{children:[t," days left"]})})]})})})})}var gI=fI;function xI({remainingAmount:e,currency:t,selectionProps:o}){let r=jsx(a$1M,{currency:t}),{integerAmount:n,decimalAmount:i}=i$5(e,t),a=`${n}.${i}`;return jsxs(a$1P,{chipIndex:0,copyText:`${n}.${i}`,selectionProps:o,children:[r," ",a]})}var hI=xI;function II(e){let{centerIcon:t,centerIconId:o}=useMemo(()=>{for(let a of c$3)if(e?.[a])return {centerIcon:e?.[a],centerIconId:a};return {centerIcon:null,centerIconId:null}},[e]);if(!o)return null;let r=o!=="paymentScheme"&&e.paymentScheme,n=o!=="paymentCardNumber"&&e.paymentCardNumber,i=o!=="paymentType"&&e.paymentType;return jsx(a$r,{expandedZIndex:0,centerIcon:t,leftIcons:b$6.filter(a=>a!==o&&e?.[a]).map(a=>e?.[a]),rightIcons:a$t.filter(a=>a!==o&&e?.[a]).map(a=>e?.[a]),expandableCenterRight:(r||n)&&jsxs(a$s,{children:[r&&e.paymentScheme,n&&e.paymentCardNumber]}),expandableCenterLeft:i&&jsx(b$5,{children:e.paymentType})})}var vI=memo(II);var lC=c$2(a$c(),1);function BN({card:e,paymentMethod:t,paymentType:o,paymentScheme:r}){let{t:n}=useTranslation();if(!e.last_four)return null;let i=e?.name||`${n((0, lC.default)(b$v(t,r)?o:r))} - ${e?.last_four}`;return jsx(a$6,{title:i,children:jsxs(a$1$,{children:["\xB7\xB7\xB7 ",e?.last_four]})})}var sC=c$2(a$c(),1);function WN({method:e}){let{t}=useTranslation();return e?jsx(a$20,{source:a$21(e)??e,title:`Payment Method - ${t((0, sC.default)(e))}`}):null}var pC=c$2(a$c(),1);function $N({type:e}){let{t}=useTranslation();return e?jsx(a$20,{source:a$21(e)??e??"",title:`Payment Type - ${t((0, pC.default)(e))}`}):null}var mC=c$2(a$c(),1);function ZN({scheme:e}){let{t}=useTranslation();return e?jsx(a$20,{source:a$21(e)??e,title:`Payment Scheme - ${t((0, mC.default)(e))}`}):null}function VI({type:e,hasSavedCard:t,totalPaymentsCount:o,isTextShown:r,...n}){let i=useTheme(),{t:a}=useTranslation(),p=useMemo(()=>[...t?[b$w.SAVED_TOKEN]:[],...(o||0)>0?[b$w.COUNT]:[],...e&&a$22[e]?[a$22[e]]:[]],[t,o,e]),l=u=>r?jsx(a$23,{"data-testid":"AgreementCell_countBadge",order:u,variants:b$x(u,r?85:0),children:jsx(a$6,{title:a("totalPaymentCount",{amount:a$2R(o)}),children:jsx(f$b,{children:jsxs(e$e,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:b$w.COUNT.color},children:["x",o]})})})},u):jsx(a$2S,{totalPaymentsCount:o,index:u},u),s=p.map((u,d)=>u.label==="countBadge"?l(d):jsx(a$6,{title:a(u.label),children:jsx(a$23,{order:d,variants:b$x(d,d>1&&r?62:0),sx:{width:r?"auto":"36px"},children:r?jsx(f$b,{children:jsx(e$e,{"data-testid":"AgreementCell_agreementType",sx:{color:u.color},children:a(u.label)})}):jsx(i$6,{src:u.icon,alt:"agreement"})},u.color)},u.color)),c=s.length,m=jsx(a$6,{title:"No agreement",children:jsx(a$23,{order:0,variants:b$x(0,0),sx:{width:r?"auto":"36px"},children:r?jsx(f$b,{children:jsx(e$e,{"data-testid":"AgreementCell_agreementType",sx:{color:i.palette.text.secondary},children:"No agreement"})}):jsx(i$6,{src:gh$1,alt:"no-agreement"})},"no-agreement")},"no-agreement");return jsx(a$3,{...n,children:jsx(h$7,{"data-testid":"AgreementCell",children:jsx(g$7,{layout:true,className:"payment-sources-container","data-testid":"AgreementCell_PaymentSourcesContainer",whileHover:"animate",animate:"start",sourcesCount:c||0,variants:{animate:{width:(c||0)*38}},children:s?.length>0?s:m})})})}var HI=VI;function zI({hasAuth:e,tooltip:t,isTextShown:o,align:r,...n}){return jsx(a$3,{style:{textAlign:r||"center",overflow:"visible",display:"flex",width:"100%",justifyContent:r==="left"?"flex-start":"center"},...n,children:e?jsx(a$6,{title:t,children:jsx(ht,{"data-testid":"AuthCell_BadgeWrapper",children:o?jsx(O,{"data-testid":"AuthCell_TextLabel",sx:{minWidth:"max-content"},children:t}):jsx(a$24,{src:ja,alt:"icon","data-testid":"AuthCell_AuthIcon"})})}):null})}var _I=zI;var ss=c$2(a$c(),1);var cC=c$2(a$c(),1);function uC({status:e,refundTooltip:t}){let{t:o}=useTranslation();return jsx(a$6,{title:jsxs("div",{children:[jsx("div",{children:o((0, cC.default)(e))}),t]}),children:jsx(Ie,{children:jsx("img",{src:a$25[e],alt:"refund-requested"})})})}function fC({status:e,gatewayTooltip:t,unCapturedTooltip:o,acquirerTooltip:r,errorCode:n,acquirerCode:i,gatewayCode:a,refundTooltip:p}){let{t:l}=useTranslation();return a$1U?.includes(e??"")?jsx(rt,{chargeStatus:e,gatewayTooltip:t,chargeTooltip:o,acquirerTooltip:r,errorCode:n,acquirerCode:i,gatewayCode:a,iconWrapperStyles:{height:17}}):jsx(uC,{status:e,refundTooltip:p})}var gC=styled$1(motion.div)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5),paddingInline:e.spacing(.625),paddingBlock:e.spacing(.625),height:"24px",minWidth:"24px",backgroundColor:"#ede8fb",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:e.palette.text.primary,position:"relative",zIndex:10})),CC=styled$1("div")(({theme:e})=>({borderRadius:"80px",padding:e.spacing(.316),paddingLeft:e.spacing(.516),fontSize:"12px",fontWeight:e.typography.fontWeightRegular,color:e.palette.secondary.main,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5),lineHeight:0})),xC=styled$1(wr)(({theme:e})=>({fontSize:"12px",fontWeight:e.typography.fontWeightRegular,color:e.palette.secondary.main})),QV=styled$1("div")(({percentage:e,isCapture:t,theme:o})=>({background:`conic-gradient(${t?o.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${t?o.palette.info.dark:"#656565"}`})),jV=styled$1("span")(({theme:e,isCapture:t})=>({backgroundColor:t?e.palette.info.dark:"#656565",color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),hC=styled$1("img")({width:"14px",height:"14px"}),yC=styled$1(Zo)(({theme:e})=>({position:"relative",zIndex:25,border:`1px solid ${e.palette.divider}`,height:24,borderRadius:"12px",padding:"3px 4px","> div":{paddingTop:0,paddingBottom:0,height:16}}));function ls({status:e,refundIcon:t,refundTooltip:o,refundTooltipLabel:r,date:n,gatewayTooltip:i,unCapturedTooltip:a,acquirerTooltip:p,errorCode:l,acquirerCode:s,gatewayCode:c,timezone:m}){let u=useTheme(),{t:d}=useTranslation(),f=j$5(new Date(Number(n)),{currentTimezone:b$y,targetTimezone:m?.offset}),g=useMemo(()=>t||(e==="REFUNDED"?Ti:Vi$1),[e,t]);return ["REFUNDED","PAID_OUT"].includes(e??"")?jsx(a$6,{title:jsxs("div",{children:[jsx("div",{children:r??d(b$z.REFUNDED)}),o]}),children:jsxs(gC,{whileHover:["animate","fadeIn"],animate:"start",variants:{...n&&{animate:{boxShadow:u.shadows[4]}}},sx:{...!n&&{backgroundColor:"transparent"}},children:[jsx(hC,{sx:{...!n&&{width:"16px",height:"16px"}},src:g,alt:"refunded"}),jsx(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:n&&jsx(CC,{children:jsx(xC,{value:f})})})]})}):jsx(fC,{status:e,refundTooltip:o,gatewayTooltip:i,unCapturedTooltip:a,acquirerTooltip:p,errorCode:l,acquirerCode:s,gatewayCode:c})}function tv({status:e,date:t,refundTooltip:o,isTextShown:r,gatewayTooltip:n,acquirerTooltip:i,errorCode:a,acquirerCode:p,gatewayCode:l,unCapturedTooltip:s,timezone:c,refundTooltipLabel:m,refundIcon:u,...d}){let{t:f}=useTranslation(),g=a$26(),x=useCallback(C=>vC(C).format("MMM D, YYYY"),[]),S=a$1U.includes(e);return jsx(a$3,{...d,style:{overflow:"visible"},children:jsx(Pe,{children:jsx(yC,{width:r?"auto":"36px",sx:{...S&&{border:"none"}},children:r?jsx(a$6,{title:t?x(t):f((0, ss.default)(e)),children:jsx(O,{sx:{...g[e]?g[e]:g.PENDING},children:f((0, ss.default)(e))})}):jsx(ls,{status:e,refundTooltip:o,date:t,gatewayTooltip:n,unCapturedTooltip:s,acquirerTooltip:i,errorCode:a,acquirerCode:p,gatewayCode:l,timezone:c,refundTooltipLabel:m,refundIcon:u})})})})}var ov=tv;function rv({walletId:e,country:t,showCountry:o=true,...r}){return jsx(a$3,{style:{textAlign:"center",overflow:"visible"},...r,children:jsxs(b$A,{children:[o&&t&&jsx(a$6,{title:a$v(t),children:jsx(a$u,{countryCode:t})}),jsxs(c$p,{children:[jsx(a$27,{src:Xb$1,alt:"wallet-icon"}),e&&jsxs(d$g,{children:["\xB7\xB7\xB7\xB7 ",e?.substring((e?.length||0)-4)]})]})]})})}var nv=rv;function iv({walletId:e,country:t,name:o,...r}){return jsx(a$3,{style:{textAlign:"center",overflow:"visible"},...r,children:jsxs(b$B,{children:[t&&jsx(a$6,{title:a$v(t),children:jsx(a$u,{countryCode:t})}),jsxs(c$q,{children:[jsx(a$28,{src:Yb,alt:"bank-icon"}),e&&jsxs(d$h,{children:[o," \xB7\xB7\xB7\xB7 ",e?.substring((e?.length||0)-4)]})]})]})})}var av=iv;var TC=c$2(a$c(),1);function pv({payoutStatus:e="PAID_OUT",...t}){let{t:o}=useTranslation(),r=useTheme();return jsx(a$3,{...t,children:jsx(Pe,{children:jsx(Ie,{className:"payout-status",style:{visibility:"visible",width:"36px",borderRadius:"23.1px",backgroundColor:r.palette.common.white,border:`1.029px solid ${r.palette.divider}`},children:e&&b$C[e]&&jsx(a$6,{title:o((0, TC.default)(e)),children:jsx($,{src:b$C[e],alt:"settled-icon",style:{width:"16px",height:"16px",objectFit:"contain"}})})})})})}var mv=pv;var bC=c$2(a$c(),1);function uv({status:e,chargeStatus:t,isTextShown:o,...r}){let{t:n}=useTranslation();return jsx(a$3,{...r,children:jsxs(Pe,{children:[jsx(a$29,{status:e,isTextShown:o}),t&&b$D[t]&&jsx(a$6,{title:n((0, bC.default)(t)),children:jsx($,{src:b$D[t],alt:"charge-icon"})})]})})}var dv=uv;var wi=c$2(a$c(),1);function Cv({status:e,authorizedStatus:t,chargeStatus:o,chargeTooltip:r,gatewayTooltip:n,acquirerTooltip:i,errorCode:a,...p}){let{t:l}=useTranslation(),s=[e&&b$E[e]?jsx(a$6,{title:l((0, wi.default)(e)),children:jsx("img",{src:b$E[e],alt:"authentication-icon",style:{width:"36px",height:"24px",objectFit:"scale-down"}})}):null,o&&c$r[o]?jsx(a$6,{title:l((0, wi.default)(o)),children:jsx(rt,{showAuthorizedStatus:true,chargeStatus:o,gatewayTooltip:n,chargeTooltip:r,acquirerTooltip:i,errorCode:a})}):null,t&&f$a[t]?jsx(a$6,{title:l((0, wi.default)(t)),children:jsx("img",{src:f$a[t],alt:"authorized-icon",style:{width:"36px",height:"20px",objectFit:"scale-down"}})}):null].filter(Boolean),c=40,m=0;return jsx(a$3,{...p,sx:{position:"relative",overflow:"visible"},children:jsx(g$5,{initial:"initial",whileHover:"hover",animate:"start",children:s.map((u,d)=>{if(!u)return null;let f=(d-m)*c,g=d>m,x=d<m;return jsx(f$9,{variants:{initial:{x:x?-5:g?5:0,zIndex:x?100-d:g?d:100},hover:{x:f,zIndex:100-Math.abs(m-d)}},transition:{duration:.3,type:"tween",ease:"easeOut"},statusesCount:s.length||0,children:jsx(e$c,{children:u})},d)})})})}var xv=Cv;var IC=c$2(a$c(),1);function yv({type:e,...t}){let{t:o}=useTranslation();return jsx(a$3,{...t,children:jsx(Pe,{children:jsx(Ie,{className:"authentication-status",children:e&&a$2a[e]&&jsx(a$6,{title:o((0, IC.default)(e)),children:jsx($,{src:a$2a[e],alt:"authentication-type"})})})})})}var Sv=yv;function Iv({channels:e,isTextShown:t,...o}){let{t:r}=useTranslation(),n=useTheme(),i={WHATSAPP:n.palette.custom[700],EMAIL:n.palette.custom[800],SMS:n.palette.custom[900]},p=e?.sort(s=>s==="EMAIL"?-1:s==="SMS"?1:s==="WHATSAPP"?2:0)?.filter(s=>!!s)?.map((s,c)=>{if(!s)return null;let m=r(s?.toLowerCase());return jsx(a$6,{title:m,children:jsx(a$2b,{order:c,variants:b$x(c,t?74:0),sx:{width:t?"70px":"36px"},children:t?jsx(e$f,{children:jsx(d$i,{sx:{color:i[s]},children:m})}):jsx(b$F,{src:a$2c[s],alt:s})})},`${s}-${c}`)}),l=p?.length||0;return jsx(a$3,{...o,children:jsx(a$2d,{children:p?.length>0?jsx(c$s,{layout:true,className:"payment-sources-container",whileHover:"animate",animate:"start",sourcesCount:l||0,variants:{animate:{width:(l||0)*38}},style:{zIndex:29},children:p}):null})})}var vv=Iv;function wv({dueDate:e,expiryDate:t,...o}){let r=useMemo(()=>({label:a$2e(vC(e).valueOf()),tooltip:"Due Date"}),[e]),n=useMemo(()=>({label:a$2e(vC(t).valueOf()),tooltip:"Expiry Date"}),[t]),i=l=>jsx(a$6,{title:l.tooltip,children:jsx(e$r,{children:l.label})}),a=useMemo(()=>e?i(r):t?i(n):null,[r,n,e,t]),p=useMemo(()=>t&&e?[i(n)]:[],[r,n,e,t]);return !e&&!t?null:jsx(a$3,{...o,sx:{position:"relative",overflow:"visible"},children:jsx(a$r,{sx:{justifyContent:"flex-start"},centerIcon:a,rightIcons:p})})}var Pv=wv;function Ev({products:e,...t}){let o=e?.map(n=>jsx(e$g,{sx:{...n?.toLowerCase()===c$t.tokens.code?.toLowerCase()&&{borderRadius:"8px",border:"1px solid rgba(0, 0, 0, 0.10)"}},className:"app-logo",src:e$h.find(i=>i.code?.toLowerCase()===n?.toLowerCase())?.iconUrl,alt:"product-icon"},n)),r=jsxs(a$2f,{whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:"10px 0px 8px 0px #F2F2F2"}},children:[jsx(e$g,{src:Yg$1,alt:"products-icon"}),jsx(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:o})]});return jsx(a$3,{...t,style:{overflow:"visible"},children:jsx(Pe,{children:jsx("div",{style:{width:"30px",position:"relative",zIndex:24},children:r})})})}var Bv=Ev;function Ei(e){return jsx(pi,{...e,children:jsx(a$6,{title:e.tooltip||e.children,children:e.children})})}vC.extend(Lv);vC.extend(Dv);function MC({value:e,...t}){let o=useMemo(()=>n(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"MMM D, YYYY",lastWeek:"MMM D, YYYY",nextWeek:"MMM D, YYYY"}),[e]);return jsx(a$3,{...t,children:o})}var cs=c$2(a$d(),1);function Nv({isTextShown:e,...t}){let[o,r]=useState(false),n=useTheme(),i=useMemo(()=>Object.keys(a$2g).filter(l=>!!t[l]),[t]),a=useMemo(()=>i.map((l,s)=>{let c=`${(0, cs.default)(l)} - ${t[l]}`;return jsx(a$6,{onOpen:()=>{r(true);},onClose:()=>{r(false);},title:c,children:jsx(a$2b,{order:s,variants:g$8(s,n.shadows[4],e?83:0),sx:{width:e?"79px":"36px"},children:e?jsx(e$i,{children:jsx(d$j,{children:(0, cs.default)(l)})}):jsx(b$G,{src:a$2g[l],alt:l,sx:{...l==="order"&&{width:"11.82px"}}})})},`${l}-${s}`)}),[t,i,e,n]),p=a?.length||0;return jsx(a$3,{...t,children:jsx(a$2h,{children:p>0?jsx(c$u,{layout:true,className:"reference-sources-container",whileHover:"animate",animate:o?"animate":"start",sourcesCount:p,variants:{animate:{width:p*38}},style:{zIndex:29},children:a}):null})})}var Vv=Nv;function Ov({transactionStatus:e,isTextShown:t,eci:o,authType:r,...n}){let i=useTheme$1(),a=useMemo(()=>{let s=a$2i[e??"noAuth"]??a$2i.noAuth,c=s?.tooltip,m=s?.icon;return [{tooltip:c,content:t?c:m,type:t?"text":"icon"},...r?[{tooltip:r,content:t?b$H[r]?.tooltip:b$H[r]?.icon,type:t?"text":"icon"}]:[],{tooltip:"",content:o?`ECI ${o}`:"",type:"text"}]},[e,o,t]),p=useMemo(()=>a.filter(s=>!!s.content).map((s,c)=>{let m=s.type==="text"?jsx(g$9,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(O,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":s.content,children:s.content})}):jsx(c$v,{src:s.content,alt:s.tooltip});return jsx(a$6,{title:s.tooltip,children:jsx(a$2b,{order:-1*c,variants:f$c(c,i.shadows[4],t?124:39),sx:{...s.type==="text"&&{width:t?"120px":"58px"}},children:m})},`${s.tooltip}-${c}`)}),[n,a,t,i]),l=p.length;return jsx(a$3,{...n,children:jsx(b$I,{children:l>0?jsx(e$j,{layout:true,className:"authentication-sources-container",whileHover:"animate",animate:"start",sourcesCount:l,variants:{animate:{width:38}},style:{zIndex:29},children:p}):null})})}var zv=Ov;var AC=c$2(a$c(),1);function $v({status:e,...t}){let{t:o}=useTranslation();return jsx(a$3,{...t,sx:{overflow:"visible"},children:jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"8px",overflow:"visible"},children:e&&a$2j[e]&&jsx(a$6,{title:o((0, AC.default)(e)),children:jsx($,{src:a$2j[e],alt:"checkout-icon"})})})})}var Uv=$v;var us=c$2(a$c(),1);function kC({status:e,chargeStatus:t,...o}){let{t:r}=useTranslation();return jsx(a$3,{...o,sx:{overflow:"visible"},children:jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"8px",overflow:"visible"},children:[e&&a$2k[e]&&jsx(a$6,{title:r((0, us.default)(e)),children:jsx($,{src:a$2k[e],alt:"intents-icon"})}),t&&c$r[t]&&jsx(a$6,{title:r((0, us.default)(t)),children:jsx(rt,{chargeStatus:t})})]})})}var ds=c$2(a$c(),1);function Jv({percentage:e,date:t,payoutStatus:o,payoutTooltip:r,chargeTooltip:n,refundCount:i,isTextShown:a,...p}){let{t:l}=useTranslation(),s=useTheme();return e===0?null:jsx(a$3,{...p,style:{overflow:"visible",position:"relative"},children:jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"8px"},children:[jsx(a$6,{title:n,children:jsxs(a$2l,{whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{gap:"4px"}},sx:{...a&&{height:"auto",padding:"0",backgroundColor:"transparent"}},children:[jsx(b$J,{percentage:e,sx:{backgroundColor:"#eeeeee",...a&&{backgroundColor:"transparent",border:"none"}},variants:{...!a&&{animate:{boxShadow:s.shadows[4]}}},children:a?jsxs(O,{children:[e,"%"]}):jsxs(Fragment,{children:[e," % ",jsx(mi,{percentage:a$2m(e)})]})}),i>1&&jsx(motion.div,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"8px"},children:jsx(motion.div,{style:{alignItems:"center",justifyContent:"center",gap:"4px",position:"relative",zIndex:22,overflow:"visible"},initial:{width:0,opacity:0,paddingRight:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",paddingRight:"4px",boxShadow:s.shadows[4]},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs(a$8,{compact:true,variant:"neutral",children:[i,"x"]})})})]})}),jsx(Ie,{className:"payout-status",style:{visibility:o==="PENDING"?"hidden":"visible",position:"relative",left:"57px",width:a?"auto":"24px"},children:o&&e$d[o]&&jsx(a$6,{title:r||l((0, ds.default)(o)),children:a?jsx(O,{sx:{color:a$2n[o].color,border:`1px solid ${a$2n[o].color}1a`,backgroundColor:a$2n[o].backgroundColor},children:l((0, ds.default)(o))}):jsx($,{src:e$d[o],alt:"settled-icon"})})})]})})}var Zv=Jv;var LC=c$2(a$c(),1);function RC({chargeStatus:e,chargeTooltip:t,errorCode:o,iconStyles:r,iconWrapperStyles:n}){let{t:i}=useTranslation(),a=e?b$s[e]:null,p=e&&a$1T[e]&&jsx(e$k,{style:n,children:jsx($,{src:a$1T[e],alt:"charge-icon",style:{width:"16px",height:"16px",...r}})}),l=t&&jsx(Fragment,{children:jsx("div",{children:t})});return e?jsx(a$6,{title:l??i((0, LC.default)(e)),children:jsxs(Zo,{sx:{display:"flex",gap:"6px",alignItems:"center"},children:[p,!!a$1U?.includes(e||"")&&jsx(d$k,{style:{background:a?.color},children:o})]})}):null}function FC({status:e,date:t,viewsCount:o,chargeStatus:r,errorCode:n,chargeTooltip:i,remindedCount:a=0,...p}){let{t:l}=useTranslation(),s=useTheme(),c=e?a$2o[e]:null,m=a$2p(e),u=`${l(e?.toLowerCase()||"")} ${a$2e(vC(t).valueOf())}`,d=useMemo(()=>jsx(RC,{chargeStatus:r,errorCode:n,chargeTooltip:i}),[r,n,i]),f=useMemo(()=>jsx(a$6,{title:l("reminded"),children:jsxs(Zo,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[jsx(b$K,{sx:{width:"14px",height:"14px"},src:sd,alt:"icon"}),jsx(a$8,{variant:"default",style:{background:s.palette.error.main,fontWeight:600,color:s.palette.common.white},children:a})]})}),[a]),g=useMemo(()=>{if(c)return jsx(a$6,{title:l(u||""),children:jsx(b$K,{src:c,alt:"status icon"})});if(r&&c$r[r])return d;if(a)return f},[c,r,a]);return !e&&!r&&!a?null:jsx(a$3,{...p,sx:{position:"relative",overflow:"visible"},children:jsx(a$r,{sx:{justifyContent:"flex-start"},expandableCenterRight:o&&e==="VIEWED"&&c?[jsx(a$8,{variant:"default",style:{marginRight:"8px",color:"#fff",backgroundColor:m.color},children:o})]:void 0,centerIcon:g,leftIcons:a&&c?[f]:void 0,rightIcons:r&&c$r[r]&&c?[d]:void 0})})}function lw({tooltip:e,children:t,badge:o,...r}){return jsx(a$3,{style:{textAlign:"center",overflow:"visible"},...r,children:t?jsx(a$6,{title:e,children:jsx(ht,{"data-testid":"BadgeCell_BadgeWrapper",children:jsxs(O,{"data-testid":"BadgeCell_TextLabel",sx:{minWidth:"max-content",gap:"0.5rem"},children:[t,(o||0)>1&&jsxs(a$8,{variant:"dark",style:{fontWeight:"bold"},children:["+",o]})]})})}):null})}var sw=lw;var Rr=c$2(a$c(),1);function mw({status:e,chargeTooltip:t,gatewayTooltip:o,acquirerTooltip:r,errorCode:n,cardId:i,hasChargeIcon:a,hasAuthorizedIcon:p,...l}){let{t:s}=useTranslation();return jsx(a$3,{...l,sx:{position:"relative",overflow:"visible"},children:jsxs(Pe,{sx:{gap:"0.5rem"},children:[e&&a$2q[e]&&jsx(a$6,{title:s((0, Rr.default)(e)),children:jsx($,{src:a$2q[e],alt:"token-icon"})}),i&&jsx(a$6,{title:s((0, Rr.default)(e)),children:jsx($,{src:Og,alt:"card-icon"})}),a&&jsx(a$6,{title:s((0, Rr.default)("CAPTURED")),children:jsx(rt,{showAuthorizedStatus:true,chargeStatus:"CAPTURED",gatewayTooltip:o,chargeTooltip:t,acquirerTooltip:r,errorCode:n})}),p&&jsx(a$6,{title:s((0, Rr.default)("AUTHORIZED")),children:jsx($,{src:f$a.AUTHORIZED,alt:"authorized-icon"})})]})})}var cw=mw;function dw({brandName:e,brandIcon:t,...o}){return jsx(a$3,{style:{textAlign:"center",overflow:"visible"},...o,children:jsxs(c$w,{children:[jsx(b$L,{children:t?jsx(a$6,{title:e,children:jsx(a$2r,{src:t,alt:"brand icon",onError:n=>{n.currentTarget.src=dh;}})}):jsx(a$2r,{src:dh,alt:"brand icon"})}),jsx("span",{children:e})]})})}var fw=dw;var xw=({onClick:e,isSettlementsAvailable:t,isDownloadError:o,isDownloadLoading:r,isDownloadSuccess:n})=>{let i=useMemo(()=>r||n||o,[r,n,o]),a=useMemo(()=>n?dc:o?cc:Bi,[n,o]);return jsx(a$6,{title:t?"":"Pending",children:jsx(a$2s,{onClick:()=>t&&!i&&e(),children:jsx(AnimatePresence,{mode:"wait",initial:false,children:r?jsx(a$2t,{},"spinner"):jsx(b$M,{src:t?a:Ci,alt:"Download Report"})})})})};var yw=({receiptId:e})=>jsx(TableCell,{component:"div",children:jsx(a$6,{title:`Receipt - ${e}`,children:jsx(O,{sx:{padding:"3px 8px",maxWidth:"50px"},children:jsx("img",{src:kc,alt:"receipt"})})})});var Sw=({receiptId:e})=>jsx(pi,{children:jsx("span",{children:e})});var Tw=({receiptId:e})=>jsx(Ei,{children:jsx("span",{children:e})});function OC({entity:e,country:t,verificationStatus:o,licenseNumber:r,hideStatus:n,...i}){let a=a$2u[o??"incomplete"];return jsx(a$3,{...i,sx:{cursor:i?.onClick?"pointer":"default"},children:jsx(a$6,{title:e,children:jsx(a$2v,{hasClick:!!i?.onClick,licenseNumber:r,children:jsxs(b$N,{children:[jsx(a$6,{title:t?a$v(t):"",children:jsx(a$u,{countryCode:t})}),jsx(d$l,{licenseNumber:r,children:r||"Not Available"}),!n&&jsx(f$d,{children:jsx(e$l,{src:a})})]})})})})}function _C({acceptance:e,payout:t,hideAcceptance:o,hidePayout:r,...n}){let i=e?.toLowerCase()==="enabled",a=t?.toLowerCase()==="enabled",[p,l]=useState(false),s=useTheme(),c=useMemo(()=>[{icon:i?oc:hh$1,tooltip:"Acceptance",enabled:i,shown:!o,zIndex:i&&!a?3:1},{icon:a?pc:lh,tooltip:"Payout",enabled:a,shown:!r,zIndex:2}].filter(d=>d.shown),[i,a,o,r]),m=useMemo(()=>c.map((d,f)=>{let g=d.tooltip;return jsx(a$2b,{order:f,variants:e$m(f,s.shadows[4],40),sx:{width:"36px",zIndex:d.zIndex+6},children:jsx(a$6,{onOpen:()=>{l(true);},onClose:()=>{l(false);},title:g,children:jsx(a$2w,{mainIcon:d.icon,mainIconSize:16,containerSize:16,sx:{borderRadius:"40px"},onError:x=>{x.currentTarget.src=d.icon,x.currentTarget.style.borderRadius="0px";},borderColor:"transparent"})})},`${d}-${f}`)}),[c,s]),u=c?.length||0;return jsx(a$3,{...n,children:jsx(a$2x,{children:u>0?jsx(b$O,{layout:true,className:"reference-sources-container",whileHover:"animate",animate:p?"animate":"start",sourcesCount:u,variants:{animate:{width:u*38}},style:{zIndex:29},children:m}):null})})}var $C=c$2(a$d(),1);function Ew({isTextShown:e,segments:t,...o}){let[r,n]=useState(false),i=useTheme(),a=useMemo(()=>t?.filter(l=>!!l.name).map((l,s)=>{let c=l.type?.toLowerCase?.().includes("platform"),m=l.tooltip||a$2y(l),u=l.type,d=c?a$2z.platform:a$2z[u];return jsx(a$2b,{order:s,variants:e$n(s,i.shadows[4],e?83:0),sx:{width:e?"79px":"36px"},children:jsx(a$6,{onOpen:()=>{n(true);},onClose:()=>{n(false);},title:m,children:e?jsx(d$m,{children:jsx(c$x,{children:(0, $C.default)(l.name)})}):jsx(a$2w,{mainIcon:l.icon||d,mainIconSize:16,containerSize:16,sx:{...l.icon?{borderRadius:"40px"}:{borderRadius:"0px"}},onError:f=>{a$2z[u]&&(f.currentTarget.src=a$2z[u],f.currentTarget.style.borderRadius="0px");},borderColor:"transparent"})})},`${l.name}-${s}`)}),[t,e,i]),p=a?.length||0;return jsx(a$3,{...o,children:jsx(a$2A,{children:p>0?jsx(b$P,{layout:true,className:"reference-sources-container",whileHover:"animate",animate:r?"animate":"start",sourcesCount:p,variants:{animate:{width:p*38}},style:{zIndex:29},children:a}):null})})}var Bw=Ew;function Aw({channels:e,...t}){let o=e?.filter(n=>!!n.address)?.map((n,i)=>{let a=n.address,p=n.code?.replace(/_/g,""),l=i===e?.length-1,s=a$2B(n.address??"",n.code??"");return jsx(a$6,{title:a,children:jsx(a$2b,{order:i,variants:f$e(i,0,l),sx:{width:"36px",cursor:s?"pointer":"default"},onClick:()=>{n?.address&&b$R(s);},children:jsx(b$Q,{src:n.logo,alt:p})})},`${n}-${i}`)}),r=o?.length||0;return jsx(a$3,{...t,children:jsx(a$2C,{children:o?.length>0?jsx(c$y,{layout:true,className:"sales-channels-container",whileHover:"animate",animate:"start",sourcesCount:r||0,variants:{animate:{width:(r||0)*38}},style:{zIndex:29},children:o}):null})})}var kw=Aw;function Ww({channels:e,selectionProps:t={}}){let o=useRef(null),[r,n]=useState(false),[i,a]=useState(null),p=!!i;useEffect(()=>{o.current&&n(o.current.scrollHeight>20);},[e]);let l=useMemo(()=>(e||[]).filter(s=>!!s.address),[e]);return jsxs(g$a,{children:[jsx(Box,{sx:{display:"flex",flexWrap:"wrap",gap:r?"8px":"4px"},ref:o,children:l.map((s,c)=>jsxs(a$1P,{copyText:s.address,chipIndex:c+1,selectionProps:t,maxWidth:"367px",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"367px","& div":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"367px"}},children:[s.name?.en,": ",s.address]},s.id))}),r&&jsx(Box,{onClick:s=>{a(s.currentTarget.parentElement);},sx:{height:"18px"},children:jsx(a$q,{minWidth:"25",sx:{borderRadius:"24px",overflow:"hidden"},copyText:"...",children:"..."})}),jsx(Popover,{open:p,anchorEl:i,sx:{minWidth:i?.clientWidth},onClose:()=>{a(null);},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{maxWidth:"unset",minWidth:i?.clientWidth,marginTop:"22px"}}},children:jsx(Box,{sx:{display:"flex",flexDirection:"column",gap:"4px",padding:"4px"},children:l.map((s,c)=>jsxs(a$1P,{copyText:s.address,chipIndex:c+1,selectionProps:t,children:[s.name?.en,": ",s.address]},s.id))})})]})}var Nw=Ww;var GC=c$2(a$c(),1),qC=c$2(a$e(),1);function YC({status:e,...t}){let{t:o}=useTranslation();return jsx(a$3,{...t,children:e&&a$2D[e]&&jsx(a$6,{title:o((0, qC.default)((0, GC.default)(e))),children:jsx(a$2E,{children:jsx(a$2w,{mainIcon:a$2D[e],mainIconSize:16,containerSize:16,borderColor:"transparent"})})})})}function Ow({type:e,count:t,...o}){let r=t?.toString();return jsxs(Box,{sx:{display:"flex",flexDirection:"row",gap:"4px"},children:[jsx(a$1P,{copyText:e,unknownText:"noPaymentAgreement",...o,chipIndex:0,children:e&&a$2F[e]}),r&&jsx(a$1P,{copyText:r,...o,chipIndex:1,minWidth:"38px",children:r})]})}var zw=Ow;function Uw({url:e}){let t=a$x(),o=()=>{try{f$5(e),t.success("Copied!");}catch{t.error("Failed to copy");}};return e?jsx(a$y,{onClick:o,children:jsx(a$z,{src:fk,alt:"link"})}):null}var Gw=memo(Uw);var Qw=e=>{let{name:t,icon:o,namePlaceholder:r="Unavailable",showIcon:n=true,showLabel:i=true,slotsProps:a,...p}=e,{i18n:l}=useTranslation(),s=useMemo(()=>t?c$4(t,l.language):null,[t,l.language]),{tooltip:c={},chip:m={},chipsTooltip:u={},label:d={},labelTooltip:f={}}=a||{},g=n&&!!o,x=i;return !g&&!x?null:jsxs(ST,{direction:"row",alignItems:"center",spacing:1,color:"text.primary",...p,children:[g&&jsx(a$6,{title:s?`Platform: ${s}`:null,...c,...u,children:jsx(a$A,{variant:"circular",sx:{"&.CustomVariant_circular":{minWidth:32,height:32}},...m,children:o})}),x&&jsx(a$6,{title:s,...c,...f,children:jsx(Is,{noWrap:true,fontSize:12,fontWeight:500,...d,children:s||jsx(Zo,{component:"span",sx:{opacity:.2},children:r})})})]})},jw=memo(Qw);function C4({items:e,selectionProps:t={}}){let[o,r]=useState(null),n=!!o,i=useCallback(({quantity:l,currency:s,amount:c,name:m})=>`${l?`Qty ${l}`:""} ${m?`- ${m}`:""} ${s||c?"-":""} ${s||""} ${c||""}`,[]);if(!e||!e.length)return null;let[a,...p]=e;return jsxs(Zo,{sx:{display:"flex",gap:"4px",alignItems:"center"},children:[jsx(a$1P,{chipIndex:0,selectionProps:t,children:jsx(a$g,{noWrap:true,sx:{maxWidth:e.length>1?190:220,fontSize:11},children:i(a)})}),e.length>1&&jsx(Zo,{onClick:l=>{r(l.currentTarget.parentElement);},sx:{height:"18px"},children:jsx(a$q,{minWidth:"25",sx:{borderRadius:"24px",overflow:"hidden"},copyText:"...",children:"..."})}),jsx(rP,{open:n,anchorEl:o,sx:{minWidth:o?.clientWidth},onClose:()=>{r(null);},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{maxWidth:"unset",minWidth:o?.clientWidth,marginTop:"22px"}}},children:jsx(Zo,{sx:{display:"flex",flexDirection:"column",gap:"4px",padding:"4px"},children:p?.map((l,s)=>jsx(a$1P,{copyText:i(l),chipIndex:s+1,selectionProps:t,children:i(l)},l.id))})})]})}function XC({isCopyActive:e,onClick:t}){let{t:o}=useTranslation();return jsx(AnimatePresence,{children:jsx(a$6,{title:o("copy"),children:e?jsx(motion.img,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.4},src:pa$1,alt:"icon"},"id-icon"):jsx(motion.img,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.4},src:na,style:{cursor:"pointer"},alt:"icon",onClick:t},"id-icon")})})}XC.displayName="CopyImage";var QC=memo(XC);var sP=QC;function mP({flags:e}){let t=e?.every(p=>p.status==="CLEARED"),o=e?.filter(p=>p.status==="OPEN")||[],r=o?.filter(p=>p.ishold)||[],n=o?.[0],i=r?.[0];return (()=>{if(t)return jsx("div",{children:"Previously Flagged & Closed"});if(o.length===1&&o?.[0]?.ishold)return jsx("div",{children:`Flagged & Balance Held ${a$2G(i?.created)}`});if(o.length>1&&r?.length>0){let p=n?.id===i?.id,l=vC(n?.created).isSame(i?.created);return p?jsx("div",{children:`Flagged & Balance Held ${b$S(i?.created)}`}):jsxs("div",{children:[jsx("div",{children:`Flagged ${b$S(n?.created)}`}),jsxs("div",{children:["& Balance Held ",b$S(i?.created,l)]})]})}return !t&&o.length>1?jsxs("div",{children:[`Flagged ${b$S(n?.created)}`," - ",jsx(h$8,{children:"View"})]}):jsx("div",{children:`Flagged ${b$S(n?.created)}`})})()}var jC=mP;var cP=jC;var ox=c$2(a$d(),1);function fP({column:e,index:t,openSubMenuName:o,subMenuAnchorEl:r,toggleColumnSelection:n,toggleSubmenuItem:i,handleSubMenuOpen:a,handleSubMenuClose:p}){let{t:l}=useTranslation(),s=useTheme(),{isIndeterminate:c,hasSubmenuItems:m,isSubmenuOpen:u,isFirstItem:d,handleColumnClick:f,handleMouseEnter:g,handleMouseLeave:x}=a$1h({column:e,index:t,openSubMenuName:o,toggleColumnSelection:n,handleSubMenuOpen:a,handleSubMenuClose:p}),S=C=>C?l(C)??(0, ox.default)(C):"";return jsxs(Zo,{sx:{borderTop:`1px solid ${s.palette.divider}`,...d&&{borderTop:"none",height:33}},children:[jsxs(a$h,{isIndeterminate:c,isSelected:e.selected,onMouseEnter:g,onMouseLeave:x,onClick:f,children:[jsx(Zo,{sx:{flex:1},children:S(e.label)}),m&&jsx("img",{src:qb,className:"arrow-icon",alt:"arrow"})]}),m&&jsx(a$k,{open:u,anchorEl:r,placement:"right-start",onMouseEnter:()=>{},onMouseLeave:p,children:e.menuItems?.map(C=>jsx(a$h,{isSelected:e.selected&&C.selected,onClick:()=>i(e.name,C.name),children:S(C.label)},C.name))})]},e.name)}var rx=fP;function hP({open:e,onSelect:t,setTableViews:o,tableViews:r,anchorEl:n,onClose:i}){let{t:a}=useTranslation(),p=useMemo(()=>r||[],[r]),l=useMemo(()=>p.map(S=>S.name),[p]),{reorderColumns:s,toggleColumnSelection:c,toggleSubmenuItem:m}=a$B({columns:p,setTableViews:o}),{subMenuAnchorEl:u,openSubMenuName:d,handleSubMenuClose:f,handleSubMenuOpen:g,handleMenuScroll:x}=a$C(e,i);return jsxs(d$3,{"data-testid":"TableView_CustomViews",children:[jsxs(a$D,{"data-testid":"TableView_CustomViews_Button",onClick:t,children:[jsx("div",{children:a("columns")}),jsx("img",{src:xb,alt:"arrow",style:{...!!e&&{transform:"rotate(180deg)"}}})]}),jsxs(a$k,{open:e,anchorEl:n,"data-testid":"TableView_CustomViews_Popper",sx:{padding:0,marginTop:"8px",borderRadius:1},children:[e&&jsx(a$E,{onClick:i}),jsx(c$5,{component:"article","data-testid":"TableView_CustomViews_List",children:jsx(Reorder.Group,{as:"div",axis:"y",onReorder:s,values:l,onScroll:x,children:p.map((S,C)=>jsx(rx,{column:S,index:C,openSubMenuName:d,subMenuAnchorEl:u,toggleColumnSelection:c,toggleSubmenuItem:m,handleSubMenuOpen:g,handleSubMenuClose:f},S.name))})})]})]})}var Ts=memo(hP);function bP({onViewChange:e,setIsViewVisible:t,setTableViews:o,tableViews:r,resetTableViews:n}){let[i,a]=useState(null),[p,l]=useState(null),[s,c]=useState(null),[m,u]=useState({id:"default",label:"Default"}),{t:d}=useTranslation(),f=C=>{e?.(),a(C.currentTarget),t(true);},g=()=>{l(null),c(null);},x=()=>{a(null),t(false),u({label:"Default",id:"default"});},S=C=>{u(C),g();};return i?jsx(TP,{onClickAway:g,children:jsxs(b$7,{"data-testid":"TableView",children:[m.id==="custom"&&jsx(Ts,{tableViews:r,setTableViews:o,anchorEl:s,open:!!s,onSelect:C=>{c(s?null:C.currentTarget),l(null);},onClose:()=>{c(null);}}),jsx(a$F,{open:!!p,anchorEl:p,setSelectedViewInfo:C=>{S(C);},selectedViewInfo:m,onSelect:C=>{l(p?null:C.currentTarget),c(null);},setViews:C=>{n?.({id:C[0],label:C[0]});}}),jsx(a$D,{sx:{width:30,justifyContent:"center"},onClick:x,children:jsx("img",{src:zb$1,alt:"close"})})]})}):jsx(a$G,{title:d("tableView"),"data-testid":"TableView_no_anchorViewEl",onClick:f,children:jsx(a$z,{src:A,alt:"view",sx:{width:14,height:14}})})}var Fi=memo(bP);var ix=({columns:e,allCurrentSelected:t,someCurrentSelected:o,onSelectAll:r$1,onReset:n,onColumnToggle:i,onNestedItemToggle:a,isModified:p=false})=>{let{hoveredNestedColumn:l,nestedSubmenuAnchorEl:s,openNestedSubmenu:c,closeNestedSubmenu:m,cancelNestedClose:u}=a$1i();return jsxs(Fragment,{children:[jsxs(z,{children:[jsx(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:jsx(a$n,{checked:t,indeterminate:o,onChange:d=>{d.stopPropagation(),r$1();},onClick:d=>{d.stopPropagation();},sx:A$1})}),jsx(Typography,{component:"button",disabled:!p,onClick:d=>{d.stopPropagation(),p&&n();},sx:{fontSize:11,fontWeight:500,color:"#1F88D0",background:"none",border:"none",cursor:p?"pointer":"default",padding:0,opacity:p?1:.5,pointerEvents:p?"auto":"none","&:hover":p?{textDecoration:"underline"}:void 0},children:"Reset"})]}),jsx(Divider,{}),jsx(C,{onScroll:m,children:jsx(Box,{component:"ul",sx:{listStyle:"none",padding:0,margin:0},children:e.map((d,f)=>{let g=d.menuItems&&d.menuItems.length>0,{checked:x,indeterminate:S}=a$1j(d),C=a$1k(d.name);return jsxs(Box,{component:"li",sx:{listStyle:"none",margin:0,padding:0,position:"relative",zIndex:1,backgroundColor:"#fff",width:"100%"},children:[jsxs(Box,{sx:{position:"relative"},onMouseEnter:h=>g&&c(d.name,h.currentTarget),onMouseLeave:()=>g&&m(),children:[jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[jsx(a$h,{isSelected:g?x:d.selected,isIndeterminate:g?S:false,isDisabled:C,onClick:()=>{C||i(d.name);},sx:{flex:1,display:"flex",alignItems:"center"},children:jsx("span",{children:d.label||d.name})}),g&&jsx(Box,{sx:{display:"flex",alignItems:"center",pr:1,pointerEvents:"none"},children:jsx("img",{src:rb,alt:"arrow",style:{height:12}})})]}),g&&jsx(Popper,{open:l===d.name,anchorEl:s,placement:"right-start",sx:{zIndex:1e4},children:jsxs(Box,{onMouseEnter:u,onMouseLeave:m,sx:{display:"flex",pl:.5},children:[jsx(Box,{sx:{width:8,height:"100%",position:"absolute",left:-8,top:0,bottom:0}}),jsx(r,{children:d.menuItems?.map((h,y)=>jsxs(vs.Fragment,{children:[jsx(a$h,{isSelected:h.selected,isDisabled:C,onClick:()=>{C||a(d.name,h.name);},children:h.label||h.name}),y<(d.menuItems?.length??0)-1&&jsx(Divider,{})]},h.name))})]})})]}),f<e.length-1&&jsx(Divider,{})]},d.name)})})})]})};function kP({open:e,selectedViewInfo:t,setSelectedViewInfo:o,anchorEl:r,onClose:n,onCreateCustomView:i,customViews:a=[],onEditCustomView:p,onSaveDefaultColumns:l,defaultColumns:s=[],updateSelectedView:c,baseDefaultColumns:m=[],defaultTemplate:u,isLoading:d}){let{t:f}=useTranslation(),{hoveredColumn:g$2,anchorEl:x,openSubmenu:S,closeSubmenu:C,cancelClose:h,forceClose:y}=a$H(),[T,v]=vs.useState(null),[b,E$1]=vs.useState(null),{originalColumns:P,saveOriginalState:k$1,clearOriginalState:M}=a$I(s),N=useMemo(()=>{let D=[];return u&&D.push(u),[...D,...a]},[u,a]),R=useMemo(()=>{if(!g$2)return [];if(b?.length)return b;let D=N.find(ee=>ee.id===g$2);return D?e$1(D,s):[]},[g$2,s,N,b]),Y=useMemo(()=>k(R),[R]),X=useMemo(()=>l$1(R,Y),[R,Y]),xe=useMemo(()=>{if(!P.length)return false;let D=b?.length?b:s;return !n$1(D,P)},[s,P,b]),z=useMemo(()=>{if(!m.length)return false;let D=b?.length?b:s;return !n$1(D,m)},[m,s,b]),Q=u?.modified||z,j=a.length>=3,$e=d||j;function ir(D){y(),E$1(null),M();let ee;if(D.default){let pn=s.length?s:u?.submenu??[];ee={...D,submenu:h$3(pn),columns:pn.map(PT=>PT.name)};}else D.isCustom&&(ee=D);o(D,ee);}function ar(D,ee){k$1(),E$1(h$3(s)),S(D,ee);}function po(){E$1(null),M(),C(),y();}function lr(){let D=t.id===u?.id||t.id==="default"||u?.default===true,ee=b?.length?b:s;D&&u&&ee.length&&(xe&&l?.(ee,z),c?.({...u,id:String(u.id),submenu:h$3(ee),columns:ee.map(pn=>pn.name)})),E$1(null),M(),y(),n?.();}function F$1(D){b&&E$1(i$1(b,D));}function Qe(D,ee){b&&E$1(c$f(b,D,ee));}function La(){b&&E$1(j$2(b,!Y));}function sn(){m.length&&E$1(h$3(m));}function wT(D){D.stopPropagation();let ee=b?.length?b:s;i?.(true,ee),E$1(null),M(),y();}return jsxs(d$3,{"data-testid":"ViewsDropdown",children:[jsx(BP,{open:e,anchorEl:r,placement:"bottom-start",children:jsxs(c$5,{onScroll:y,children:[jsx(Is,{sx:{paddingX:1.25,py:1.1,fontWeight:500,fontSize:11,color:"#8D8D94"},children:"View"}),jsx(yT,{}),N.map(D=>jsxs(e$2,{onMouseEnter:ee=>{D.isCustom?v(D.id):f$2(D,s)&&ar(D.id,ee.currentTarget);},onMouseLeave:()=>{D.isCustom?v(null):f$2(D,s)&&C();},onClick:()=>ir(D),sx:{position:"relative",cursor:"pointer",pr:1.5},children:[D.id===t.id?jsx("img",{style:{width:15,height:15},src:Ai,alt:"check"}):jsx(f$1,{}),jsxs("span",{style:{flex:1,fontSize:11},children:[D.label,D.default&&D.id===t.id&&Q&&jsx("span",{style:I,children:"(Modified)"})]}),D.isCustom&&T===D.id&&jsx("img",{src:gg,alt:"edit",style:{width:12,height:12,cursor:"pointer"},onClick:ee=>{ee.stopPropagation(),n?.(),p?.(D);}}),!D.isCustom&&f$2(D,s)&&jsx("img",{src:rb,alt:"arrow",style:{height:12}})]},D.id)),jsx(a$6,{title:"Limit reached. Delete a view to create a new one.",placement:"left",disableHoverListener:!j,children:jsxs(e$2,{sx:{border:"none",opacity:$e?.5:1,cursor:$e?"not-allowed":"pointer"},onClick:D=>{D.stopPropagation(),!$e&&(i?.(false),y());},children:[jsx(f$1,{}),jsxs(Zo,{sx:{display:"flex",alignItems:"center",gap:.5},children:[jsx("img",{src:zk$1,alt:"",style:{opacity:$e?.5:1,width:10,height:10}}),jsx("span",{style:{color:$e?"#999":"#1F88D0",fontSize:11,fontWeight:500},children:f("New Custom View")})]}),jsx(g,{})]})})]})}),g$2&&x&&R.length>0&&jsx(a$k,{open:!!x,anchorEl:x,placement:"auto-end",onMouseEnter:h,onMouseLeave:po,children:jsxs(B,{children:[jsx(ix,{columns:g$1(R),allCurrentSelected:Y,someCurrentSelected:X,onSelectAll:La,onReset:sn,onColumnToggle:F$1,onNestedItemToggle:Qe,anchorEl:x,isModified:Q}),jsx(D,{children:jsx(a$6,{title:"Limit reached. Delete a view to create a new one.",placement:"left",disableHoverListener:!j,children:jsxs(E,{disabled:j,onClick:j?void 0:wT,children:[jsx(Is,{sx:{fontSize:11,color:"text.secondary"},children:"Save as a custom view"}),jsxs(Zo,{sx:{display:"flex",alignItems:"center",gap:.5},children:[jsx("img",{src:zk$1,alt:"",style:{width:10,height:10,opacity:j?.5:1}}),jsx(Is,{sx:{fontSize:10,fontWeight:600,color:j?"#999":"#1F88D0"},children:"Custom View"})]})]})})}),jsxs(F,{children:[jsx(lx,{variant:"text",onClick:po,sx:G,children:"Cancel"}),jsx(lx,{variant:"contained",onClick:lr,sx:H,children:"Okay"})]})]})})]})}var ws=vs.memo(kP);var mx=({selectedColumns:e,columnNames:t,allSelected:o,someSelected:r$1,hoveredColumn:n,anchorEl:i,onReorder:a,onColumnToggle:p,onSubItemToggle:l,onSelectAll:s,onResetToDefault:c,onSubmenuEnter:m,onSubmenuLeave:u,onCancelClose:d})=>{let f=useRef(null),{onDragStart:g,onDragEnd:x}=a$1y(f),S=useCallback(C=>{if(a$1z(C.target)){C.preventDefault();return}g();},[g]);return jsxs(k$2,{children:[jsxs(l$2,{children:[jsx(n$3,{children:jsx("img",{src:A,alt:"drag",style:{width:16,height:16,opacity:.5}})}),jsx(o$1,{onClick:C=>{C.stopPropagation(),s();},children:jsx(a$n,{checked:o,indeterminate:r$1,size:"small",sx:w,onChange:C=>{C.stopPropagation(),s();},onClick:C=>{C.stopPropagation();}})}),jsx(Typography,{onClick:C=>{C.stopPropagation(),s();},sx:{flex:1,fontSize:13,fontWeight:500,color:"text.primary",ml:.75,cursor:"pointer"},children:"Select All"}),jsx(Link,{component:"button",type:"button",onClick:C=>{C.stopPropagation(),c();},underline:"none",sx:{fontSize:13,fontWeight:500,cursor:"pointer",color:"common.blue"},children:"Reset to default"})]}),jsx(Box,{sx:{flex:1,minHeight:0,overflowX:"hidden",overflowY:"auto",position:"relative"},children:jsx(Reorder.Group,{ref:f,axis:"y",onReorder:a,values:t,style:{listStyle:"none",padding:0,margin:0},children:e.map(C=>{let h=a$1k(C.name),y=C.menuItems&&C.menuItems.length>0,{checked:T,indeterminate:v}=a$1j(C);return jsxs(Reorder.Item,{value:C.name,drag:h?false:"y",dragListener:!h,dragConstraints:f,dragElastic:{top:0,bottom:0,left:0,right:0},transition:{duration:0},whileDrag:{zIndex:9999,boxShadow:"0 4px 12px rgba(0,0,0,0.15)",scale:1},style:{listStyle:"none",margin:0,padding:0,position:"relative",zIndex:1,backgroundColor:"#fff",width:"100%",willChange:"transform"},onDragStart:S,onDragEnd:x,children:[jsxs(m$2,{isHovered:n===C.name,isDate:h,onMouseEnter:b=>y&&m(C.name,b.currentTarget),onMouseLeave:()=>y&&u(),onClick:b=>{(b.target.closest('[role="checkbox"]')||b.target.closest('input[type="checkbox"]'))&&b.stopPropagation();},sx:{width:"100%",position:"relative"},children:[jsx(n$3,{children:jsx("img",{src:Ab,alt:"drag",draggable:false,style:{width:16,height:16,cursor:h?"default":"grab",pointerEvents:"none"}})}),jsx(o$1,{onMouseDown:b=>{b.stopPropagation();},onPointerDown:b=>{b.stopPropagation();},children:jsx(a$n,{checked:T,indeterminate:v,onChange:b=>{b.stopPropagation(),p(C.name);},onClick:b=>{b.stopPropagation();},disabled:h,size:"small",sx:w})}),jsx(Typography,{sx:{flex:1,fontSize:13,fontWeight:400,color:"text.primary",ml:1},children:C.label||C.name}),y&&jsx(Box,{sx:{display:"flex",alignItems:"center",ml:1,flexShrink:0},children:jsx("img",{src:qb,alt:"arrow",style:{width:12,height:12}})})]}),y&&jsx(Popper,{open:n===C.name,anchorEl:i,placement:"right-start",sx:{zIndex:1e4},modifiers:[{name:"offset",options:{offset:[0,0]}}],children:jsxs(Box,{onMouseEnter:d,onMouseLeave:u,sx:{display:"flex",pl:.5},children:[jsx(Box,{sx:{width:8,height:"100%",position:"absolute",left:-8,top:0,bottom:0}}),jsx(r,{children:C.menuItems?.map((b,E)=>jsxs(vs.Fragment,{children:[jsx(a$h,{isSelected:b.selected,isDisabled:h,onClick:()=>{h||l(C.name,b.name);},children:b.label||b.name}),E<(C.menuItems?.length??0)-1&&jsx(Divider,{})]},b.name))})]})})]},C.name)})})})]})};function _P({open:e,onClose:t$1,onCreate:o,availableColumns:r=[],defaultColumns:n=[],editingView:i,onDelete:a,tableViews:p$1=[],mode:l="sheet"}){let{t:s}=useTranslation(),c=a$x(),[m,u$1]=useState(false),[d,f]=useState(false);vs.useEffect(()=>{e||(u$1(false),f(false));},[e]);let{templateName:g,setTemplateName:x$1,selectedColumns:S,allSelected:C,someSelected:h,isNameValid:y,hoveredColumn:T,anchorEl:v,openSubmenu:b,closeSubmenu:E,cancelClose:P,handleReorder:k,handleColumnToggle:M,handleSubItemToggle:N,handleSelectAll:R,handleResetToDefault:Y}=a$1l({open:e,availableColumns:r,defaultColumns:n,editingView:i,tableViews:p$1}),X=async()=>{if(!(!y||d||m)){f(true);try{let z=S.filter(j=>j.selected),Q=e$8(S,l);await o?.({name:g,selectedColumns:z,layout:Q}),t$1();}catch(z){let Q=z instanceof Error?z.message:"Failed to save view. Please try again.";c.error(Q);}finally{f(false);}}},xe=async()=>{if(!i||m||d)return;let z=i.id;u$1(true);try{await a?.(z),t$1();}catch(Q){let j=Q instanceof Error?Q.message:"Failed to delete view. Please try again.";c.error(j);}finally{u$1(false);}};return e?jsx(zP,{handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:jsxs(Dialog,{disableEnforceFocus:true,open:e,onClose:t$1,hideBackdrop:true,PaperProps:{style:x(450,600)},sx:y$1,TransitionProps:{timeout:0},slotProps:{backdrop:{sx:{transition:"none"}}},children:[jsx(g$2,{id:"draggable-dialog-title",style:{cursor:"move"},children:jsx(a$1m,{isHovered:true,title:i?"Edit Custom View":s("createCustomView")||"Create Custom View",leftActions:jsx(a$1n,{onClick:t$1})})}),jsxs(h$4,{children:[jsxs(i$2,{onScroll:()=>{E();},children:[jsxs(j$3,{children:[jsxs(Box,{children:[jsx(Typography,{sx:{fontSize:24,fontWeight:700,color:"#9F9F9F",lineHeight:"0.7"},children:"Custom"}),jsx(Typography,{sx:{fontSize:24,fontWeight:700,color:"#20232B",lineHeight:1.2},children:"View"})]}),i&&jsx(t,{onClick:xe,disabled:m||d,children:m?jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsx(CircularProgress,{size:14,color:"inherit"}),jsx("span",{children:"Deleting..."})]}):"Delete View"})]}),jsx(Box,{sx:{mb:3},children:jsx(a$1o,{name:"templateName",label:"Name",value:g,onChange:z=>x$1(z),hasError:false,inputProps:{maxLength:20},required:true})}),jsx(mx,{selectedColumns:g$1(S),columnNames:g$1(S).map(z=>z.name),allSelected:C,someSelected:h,hoveredColumn:T,anchorEl:v,onReorder:k,onColumnToggle:M,onSubItemToggle:N,onSelectAll:R,onResetToDefault:Y,onSubmenuEnter:b,onSubmenuLeave:E,onCancelClose:P})]}),jsx(p,{}),jsx(q,{children:jsx(u,{variant:"contained",onClick:X,disabled:!y||d||m,title:y?void 0:`Name is required. Current: "${g}"`,children:d?jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsx(CircularProgress,{size:14,color:"inherit"}),jsx("span",{children:i?"Saving...":"Creating..."})]}):i?"Update View":"Create View"})})]})]})}):null}var Ps=_P;function YP({onViewChange:e,templates:t,onCreateCustomView:o,onEditCustomView:r,onDeleteCustomView:n,onUpdateDefaultView:i,tableMode:a="default",lang:p="en",isLoading:l,mainDefaultTemplate:s}){let{t:c}=useTranslation(),{defaultColumns:m,defaultTemplate:u,customViews:d,allTemplates:f,baseDefaultColumns:g}=a$J({tableMode:a,templates:t,lang:p,mainDefaultTemplate:s}),{anchorEl:x,isCreateDialogOpen:S,editingView:C,selectedViewInfo:h,shouldUseCurrentState:y,currentViewColumns:T,initialColumnsForCreate:v,handleViewButtonClick:b,handleCloseViewDropdown:E,handleSelectedViewInfo:P,handleOpenCreateDialog:k,handleOpenEditDialog:M,handleCloseCreateDialog:N,handleSaveView:R,handleDeleteView:Y,updateSelectedView:X}=a$K({mode:a,onViewChange:e,onCreateCustomView:o,onEditCustomView:r,onDeleteCustomView:n,defaultColumns:m,defaultTemplate:u,allTemplates:f}),xe=useCallback((z,Q)=>{u?.id&&i?.(z,Q);},[u,i]);return jsxs(Fragment,{children:[jsx(TP,{onClickAway:E,children:jsxs(b$7,{sx:{width:"32px"},"data-testid":"ViewsMenu",children:[jsx(a$G,{title:c("tableView"),"data-testid":"ViewsMenu_button",onClick:b,children:jsx(a$z,{src:A,alt:"view",sx:{width:14,height:14}})}),jsx(ws,{open:!!x,anchorEl:x,onClose:E,setSelectedViewInfo:P,selectedViewInfo:h,onCreateCustomView:k,customViews:d,onEditCustomView:M,onSaveDefaultColumns:xe,defaultColumns:m,updateSelectedView:X,baseDefaultColumns:g,mode:a,defaultTemplate:u,isLoading:l})]})}),jsx(Ps,{open:S,onClose:N,availableColumns:m,defaultColumns:m,onCreate:R,editingView:C,onDelete:Y,tableViews:y?v??T:void 0,mode:a})]})}var Ms=memo(YP);function XP({tableMode:e,onToggle:t}){let o=e$3(e),r=f$3(e);return jsx(a$G,{hasImageFilter:false,onClick:t,isActive:!o,children:jsx(a$z,{src:r?qg$1:pg,alt:`${e}-mode`,sx:{width:14,height:14}})})}var Cx=memo(XP);function Vi({date:e,calendarMode:t,onDateChange:o,onCalendarModeSwitch:r,tableReportsComponent:n,tableFilterComponent:i,isReportsButtonVisible:a,onViewChange:p,onSearchChange:l,onToggleViewButtonClick:s,rightActions:c,leftActions:m,setTableViews:u,tableViews:d,resetTableViews:f,onToggleTextButtonClick:g,calendarGroupBy:x,onCalendarGroupChange:S,maxDateRange:C=31,searchPlaceholder:h,isAcceptance:y,tableMode:T="default",timezone:v,browserTimezone:b,defaultCountryTimezone:E,onChangeTimezone:P,segmentCountries:k,customViews:M,lang:N}){let[R,Y]=useState(false),X=useMemo(()=>k.map(({code:z})=>z),[k]),xe=useMemo(()=>jsx(Cx,{tableMode:T,onToggle:g}),[T,g]);return jsxs(a$1p,{children:[m&&!R&&m,!R&&jsxs(Fragment,{children:[l&&jsx(a$1q,{onSearchChange:l,placeholder:h}),i,g&&!y&&xe,e&&jsx(Hr,{defaultDate:e,onDateChange:z=>{let[Q,j]=z;Q&&j&&o?.([Q,j]);},mode:t,onCalendarModeSwitch:r,maxDateRange:C,groupBy:x,onCalendarGroupChange:S,browserTimezone:b,defaultCountryTimezone:E,timezone:v,onChangeTimezone:P,timezoneCountriesCodes:X}),a&&n,g&&y&&xe]}),s&&jsx(a$G,{children:jsx(a$z,{src:A,alt:"view",sx:{width:14,height:14}})}),p&&(M?jsx(Ms,{onViewChange:p,tableMode:T,lang:N,...M}):jsx(Fi,{onViewChange:p,setIsViewVisible:Y,tableViews:d,setTableViews:u,resetTableViews:f})),c&&!R&&c]})}function tM({date:e,status:t,availableStatuses:o,showMaximizedView:r,title:n,calendarMode:i,tableReportsComponent:a,tableFilterComponent:p,onStatusChange:l,onViewChange:s,onDateChange:c,onCalendarModeSwitch:m,filteredIds:u,onCancelFilteredIdsClick:d,isFilteredIdsShown:f,cardNumber:g,leftActions:x,rightActions:S,isReportsButtonVisible:C,onSearchChange:h,onToggleViewButtonClick:y,leftComponent:T,tableViews:v,setTableViews:b,resetTableViews:E,onToggleTextButtonClick:P,calendarGroupBy:k,onCalendarGroupChange:M,children:N,maxDateRange:R,isAcceptance:Y,startComponent:X,searchPlaceholder:xe,tableMode:z,timezone:Q,browserTimezone:j,defaultCountryTimezone:$e,onChangeTimezone:ir,segmentCountries:ar=[],customViews:po,lang:lr,...F}){let Qe=jsx(Vi,{date:e,calendarMode:i,onDateChange:c,onCalendarModeSwitch:m,tableReportsComponent:a,tableFilterComponent:p,onViewChange:s,leftActions:x,rightActions:S,onSearchChange:h,onToggleViewButtonClick:y,isReportsButtonVisible:C,tableViews:v,setTableViews:b,resetTableViews:E,onToggleTextButtonClick:P,tableMode:z,onCalendarGroupChange:M,calendarGroupBy:k,maxDateRange:R,isAcceptance:Y,searchPlaceholder:xe,timezone:Q,browserTimezone:j,defaultCountryTimezone:$e,onChangeTimezone:ir,segmentCountries:ar,customViews:po,lang:lr});return jsxs(a$L,{children:[r&&jsxs(a$M,{children:[jsx("span",{children:!!n&&jsx(c$6,{children:n})}),Qe]},"TitleContainer"),jsxs(d$4,{as:"section",children:[jsxs(e$4,{as:"aside",children:[X,jsx(a$N,{status:t,availableStatuses:o,onStatusChange:l,isFilteredIdsShown:f,...F}),T,f&&jsx(a$O,{cardNumber:g,Ids:u,isShown:f,onCancelClick:d},"FilteredIds")]}),!r&&Qe]},"FiltersWrapper"),N]})}var yx=memo(tM);var oM=yx;var Tx={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function lM({sx:e,groupBy:t,isCalenderOpen:o,onUpdate:r}){let[n,i]=useState(null),a=!!n&&o,{t:p}=useTranslation(),l=()=>{i(null);},s=m=>{i(m.currentTarget);},c=m=>{r?.(m),l();};return jsx(TP,{onClickAway:l,children:jsxs(Zo,{sx:e,children:[jsx(a$P,{children:p("groupedBy")}),jsxs(b$8,{onClick:s,open:a,children:[jsx("span",{children:Tx[t]}),jsx(Zo,{component:"img",src:Qc,alt:"arrow",sx:{...a&&{transform:"rotate(180deg)"}}})]}),jsx(a$k,{open:a,anchorEl:n,children:jsx(c$7,{sx:{width:n?.clientWidth},children:Object.entries(Tx).map(([m,u])=>jsx(d$5,{onClick:()=>{c(m);},className:t===m?"active":"",children:u},`${m}-groupedBy`))})})]})})}var Ix=memo(lM);var vx=Ix;function Es({isHijri:e,onCalendarModeSwitch:t}){let{t:o}=useTranslation(),r=()=>{t?.(e?"gregorian":"hijri");};return jsx(Zo,{children:jsxs(a$1D,{children:[jsxs(Zo,{children:[jsx("img",{src:Zb,alt:"hijri"}),jsx("span",{children:o("hijri")})]}),jsx(a$1E,{checked:e,onChange:r})]})})}var Mx=Es;function As({selectedTimezone:e,onChange:t,timezoneCountriesCodes:o,defaultCountryTimezone:r}){let[n,i]=useState(null),a=u=>{n||i(u.currentTarget);},p=()=>{n&&i(null);},l=(u,d)=>{u.stopPropagation(),t(d);},s=useMemo(()=>o?.map(u=>a$1r(u)),[o]),c=useMemo(()=>s?.some(u=>e?.timezone===u?.timezone),[s,e]),m=useMemo(()=>e&&c?e:r,[e,r,c]);return jsxs(d$7,{onMouseEnter:a,onMouseLeave:p,onClick:()=>{e&&t(m);},children:[c?jsx("img",{src:Ai,alt:"icon"}):jsx(e$7,{}),jsx("img",{src:yi,alt:"entity-timezone"}),jsx(a$u,{countryCode:m?.countryCode}),jsx(f$6,{className:c?"selected":"",children:c?e?.label:r?.label}),jsx(BP,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(b$9,{sx:{maxHeight:300},children:s?.map((u,d)=>{let f=u?.timezone===e?.timezone;return jsxs(d$7,{onClick:g=>{l(g,u);},sx:{gap:"4px"},children:[f?jsx("img",{src:Ai,alt:"icon"}):jsx(e$7,{}),jsx(a$u,{countryCode:u?.countryCode}),jsx(f$6,{className:f?"selected":"",children:u?.label})]},`timezone-item-${d}`)})})})]})}function ks({onChange:e,selectedTimezone:t,browserTimezone:o}){let r=useMemo(()=>c$g.find(({timezone:a})=>a===o),[o]),n=()=>{r&&e(r);},i=r?.timezone===t?.timezone;return jsxs(d$7,{onClick:n,children:[i?jsx("img",{src:Ai,alt:"icon"}):jsx(e$7,{}),jsx("img",{src:xi,alt:"user-timezone"}),jsx(a$u,{countryCode:r?.countryCode}),jsx(f$6,{className:i?"selected":"",children:r?.label})]})}function hM({onChange:e,selectedTimezone:t,browserTimezone:o,defaultCountryTimezone:r,timezoneCountriesCodes:n}){let[i,a]=useState(null),p=!!i,l=()=>{a(null);},s=u=>{e(u),l();},c=u=>{a(u.currentTarget);},m=useMemo(()=>o===t?.timezone?xi:t?.timezone===r.timezone?yi:zi,[o,r.timezone,t?.timezone]);return jsx(TP,{onClickAway:l,children:jsxs(a$Q,{"data-testid":"CustomTimezone",children:[jsxs(c$8,{open:p,onClick:c,children:[jsx("img",{src:m,alt:"timezone-icon"}),jsx(a$u,{countryCode:t?.countryCode}),jsx("span",{children:t?.label})]}),jsx(BP,{open:p,anchorEl:i,placement:"top-start",sx:{zIndex:1400},children:jsxs(b$9,{"data-testid":"CustomTimezone_dropdown",children:[jsx(As,{onChange:s,selectedTimezone:t,defaultCountryTimezone:r,timezoneCountriesCodes:n}),jsx(ks,{onChange:s,selectedTimezone:t,browserTimezone:o})]})})]})})}var Bx=memo(hM);var Ax=Bx;function TM({values:e,setValues:t}){let{t:o}=useTranslation(),r=new DateObject(e[0]),n=new DateObject(e[1]),[i,a]=useState(r.dayOfYear===n.dayOfYear&&r.hour===0&&r.minute===0&&n.hour===23&&n.minute===59),p=({period:c,hour:m})=>c==="PM"&&m!==12?m+12:c==="AM"&&m===12?0:m,l=({hour:c,minute:m,period:u})=>{t([r.setHour(p({hour:c,period:u})).setMinute(m).setSecond(0),n]);},s=({hour:c,minute:m,period:u})=>{t([r,n.setHour(p({hour:c,period:u})).setMinute(m).setSecond(59)]);};return jsx(b$q,{children:jsxs(d$c,{children:[jsxs(a$1F,{isAllDay:i,children:[jsx("span",{className:"label",children:o("allDay")}),jsx(a$1E,{checked:i,onChange:c=>{a(!i),c.target.checked?t([c$i(e[0]),d$b(e[1])]):t(e);}})]}),!i&&jsxs(c$j,{children:[jsx(a$1G,{defaultTime:{hour:a$1H(r.hour),minute:r.minute,period:r.hour>=12?"PM":"AM"},size:"small",onChange:l,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(a$1G,{defaultTime:{hour:a$1H(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:s,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Dx=TM;var Lx=Dx;function BM({defaultDate:e,onDateChange:t,mode:o="gregorian",onCalendarModeSwitch:r,numberOfMonths:n,noTimezone:i,noQuickFilter:a,maxDateRange:p,onCalendarGroupChange:l,groupBy:s,timezone:c,onChangeTimezone:m,browserTimezone:u,renderCalendarButton:d,mainSx:f,popperProps:g,rangeDatePickerProps:x,defaultCountryTimezone:S,timezoneCountriesCodes:C}){let[h,y]=useState(e$9(e)),[T,v]=useState(h),[b,E]=useState(c),[P,k]=useState(s||"day"),[M,N]=useState(null),R=!!M,[Y,X]=useState(false),{t:xe}=useTranslation(),z=useRef(null),Q=o==="hijri",j=()=>{N(null);},$e=F=>{N(F.currentTarget);};useEffect(()=>{if(!R){if(n===1)return;v(e$9(e));}},[R]),useEffect(()=>{if(e){let F=e$9(e);y(F),v(F),z.current&&z.current.set("date",F[0]);}},[e]),useEffect(()=>{E(c);},[c,R]);let ir=()=>{y(T),j();let F;T[0].dayOfYear===T[1].dayOfYear?F=[T[0],T[1]]:F=[c$i(T[0]),d$b(T[1])],t([F[0].toDate(),F[1].toDate()]),l?.(P||"day"),m?.(b);},ar=useCallback(()=>{let F=h[0].format("MMM D"),Qe=h[1]?h[1].format("MMM D"):h[0].format("MMM D");return F===Qe&&!i?F:`${F} - ${Qe}`},[h,i]),po=F=>{if(F.length<2||!p){v(F);return}let Qe=c$i(F[0]).toDate(),La=d$b(F[1]).toDate(),sn=vC(La).diff(Qe,"day");if(sn<=p){v(F);return}X(true),v([F[0],F[1].subtract(sn-p,"d")]),setTimeout(()=>{X(false);},3e3);},lr=F=>{v([c$i(F[0]),d$b(F[1])]),z.current&&z.current.set("date",F[0]);};return jsxs(i$4,{"data-testid":"RangeCalender",sx:f,children:[d?d(R,$e):jsx(e$a,{onClick:$e,open:R,children:(h[0]||h[1])&&ar()}),R&&jsx(a$E,{onClick:F=>{F.stopPropagation(),j();}}),jsx(BP,{open:R,anchorEl:M,placement:"bottom-end",...g,children:jsxs(a$1A,{children:[!a&&jsxs(g$4,{children:[jsx(a$1B,{onChange:lr,isHijri:Q}),jsxs(j$4,{children:[s&&jsx(vx,{groupBy:P,isCalenderOpen:R,onUpdate:F=>{k(F);}}),jsx(Mx,{isHijri:Q,onCalendarModeSwitch:r})]})]}),jsxs(Zo,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(a$1C,{values:T,onChange:po,isHijri:Q,ref:z,numberOfMonths:n,...x}),jsx(wM,{in:Y&&!!p,children:jsx(a$j,{error:xe("dateRangeError",{number:p}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(f$7,{sx:{borderBottomLeftRadius:"8px"},children:[i?jsx("div",{}):jsx(h$5,{children:jsx(Ax,{onChange:E,selectedTimezone:b,browserTimezone:u,defaultCountryTimezone:S,timezoneCountriesCodes:C},String(R))}),new DateObject(T[0]).dayOfYear===new DateObject(T[1]).dayOfYear&&jsx(Lx,{values:T,setValues:v}),jsxs(d$a,{children:[jsx(b$p,{variant:"contained",onClick:j,children:xe("cancel")}),jsx(c$h,{variant:"contained",onClick:ir,children:xe("okay")})]})]})]})]})})]})}var Fx=BM;var Hr=Fx;function LM({isDropdown:e=false,name:t,code:o,activeCode:r,navigateToMenuItem:n,onClickServiceItem:i}){let[a,p]=useState(null),{t:l}=useTranslation(),s=!!a,c=()=>{p(null);};return jsxs(Fragment,{children:[jsx(b$a,{isDropdown:e,className:r.toLowerCase()===o.toLowerCase()?"active":"",onClick:m=>{m.preventDefault(),m.stopPropagation(),n(o);},title:t,onContextMenu:m=>{m.preventDefault(),m.stopPropagation(),c(),p(m.currentTarget);},children:t}),jsx(a$b,{open:s,anchorEl:a,onClose:c,menuItems:[{label:l("openNewWindow"),name:"new",icon:jsx("img",{src:db$1,alt:"new-window-icon"}),onClick:m=>{m.stopPropagation(),i?.(o),c();}}]})]})}var Wx=memo(LM);var _M=e=>jsx(i$3,{src:e.className.includes("MuiSelect-iconOpen")?Rc:Qc,alt:"dropdown"});function $M({isMaximized:e,serviceCode:t,dimensions:o,services:r,onChangeServiceCode:n,onClickServiceItem:i}){let[a,p]=useState(0),[l,s]=useState(false),[c,m]=useState(""),u=useRef(null),[d,f]=vs.useState(false),{i18n:g}=useTranslation(),x=T=>{m(T.target.value);},S=()=>{f(T=>!T);},C=useMemo(()=>c$4(r.filter(T=>T.code.toLowerCase()===decodeURIComponent(t).toLowerCase())?.[0]?.name,g.language),[r,g.language,t]);useEffect(()=>{m(C);},[C]),useEffect(()=>{p(u.current?.offsetWidth+51+8+3);},[]),useEffect(()=>{s(Number(o?.width)<a+10);},[o?.width,a]);let h$1=T=>{n?.(T),f(false);},y=T=>jsx(g$3,{children:T});return jsxs(a$R,{maximized:e,children:[!!r?.length&&!l&&jsx(Box,{ref:u,display:"flex",gap:"8px",flexDirection:"row",sx:{userSelect:"none"},children:r.map((T,v)=>jsx(Wx,{activeCode:t,onClickServiceItem:i,navigateToMenuItem:h$1,name:c$4(T.name,g.language)||"",code:T.code},`service-item-${T.code}-${v}`))}),!!r?.length&&l&&jsx(e$5,{open:d,onClick:S,displayEmpty:true,inputProps:{"aria-label":"Without label"},MenuProps:{anchorOrigin:{vertical:40,horizontal:83},PaperProps:{style:{borderRadius:"0.25rem",width:"10.43rem",padding:0}},MenuListProps:{disablePadding:true}},value:c,IconComponent:_M,onChange:x,renderValue:y,sx:{"& .MuiOutlinedInput-root.MuiList-root-MuiMenu-list":{paddingTop:"0px !important",paddingBottom:"0px !important"}},children:r.map((T,v)=>c$4(T.name,g.language)?.toLowerCase()===c?.toLowerCase()?null:jsx(f$4,{value:c$4(T.name,g.language),onClick:b=>{b.preventDefault(),b.stopPropagation(),h$1(T.code);},children:jsx(h,{children:c$4(T.name,g.language)})},`option-${T.code}-${v}`))})]})}var Nx=memo($M);var Vs=Nx;var qM=["EN","AR"];function Hs({defaultLanguage:e="EN",onChange:t}){let[o,r]=useState(e),[n,i]=useState(null),a=!!n,p=c=>{i(c.currentTarget);},l=()=>{i(null);},s=c=>{r(c),t?.(c),l();};return jsx(TP,{onClickAway:l,children:jsxs(Zo,{children:[jsx(a$2H,{onClick:p,open:a,children:jsx(Zo,{component:"span",children:o})}),jsx(a$k,{open:a,anchorEl:n,sx:{marginTop:"8px",marginBottom:"8px",width:31.8},children:qM.map(c=>c!==o&&jsx(a$h,{onClick:()=>s(c),hideCheckbox:true,children:c},c))})]})})}var KM=Hs;var zx=styled$1(Zo)(({theme:e})=>({color:e.palette.text.primary,border:`1px solid ${e.palette.divider}`,padding:e.spacing(1),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"flex-end",width:93,height:32,textAlign:"right",input:{fontSize:"11px",border:"none",color:e.palette.text.primary,height:30,padding:0,textAlign:"right"},img:{cursor:"pointer"}})),_x=styled$1(a$f)(()=>({padding:0,border:"none",height:24,input:{textAlign:"right",width:"100%"}}));var QM=b$3();function jM({amount:e,setAmount:t,maxAmount:o,isError:r,selectedCurrency:n,...i}){let[a,p]=useState(false),[l,s]=useState(e||""),c=useMemo(()=>h$1(n?.decimals),[n]),m=f=>{let g=Number(f.target.value)||0;if(o&&g>o)return false;s(g),t(g);},u=()=>{p(false),t(Number(l));},d=f=>{QM&&isNaN(Number(f.key))&&f.key!=="Backspace"&&f.key!=="."&&f.preventDefault();};return jsx(zx,{sx:i.sx,children:a?jsx(_x,{placeholder:c,value:l,onChange:m,onBlur:u,onKeyDown:d,isError:r,inputProps:{step:"0.01"},hideArrows:true,autoFocus:true}):jsx(a$S,{currencyCode:n?.code?.english,amount:e,onClick:()=>{p(true);}})})}var Ux=memo(jM);var zs=Ux;function r0({appCode:e,services:t,isMaximized:o,dimensions:r,serviceCode:n,ui:{onStartDrag:i},onChangeServiceCode:a,onClickServiceItem:p,sx:l}){let[s,c]=useState(false),m=useCallback(d=>{i?.(d),c(true);},[i,c]),u=()=>{c(false);};return !e||!t?.length?null:jsx(e$6,{id:"app-header-wrapper",onPointerDown:m,onPointerUp:u,isDragging:s,sx:l,children:jsx(Vs,{onClickServiceItem:p,dimensions:{width:r.width},serviceCode:n,services:t,isMaximized:o,onChangeServiceCode:a})})}var qx=memo(r0);var n0=qx;var Yx=({width:e,height:t})=>jsx(a$1s,{variant:"circular",width:e,height:t});function s0({data:e,isError:t,isLoading:o,width:r=24,height:n=24,fallbackIconUrl:i=_c,...a}){let p=useTheme(),l=useMemo(()=>e?.type?.includes("application/pdf"),[e]),s=useMemo(()=>e?(window.URL?URL:webkitURL).createObjectURL(e):"",[e]),c=useMemo(()=>t||!e?i:l?_d:s,[e,t,l,s,i]);return o?jsx(Yx,{width:r,height:n}):jsx(a$z,{alt:"brand",src:c,sx:{borderRadius:"50%",backgroundColor:p.palette.common.white,width:r,height:n,objectFit:l?"none":"contain",...a.sx}})}var $s=memo(s0);var Zx=styled$1(a$f)(()=>({fontSize:"36px !important",textAlign:"center",border:"none",height:49.5,input:{textAlign:"center"}})),Xx=styled$1(Zo)(()=>({display:"flex",gap:"5px",alignItems:"center",height:49.5,maxWidth:"-webkit-fill-available",paddingInline:"24px"})),Qx=styled$1(Zo)(({theme:e})=>({fontSize:"10px",color:e.palette.error.dark,display:"flex",gap:"4px"}));var d0=b$3();function f0({totalGrossAmount:e,items:t,selectedCurrency:o,isAmountIsMissing:r,isDisabled:n,isLoading:i,onResetAllItems:a,onAddFirstItem:p}){let[l,s]=useState(false),[c,m]=useState(),{isConfirmed:u}=b$b(),{t:d}=useTranslation(),f=useMemo(()=>h$1(o?.decimals),[o?.decimals]);useEffect(()=>{e||m(void 0);},[e]);let g=()=>{u({message:d("removeTotalAmount"),confirmText:jsx(Zo,{sx:y=>({color:y.palette.error.light}),children:d("remove")}),cancelText:d("cancel")||"Cancel"}).then(y=>{y&&(a(),m(void 0));});},x=y=>{if(!y.target.value)return m(void 0),false;m(Number(d$8(Number(y.target.value),o?.decimals)));},S=y=>{s(false),p(Number(d$8(Number(y.target.value),o?.decimals)));},C=e===0||t.length===1&&e===t[0].total,h=o?.code?.english||"";return i?jsx(a$T,{}):jsxs(Zo,{sx:{...n&&{pointerEvents:"none",opacity:.7}},children:[l?jsx(Fragment,{children:C?jsx(Zx,{value:c,placeholder:f,hideArrows:true,inputProps:{step:"0.01"},onChange:x,onBlur:S,onKeyDown:y=>{d0&&isNaN(Number(y.key))&&y.key!=="Backspace"&&y.key!=="."&&y.preventDefault();},autoFocus:true}):jsx(a$S,{sx:{fontSize:"36px",textAlign:"center"},amount:e||0,currencyCode:h,onClick:()=>{s(true);}})}):jsxs(Xx,{children:[jsx(a$S,{sx:{fontSize:"36px",textAlign:"center"},currencyCode:h,amount:e||0,onClick:()=>{C&&s(true);}}),e>0&&jsx(Zo,{component:"img",src:Oh$1,alt:"r",onClick:g})]}),r&&jsxs(Qx,{children:[jsx(Zo,{component:"img",src:aj}),jsx(Zo,{children:d("enterAmount")})]})]})}var eh=memo(f0);function h0({vat:e,onChange:t,setIsDropdownOpen:o}){let{t:r}=useTranslation(),{percentage:n,isInclusive:i,value:a}=e,p=n===a$U.ZERO,l=n===a$U.FIVE,s=n===a$U.TEN,c=n===a$U.FIFTEEN,m=n!==a$U.FIVE&&n!==a$U.TEN&&n!==a$U.FIFTEEN&&n!==a$U.ZERO,u=[{label:r("noVat"),value:a$U.ZERO,selected:p},{label:"5%",value:a$U.FIVE,selected:l},{label:"10%",value:a$U.TEN,selected:s},{label:"15%",value:a$U.FIFTEEN,selected:c}],d=x=>{t({value:a,percentage:x,isInclusive:i});},f=x=>{Number(x.target.value)>100||d(Number(a$1t(x.target.value)));},g=x=>x?jsx("img",{src:yb,alt:"check"}):jsx("span",{});return jsxs(a$V,{children:[u.map((x,S)=>jsxs(b$c,{className:"option",onClick:()=>{d(x.value),o(false);},children:[g(x.selected),jsx("span",{children:x.label})]},`${x.value}-${S}`)),jsxs(b$c,{className:"option",children:[g(m),jsx(a$i,{placeholder:"%",value:m?String(n):"",onChange:f,sx:{justifyContent:"flex-end"}})]})]})}var _i=memo(h0);function b0({setVat:e,vat:t,setIsOpen:o,...r}){let[n,i]=useState(null),a=!!n,{t:p}=useTranslation(),l=s=>{if(s.stopPropagation(),a){i(null);return}i(s.currentTarget);};return jsx(a$W,{sx:r.sx,children:jsxs(b$d,{sx:s=>({...a&&{boxShadow:s.shadows[3]}}),className:"option",onClick:l,children:[jsx("span",{children:p("rate")}),jsx("img",{src:qb,alt:"a"}),jsx(a$k,{anchorEl:n,open:a,placement:"right-start",children:jsx(_i,{onChange:e,vat:t,setIsDropdownOpen:o})})]})})}var $i=memo(b0);function B0({totalGrossAmount:e,totalVat:t,selectedCurrency:o,onChangeTotalVat:r,isDisabled:n}){let[i,a]=useState(false),p=useRef(),{t:l}=useTranslation(),s=()=>{n||a(!i);},c=d=>{r({...d,value:a$1u(e,d)});},m=o?.code?.english||"",u=()=>t.percentage===0?l("noVat"):t.isInclusive?jsxs(Zo,{sx:{display:"flex",gap:"4px"},children:[jsxs("span",{children:[l("inclusive")," "]}),jsx(a$S,{amount:t.value,currencyCode:m})]}):jsx(a$S,{currencyCode:m,amount:t.value});return jsxs(a$X,{isDisabled:n,isOpen:i,onClick:s,ref:p,sx:{...n&&{pointerEvents:"none",opacity:.7}},children:[jsx("img",{src:Rh,alt:"p"}),jsx(b$e,{isDisabled:n,children:u()}),jsx(Zo,{component:"img",src:i?Xh:yh$1,alt:"a"}),i&&jsx(a$E,{onClick:s}),jsx(BP,{open:!!i,anchorEl:p.current,placement:"bottom-start",children:jsx($i,{setIsOpen:a,vat:t,setVat:c,sx:{position:"absolute",top:8,left:0,display:i?"block":"none"}})})]})}var oh=memo(B0);function k0({discount:e,setDiscount:t,setIsDropdownOpen:o,setIsOpen:r,...n}){let{percentage:i,value:a}=e,p=i===a$U.FIVE,l=i===a$U.TEN,s=i===a$U.FIFTEEN,c=i!==a$U.FIVE&&i!==a$U.TEN&&i!==a$U.FIFTEEN&&i!==a$U.ZERO&&a!==a$U.ZERO,m=[{label:"5%",value:a$U.FIVE,selected:p},{label:"10%",value:a$U.TEN,selected:l},{label:"15%",value:a$U.FIFTEEN,selected:s}],u=g=>{t({value:a,percentage:g,type:"percent"}),r(false);},d=g=>{if(Number(g.target.value||!Number(g.target.value))>100)return false;t({value:Number(g.target.value),percentage:Number(a$1t(g.target.value)),type:"percent"});},f=g=>g?jsx("img",{src:yb,alt:"c"}):jsx("span",{});return jsxs(a$Y,{sx:n.sx,children:[m.map(g=>jsxs(b$f,{className:"option",onClick:()=>{u(g.value),o&&o(false);},children:[f(g.selected),jsx("span",{children:g.label})]},g.value)),jsxs(b$f,{className:"option",children:[f(c),jsx(a$i,{placeholder:"%",sx:{input:{width:"100% !important"}},value:c?i:"",onChange:d})]})]})}var Gi=memo(k0);function R0({discount:e,maxDiscount:t,setDiscount:o,setIsOpen:r,selectedCurrency:n,...i}){let[a,p]=useState(false),[l,s]=useState(false),{t:c}=useTranslation(),m=e.type==="noDiscount",u=e.type==="percent",d=S=>{o(S);},f=S=>{S.stopPropagation(),r(false),d({type:"noDiscount",value:0,percentage:0,flat:0}),a&&p(false),l&&s(false);},g=S=>{S.stopPropagation(),p(true),l&&s(false);},x=S=>{S.stopPropagation(),s(true),a&&p(false);};return jsxs(a$Z,{sx:{...i.sx,...l&&{borderBottomRightRadius:0}},children:[jsxs(b$g,{className:"option",onClick:f,sx:{justifyContent:"flex-start"},children:[m?jsx("img",{src:yb,alt:"c"}):jsx(Zo,{width:"12px"}),jsx("span",{children:c("none")})]}),jsxs(b$g,{className:"option",onClick:g,sx:S=>({justifyContent:"space-between",position:"relative",...a&&{boxShadow:S.shadows[3]}}),children:[jsxs(Zo,{sx:{display:"flex",alignItems:"center",gap:"6px"},children:[u?jsx("img",{src:yb,alt:"check"}):jsx(Zo,{width:"12px"}),jsx("span",{children:"%"})]}),jsx("img",{src:qb,alt:"r"}),jsx(Gi,{sx:{position:"absolute",left:"100%",top:0,display:a?"block":"none",borderTopLeftRadius:0},setIsOpen:r,discount:e,setDiscount:o})]}),jsxs(b$g,{className:"option",onClick:x,sx:S=>({justifyContent:"space-between",position:"relative",...l&&{boxShadow:S.shadows[3]}}),children:[jsxs(Zo,{sx:{display:"flex",alignItems:"center",gap:"6px"},children:[e.type==="flat"?jsx("img",{src:yb,alt:"c"}):jsx(Zo,{width:"12px"}),jsx("span",{children:c("flat")})]}),jsx("img",{src:qb,alt:"r"}),jsx(c$9,{isOpen:l,children:jsx(zs,{selectedCurrency:n,sx:{height:24,width:"100%",input:{height:20,width:"100%",textAlign:"right",flexGrow:1}},amount:e.type==="flat"?Number(e.flat):"",setAmount:S=>{d({...e,type:"flat",flat:Number(S)});},maxAmount:t})})]})]})}var qi=memo(R0);function O0({selectedCurrency:e,totalGrossAmount:t,totalDiscount:o,onChangeTotalDiscount:r,isDisabled:n}){let[i,a]=useState(false),p=useRef(),{t:l}=useTranslation(),s=()=>{n||a(!i);},c=u=>{r({...u,value:a$1v(t,u)});},m=()=>o.value===0?l("noDiscount"):jsxs(Zo,{sx:{display:"flex",gap:"2px"},children:[jsx("span",{children:"-"}),jsx(a$S,{amount:o.value,currencyCode:e?.code?.english})]});return jsxs(a$_,{isOpen:i,isDisabled:n,onClick:s,ref:p,sx:{...n&&{pointerEvents:"none",opacity:.7}},children:[jsx("img",{src:Dh,alt:"p"}),jsx(b$h,{isDisabled:n,children:m()}),jsx(Zo,{component:"img",src:i?Xh:yh$1,alt:"a"}),i&&jsx(a$E,{onClick:s}),jsx(BP,{open:!!i,anchorEl:p.current,placement:"bottom-start",children:jsx(qi,{sx:{position:"absolute",top:8,left:0,display:i?"block":"none"},selectedCurrency:e,discount:o,setDiscount:c,setIsOpen:a,maxDiscount:Number(t)})})]})}var ah=memo(O0);var sh=styled$1($s)(({theme:e})=>({filter:"drop-shadow(0px 0px 28px rgba(0, 0, 0, 0.09))",borderRadius:"50%",backgroundColor:e.palette.common.white})),ph=styled$1(Zo)(()=>({display:"flex",alignItems:"center",justifyContent:"center"}));function ch({data:e,width:t=51,height:o=51,...r}){return jsx(ph,{width:t,height:o,children:jsx(sh,{data:e,width:t,height:o,...r})})}var fh=styled$1(Zo,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,minHeight:32,minWidth:30,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:e.palette.common.white,":hover":{opacity:.7},...t&&{boxShadow:`0px 0px 4px 0px ${e.palette.info.dark}80`,border:`1px solid ${e.palette.info.dark}`}})),gh=styled$1(_0)(({theme:e})=>({marginTop:e.spacing(1),marginBottom:e.spacing(1),minWidth:193,"& .MuiPaper-root":{borderRadius:e.spacing(.5),"&>.MuiList-root":{padding:0}}})),Ch=styled$1(a$g)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.subtitle1.fontSize,color:e.palette.grey[700],paddingInlineStart:e.spacing(2),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingInlineEnd:e.spacing(1),borderBottom:`1px solid ${e.palette.divider}`,display:"block"})),xh=styled$1(Zo)(({theme:e})=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"flex-end",backgroundColor:e.palette.common.white,borderTop:`1px solid ${e.palette.divider}`})),hh=styled$1(lx)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:70,borderRadius:"4px",border:`1px solid ${e.palette.info.dark}`,backgroundColor:e.palette.info.dark,fontWeight:700,fontSize:"11px",color:e.palette.common.white,"&:hover":{backgroundColor:e.palette.info.dark},"&.Mui-disabled":{color:"#fff !important",opacity:.5}})),yh=styled$1(lx)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:70,borderRadius:"4px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,fontWeight:500,fontSize:"11px",color:e.palette.text.primary,"&:hover":{background:"transparent"}}));function Th({onConfirm:e,onCancel:t,isOkayButDisabled:o,children:r,isDisabled:n,icon:i,title:a,menuStyle:p,hideTitle:l=false,renderButton:s,onOpenChange:c,menuProps:m,...u}){let[d,f]=useState(null),g=!!d,{t:x}=useTranslation(),S=T=>{if(!n){if(!g){f(T.currentTarget),c?.(true);return}C();}},C=()=>{f(null),c?.(false),t();},h=()=>{g&&(t(),C());},y=()=>{e(),C();};return jsx(TP,{onClickAway:h,children:jsxs(Zo,{...u,children:[jsx(fh,{className:"filter-button",isActive:g,onClick:S,sx:{...n&&{pointerEvents:"none",opacity:.5,...u.sx}},children:s??jsx(Zo,{component:"img",src:i??Ei$1,alt:"filter"})}),jsxs(gh,{anchorEl:d,open:g,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{marginTop:"8px",marginBottom:"8px",width:193,...p},...m,children:[!l&&jsx(Ch,{component:"span",children:a??x("filterBy")}),r,jsxs(xh,{children:[jsx(yh,{onClick:h,children:x("cancel")}),jsx(hh,{disabled:o,onClick:y,children:x("okay")})]})]}),g&&jsx(a$E,{onClick:C})]})})}var bh=styled$1(a$h)(()=>({padding:"12px 16px",border:"none !important","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"}})),Ih=styled$1(Zo)(()=>({display:"flex",flexDirection:"column",gap:"2px"})),vh=styled$1(Zo)(({theme:e})=>({color:alpha(e.palette.text.primary,.5),fontSize:"9px"})),wh=styled$1(Zo)(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"178px"}));function Qs({brand:e,merchantsIds:t,onChangeMerchant:o,atLeastOneMerchantSelected:r=false,showSearchInput:n=false,anchorEl:i}){let[a,p]=useState(""),l=!!i,s=useCallback(S=>t.includes(S),[t]),c=(S,C)=>{if(S.stopPropagation(),s(C)){o?.(t.filter(y=>y!==C));return}let h=[...new Set([...t,C])];o?.(h);},m=S=>t.length===1&&t[0]===S&&r,u=S=>{p(S);},d=()=>{p("");},f=useMemo(()=>e.merchants??[],[e.merchants]),g=useMemo(()=>a?.trim()?f?.filter(S=>(S?.display_name??"").toLowerCase().includes(a.trim().toLowerCase())):f,[a,f]),x=useMemo(()=>n?g:f,[g,f,n]);return jsxs(a$k,{open:l,anchorEl:i,placement:"right-start",children:[n&&f.length>1&&jsx(a$$,{placeholder:"Merchants",name:"merchants",value:a,onSearchChange:u,onSearchReset:d,sx:{px:"8px"}}),x?.map(S=>jsx(bh,{isDisabled:m(S.legacy_id),isSelected:s(S.legacy_id),onClick:C=>{m(S.legacy_id)||c(C,S.legacy_id);},sx:{maxHeight:36,minHeight:36},children:jsxs(Ih,{children:[jsx(wh,{component:"span",children:S.display_name}),jsx(vh,{component:"span",children:S.legacy_id})]})},S?.legacy_id))]})}var Ji=Qs;function tp({brand:e,merchantsIds:t,isDisabled:o,atLeastOneMerchantSelected:r=false,showSearchInput:n=false,renderBrandLogo:i,onChangeMerchant:a}){let[p,l]=useState(null),s=!!p,c=x=>{l(x.currentTarget);},m=()=>{l(null);},u=useMemo(()=>e.merchants?.filter(x=>t.includes(x.legacy_id)),[t,e.merchants]),d=useMemo(()=>u?.length===e.merchants?.length,[u?.length,e.merchants?.length]),f=useMemo(()=>!d&&u.length>0,[d,u]),g=x=>{if(x.stopPropagation(),d){a?.(t.filter(S=>!e.merchants.some(({legacy_id:C})=>S===C)));return}if(f){let S=[...new Set([...t,...u.map(({legacy_id:C})=>C)])];a?.(S);return}a?.([...t,...e.merchants.map(({legacy_id:S})=>S)]);};return jsxs(a$h,{isSelected:d,isIndeterminate:f,onMouseEnter:c,onMouseLeave:m,onClick:x=>{o||g(x);},isDisabled:o,sx:{maxHeight:35,minHeight:35,...s&&{boxShadow:"0px 0px 16px 0px #00000021"}},children:[jsxs(a$2I,{children:[i?.(e.logo),jsx(a$g,{sx:{fontSize:"11px"},children:c$4(e.name)})]}),e.merchants?.length>0&&jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(Ji,{anchorEl:p,brand:e,merchantsIds:t,onChangeMerchant:a,atLeastOneMerchantSelected:r,showSearchInput:n})]})}var Eh=tp;function op({brands:e,isLoading:t,onFilterChange:o,merchantsIds:r=[],atLeastOneMerchantSelected:n=false,showSearchInput:i=false,hideCheckbox:a=false,renderBrandLogo:p}){let[l,s]=useState(null),[c,m]=useState(""),u=!!l,{t:d}=useTranslation(),f=P=>{s(P.currentTarget);},g=()=>{s(null);},x=useMemo(()=>e.length?e.every(P=>P.merchants?.every(({legacy_id:k})=>r.includes(k))):false,[r,e,a]),S=useMemo(()=>!x&&r.length>0,[r,x]),C=useMemo(()=>e.filter(P=>P.merchants?.some(k=>r?.includes(k.legacy_id))).length,[e,r]),h=()=>{if(x&&!n){o?.([]);return}let P=e.flatMap(k=>k.merchants?.map(({legacy_id:M})=>M));o?.(P);},y=t||!e?.length,T=P=>{m(P);},v=()=>{m("");},b=useMemo(()=>c.trim()?e.filter(P=>c$4(P.name)?.toLowerCase()?.includes(c.trim().toLowerCase())||P?.id?.toLowerCase().includes(c.trim().toLowerCase())):e,[c,e]),E=useMemo(()=>i?b:e,[e,b,i]);return jsxs(a$h,{isDisabled:y,isSelected:x,hideCheckbox:a,isIndeterminate:S,sx:{maxHeight:36,minHeight:36,padding:"12px 8px 12px 16px",...u&&{boxShadow:"0px 0px 16px 0px #00000021"},...y&&{pointerEvents:"none",opacity:.5,cursor:"default"}},onMouseEnter:f,onMouseLeave:g,onClick:h,children:[jsx(a$g,{sx:{fontSize:"11px",flex:1},children:d("merchant")}),e.length>0&&jsx("img",{src:qb,alt:"arrow",style:{height:12}}),e?.length===1?jsx(Ji,{anchorEl:l,brand:e[0],merchantsIds:r,onChangeMerchant:o,atLeastOneMerchantSelected:n,showSearchInput:i}):jsxs(a$k,{open:u,anchorEl:l,placement:"right-start",children:[i&&e.length>1&&jsx(a$$,{placeholder:"Brands",name:"brands",value:c,onSearchChange:T,onSearchReset:v,sx:{px:"8px"}}),E?.map(P=>jsx(Eh,{isDisabled:C===1&&n,brand:P,merchantsIds:r,onChangeMerchant:o,atLeastOneMerchantSelected:n,showSearchInput:i,renderBrandLogo:p},P.id))]})]})}function eE({retailersIds:e=[],isLoading:t,retailers:o=[],onFilterChange:r,atLeastOneRetailerSelected:n=false,showSearchInput:i=false,hideCheckbox:a=false}){let[p,l]=useState(null),s=!!p,{t:c,i18n:m}=useTranslation(),[u,d]=useState(""),f=M=>{l(M.currentTarget);},g=()=>{l(null);},x=useCallback(M=>e?.includes(M),[e]),S=useMemo(()=>o.length?o.every(M=>x(M.id)):false,[o,x,a]),C=useMemo(()=>!S&&e.length>0,[e,S]),h=()=>{if(S&&!n){r?.([]);return}r?.(o.map(M=>M.id));},y=M=>e.length===1&&e[0]===M&&n,T=(M,N)=>{if(M.stopPropagation(),y(N))return;if(x(N)){r?.(e.filter(Y=>Y!==N));return}let R=[...new Set([...e,N])];r?.(R);},v=t||!o?.length,b=M=>{d(M);},E=()=>{d("");},P=useMemo(()=>u?.trim()?o?.filter(M=>(M?.brand?.name?.[m.language]??M?.brand?.name?.en??"").toLowerCase().includes(u.trim().toLowerCase())):o,[u,o,m.language]),k=useMemo(()=>i?P:o,[P,o,i]);return jsxs(a$h,{isDisabled:v,isSelected:S,hideCheckbox:a,isIndeterminate:C,sx:{maxHeight:35,minHeight:35,padding:"12px 8px 12px 16px",...s&&{boxShadow:"0px 0px 16px 0px #00000021"},...v&&{opacity:.5,pointerEvents:"none",cursor:"default"}},onMouseEnter:f,onMouseLeave:g,onClick:h,children:[jsx(a$g,{sx:{fontSize:"11px",flex:1},children:c("retailers")}),o?.length>0&&jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsxs(a$k,{open:s,anchorEl:p,placement:"right-start",sx:{height:300,width:200,overflow:"auto"},children:[i&&jsx(a$$,{placeholder:"Retailers",name:"retailers",value:u,onSearchChange:b,onSearchReset:E,sx:{px:"8px"}}),k?.map((M,N)=>jsx(a$h,{isSelected:x(M.id),isDisabled:t||y(M.id),onClick:R=>{T(R,M.id);},sx:{maxHeight:35,minHeight:35},children:jsx(a$10,{children:M?.brand?.name?.[m.language]??M?.brand?.name?.en})},`key-${M?.id}-${N}`))]})]})}var Lh=memo(eE);function iE({countriesIds:e=[],isLoading:t,countries:o=[],onFilterChange:r,atLeastOneCountrySelected:n=false,hideCheckbox:i=false}){let[a,p]=useState(null),l=!!a,{t:s}=useTranslation(),c=h=>{l||p(h.currentTarget);},m=()=>{l&&p(null);},u=useCallback(h=>e?.includes(h),[e]),d=useMemo(()=>o.length?o.every(h=>u(h)):false,[o,u]),f=useMemo(()=>!d&&e.length>0,[e,d]),g=()=>{if(!n){if(d){r?.([]);return}r?.(o);}},x=h=>e.length===1&&e[0]===h&&n,S=(h,y)=>{if(h.stopPropagation(),x(y))return;if(u(y)){r?.(e.filter(v=>v!==y));return}let T=[...new Set([...e,y])];r?.(T);},C=t||o?.length<=0||n;return jsxs(a$h,{isDisabled:C,isSelected:d,hideCheckbox:i,isIndeterminate:f,sx:{maxHeight:35,minHeight:35,padding:"12px 8px 12px 16px",...l&&{boxShadow:"0px 0px 16px 0px #00000021"},...!o?.length&&{opacity:.5,pointerEvents:"none"}},onMouseEnter:c,onMouseLeave:m,onClick:g,children:[jsx(a$g,{sx:{fontSize:"11px",flex:1},children:s("walletCountry")}),o?.length>0&&jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(a$k,{open:l,anchorEl:a,placement:"right-start",sx:{width:200,overflow:"auto"},children:o?.map((h,y)=>jsxs(a$h,{isSelected:u(h),isDisabled:t||x(h),onClick:T=>{S(T,h);},sx:{maxHeight:35,minHeight:35},children:[jsx(a$u,{countryCode:h}),jsx(a$g,{sx:{fontSize:"11px !important",fontWeight:"500 !important"},children:a$v(h)})]},`key-${h}-${y}`))})]})}var Wh=memo(iE);function mE({currenciesIds:e=[],isLoading:t,currencies:o=[],onFilterChange:r,atLeastOneCurrencySelected:n=false,hideCheckbox:i=false}){let[a,p]=useState(null),l=!!a,{t:s}=useTranslation(),c=h=>{l||p(h.currentTarget);},m=()=>{l&&p(null);},u=useCallback(h=>e?.includes(h),[e]),d=useMemo(()=>o.length?o.every(h=>u(h)):false,[o,u]),f=useMemo(()=>!d&&e.length>0,[e,d]),g=()=>{if(!n){if(d){r?.([]);return}r?.(o);}},x=h=>e.length===1&&e[0]===h&&n,S=(h,y)=>{if(h.stopPropagation(),x(y))return;if(u(y)){r?.(e.filter(v=>v!==y));return}let T=[...new Set([...e,y])];r?.(T);},C=t||o?.length<=0||n;return jsxs(a$h,{isDisabled:C,isSelected:d,hideCheckbox:i,isIndeterminate:f,sx:{maxHeight:35,minHeight:35,padding:"12px 8px 12px 16px",...l&&{boxShadow:"0px 0px 16px 0px #00000021"},...!o?.length&&{opacity:.5,pointerEvents:"none"}},onMouseEnter:c,onMouseLeave:m,onClick:g,children:[jsx(a$g,{sx:{fontSize:"11px",flex:1},children:s("currency")}),o?.length>0&&jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(a$k,{open:l,anchorEl:a,placement:"right-start",sx:{width:200,overflow:"auto"},children:o?.map((h,y)=>a$11[h]?.country?jsxs(a$h,{isSelected:u(h),isDisabled:t||x(h),onClick:v=>{S(v,h);},sx:{maxHeight:35,minHeight:35},children:[jsx(a$u,{countryCode:a$11[h].country})," ",jsx(a$g,{sx:{fontSize:"11px !important",fontWeight:"500 !important"},children:h})]},`key-${h}-${y}`):null)})]})}var Hh=memo(mE);var cE="/",Oh=(...e)=>e.join(cE),zh=(e,t,o)=>{let r=e.map(n=>{let i=n.entities??[],p=Array.from(new Set(i.map(l=>l.country).filter(Boolean))).map(l=>{let c=i.filter(m=>m.country===l).map(m=>{let d=(m.merchants??[]).map(f=>({id:f.legacy_id,label:f.display_name,levelKey:"MERCHANT",status:t.includes(f.legacy_id)?"CHECKED":"UNCHECKED",hintText:f.legacy_id}));return {id:Oh(n.id,l,m.id),label:c$4(m.legal_name,o)??m.id,levelKey:"ENTITY",children:d,header:"Merchants",...d.length>10&&{searchProps:{getValues:f=>[f.label,f.id]}}}});return {id:Oh(n.id,l),label:l,levelKey:"COUNTRY",children:c,header:"Entities",iconComponent:jsx(a$u,{countryCode:l,width:14}),...c.length>10&&{searchProps:{getValues:m=>[m.label,m.id]}}}});return {id:n.id,label:c$4(n.name,o)??n.id,levelKey:"BRAND",children:p,header:"Countries",icon:{fileId:n.logo}}});return {levelKey:"BRAND",children:r,header:"Brands",...r.length>10&&{searchProps:{getValues:n=>[n.label,n.id]}}}};var xE=e=>{let{brands:t,isLoading:o,initialValue:r,onFilterChange:n,BrandLogoComponent:i}=e,[a,p]=useState(null),[l$1,s]=useState("UNCHECKED"),c=useRef(null),m=!!a,{t:u,i18n:d}=useTranslation(),f=useMemo(()=>zh(t,r,d.language),[t,r,d.language]),g=f.children??[],x=o||!g.length,S=useCallback(T=>{let v=T.filter(E=>E.status==="CHECKED"),b=T.filter(E=>E.status==="INDETERMINATE");return v.length===g.length?"CHECKED":b.length>0||v.length>0?"INDETERMINATE":"UNCHECKED"},[g]),C=useCallback(({selectedTree:T})=>{s(S(T));},[S]),h=useCallback(T=>{s(S(T));let v=l.filterNodesByLevelKey(T,"MERCHANT").map(({id:b})=>b);n?.(v);},[n,S]),y=useCallback(()=>{c.current?.toggleAll(l$1!=="CHECKED");},[l$1]);return jsxs(a$h,{isSelected:l$1==="CHECKED",isIndeterminate:l$1==="INDETERMINATE",isDisabled:x,onMouseEnter:T=>p(T.currentTarget),onMouseLeave:()=>p(null),onClick:y,sx:{maxHeight:36,minHeight:36,padding:"12px 8px 12px 16px",...m&&{boxShadow:"0px 0px 16px 0px #00000021"},...x&&{pointerEvents:"none",opacity:.5,cursor:"default"}},children:[jsx(a$g,{sx:{fontSize:"11px",flex:1},children:u("merchant")}),t.length>0&&jsx("img",{src:qb,alt:"arrow",style:{height:12}}),!o&&jsx(np,{ref:c,placement:"right-start",anchorEl:a,exposeOnlySelectedTree:true,treeDefinition:f,onChange:h,onMounted:C,IconComponent:i})]})},$h=xE;var yE=$h;function Uh({onPhoneChange:e,onCountryChange:t,selectedPhone:o,selectedCountry:r,countriesOptions:n,isCountriesLoading:i}){return jsx(a$2J,{"data-testid":"ColumnFilterInputs_PhoneInput",phoneValue:o,onPhoneChange:a=>{e(a);},countryValue:r,onCountryChange:a=>{t(a?.countryId);},countries:n||[],isCountriesLoading:i||false,hasError:false,disabled:i,placeholder:"User Mobile",sx:{"&.MuiInputBase-root":{paddingLeft:"0px !important"}}})}function ip({onCountriesChange:e,sx:t,selectedCountries:o,countriesOptions:r}){let[n,i]=useState(null),a=useRef(null),p=!!n,l=()=>{if(!p){i(a.current);return}s();},s=()=>{i(null);},c=f=>o?.includes(f)??false,m=f=>{e(f);},u=f=>{let g=o?.includes(f)?o?.filter(x=>x!==f):[...o??[],f];m(g),e(g);},d=useMemo(()=>o?.length===r.length,[o,r]);return jsx(ClickAwayListener,{onClickAway:s,children:jsxs(Zo,{ref:a,sx:t,children:[jsx(Zo,{children:jsxs(b$T,{onMouseEnter:f=>{f.stopPropagation(),l();},hideCheckbox:true,children:[jsx(a$2K,{children:"Country"}),jsx(e$o,{src:qb,alt:""})]})}),jsxs(a$k,{open:p,anchorEl:n,sx:g$b,placement:"right-start",popperSx:h$9,children:[jsx(c$z,{onClick:f=>{f.stopPropagation(),d?(m([]),e([])):(m(r.map(({value:g})=>g)),e(r.map(({value:g})=>g)));},isSelected:d,children:d?"Unselect All":"Select All"}),r.map(({value:f,label:g,icon:x})=>jsxs(d$n,{isSelected:c(f),onClick:()=>u(f),children:[jsx(f$f,{src:x,alt:""}),g]},f))]})]})})}var WJ=ip;var qh=styled$1(Zo)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),_J=styled$1(Zo)(()=>({display:"flex",alignItems:"center"})),Bt=styled$1(Zo)(({theme:e})=>({padding:"8px",display:"flex",flexDirection:"column",gap:"8px",position:"relative",background:e.palette.common.white,borderRadius:"4px",width:"max-content",maxWidth:230,boxShadow:e.shadows[3]})),qo=styled$1(lx)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",textTransform:"capitalize",padding:"8px 13px",minWidth:89,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,color:e.palette.common.white,textAlign:"center","&.Mui-disabled":{backgroundColor:alpha(e.palette.grey[700],.5),color:e.palette.common.white,cursor:"not-allowed"},"&:hover":{background:e.palette.info.dark}})),ge=styled$1(a$i,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Yh=styled$1(a$f,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),ie=styled$1(a$j)(()=>({borderTopLeftRadius:0,borderTopRightRadius:0,height:25}));function kE({customer:e,country:t,defaultCountry:o,countries:r,isCountriesLoading:n,onCustomerChange:i,onCountryChange:a,isCustomerNotValid:p}){let l=useRef(),s=useRef(),c=useRef(),m=useRef(),{t:u}=useTranslation(),{control:d,watch:f,formState:{errors:g,isValid:x}}=useForm({mode:"onChange",resolver:yupResolver(b$k(t.max_digits)),defaultValues:{firstName:e.firstName,email:e.email,lastName:e.lastName,phoneNumber:e.phoneNumber}});useEffect(()=>{f(({firstName:h="",lastName:y="",email:T="",phoneNumber:v=""})=>{i({firstName:h,lastName:y,email:T,phoneNumber:v});});},[f,g,e]);let S=useCallback(()=>g.firstName?.message??g.lastName?.message??g.email?.message??g.phoneNumber?.message,[g]);return useEffect(()=>{p?.(!x,S());},[x,S]),jsxs(Bt,{onMouseLeave:h=>{h.stopPropagation();},children:[jsx(Controller,{control:d,name:"firstName",render:({field:{ref:h,...y},fieldState:{error:T}})=>jsxs(Zo,{ref:l,children:[jsx(ge,{...y,placeholder:u("firstName"),inputProps:{autoComplete:"off"},error:!!T?.message}),T?.message&&jsx(ie,{error:u(T.message)})]})},"fullInfoFirstName"),jsx(Controller,{control:d,name:"lastName",render:({field:{ref:h,...y},fieldState:{error:T}})=>jsxs(Zo,{ref:s,children:[jsx(ge,{...y,placeholder:u("lastName"),inputProps:{autoComplete:"off"},error:!!T?.message}),T?.message&&jsx(ie,{error:u(T.message)})]})},"fullInfoLastName"),jsx(Controller,{control:d,name:"email",render:({field:{ref:h,...y},fieldState:{error:T}})=>jsxs(Zo,{ref:c,children:[jsx(ge,{...y,placeholder:u("email"),inputProps:{autoComplete:"off"},error:!!T?.message}),T?.message&&jsx(ie,{error:u(T.message)})]})},"fullInfoEmail"),jsx(Controller,{control:d,name:"phoneNumber",render:({field:{ref:h,...y},fieldState:{error:T}})=>jsxs(Zo,{ref:m,children:[jsxs(qh,{sx:{...T?.message&&{borderBottom:"none"}},children:[jsx(a$14,{defaultCountry:t?.iso2??o?.code??"SA",value:t,onChangeCountry:a,countries:r,isLoading:n}),jsx(Yh,{...y,placeholder:u("mobile"),inputProps:{autoComplete:"off"},error:!!T?.message,sx:{border:"none",paddingInlineEnd:0},hideArrows:true})]}),T?.message&&jsx(ie,{error:u(T.message,{numberLen:t.max_digits})})]})},"fullInfoPhoneNumber")]})}var lp=kE;function NE({...e}){let[t,o]=useState(null),{firstName:r,lastName:n}=e.customer,{t:i}=useTranslation(),a=!!t,p=c=>{a||o(c.currentTarget);},l=()=>{a&&o(null);},s=useMemo(()=>b$i(),[]);return jsxs(a$12,{sx:{...e.isDisabled&&{pointerEvents:"none",opacity:.7}},children:[jsxs(b$j,{onClick:p,children:[(!r||!n)&&jsxs(Fragment,{children:[jsx("img",{src:$h$1,alt:"c"}),jsx("span",{children:i("customer")})]}),r&&n&&jsxs(Fragment,{children:[jsx(c$a,{src:"#",alt:"a",sx:{background:s},children:`${r[0]?.toUpperCase()}${n[0]?.toUpperCase()||""}`}),`${r} ${n}`]})]}),a&&jsx(a$E,{onClick:l}),jsx(BP,{open:a,anchorEl:t,placement:"bottom-start",children:jsx(lp,{...e})})]})}var Zh=memo(NE);function _E({submitButtonText:e,onSubmit:t,customer:o,isItemsNotValid:r,items:n,onCustomerChange:i}){let a=useRef(),p=useRef(),l=useRef(),{t:s}=useTranslation(),{control:c,formState:{isValid:m,errors:u},watch:d,trigger:f}=useForm({mode:"onChange",resolver:yupResolver(a$13),defaultValues:{firstName:o.firstName,email:o.email,lastName:o.lastName}});return useEffect(()=>{o.firstName&&o.email&&o.lastName&&f();},[]),useEffect(()=>{d(({firstName:x="",lastName:S="",email:C=""})=>{i({...o,email:C,firstName:x,lastName:S});});},[d,u,o]),jsxs(Bt,{onMouseLeave:x=>{x.stopPropagation();},children:[jsx(Controller,{control:c,name:"email",render:({field:{ref:x,...S},fieldState:{error:C}})=>jsxs(Zo,{ref:l,children:[jsx(ge,{...S,"data-testid":"EmailForm_email",placeholder:s("email"),inputProps:{autoComplete:"off",form:{autoComplete:"off"}},error:!!C?.message}),C?.message&&jsx(ie,{error:s(C.message)})]})}),jsx(Controller,{control:c,name:"firstName",render:({field:{ref:x,...S},fieldState:{error:C}})=>jsxs(Zo,{ref:a,children:[jsx(ge,{...S,"data-testid":"EmailForm_firstName",placeholder:s("firstName"),inputProps:{autoComplete:"off",form:{autoComplete:"off"}},error:!!C?.message}),C?.message&&jsx(ie,{error:s(C.message)})]})}),jsx(Controller,{control:c,name:"lastName",render:({field:{ref:x,...S},fieldState:{error:C}})=>jsxs(Zo,{ref:p,children:[jsx(ge,{...S,"data-testid":"EmailForm_lastName",placeholder:s("lastName"),inputProps:{autoComplete:"off",form:{autoComplete:"off"}},error:!!C?.message}),C?.message&&jsx(ie,{error:s(C.message)})]})}),jsx(qo,{type:"button","data-testid":"EmailForm_submit",onClick:t,disabled:!m||r||!n.length,children:e})]})}var Qh=memo(_E);function YE({submitButtonText:e,onSubmit:t,customer:o,country:r,items:n,isItemsNotValid:i$1,defaultCountry:a,countries:p,isCountriesLoading:l,onCustomerChange:s,onCountryChange:c}){let m=useRef(),u=useRef(),d=useRef(),f=useRef(),{t:g}=useTranslation(),{control:x,watch:S,trigger:C,formState:{isValid:h,errors:y}}=useForm({mode:"onChange",resolver:yupResolver(b$k(r.max_digits)),defaultValues:{firstName:o.firstName,email:o.email,lastName:o.lastName,phoneNumber:o.phoneNumber}});return useEffect(()=>{S(({firstName:T="",lastName:v="",email:b="",phoneNumber:E=""})=>{s({email:b,firstName:T,lastName:v,phoneNumber:E});});},[S,y,o]),useEffect(()=>{o.firstName&&o.lastName&&(o.email||o.phoneNumber)&&C();},[]),jsxs(Bt,{onMouseLeave:T=>{T.stopPropagation();},children:[jsx(Controller,{control:x,name:"firstName",render:({field:{ref:T,...v},fieldState:{error:b}})=>jsxs(Zo,{ref:m,children:[jsx(ge,{...v,placeholder:g("firstName"),inputProps:{autoComplete:"off"},error:!!b?.message}),b?.message&&jsx(ie,{error:g(b.message)})]})},"fullInfoFormFirstName"),jsx(Controller,{control:x,name:"lastName",render:({field:{ref:T,...v},fieldState:{error:b}})=>jsxs(Zo,{ref:u,children:[jsx(ge,{...v,placeholder:g("lastName"),inputProps:{autoComplete:"off"},error:!!b?.message}),b?.message&&jsx(ie,{error:g(b.message)})]})},"fullInfoFormLastName"),jsx(Controller,{control:x,name:"email",render:({field:{ref:T,...v},fieldState:{error:b}})=>jsxs(Zo,{ref:d,children:[jsx(ge,{...v,placeholder:g("email"),inputProps:{autoComplete:"off"},error:!!b?.message}),b?.message&&jsx(ie,{error:g(b.message)})]})},"fullInfoFormEmail"),jsx(Controller,{control:x,name:"phoneNumber",render:({field:{ref:T,...v},fieldState:{error:b}})=>jsxs(Zo,{ref:f,children:[jsxs(h$2,{sx:{...b?.message&&{borderBottom:"none"}},children:[jsx(a$14,{defaultCountry:r?.iso2??a?.code??"SA",value:r,onChangeCountry:c,countries:p,isLoading:l}),jsx(i,{...v,placeholder:g("mobile"),inputProps:{autoComplete:"off"},error:!!b?.message,sx:{border:"none",paddingInlineEnd:0},hideArrows:true})]}),b?.message&&jsx(ie,{error:g(b.message,{numberLen:r.max_digits})})]})}),jsx(qo,{onClick:t,disabled:!h||i$1||!n.length,children:e})]})}var ey=memo(YE);function QE({submitButtonText:e,onSubmit:t,customer:o,country:r,isItemsNotValid:n,items:i$1,defaultCountry:a,countries:p,isCountriesLoading:l,onCustomerChange:s,onCountryChange:c}){let m=useRef(),u=useRef(),d=useRef(),{t:f}=useTranslation(),{control:g,formState:{isValid:x,errors:S},watch:C,trigger:h}=useForm({mode:"onChange",resolver:yupResolver(c$b(r.max_digits)),defaultValues:{firstName:o.firstName,phoneNumber:o.phoneNumber,lastName:o.lastName}});return useEffect(()=>{o.firstName&&o.phoneNumber&&o.lastName&&h();},[]),useEffect(()=>{C(({firstName:T="",lastName:v="",phoneNumber:b=""})=>{s({...o,firstName:T,lastName:v,phoneNumber:b});});},[C,S,o]),jsxs(Bt,{onMouseLeave:T=>{T.stopPropagation();},children:[jsx(Controller,{control:g,name:"phoneNumber",render:({field:{ref:T,...v},fieldState:{error:b}})=>jsxs(Zo,{ref:d,children:[jsxs(h$2,{sx:{...b?.message&&{borderBottom:"none"}},children:[jsx(a$14,{defaultCountry:r?.iso2??a?.code??"SA",value:r,onChangeCountry:c,countries:p,isLoading:l}),jsx(i,{...v,placeholder:f("mobile"),error:!!b?.message,sx:{border:"none",paddingInlineEnd:0},inputProps:{autoComplete:"off",form:{autoComplete:"off"}},hideArrows:true})]}),b?.message&&jsx(ie,{error:f(b.message,{numberLen:r.max_digits})})]})},"phoneNumberFormPhone"),jsx(Controller,{control:g,name:"firstName",render:({field:{ref:T,...v},fieldState:{error:b}})=>jsxs(Zo,{ref:m,children:[jsx(ge,{...v,placeholder:f("firstName"),inputProps:{autoComplete:"off"},error:!!b?.message}),b?.message&&jsx(ie,{error:f(b.message)})]})},"phoneNumberFormFirstName"),jsx(Controller,{control:g,name:"lastName",render:({field:{ref:T,...v},fieldState:{error:b}})=>jsxs(Zo,{ref:u,children:[jsx(ge,{...v,placeholder:f("lastName"),inputProps:{autoComplete:"off"},error:!!b?.message}),b?.message&&jsx(ie,{error:f(b.message)})]})},"phoneNumberFormLastName"),jsx(qo,{onClick:t,disabled:!x||n||!i$1.length,children:e})]})}var oy=memo(QE);function jr({selectedCurrencyCode:e}){return jsxs(d$9,{sx:{padding:0},children:[jsx(a$u,{currencyCode:e}),jsxs("span",{children:[" ",e]})]})}function rB({merchantCurrencies:e,isLoading:t,onChangeCurrency:o,isDisabled:r,selectedCurrency:n}){let[i,a]=useState(null),p=!!i,l=m=>{p||a(m.currentTarget);},s=()=>{p&&a(null);},c=m=>{o?.(m),s();};return t||!e?jsxs(a$15,{sx:{pointerEvents:"none"},children:[jsx(a$g,{sx:{fontSize:"11px"},children:"Select"}),t?jsx(a$16,{}):jsx(Zo,{component:"img",src:_h,alt:"c",sx:{marginTop:"2px"}})]}):e.length===0?jsxs(a$15,{sx:{pointerEvents:"none",opacity:.5},children:[jsx(a$g,{sx:{fontSize:"11px"},children:"Select"}),jsx(Zo,{sx:{width:25,textAlign:"center"},children:jsx(Zo,{component:"img",src:_h,alt:"c",sx:{marginTop:"2px"}})})]}):e.length===1?jsx(a$15,{sx:{border:"none",pointerEvents:"none"},children:jsx(jr,{selectedCurrencyCode:e?.[0]?.code?.english??""})}):jsxs(a$15,{onClick:l,sx:{...r&&{pointerEvents:"none",opacity:.7}},children:[jsx(jr,{selectedCurrencyCode:n?.code?.english??""}),jsx(Zo,{component:"img",src:_h,alt:"c",sx:{marginTop:"2px",...p&&{transform:"rotate(180deg)"}}}),p&&jsx(a$E,{onClick:s}),jsx(BP,{open:p,anchorEl:i,placement:"bottom-start",children:jsx(b$l,{children:e.map((m,u)=>jsx(c$c,{className:"currency",onClick:()=>{c(m);},children:jsx(jr,{selectedCurrencyCode:m.code.english})},`${m.symbol}-${u}`))})})]})}var nB=memo(rB);var iy=styled$1(Zo)(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"8px",padding:"8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white})),ay=styled$1(a$g)(({theme:e})=>({color:e.palette.grey[700],fontSize:"10px",fontWeight:500,marginBottom:"8px",margin:0}));function cB({options:e,error:t,files:o,label:r,disabled:n,hideUpload:i=false,preventDuplicates:a,onChangeFiles:p,onRemoveFile:l,renderBrandLogo:s,renderOpenFileInNewTab:c}){let{t:m}=useTranslation(),[u,d]=useState(null),{getRootProps:f,getInputProps:g,open:x,isDragReject:S,fileRejections:C}=useDropzone(e),h=a$17(e?.maxSize||0,0).toUpperCase(),y=useMemo(()=>{let b=C.length&&C[0].errors.some(P=>P.code==="file-invalid-type"),E=C.length&&C[0].errors.some(P=>P.code==="file-too-large");return S||b?m("invalidFileType"):E?`File is larger than ${h}`:u||t},[S,t,C,u,m,h]);return jsxs(iy,{children:[jsx(ay,{children:r}),jsx(a$18,{files:o,onRemoveFile:l,disabled:n,getFilePreview:b=>b.type.includes("image")?URL.createObjectURL(b):b.name.includes(".pdf")?_d:b.name,renderBrandLogo:s,renderOpenFileInNewTab:c}),!n&&!i&&jsx(a$19,{getRootProps:f,getInputProps:g,open:x,onChangeFiles:p,processFiles:b=>{if(d(null),!a)return b.map(k=>({file:k,id:k.name}));let{duplicates:E,uniqueFiles:P}=b.reduce((k,M)=>(b$m(M,o)?k.duplicates.push(M.name):k.uniqueFiles.push({file:M,id:M.name}),k),{duplicates:[],uniqueFiles:[]});if(E.length>0){let k=E.length===1?"file":"files";d(`Duplicate ${k} detected: ${E.join(", ")}`);}return P},disabled:n,errorMessage:y,maxFileSize:h,preventDuplicates:a})]})}var uB=memo(cB);function xp({isOpen:e,receipt:t,order:o,appWindow:r,onClose:n}){return jsx(a$2L,{isOpen:e,onClose:()=>{n(t.id);},initialPosition:{x:1e3-20*o},windowProps:{titleBarText:"Receipt",mainAppIsMinimized:r?.isMinimized,mainAppOrder:r?.order,showSectionsButton:false},defaultWindowWidth:502,defaultWindowHeight:745,children:jsx(a$2M,{children:jsx(Zo,{sx:{height:715,overflow:"auto"},dangerouslySetInnerHTML:{__html:t.content}})})})}function sy({receipts:e,onCloseReceipt:t,appWindow:o}){return e.length?jsx(Fragment,{children:e.map((r,n)=>jsx(xp,{order:n,isOpen:true,onClose:i=>t(i),receipt:r,appWindow:o},r.id))}):null}var sa=styled$1(Zo)(({theme:e})=>({borderRadius:"50%",background:e.palette.divider,width:13,height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px"})),en=styled$1(Zo)(()=>({display:"flex",alignItems:"center",gap:"4px",".arrow-icon":{height:12}})),pa=styled$1(Zo)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,width:"100%",alignItems:"center"})),py=styled$1(Zo)(()=>({display:"flex",flexDirection:"column"})),my=styled$1(Zo,{shouldForwardProp:e=>e!=="isOpen"})(({isOpen:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"5px",cursor:"pointer",padding:"8px",border:`1px solid ${t.palette.divider}`,color:t.palette.text.primary,background:t.palette.common.white,borderRadius:"4px",height:32,width:"fit-content",minWidth:"89px",img:{marginTop:"1px"},...e&&{borderColor:t.palette.info.dark},"&:hover":{background:t.palette.divider}})),cy=styled$1(Is)(({theme:e})=>({fontSize:"11px",fontWeight:500,color:e.palette.text.primary})),uy=styled$1("img",{shouldForwardProp:e=>e!=="expanded"})(({theme:e,expanded:t})=>({transform:t?"rotate(180deg)":"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})})),dy=styled$1(Zo)(()=>({display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"4px",borderTop:"1px solid #F2F2F2"})),Xo=styled$1(a$k)({"& .MuiPopper-dropdown":{maxHeight:700,overflow:"visible"}}),ma=(i=>(i.SELECTED="Mui-selected",i.ONLY_ONE="Mui-only-one",i.FLIPPED="Mui-flipped",i.SUBMENU_OPEN="Mui-Submenu-open",i.SUBMENU_FLIPPED="Mui-Submenu-flipped",i))(ma||{}),hp=styled$1(a$h)({"--menuitem-border-rad":"4px",backgroundColor:"#fff",minHeight:36,"&:first-of-type":{borderTopLeftRadius:"var(--menuitem-border-rad)",borderTopRightRadius:"var(--menuitem-border-rad)"},"&:last-of-type":{borderBottomLeftRadius:"var(--menuitem-border-rad)",borderBottomRightRadius:"var(--menuitem-border-rad)"},"&.Mui-Submenu-open":{borderTopRightRadius:0,borderBottomRightRadius:0,"&.Mui-Submenu-flipped":{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:"var(--menuitem-border-rad)",borderBottomRightRadius:"var(--menuitem-border-rad)"}},"&.Mui-selected":{boxShadow:"0px 0px 16px rgba(0, 0, 0, 0.13)",zIndex:1}}),tn=styled$1(hp)({"&:first-of-type":{borderTopLeftRadius:0,borderTopRightRadius:"var(--menuitem-border-rad)","&.Mui-flipped":{borderTopLeftRadius:"var(--menuitem-border-rad)",borderTopRightRadius:0}},"&:last-of-type":{borderBottomLeftRadius:"var(--menuitem-border-rad)",borderBottomRightRadius:"var(--menuitem-border-rad)"},"&.Mui-Submenu-open":{borderTopRightRadius:0,borderBottomRightRadius:0,"&.Mui-Submenu-flipped":{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:"var(--menuitem-border-rad)",borderBottomRightRadius:"var(--menuitem-border-rad)"}},"&.Mui-only-one":{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:"var(--menuitem-border-rad)",borderBottomRightRadius:"var(--menuitem-border-rad)","&.Mui-flipped":{borderTopLeftRadius:"var(--menuitem-border-rad)",borderBottomLeftRadius:"var(--menuitem-border-rad)",borderTopRightRadius:0,borderBottomRightRadius:0},"&.Mui-Submenu-open":{borderTopRightRadius:0,borderBottomRightRadius:0,"&.Mui-Submenu-flipped":{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:"var(--menuitem-border-rad)",borderBottomRightRadius:"var(--menuitem-border-rad)"}}}}),QX=styled$1(tn)({backgroundColor:"#FAFAFA",color:"#8D8D94",padding:"10px 16px",borderBottom:"1px solid #F2F2F2"});var SB=e=>{let{merchant:t,selectedValue:o,onClick:r,onlyOne:n,menuFlipped:i}=e,a=t.id===o?.merchantId,p=useMemo(()=>{let l=[];return a&&l.push("Mui-selected"),n&&l.push("Mui-only-one"),i&&l.push("Mui-flipped"),l.join(" ")},[a,n,i]);return jsxs(tn,{"data-testid":"MerchantItem",className:p,sx:{py:"4.5px",pl:1,pr:2},onClick:r,hideCheckbox:true,children:[a?jsx("img",{src:Kc,alt:"Selected"}):jsx(Zo,{width:15}),jsxs(py,{children:[jsx(Is,{component:"span",fontSize:11,children:t.display_name}),jsx(Is,{color:l=>alpha(l.palette.text.primary,.5),fontSize:8,children:t.legacy_id})]})]},t.id)},Cy=SB;var bB=e=>{let{items:t,value:o,onItemClick:r,menuFlipped:n}=e,i=t.length===1,a=useMemo(()=>{let p=[];return i&&p.push("Mui-only-one"),n&&p.push("Mui-flipped"),p.join(" ")},[i,n]);return jsx(Fragment,{children:t.map(p=>jsx(Cy,{className:a,onlyOne:t.length===1,selectedValue:o,merchant:p,onClick:l=>r?.(l,p),menuFlipped:n},p.id))})},ua=bB;function EB(e){let{entity:t,brandId:o,selectedValue:r,onValueChange:n,onlyOne:i,menuFlipped:a}=e,[p,l]=useState(null),{i18n:s}=useTranslation(),[c,m]=useState(false),u=!!p,d=(t.merchants?.length??0)>0,f=o===r?.brandId&&t.id===r?.entityId,g=useCallback(h=>{d&&l(h.currentTarget);},[d]),x=useCallback(()=>{p&&l(null);},[p]),S=useCallback((h,y)=>{n({merchantId:y.id,brandId:o,entityId:h,legacyId:y.legacy_id});},[o,n]),C=useMemo(()=>{let h=[];return f&&h.push("Mui-selected"),i&&h.push("Mui-only-one"),a&&h.push("Mui-flipped"),u&&h.push("Mui-Submenu-open"),c&&h.push("Mui-Submenu-flipped"),h.join(" ")},[f,u,c,i,a]);return jsxs(tn,{"data-testid":"EntityItem",className:C,onMouseEnter:g,onMouseLeave:x,hideCheckbox:true,children:[jsxs(pa,{children:[jsxs(en,{children:[f?jsx("img",{src:Kc,alt:"Selected"}):jsx(Zo,{width:15}),jsx(a$u,{countryCode:t.country}),jsx("span",{children:c$4(t.legal_name,s.language)})]}),d&&jsxs(en,{children:[jsx(sa,{children:t.merchants?.length}),jsx("img",{src:qb,className:"arrow-icon",alt:"Expand"})]})]}),jsx(Xo,{open:u,anchorEl:p,placement:"right-start",modifiers:[{name:"placementTracker",enabled:true,phase:"write",fn({state:h}){m(h.placement==="left-start");}}],sx:{"& .MuiPopper-dropdown":{minWidth:"141px"}},children:jsx(ua,{items:t.merchants||[],onItemClick:(h,y)=>{h.stopPropagation(),S(t.id,y);},menuFlipped:c,value:r})})]})}var yy=memo(EB);var BB=e=>{let{items:t,brand:o,value:r,onChange:n,menuFlipped:i}=e;return jsx(Fragment,{children:t.map(a=>jsx(yy,{entity:a,brandId:o.id,selectedValue:r,onValueChange:n,onlyOne:t.length===1,menuFlipped:i},a.id))})},Ty=BB;function WB({brand:e,onClose:t,selectedValue:o,onValueChange:r,renderBrandLogo:n}){let[i,a]=useState(null),{i18n:p}=useTranslation(),[l,s]=useState(false),c=!!i,m=(e.entities?.length??0)>0,u=e.id===o?.brandId,d=useCallback(h=>{m&&a(h.currentTarget);},[m]),f=useCallback(()=>{i&&a(null);},[i]),g=useMemo(()=>{let h=[];return u&&h.push("Mui-selected"),c&&h.push("Mui-Submenu-open"),l&&h.push("Mui-Submenu-flipped"),h.join(" ")},[u,c,l]),x=e.entities?.length===1,S=e.entities?.[0],C=useCallback((h,y)=>{r({merchantId:y.id,brandId:e.id,entityId:h,legacyId:y.legacy_id}),t();},[e.id,r,t]);return jsxs(hp,{"data-testid":"BrandItem",className:g,onMouseEnter:d,onMouseLeave:f,hideCheckbox:true,children:[jsxs(pa,{sx:{gap:"2.5px"},"data-testid":"Content",children:[u?jsx("img",{src:Kc,alt:"Selected"}):jsx(Zo,{width:15}),n?.(e.logo),jsx(Is,{flex:1,noWrap:true,fontSize:"inherit",component:"span",children:c$4(e.name,p.language)}),m&&jsxs(en,{children:[jsx(sa,{children:e.entities.length}),jsx("img",{src:rb,height:10,className:"arrow-icon",alt:"Expand"})]})]}),jsx(Xo,{open:c,anchorEl:i,placement:"right-start",modifiers:[{name:"placementTracker",enabled:true,phase:"write",fn({state:h}){s(h.placement==="left-start");}}],sx:{"& .MuiPopper-dropdown":{minWidth:"157px"}},children:x?jsx(ua,{items:S?.merchants||[],onItemClick:(h,y)=>{h.stopPropagation(),C(S?.id,y);},menuFlipped:l,value:o}):jsx(Ty,{items:e.entities,value:o,onChange:h=>{t(),r(h);},brand:e,menuFlipped:l})})]})}var Iy=memo(WB);var zB=({isLoading:e,isSingleMerchant:t,isOpen:o})=>e?jsx(a$16,{}):t?null:jsx(uy,{src:xb,alt:"Toggle dropdown",expanded:o});function _B({brands:e,isLoading:t=true,label:o,sx:r,selectedValue:n,isDisabled:i,isFetchingNextPage:a,renderBrandLogo:p,onValueChange:l,showSearchInput:s}){let{anchorElement:c,isOpen:m,openMenu:u,closeMenu:d}=a$1a(),f=useRef(null),[g,x]=useState("");b$n(e,n,l);let S=useMemo(()=>c$d(e),[e]),C=S||i||t,h=useCallback(P=>{C||u(P);},[C,u]),y=useCallback(()=>{m&&d();},[m,d]),T=P=>{x(P);},v=()=>{x("");},b=useMemo(()=>g.trim()?e.filter(P=>c$4(P.name)?.trim().toLowerCase()?.includes(g.trim().toLowerCase())||P?.id?.toLowerCase().includes(g.trim().toLowerCase())):e,[g,e]),E=useMemo(()=>s?b:e,[e,b,s]);return jsx(TP,{onClickAway:y,children:jsxs(my,{isOpen:m,onClick:h,sx:{...C&&{pointerEvents:"none",opacity:.7},...r},ref:f,children:[jsx(cy,{noWrap:true,sx:{...o?.length>16&&{width:100}},children:o}),jsx(zB,{isLoading:t,isSingleMerchant:S,isOpen:m}),jsxs(Xo,{open:m,anchorEl:c,sx:{"& .MuiPopper-dropdown":{mt:"5px",overflowY:"auto",maxHeight:432,...f.current&&{width:f.current.offsetWidth??"auto"},minWidth:180}},children:[s&&e.length>1&&jsx(a$$,{placeholder:"Brands",name:"brands",value:g,onSearchChange:T,onSearchReset:v,sx:{px:"8px"}}),E?.map(P=>jsx(Iy,{brand:P,selectedValue:n,onClose:d,onValueChange:l,renderBrandLogo:p},P.id)),a&&jsx(dy,{children:jsx(a$1b,{isLoadingRow:true})})]})]})})}var $B=memo(_B);var My=styled$1(a$k)(()=>({marginTop:"-1px","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"}})),Ey=styled$1(a$h)(({theme:e})=>({height:40,flex:"unset",paddingTop:0,paddingBottom:0,borderBottom:`1px solid ${e.palette.divider}`,paddingLeft:"16px",maxHeight:"35px",".label":{flexGrow:1}}));function Qo({menuLabel:e,options:t,selectedValue:o,onValueChange:r}){let[n,i]=useState(null),[a,p]=useState(o),l=useRef(null);return useEffect(()=>{p(o);},[o]),jsxs(Ey,{ref:l,onMouseEnter:d=>{i(d.currentTarget);},onMouseLeave:()=>{i(null);},onClick:d=>{d.stopPropagation(),i(d.currentTarget);},hideCheckbox:true,children:[jsx("span",{className:"label",children:e}),jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(My,{open:!!n,anchorEl:n,placement:"right-start",children:jsx(a$2N,{options:t,value:a||"",onOptionChange:d=>{p(d),r(d);},defaultValue:t[0].value})})]})}var Ae=styled(a$g)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.subtitle1.fontSize,color:e.palette.grey[700],paddingInlineStart:e.spacing(2),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingInlineEnd:e.spacing(1),borderBottom:`1px solid ${e.palette.divider}`})),ke=styled(Box)(({theme:e})=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center",position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999,borderTop:`1px solid ${e.palette.divider}`})),De=styled(Button)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${e.palette.info.dark}`,backgroundColor:e.palette.info.dark,fontWeight:700,fontSize:"11px",color:e.palette.common.white,"&:hover":{backgroundColor:e.palette.info.dark}})),Le=styled(Button)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,fontWeight:500,fontSize:"11px",color:e.palette.text.primary,"&:hover":{background:"transparent"}}));function Dy({anchorEl:e,options:t,apiKey:o="statuses",initialStatuses:r,onCloseDropdown:n,onClear:i,onConfirm:a}){let p=!!e,{t:l}=useTranslation(),[s,c]=useState(()=>a$2O(r,t)),m=useRef(null),[u,d]=useState(null),[f,g]=useState(null),x=(T,v)=>{d(T.currentTarget),g(v);},S=useCallback(()=>{d(null),g(null);},[]),C=useCallback(T=>{n(T),S();},[S,n]),h=T=>{let v=Object.keys(s).reduce((E,P)=>{let k=s[P];return k!=="all"&&(E[P]=k),E},{});Object.values(s).every(E=>E==="all")?i([o]):a({[o]:v}),n(T);},y=T=>{f&&c(v=>({...v,[f]:T}));};return jsx(ClickAwayListener,{onClickAway:T=>{T.stopPropagation(),n(T);},children:jsxs(Zo,{ref:m,children:[jsxs(a$k,{open:p,anchorEl:e,children:[jsx(Ae,{component:"span",children:l("filterBy")}),t.map(({value:T,label:v})=>jsxs(a$h,{onClick:b=>{d(b.currentTarget);},onMouseOver:b=>{x(b,T);},sx:{minHeight:"35px",padding:"8px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer","&:hover":{backgroundColor:"#fff",boxShadow:"0px 0px 16px 0px #00000021"}},hideCheckbox:true,children:[jsx(Zo,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:v}),jsx(Zo,{component:"img",src:qb,width:16,height:12,sx:{marginLeft:"auto"}})]},T)),jsxs(ke,{children:[jsx(Le,{onClick:C,children:l("cancel")}),jsx(De,{onClick:h,children:l("okay")})]})]}),jsx(Popper,{open:!!u,anchorEl:u,placement:"right-start",onMouseLeave:S,children:jsx(Zo,{sx:{backgroundColor:"#fff",borderEndEndRadius:"8px",border:"1px solid #F2F2F2"},children:jsx(a$2N,{options:[{value:"all",label:"All"},{value:"enabled",label:"Enabled"},{value:"disabled",label:"Disabled"}],value:s[f||""],onOptionChange:y})})})]})})}function nA(e){let{progress:t,reportsQueryResult:o$1,isStatusReady:r,isStatusFailed:n,isLoading:i,notificationState:a,onOpenDropdown:p,onRequestReportFile:l,onOpenReportsApp:s,hideOpenReportsApp:c=false,onDownloadReport:m,customContent:u}=e,[d,f]=useState(null),{t:g}=useTranslation(),x=!!d,{data:S,isLoading:C}=o$1,h=useCallback(E=>{i||r||(p?.(),f(E.currentTarget));},[i,r,p]),y=useCallback(()=>{f(null);},[]),T=useCallback(()=>{i||(y(),l?.());},[i,y,l]),v=E=>{E.stopPropagation(),s?.(),y();},b=()=>i?jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:jsxs(n$2,{children:[jsxs(o,{children:[jsx(p$1,{children:"1"}),jsx(oA,{})]}),jsx("span",{children:g("preparing")}),jsx(m$1,{children:jsx(Pp,{variant:"determinate",value:t})})]})}):r?jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:jsxs(n$2,{children:[jsx("img",{src:be,alt:"done"}),jsx("span",{children:g("ready")}),jsx(m$1,{className:"done",children:jsx(Pp,{variant:"determinate",value:100})})]})}):n?jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:jsxs(n$2,{children:[jsx("img",{src:li,alt:"failed"}),jsx("span",{children:g("failed")}),jsx(m$1,{className:"failed",children:jsx(Pp,{variant:"determinate",value:100})})]})}):jsx("img",{src:ae,alt:"reports"});return jsxs(b$o,{"data-testid":"TableReports_ReportsWrapper",children:[jsx(AnimatePresence,{children:jsx(a$6,{title:g("reports"),children:jsx(a$1c,{"data-testid":"TableReports_ExportButton",onClick:h,notificationState:a,open:x,loading:i,ready:r,failed:n,sx:{...(i||r||n)&&{borderBottom:"none"}},initial:{width:"auto"},transition:{duration:.25},children:b()})})}),x&&jsx(a$E,{onClick:y}),jsx(BP,{open:x,anchorEl:d,placement:"bottom-end",children:jsxs(c$e,{sx:{width:208},children:[u?.({closeDropdown:y})??jsxs(j$1,{onClick:T,children:[jsx("img",{src:Zd,alt:"download"}),jsx(k$1,{children:"csv"})]}),jsx(a$1d,{reports:S?.reports??[],isLoading:C,onDownloadReport:m}),!c&&jsx(d$6,{onClick:v,children:g("openReportsApp")})]})})]})}var Ly=memo(nA);function pA({onDownload:e}){let{loading:t,error:o,success:r,handleDownloadReport:n}=a$1e({onDownload:e}),{t:i}=useTranslation(),a=!t&&!o&&!r;return jsx(a$1f,{onClick:n,children:jsxs(AnimatePresence,{mode:"wait",initial:false,children:[t&&jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{display:"flex",alignItems:"center"},children:jsx(oA,{size:"10px",sx:{color:"rgba(255, 255, 255, 0.62)"}})},"loading"),!!o&&jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:jsx(a$z,{src:Bk$1,sx:{width:"auto",height:"auto"},alt:"error"})},"error"),a&&jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:i("download")},"text")]})})}var Ry=memo(pA);var cA=Ry;var uA=Ly;var Re=styled$1(a$h)(({theme:e})=>({height:40,flex:"unset",paddingTop:0,paddingBottom:0,borderBottom:`1px solid ${e.palette.divider}`,".label":{flexGrow:1}})),Wy=styled$1(Zo)(({theme:e})=>({width:36,height:24,border:`1px solid ${e.palette.divider}`,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px"}));function ha({type:e}){return jsx(Wy,{children:jsx(Zo,{component:"img",src:h$a(e),sx:{width:18,height:12,objectFit:"contain"},onError:t=>{t.currentTarget.src=h$a("card");}})})}function Ep({icon:e,name:t,options:o=[],filters:r,setFilters:n}){let[i,a]=useState(null),p=r?.payment_methods??[],l=g=>{a(g.currentTarget);},s=()=>{a(null);},c=useCallback(g=>p.includes(g)??false,[p.length]),m=useMemo(()=>o?.every(g=>c(g.type)),[p.length]),u=useMemo(()=>!m&&o?.some(g=>c(g.type)),[p.length]),d=g=>{if(g.stopPropagation(),m){let x=o?.reduce((h,y)=>h.filter(T=>T!==y.type),p)??[],{payment_methods:S,...C}=r;n(x?.length>0?{...r,payment_methods:x}:C);}else n({...r,payment_methods:[...p,...o?.map(x=>x.type)??[]]});},f=(g,x)=>{g.stopPropagation(),c(x)?n({...r,payment_methods:p?.filter(S=>S!==x)??[]}):n({...r,payment_methods:[...p??[],x]});};return jsxs(Re,{isSelected:m,isIndeterminate:u,onMouseEnter:l,onMouseLeave:s,onClick:d,children:[jsx("img",{src:e,alt:t}),jsx("span",{className:"label",children:t}),jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(a$k,{open:!!i,anchorEl:i,placement:"right-end",children:o?.map(g=>jsx(Re,{isSelected:c(g.type),onClick:x=>f(x,g.type),children:jsx(ha,{type:g.type})},g.type))})]})}function Sa({paymentMethodsSource:e,filters:t,setFilters:o}){let[r,n]=useState(null),i=t?.payment_methods??[],a=!e?.options?.length,p=d=>{n(d.currentTarget);},l=()=>{n(null);},s=useMemo(()=>(e?.options??[])?.reduce((d,f)=>(d.push(...(f.options??[])?.map(g=>g.type)??[]),d),[])??[],[]),c=useMemo(()=>s?.length===i.length&&i.length>0,[i.length,s?.length]),m=useMemo(()=>!c&&i.length>0,[i.length,c]);return jsxs(Re,{isSelected:c,isIndeterminate:m,onMouseEnter:p,onMouseLeave:l,onClick:()=>{if(!a){if(c){let{payment_methods:d,...f}=t;o(f);return}o({...t,payment_methods:s});}},sx:{...a&&{opacity:.5,pointerEvents:"none"}},children:[jsx("span",{className:"label",children:e?.name}),jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(a$k,{open:!!r,anchorEl:r,placement:"right-start",children:e?.options?.map(d=>jsx(Ep,{...d,filters:t,setFilters:o},d.type))})]})}function Ta({paymentSchemesSource:e,filters:t,setFilters:o}){let[r,n]=useState(null),i=t?.payment_scheme??[],a=!e?.options?.length,p=f=>{n(f.currentTarget);},l=()=>{n(null);},s=useMemo(()=>i?.length===e?.options?.length&&i.length>0,[i?.length,e?.options?.length]),c=useMemo(()=>!s&&i.length>0,[i.length,s]),m=useCallback(f=>i.includes(f)??false,[i]),u=()=>{if(!a){if(s){let{payment_scheme:f,...g}=t;o(g);return}o({...t,payment_scheme:e?.options?.map(f=>f.type)??[]});}},d=(f,g)=>{f.stopPropagation(),m(g)?o({...t,payment_scheme:i.filter(x=>x!==g)??[]}):o({...t,payment_scheme:[...t?.payment_scheme??[],g]});};return jsxs(Re,{isSelected:s,isIndeterminate:c,onMouseEnter:p,onMouseLeave:l,onClick:u,sx:{...a&&{opacity:.5,pointerEvents:"none"}},children:[jsx("span",{className:"label",children:e?.name}),jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(a$k,{open:!!r,anchorEl:r,placement:"right-start",children:e?.options?.map(f=>jsx(Re,{isSelected:m(f.type),onClick:g=>d(g,f.type),children:jsx(ha,{type:f.type})},f.type))})]})}function Ia({filters:e,setFilters:t}){let[o,r]=useState(null),{t:n}=useTranslation(),i=useMemo(()=>e?.payment_initiated??[],[e?.payment_initiated]),a=u=>{r(u.currentTarget);},p=()=>{r(null);},l=useCallback(u=>i.includes(u),[i]),s=i?.length===e$p.length,c=()=>{t?.({...e,payment_initiated:s?[]:e$p.map(({key:u})=>u)});},m=u=>{t?.({...e,payment_initiated:l(u)?i?.filter(d=>d!==u):[...i,u]});};return jsxs(Re,{onMouseEnter:a,onMouseLeave:p,isSelected:s,isIndeterminate:i.length===1,onClick:c,children:[jsx("span",{className:"label",children:n("paymentInitiated")}),jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(a$k,{open:!!o,anchorEl:o,placement:"right-start",children:e$p.map(({label:u,key:d})=>jsx(a$h,{isSelected:l(d),onClick:f=>{f.stopPropagation(),m(d);},children:u},d))})]})}function zy({filters:e,setFilters:t,anchorEl:o,showPaymentSchemes:r=true,showPaymentMethods:n=true,showPaymentInitiated:i=true,paymentMethodsSource:a,paymentSchemesSource:p,onCloseDropdown:l,onConfirm:s}){let{t:c}=useTranslation(),m=!!o,u=d=>{s?.(),l(d);};return jsxs(a$k,{open:m,anchorEl:o,sx:{marginTop:"8px",marginBottom:"8px"},children:[jsx(Ae,{component:"span",children:c("filterBy")}),n&&jsx(Sa,{filters:e,setFilters:t,paymentMethodsSource:a}),r&&jsx(Ta,{filters:e,setFilters:t,paymentSchemesSource:p}),i&&jsx(Ia,{filters:e,setFilters:t}),jsxs(ke,{children:[jsx(Le,{onClick:l,children:c("cancel")}),jsx(De,{onClick:u,children:c("okay")})]})]})}var kp=[{label:d$2.C,value:"C"},{label:d$2.F,value:"F"}],kA=({filters:e,setFilters:t})=>{let[o,r]=useState(null),n=!!o,i=e?.auth_mode??[],a=f=>{n||r(f.currentTarget);},p=()=>{n&&r(null);},l=useMemo(()=>kp.map(f=>f.value),[]),s=useMemo(()=>kp.length===i.length&&i.length>0,[i.length,l?.length]),c=useMemo(()=>!s&&i.length>0,[i.length,s]),m=()=>{if(s){let{auth_mode:f,...g}=e;t(g);return}t({...e,auth_mode:l});},u=useCallback(f=>i.includes(f)??false,[i.length]),d=(f,g)=>{f.stopPropagation(),u(g)?t({...e,auth_mode:i?.filter(x=>x!==g)??[]}):t({...e,auth_mode:[...i??[],g]});};return jsxs(Re,{isSelected:s,isIndeterminate:c,onMouseEnter:a,onMouseLeave:p,onClick:m,children:[jsx("span",{className:"label",children:"Authentication Mode"}),jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(a$k,{open:n,anchorEl:o,placement:"right-start",children:kp.map(f=>jsxs(a$h,{isSelected:u(f.value),onClick:g=>d(g,f.value),children:[jsx(a$2P,{mode:f.value}),f.label]},f.value))})]})};var Ite=styled$1(Zo)(()=>({paddingBlock:"8px",display:"flex",gap:"12px",flexDirection:"column"})),DA=styled$1(a$g)(()=>({fontSize:"11px"})),$y=styled$1(a$k)(()=>({marginTop:"8px",marginBottom:"8px"})),Uy=styled$1(Zo)(()=>({display:"flex",alignItems:"center",gap:"4px",width:"100%",paddingInline:"16px"})),Gy=styled$1(Zo)(({theme:e})=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"flex-end",position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999,borderTop:`1px solid ${e.palette.divider}`})),qy=styled$1(a$l)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:70,borderRadius:"4px",border:`1px solid ${e.palette.info.dark}`,backgroundColor:e.palette.info.dark,fontWeight:700,fontSize:"11px",color:e.palette.common.white,"&:hover":{backgroundColor:e.palette.info.dark},"&.Mui-disabled":{color:"#fff !important",opacity:.5}})),Yy=styled$1(a$l)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:70,borderRadius:"4px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,fontWeight:500,fontSize:"11px",color:e.palette.text.primary,"&:hover":{background:"transparent"}})),Ky=styled$1(Zo)(()=>({display:"flex",flexDirection:"column",gap:"8px",marginBottom:"8px"})),Dp=styled$1(DA)(()=>({fontSize:"11px",fontWeight:500,color:"#8D8D94",padding:"8px 16px"})),Jy=styled$1(Zo)(({theme:e})=>({borderBlock:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",gap:"2px",width:"100%"})),Zy=styled$1(a$l,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:500,padding:t.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:t.palette.divider,background:t.palette.common.white,textTransform:"none",width:"100%",height:32,justifyContent:"space-between",gap:"4px",...e&&{border:"1px solid",borderColor:t.palette.info.dark,boxShadow:t.shadows[7]}})),Xy=styled$1(Zo)(({theme:e})=>({background:e.palette.grey[700],width:27,height:14,display:"inline-flex",alignItems:"center",marginInlineStart:"4px",borderRadius:"10px",padding:"2px 6px",img:{cursor:"pointer"}}));function jy({title:e="Date",dateRange:t,onDateRangeChange:o,calendarMode:r,onCalendarModeChange:n,timezone:i,browserTimezone:a,defaultCountryTimezone:p,onTimezoneChange:l,timezoneCountriesCodes:s=[],onConfirm:c,onClear:m}){let{t:u}=useTranslation(),[d,f]=useState(null),g=!!d,x=v=>f(v.currentTarget),S=()=>f(null),C=()=>S(),h=()=>{S(),c(t);},y=useCallback(v=>n(v),[n]),T=v=>{if(!v)return "";let[b,E]=v,P=vC(b).format("MMM D"),k=vC(E).format("MMM D");return P===k?P:`${P} - ${k}`};return jsx(TP,{onClickAway:S,children:jsxs(Zo,{children:[jsxs(Zo,{sx:{cursor:"pointer",display:"flex",alignItems:"center",gap:"4px"},onClick:x,children:[e,t?jsxs(Xy,{children:[jsx(Zo,{component:"img",src:Zg$1,alt:"filter-icon",sx:{marginInlineEnd:"2px",height:6},onClick:x}),jsx(Zo,{component:"img",src:Na,alt:"close-icon",onClick:m})]}):jsx(Zo,{component:"img",src:za,alt:"column-icon",sx:{cursor:"pointer",marginTop:"2px"}})]}),jsxs($y,{open:g,anchorEl:d,placement:"bottom-start",children:[jsxs(Ky,{children:[jsx(Jy,{children:jsx(Dp,{component:"span",children:u("filterBy")})}),jsx(Uy,{children:jsx(Hr,{defaultDate:t||e$q(0),onDateChange:o,maxDateRange:365,mode:r,onCalendarModeSwitch:y,browserTimezone:a,defaultCountryTimezone:p,timezone:i,onChangeTimezone:l,timezoneCountriesCodes:s,mainSx:{width:"100%"},popperProps:{placement:"right-start"},renderCalendarButton:(v,b)=>jsxs(Zy,{open:v,onClick:b,children:[jsx("span",{children:T(t)||"Date"}),jsx(a$z,{src:Ii,alt:"selected",sx:{width:16,height:16}})]})},T(t))}),t&&jsx(Dp,{component:"span",sx:{color:"#1F88D0",padding:"4px 24px"},onClick:()=>o(void 0),children:"Clear"})]}),jsxs(Gy,{children:[jsx(Yy,{onClick:C,children:u("cancel")}),jsx(qy,{onClick:h,children:u("okay")})]})]})]})})}var SS=c$2(yS(),1);function TS({selectedCurrencies:e,onCurrenciesChange:t,merchantCurrencies:o,anchorEl:r,onCloseDropdown:n,onConfirm:i}){let a=!!r,{t:p}=useTranslation(),l=useMemo(()=>(0, SS.default)(o,"currencyCode"),[o]),s=u=>{i(e),n(u);},c=u=>e?.includes(u)??false,m=u=>{if(e?.indexOf(u)!==-1){let d=e?.filter(f=>f!==u)??[];t(d.length>0?d:[]);return}t([...e,u]);};return jsxs(a$k,{open:a,anchorEl:r,sx:{marginTop:"8px",marginBottom:"8px"},children:[jsx(Ae,{component:"span",children:p("filterBy")}),l.map(({currencyCode:u})=>jsxs(a$h,{isSelected:c(u),onClick:()=>{m(u);},children:[jsx(a$u,{currencyCode:u}),u]},u)),jsxs(ke,{children:[jsx(Le,{onClick:n,children:p("cancel")}),jsx(De,{onClick:s,children:p("okay")})]})]})}var ck=styled$1(a$h)(({theme:e})=>({height:40,flex:"unset",paddingTop:0,paddingBottom:0,borderBottom:`1px solid ${e.palette.divider}`,".label":{flexGrow:1}})),bS=styled$1(a$k)(()=>({marginBottom:"8px"})),ioe=styled$1(a$k)(()=>({marginTop:"-1px","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"}})),IS=styled$1(a$k)(()=>({"& .MuiMenuItem-root:hover":{boxShadow:"0px 0px 16px 0px #00000021"}})),vS=styled$1(a$h)(({theme:e})=>({height:40,flex:"unset",paddingTop:0,paddingBottom:0,borderBottom:`1px solid ${e.palette.divider}`,paddingLeft:"16px",maxHeight:"35px",".label":{flexGrow:1}})),wS=styled$1(ck)(()=>({gap:"8px",paddingInline:"16px",paddingY:"8px",maxHeight:"35px","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"}}));function Fp({selectedCurrencies:e=[],onCurrenciesChange:t,merchantCurrencies:o}){let{t:r}=useTranslation(),[n,i]=useState(null),a=useRef(null),p=useMemo(()=>[...new Set(o.map(f=>f.currencyCode))],[o]),l=d=>{i(d.currentTarget);},s=()=>{i(null);},c=()=>{a.current&&i(a.current);},m=d=>{let f=e.includes(d)?e.filter(x=>x!==d):[...e,d],g=f.length>0?f:[];t(g);},u=d=>e.includes(d);return jsxs(vS,{ref:a,onMouseEnter:l,onMouseLeave:s,hideCheckbox:true,children:[jsx("span",{className:"label",children:r("Currency")}),jsx("img",{src:qb,alt:"arrow",style:{height:12}}),jsx(IS,{open:!!n,anchorEl:n,placement:"right-start",onMouseEnter:c,onMouseLeave:s,children:p.map(d=>jsxs(wS,{isSelected:u(d),onClick:f=>{f.stopPropagation(),m(d);},children:[jsx(a$u,{currencyCode:d}),d]},d))})]})}function ES({anchorEl:e,onCloseDropdown:t,options:o,label:r,onConfirm:n,onClear:i,selectedCurrencies:a,onCurrenciesChange:p,selectedRadioValue:l,onRadioButtonChange:s,showCurrencyMenu:c,merchantCurrencies:m}){let u=!!e,{t:d}=useTranslation(),f=x=>{n(),t(x);},g=x=>{i(),t(x);};return jsxs(bS,{open:u,anchorEl:e,children:[jsx(Ae,{component:"span",children:d("filterBy")}),jsx(Qo,{menuLabel:r,options:o,selectedValue:l,onValueChange:s}),c&&jsx(Fp,{selectedCurrencies:a,onCurrenciesChange:p,merchantCurrencies:m}),jsxs(ke,{children:[jsx(Le,{onClick:g,children:d("cancel")}),jsx(De,{onClick:f,children:d("okay")})]})]})}function kS({options:e,selectedFilters:t,onChange:o}){let[r,n]=useState(null),[i,a]=useState(null),p=useCallback(()=>{n(null),a(null);},[]),l=m=>m==="all"?void 0:m==="enabled",s=m=>{i&&o({[i]:l(m)});},c=useMemo(()=>{let m=t?.[i||""];return m===void 0?"all":m?"enabled":"disabled"},[t,i]);return jsxs(Fragment,{children:[e.map(({label:m,value:u},d)=>jsxs(a$h,{onMouseOver:f=>{n(f.currentTarget),a(u);},sx:{minHeight:"35px",padding:"8px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer","&:hover":{backgroundColor:"#fff",boxShadow:"0px 0px 16px 0px #00000021"},...d===e.length-1&&{borderBottom:"1px solid #F2F2F2"}},hideCheckbox:true,children:[jsx(Zo,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:m}),jsx(Zo,{component:"img",src:qb,width:16,height:12,sx:{marginLeft:"auto"}})]},u)),jsx(Popper,{open:!!r,anchorEl:r,placement:"right-start",onMouseLeave:p,children:jsx(Zo,{sx:{backgroundColor:"#fff",borderEndEndRadius:"8px",border:"1px solid #F2F2F2"},children:jsx(a$2N,{options:[{value:"all",label:"All"},{value:"enabled",label:"Available"},{value:"disabled",label:"Not Available"}],value:c,onOptionChange:s})})})]})}var HS=c$2(a$m(),1);var LS=styled$1(a$k)(()=>({marginBottom:"8px"})),RS=styled$1(a$i)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,".icon":{width:14}})),FS=styled$1(Zo)(()=>({padding:"8px 16px","> div + div":{marginTop:"8px"}})),WS=styled$1(lx)(({theme:e})=>({color:e.palette.info.dark,fontSize:"11px",textTransform:"capitalize",padding:"4px 9px",minWidth:"auto","&:hover":{background:"transparent"}})),NS=styled$1(Zo)(({theme:e})=>({padding:"0 16px 8px",textAlign:"left",borderBottom:`1px solid ${e.palette.divider}`}));function OS({selectedRadioValue:e,onRadioButtonChange:t,radioOptions:o,label:r,onConfirm:n,onClear:i,inputValues:a,onInputValuesChange:p,anchorEl:l,onCloseDropdown:s,inputFilters:c=[]}){let{t:m}=useTranslation(),u=C=>{n(),s(C);},d=C=>{i(),s(C);},f=C=>a?.[C]!==void 0&&a?.[C].length>0,g=C=>{f(C)&&p({...a,[C]:""});},x=useMemo(()=>(0, HS.default)(a).some(C=>!!C),[a]),S=()=>{p(c.reduce((C,{apiKey:h})=>({...C,[h]:""}),{}));};return jsxs(LS,{open:!!l,anchorEl:l,children:[jsx(Ae,{component:"span",children:m("filterBy")}),jsx(Qo,{menuLabel:r,options:o,selectedValue:e,onValueChange:t}),c.length>0&&jsx(FS,{"data-testid":"ColumnFilterInputs_inputs",component:"main",children:c.map(({apiKey:C,placeholder:h})=>jsx(RS,{className:"input","data-testid":"ColumnFilterInputs_InputStyled",name:C,placeholder:h,onChange:y=>{p({...a,[C]:y.target.value});},defaultValue:a?.[C]??"",value:a?.[C],inputProps:{autoComplete:"off","data-testid":"ColumnFilterInputs_input"},endAdornment:jsx(Box,{component:"img","data-testid":"ColumnFilterInputs_icon","data-icon":f(C)?"close":"search",src:f(C)?_g:y,alt:"search",className:"icon",sx:{cursor:f(C)?"pointer":"default"},onClick:()=>{g(C);}})},C))}),jsx(Collapse,{in:x,component:"section","data-testid":"ColumnFilterInputs_Collapse",children:jsx(NS,{"data-testid":"ColumnFilterInputs_ClearWrapper",children:jsx(WS,{type:"button",onClick:S,"data-testid":"ColumnFilterInputs_ClearButton",children:m("clear")})})}),jsxs(ke,{children:[jsx(Le,{onClick:d,children:m("cancel")}),jsx(De,{onClick:u,children:m("okay")})]})]})}var zS=styled$1(Zo)(()=>({maxHeight:"210px",maxWidth:"177px",overflowY:"auto",padding:0})),_S=styled$1(a$h)(()=>({padding:"12px 16px",border:"none !important","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},maxHeight:35,minHeight:35})),$S=styled$1(Zo)(()=>({display:"flex",flexDirection:"column",gap:"2px"})),US=styled$1(Zo)(({theme:e})=>({color:alpha(e.palette.text.primary,.5),fontSize:"9px"})),GS=styled$1(Zo)(()=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"120px"})),qS=styled$1(a$k)(()=>({marginBottom:"8px"}));function KS({anchorEl:e,onCloseDropdown:t,list:o,apiKey:r,placeholder:n,onConfirm:i,onClear:a,onClickItem:p,inputValue:l,onInputValueChange:s,selectedListItems:c}){let{t:m}=useTranslation(),u=y=>{i(),t(y);},d=y=>{a(),t(y);},f=!!l.trim().length,g=()=>{f&&s("");},x=y=>{s(y);},S=useMemo(()=>f?o?.filter(y=>y.name.toLowerCase().includes(l.trim().toLowerCase())):o,[l,f,o]),C=f&&!S.length||!o.length,h=useMemo(()=>new Set(c),[c]);return jsxs(qS,{open:!!e,anchorEl:e,children:[jsx(Ae,{component:"span",children:m("filterBy")}),!!o?.length&&jsx(a$$,{value:l,name:r,placeholder:n,onSearchChange:x,onSearchReset:g}),jsx(zS,{children:C?jsx(Box,{sx:{p:1,textAlign:"center",fontSize:"11px"},children:"No data available"}):S?.map((y,T)=>jsx(_S,{isSelected:h.has(y?.id),onClick:()=>{p(y?.id);},children:jsxs($S,{children:[jsx(GS,{children:y.name}),jsx(US,{component:"span",children:y.id})]})},`${y.id}-${T}`))}),jsxs(ke,{children:[jsx(Le,{onClick:d,children:m("cancel")}),jsx(De,{onClick:u,children:m("okay")})]})]})}var ZS=c$2(a$d(),1);var Bk=({status:e})=>jsx(a$6,{title:(0, ZS.default)(e),children:jsx("img",{loading:"lazy",src:a$2Q[e?.toLowerCase()||""]||a$2Q.default,alt:e,width:10.5,height:10.5})});var yre=styled$1("img",{shouldForwardProp:e=>e!=="expanded"})(({theme:e,expanded:t})=>({transform:t?"rotate(180deg)":"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})})),Sre=styled$1(Zo)(()=>({display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"4px",borderTop:"1px solid #F2F2F2"})),Vp=styled$1(a$h)({minWidth:120,minHeight:36,maxHeight:36,paddingTop:0,paddingBottom:0,backgroundColor:"#fff","--menuitem-border-rad":"4px","&:hover":{boxShadow:"0px 0px 16px rgba(0, 0, 0, 0.13)",zIndex:1}}),Hp=styled$1(e=>jsx(Vp,{hideCheckbox:true,...e}))(({theme:e})=>({fontSize:11,fontWeight:500,color:e.palette.grey[700],minHeight:36,maxHeight:"auto",cursor:"auto",":hover":{boxShadow:"none",zIndex:1}}));var eT=styled$1(a$n)(({theme:e})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(e.palette.common.black,.26)}}})),tT=styled$1(a$o)({padding:0}),oT=styled$1(Zo)(()=>({display:"flex",gap:"8px",justifyContent:"space-between",flexGrow:1,width:"100%",alignItems:"center",minWidth:0})),rT=styled$1(e=>jsx(Is,{noWrap:true,component:"span",...e}))(({theme:e})=>({flex:1,fontSize:"inherit",width:"100%",display:"inline-block",color:e.palette.text.primary})),nT=styled$1(e=>jsx(Is,{noWrap:true,...e}))(({theme:e})=>({color:alpha(e.palette.text.primary,.5),fontSize:8})),iT=styled$1(Zo,{shouldForwardProp:e=>e!=="isOneDigit"})(({theme:e,isOneDigit:t=true})=>({borderRadius:t?"50%":"4px",background:e.palette.divider,width:t?13:"auto",height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px",...!t&&{padding:"0 3px"}})),aT=styled$1("img")(()=>({height:12}));var Lk=e=>{let{checked:t,indeterminate:o,onSelect:r}=e,{multiple:n}=a$1x(),i=useCallback(a=>{a.stopPropagation(),r(a);},[r]);return n?jsx(eT,{size:"small",checked:t,indeterminate:o,onChange:i}):jsx(tT,{size:"small",checked:t,onChange:i})},pT=Lk;var Nk=e=>{let{renderItem:t,header:o,footer:r,...n}=e,{treeMapper:i,handleSelect:a,multiple:p,IconComponent:l}=a$1x(),{label:s,icon:c,iconComponent:m,levelIndex:u=0,children:d,nestedMenuSx:f,hintText:g,disableHovering:x,itemProps:S,searchProps:C,subLevelKey:h}=n,[y,T]=useState(null),v=!!d,b=d?.length,E=useCallback(X=>{x||T(X.currentTarget);},[x]),P=useCallback(()=>{x||T(null);},[x]);useEffect(()=>{x&&T(null);},[x]);let k=useMemo(()=>m||(c&&l?jsx(l,{fileId:c.fileId,width:c.width??20,height:c.height??20}):null),[m,c,l]),M=i[n.id]?.status==="CHECKED",N=p?i[n.id]?.status==="INDETERMINATE":false,R=p||!v,Y=useCallback(X=>{X.stopPropagation(),a(X.target.checked,n);},[a,n]);return jsxs(Vp,{hideCheckbox:true,onMouseEnter:E,onMouseLeave:P,"data-testid":n.id,onClick:()=>{a(!M,n);},...S,children:[t?t({nodeProps:n,checked:M,indeterminate:N,onSelect:Y}):jsxs(oT,{width:"100%","data-testid":"Content",children:[R&&jsx(pT,{checked:M,indeterminate:N,onSelect:Y}),k,jsxs(Stack,{flex:1,width:"100%",minWidth:0,children:[jsx(rT,{title:typeof s=="string"?s:void 0,children:s}),g&&jsx(nT,{title:typeof g=="string"?g:void 0,children:g})]}),jsxs(Stack,{direction:"row",alignItems:"center",spacing:.5,children:[b&&jsx(iT,{isOneDigit:Math.floor(b/10)===0,children:b}),v&&jsx(aT,{src:rb,alt:"Expand"})]})]}),!!d&&jsx(Aa,{anchorEl:y,menuItems:d,levelIndex:u+1,sx:f,header:o,levelKey:h,footer:r,searchProps:C})]})},cT=Nk;var uT=cT;var dT=styled$1(a$k)({maxHeight:"100%"}),fT=styled$1("div")({position:"relative","&:before, &:after":{display:"none"},"&.scrollable":{position:"relative","&::before, &::after":{display:"block",content:'""',position:"absolute",left:0,width:"100%",height:"20px",opacity:1,pointerEvents:"none",zIndex:2,transition:"opacity 0.3s ease-out"},"&::before":{top:0,background:"linear-gradient(to top, transparent, rgba(255, 255, 255, 1))"},"&::after":{bottom:0,background:"linear-gradient(to bottom, transparent, rgba(255, 255, 255, 1))"}},"&.scrolled-to-top":{"&::before":{opacity:0}},"&.scrolled-to-bottom":{"&::after":{opacity:0}}}),gT=styled$1("ul")({listStyle:"none",padding:0,margin:0,maxHeight:300,overflow:"auto"}),CT=styled$1(a$i)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,"& .MuiInputBase-input":{color:"#000000"},".icon":{width:14}}));var zk=({children:e,onScroll:t})=>{let o=useRef(null),{scrolledToBottom:r,scrolledToTop:n,scrollable:i,handleScroll:a}=a$1w({containerRef:o}),p=useMemo(()=>[r&&"scrolled-to-bottom",n&&"scrolled-to-top",i&&"scrollable"].filter(Boolean).join(" "),[r,n,i]),l=useCallback(s=>{t(s),a(s);},[t,a]);return jsx(fT,{sx:{position:"relative"},className:p,children:jsx(gT,{ref:o,onScroll:l,children:e})})},hT=zk;var Kk=e=>{let{anchorEl:t,sx:o,levelIndex:r=0,placement:n,menuItems:i,header:a,footer:p,levelKey:l,searchProps:s}=e,[c,m]=useState(false),u=!!t,d=!!s,{searchText:f,filteredItems:g,handleSearch:x,handleReset:S}=a$1g({...s,enabled:d,items:i}),C=useRef(),h=useCallback(()=>{m(true),clearTimeout(C.current),C.current=setTimeout(()=>{m(false);},100);},[]);return useEffect(()=>()=>clearTimeout(C.current),[]),jsx(dT,{open:u,anchorEl:t,placement:r>0?"right-start":n,"data-level":r,"data-level-key":l,onClick:y=>y.stopPropagation(),sx:{...o,"&.MuiPopper-dropdown":{"&:after":{display:"none"}}},children:jsxs(ST,{divider:jsx(yT,{flexItem:true}),children:[a&&jsx(Hp,{children:a}),d&&jsxs(ST,{divider:jsx(yT,{flexItem:true,sx:{my:1}}),children:[jsx(Zo,{sx:{p:1},children:jsx(CT,{...s?.inputProps,placeholder:s?.inputProps?.placeholder??"Search...",onChange:x,value:f,inputProps:{autoComplete:"off"},endAdornment:jsx(Zo,{component:"img","data-icon":f?"close":"search",src:f?_g:y,alt:"search",className:"icon",...f&&{sx:{cursor:"pointer"}},onClick:S})})}),g.length===0&&s?.noResultsText&&jsx(Is,{component:"div",fontSize:10,color:y=>alpha(y.palette.text.primary,.4),textAlign:"center",minHeight:36,fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center",children:jsx("span",{children:"No results found"})})]}),jsx(hT,{onScroll:h,children:g.map((y,T)=>jsx(uT,{disableHovering:c,...y,levelIndex:r,subLevelKey:y.levelKey,nestedMenuSx:o},`${r}-${y.id}-${T}`))}),p&&jsx(Hp,{children:p})]})})},Aa=Kk;var tD=forwardRef((e$1,t)=>{let{anchorEl:o,placement:r="bottom-start",treeDefinition:n,sx:i,onChange:a,multiple:p=true,exposeOnlySelectedTree:l$1=false,IconComponent:s,onMounted:c}=e$1,{children:m$1=[]}=n,u=useMemo(()=>m(n),[n]),{header:d,footer:f,children:g=[],searchProps:x,levelKey:S}=u,[C,h]=useState({}),y=useRef(c);y.current=c;let T=useCallback(()=>l.denormalizeTree(m$1,C),[m$1,C]),v=useCallback(()=>l.extractSelectedBranches(T()),[T]),b=useCallback((P,k)=>{let M=j(C,k.id,P,p);h(M),a&&a(l$1?l.extractSelectedBranches(l.denormalizeTree(m$1,M)):l.denormalizeTree(m$1,M));},[a,m$1,C,p,l$1]),E=useCallback(P=>{let M=((N,R)=>{let Y={...N};return Object.keys(Y).forEach(X=>{Y[X]={...Y[X],status:R?"CHECKED":"UNCHECKED"};}),Y})(C,P);h(M),a&&a(l$1?l.extractSelectedBranches(l.denormalizeTree(m$1,M)):l.denormalizeTree(m$1,M));},[C,a,m$1,l$1]);return useEffect(()=>{let P=e(m$1||[],p);h(P);let k=l.denormalizeTree(m$1,P),M=l.extractSelectedBranches(k);y.current?.({state:P,tree:k,selectedTree:M});},[m$1,p]),useImperativeHandle(t,()=>({treeMapper:C,getFullTree:T,getSelectedTree:v,toggleAll:E}),[C,T,v,E]),jsx(b$4,{treeMapper:C,IconComponent:s,handleSelect:b,multiple:p,children:jsx(Aa,{anchorEl:o,sx:i,header:d,footer:f,menuItems:g,levelKey:S,searchProps:x,placement:r})})}),vT=tD;var np=vT;var Ul=styled$1(Zo,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:t})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:t?a$p:"16px",height:"100%",overflow:"auto"})),Gl=styled$1(Zo)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),Sg=styled$1(Zo,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"}));export{Yg as $,Zv as $a,zx as $b,ie as $c,Ite as $d,CT as $e,fL as A,_I as Aa,ix as Ab,Th as Ac,ua as Ad,NS as Ae,Po as B,uC as Ba,ws as Bb,bh as Bc,yy as Bd,OS as Be,ob as C,fC as Ca,mx as Cb,Ih as Cc,Ty as Cd,zS as Ce,ib as D,gC as Da,Ps as Db,vh as Dc,Iy as Dd,_S as De,sb as E,CC as Ea,Ms as Eb,wh as Ec,$B as Ed,$S as Ee,cb as F,xC as Fa,Cx as Fb,Qs as Fc,My as Fd,US as Fe,db as G,QV as Ga,Vi as Gb,Ji as Gc,Ey as Gd,GS as Ge,gb as H,jV as Ha,tM as Hb,tp as Hc,Qo as Hd,qS as He,LR as I,hC as Ia,yx as Ib,Eh as Ic,Ae as Id,KS as Ie,bb as J,yC as Ja,oM as Jb,op as Jc,ke as Jd,Bk as Je,Mb as K,ls as Ka,Ix as Kb,Lh as Kc,De as Kd,yre as Ke,di as L,ov as La,vx as Lb,Wh as Lc,Le as Ld,Sre as Le,fi as M,nv as Ma,Es as Mb,Hh as Mc,Dy as Md,Vp as Me,gi as N,av as Na,Mx as Nb,cE as Nc,Ly as Nd,Hp as Ne,Vg as O,mv as Oa,As as Ob,Oh as Oc,Ry as Od,eT as Oe,Eo as P,dv as Pa,ks as Pb,zh as Pc,cA as Pd,tT as Pe,Gt as Q,xv as Qa,Bx as Qb,$h as Qc,uA as Qd,oT as Qe,Hg as R,Sv as Ra,Ax as Rb,yE as Rc,Re as Rd,rT as Re,zg as S,vv as Sa,Dx as Sb,Uh as Sc,Wy as Sd,nT as Se,$g as T,Pv as Ta,Lx as Tb,ip as Tc,ha as Td,iT as Te,zb as U,Bv as Ua,Fx as Ub,WJ as Uc,Ep as Ud,aT as Ue,Ub as V,Ei as Va,Hr as Vb,qh as Vc,Sa as Vd,pT as Ve,Gg as W,MC as Wa,Wx as Wb,_J as Wc,Ta as Wd,cT as We,qg as X,Vv as Xa,Nx as Xb,Bt as Xc,Ia as Xd,uT as Xe,Xl as Y,zv as Ya,Vs as Yb,qo as Yc,zy as Yd,dT as Ye,Ql as Z,Uv as Za,Hs as Zb,ge as Zc,kp as Zd,fT as Ze,jl as _,kC as _a,KM as _b,Yh as _c,kA as _d,gT as _e,Ul as a,Kg as aa,RC as ab,_x as ac,lp as ad,DA as ae,hT as af,Gl as b,Jg as ba,FC as bb,Ux as bc,Zh as bd,$y as be,Aa as bf,Sg as c,Zg as ca,sw as cb,zs as cc,Qh as cd,Uy as ce,vT as cf,Tg as d,Xg as da,cw as db,qx as dc,ey as dd,Gy as de,np as df,FT as e,Qg as ea,fw as eb,n0 as ec,oy as ed,qy as ee,bg as f,es as fa,xw as fb,Yx as fc,jr as fd,Yy as fe,Ir as g,jg as ga,yw as gb,$s as gc,nB as gd,Ky as ge,ht as h,eC as ha,Sw as hb,Zx as hc,iy as hd,Dp as he,CD as i,ts as ia,Tw as ib,Xx as ic,ay as id,Jy as ie,Ig as j,rt as ja,OC as jb,Qx as jc,uB as jd,Zy as je,xD as k,Kb as ka,_C as kb,eh as kc,xp as kd,Xy as ke,vg as l,Xb as la,Bw as lb,_i as lc,sy as ld,jy as le,wg as m,rC as ma,kw as mb,$i as mc,sa as md,TS as me,O as n,tI as na,Nw as nb,oh as nc,en as nd,ck as ne,Pg as o,nI as oa,YC as ob,Gi as oc,pa as od,bS as oe,Mg as p,lI as pa,zw as pb,qi as pc,py as pd,ioe as pe,pi as q,mI as qa,Gw as qb,ah as qc,my as qd,IS as qe,Pe as r,UW as ra,jw as rb,sh as rc,cy as rd,vS as re,Ie as s,gI as sa,C4 as sb,ph as sc,uy as sd,wS as se,$ as t,hI as ta,QC as tb,ch as tc,dy as td,Fp as te,mi as u,vI as ua,sP as ub,fh as uc,Xo as ud,ES as ue,wr as v,BN as va,jC as vb,gh as vc,ma as vd,kS as ve,Eg as w,WN as wa,cP as wb,Ch as wc,hp as wd,LS as we,GT as x,$N as xa,rx as xb,xh as xc,tn as xd,RS as xe,KT as y,ZN as ya,Ts as yb,hh as yc,QX as yd,FS as ye,QT as z,HI as za,Fi as zb,yh as zc,Cy as zd,WS as ze};
|